/**
 * Landing — Modern Theme (Tour Focus)
 * Path: public_html/assets/site/css/site-modern.css
 */

:root {
    --modern-primary: #0033cc;
    --modern-primary-dark: #002699;
    --modern-accent: #0044ff;
    --modern-bg: #f8f9fa;
    --modern-text: #333333;
    --modern-muted: #6c757d;
    --modern-radius: 12px;
}

html, body { overflow-x: hidden !important; max-width: 100vw; width: 100%; margin: 0; padding: 0; }
* { box-sizing: border-box; }
body[data-theme="modern"] { font-family: 'Poppins', 'Plus Jakarta Sans', sans-serif; }

/* ══════════════════════════════════════════════════════════════════════
   HERO SLIDESHOW (PROMOSI)
   ══════════════════════════════════════════════════════════════════════ */
.mtr-hero-swiper {
    width: 100%;
    height: 80vh; /* Tinggi Hero */
    min-height: 500px;
    max-height: 800px;
    background: #111;
}

.mtr-hero-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.mtr-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 20, 80, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.mtr-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeUpHero 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Animasi Teks Muncul */
@keyframes fadeUpHero {
    to { opacity: 1; transform: translateY(0); }
}

.mtr-hero-title {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
    font-family: 'Caveat', cursive; /* Font aesthetic untuk Hero */
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.mtr-hero-sub {
    font-size: clamp(16px, 2.5vw, 20px);
    color: #f1f5f9;
    margin-bottom: 32px;
    line-height: 1.6;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.mtr-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f59e0b;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}
.mtr-hero-btn:hover {
    background: #d97706;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

/* ─── Header Section (Bawaan) ─── */
.mtr-section { padding: 60px 0; background: #fff; }
.mtr-head-center { text-align: center; margin-bottom: 40px; }
.mtr-badge { display: inline-block; background: var(--modern-primary); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 6px 16px; border-radius: 999px; margin-bottom: 12px; }
.mtr-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--modern-text); margin: 0; letter-spacing: -0.02em; }
.mtr-title span { color: var(--modern-primary); }
.mtr-title-line { width: 60px; height: 3px; background: var(--modern-primary); margin: 16px auto 0; border-radius: 3px; }

/* ══════════════════════════════════════════════════════════════════════
   DESAIN FASILITAS
   ══════════════════════════════════════════════════════════════════════ */
.mtr-facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mtr-facility-item { background: #f8f9fa; border: 1px solid #eaeaea; border-radius: var(--modern-radius); padding: 20px; display: flex; align-items: center; gap: 16px; transition: transform 0.2s; }
.mtr-facility-item:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.mtr-facility-icon { width: 48px; height: 48px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--modern-primary); flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.mtr-facility-text h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--modern-text); }
.mtr-facility-text p { margin: 0; font-size: 12.5px; color: var(--modern-muted); line-height: 1.4; }

/* ══════════════════════════════════════════════════════════════════════
   DESAIN DESTINASI
   ══════════════════════════════════════════════════════════════════════ */
.mtr-dest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.mtr-dest-item { background: #fff; border-radius: var(--modern-radius); overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: flex; flex-direction: column; }
.mtr-dest-hero { position: relative; width: 100%; aspect-ratio: 16 / 10; background: #eee; overflow: hidden; }
.mtr-dest-hero .swiper-wrapper, .mtr-dest-hero .swiper-slide { width: 100%; height: 100%; }
.mtr-dest-hero .swiper-slide { background-size: cover; background-position: center; }
.mtr-dest-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%); z-index: 1; pointer-events: none; }
.mtr-dest-hero .swiper-pagination { bottom: 10px !important; z-index: 3; }
.mtr-dest-hero .swiper-pagination-bullet { background: #fff; opacity: 0.6; }
.mtr-dest-hero .swiper-pagination-bullet-active { opacity: 1; background: #f59e0b; }
.mtr-dest-overlay { position: absolute; bottom: 20px; left: 20px; z-index: 2; color: #fff; padding-right: 20px; }
.mtr-dest-overlay h3 { margin: 0 0 4px; font-size: clamp(20px, 3vw, 24px); font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.1; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.mtr-dest-overlay p { margin: 0 0 12px; font-size: 13px; opacity: 0.9; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.mtr-btn-shop { display: inline-block; background: #f59e0b; color: #111; font-size: 13px; font-weight: 800; padding: 8px 20px; border-radius: 999px; text-decoration: none; transition: transform 0.2s, background 0.2s; }
.mtr-btn-shop:hover { background: #d97706; transform: scale(1.05); }
.mtr-dest-accordion { background: #fff; border-top: 1px solid #eee; }
.mtr-dest-accordion summary { padding: 16px 20px; font-size: 14px; font-weight: 700; color: var(--modern-text); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }
.mtr-dest-accordion summary::-webkit-details-marker { display: none; }
.mtr-dest-accordion summary:hover { background: #f9f9f9; }
.mtr-dest-accordion summary i { transition: transform 0.3s; color: var(--modern-primary); }
.mtr-dest-accordion[open] summary i { transform: rotate(180deg); }
.mtr-dest-spots-wrap { padding: 0 20px 20px; background: #f9f9f9; }
.mtr-dest-spots-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mtr-dest-spots-list li { margin: 0; }
.spot-btn { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: #fff; border: 1px solid #eaeaea; padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #444; cursor: pointer; transition: all 0.2s ease; }
.spot-btn i { color: #f59e0b; font-size: 14px; flex-shrink: 0; }
.spot-btn span { line-height: 1.3; }
.spot-btn:hover { border-color: var(--modern-primary); color: var(--modern-primary); box-shadow: 0 4px 10px rgba(0,51,204,0.1); transform: translateY(-2px); }

/* ══════════════════════════════════════════════════════════════════════
   MODAL / POPUP GALLERY
   ══════════════════════════════════════════════════════════════════════ */
.mtr-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100vw; height: 100vh; z-index: 99999; background: rgba(0,0,0,0.85); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.3s ease, visibility 0.3s ease; }
.mtr-modal.show { opacity: 1; visibility: visible; pointer-events: auto; }
.mtr-modal-content { background: #fff; padding: 20px; border-radius: 16px; width: calc(100vw - 40px); max-width: 500px; box-sizing: border-box; position: relative; transform: scale(0.95); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); max-height: calc(100vh - 40px); overflow-y: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.mtr-modal.show .mtr-modal-content { transform: scale(1); }
.mtr-modal-close { position: absolute; top: 10px; right: 15px; font-size: 28px; font-weight: bold; color: #333; cursor: pointer; z-index: 10; background: #fff; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.2); transition: color 0.2s, transform 0.2s; }
.mtr-modal-close:hover { color: #ef4444; transform: scale(1.1); }
#spotModalTitle { margin: 0 0 16px; font-size: clamp(18px, 4vw, 22px); font-weight: 800; color: var(--modern-text); text-align: center; padding-right: 30px; }
.mtr-modal-img { width: 100%; aspect-ratio: 4/3; background-size: cover; background-position: center; border-radius: 8px; background-color: #eee; }

/* ══════════════════════════════════════════════════════════════════════
   PAKET WISATA (DENGAN SLIDER)
   ══════════════════════════════════════════════════════════════════════ */
.mtr-pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mtr-pkg-card { background: #fff; border: 1px solid #eaeaea; border-radius: var(--modern-radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform 0.2s; }
.mtr-pkg-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.mtr-pkg-thumb { position: relative; width: 100%; aspect-ratio: 16 / 10; background: #eee; overflow: hidden; }
.mtr-pkg-thumb .swiper-wrapper, .mtr-pkg-thumb .swiper-slide { width: 100%; height: 100%; }
.mtr-pkg-thumb .swiper-slide { background-size: cover; background-position: center; }
.mtr-pkg-thumb .swiper-pagination { bottom: 8px !important; z-index: 3; }
.mtr-pkg-thumb .swiper-pagination-bullet { background: #fff; opacity: 0.6; width: 6px; height: 6px; }
.mtr-pkg-thumb .swiper-pagination-bullet-active { opacity: 1; background: var(--modern-primary); width: 8px; height: 8px; }
.mtr-pkg-badge { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,0.7); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 4px; z-index: 4; backdrop-filter: blur(4px); }
.mtr-pkg-body { padding: 20px; text-align: center; display: flex; flex-direction: column; flex-grow: 1; }
.mtr-pkg-title { font-size: 15px; font-weight: 800; text-transform: uppercase; color: var(--modern-text); margin: 0 0 12px; }
.mtr-pkg-meta { font-size: 13px; color: var(--modern-muted); margin-bottom: 8px; display: flex; justify-content: center; gap: 6px; }
.mtr-pkg-price-new { font-size: 20px; font-weight: 800; color: var(--modern-primary); }

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE (MOBILE & TABLET)
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .mtr-facility-grid { grid-template-columns: repeat(2, 1fr); }
    .mtr-pkg-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .mtr-hero-swiper { height: 60vh; min-height: 400px; } /* Lebih pendek di HP */
    .mtr-dest-grid { grid-template-columns: 1fr; gap: 20px; }
    .mtr-dest-spots-list { grid-template-columns: 1fr; }
    .mtr-dest-hero { aspect-ratio: 16 / 9; }
    .mtr-dest-overlay { bottom: 16px; left: 16px; }
    .mtr-modal-img { aspect-ratio: 1 / 1; }
}

@media (max-width: 640px) {
    .mtr-facility-grid { grid-template-columns: 1fr; }
    .mtr-pkg-grid { grid-template-columns: 1fr; }
    .mtr-section { padding: 40px 0; }
    .mtr-detail-grid, .mtr-detail-main, .mtr-detail-side { width: 100%; max-width: 100%; overflow-x: hidden; }
}