/* ============================================================
   Travel Landing Builder — Public landing page styles
   Lightweight, no framework. Palette inspired by the reference:
   warm sunset hero + teal/green accents + soft rounded cards.
   ============================================================ */
:root {
    --teal: #0e7c7b;
    --teal-dark: #0a5a59;
    --green: #16a34a;
    --wa: #1fa855;
    --ink: #1f2a2e;
    --muted: #6b7a80;
    --bg: #eef1f0;
    --card: #ffffff;
    --line: #e5e9e8;
    --radius: 16px;
    --shadow: 0 8px 24px rgba(20, 40, 45, .08);
    --shadow-sm: 0 3px 10px rgba(20, 40, 45, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* -------- HERO -------- */
.hero {
    position: relative;
    background: linear-gradient(150deg, #b9764c, #7c4a3a 55%, #3d2f3a);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 34px 20px 30px;
}
.hero-inner { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-logo {
    width: 108px; height: 108px; border-radius: 50%;
    background: #fff; display: flex; align-items: center; justify-content: center;
    overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.25); margin-bottom: 14px;
}
.hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.logo-fallback { font-size: 44px; font-weight: 800; color: var(--teal); }
.hero-title { font-size: clamp(26px, 6vw, 40px); font-weight: 800; margin: 0 0 2px; letter-spacing: .5px; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero-sub { font-size: clamp(15px, 3.4vw, 20px); font-weight: 700; margin: 0 0 8px; opacity: .96; }
.hero-desc { font-size: clamp(15px, 3.6vw, 20px); margin: 0 auto 4px; max-width: 620px; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.hero-social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; justify-content: center; }
.social-badge {
    width: 46px; height: 46px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.25);
    transition: transform .15s ease, box-shadow .15s ease;
}
.social-badge:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.3); }
.social-badge svg { width: 26px; height: 26px; }

/* -------- QUICK NAV -------- */
.quicknav {
    position: relative;
    margin: -18px auto 0;
    max-width: 900px;
    background: var(--card);
    border-radius: 18px 18px 0 0;
    padding: 20px 10px 14px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    box-shadow: var(--shadow);
}
.qn-item { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink); font-size: 12.5px; font-weight: 600; text-align: center; }
.qn-ic { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--teal); }
.qn-ic svg { width: 30px; height: 30px; }
.qn-ic.qn-wa { color: var(--wa); }
.qn-item:hover .qn-ic { color: var(--green); }

/* -------- PAGE / SECTIONS -------- */
.page { max-width: 900px; margin: 0 auto; padding: 0 14px 120px; background: var(--card); }
.section { padding: 22px 4px; }
.section-title { font-size: 22px; font-weight: 800; margin: 0 0 14px; }
.card-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }

.about-block.has-img { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; }
.about-img img { border-radius: 12px; height: 100%; object-fit: cover; }

/* -------- TOUR CARDS: strict 3 columns on ALL breakpoints -------- */
.tours-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
/* Jika hanya ada 1-2 paket: kolom menyesuaikan dan posisi otomatis center */
.tours-grid.tc-count-1 { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
.tours-grid.tc-count-2 { grid-template-columns: repeat(2, 1fr); max-width: 600px; margin: 0 auto; }
.tour-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    overflow: hidden; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}
.tour-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tc-img { aspect-ratio: 16/10; background: #dfe6e5; overflow: hidden; }
.tc-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.tc-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #cdd8d7, #aebfbe); }
.tc-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tc-name { font-size: 15px; font-weight: 800; margin: 0; line-height: 1.25; }
.tc-name small { font-weight: 600; color: var(--muted); font-size: 12px; }
.tc-price { font-size: 15px; font-weight: 800; color: var(--teal-dark); }
.tc-desc { font-size: 12.5px; color: var(--muted); margin: 0; flex: 1; }
.tc-btn {
    margin-top: 6px; text-align: center; background: var(--teal); color: #fff;
    font-weight: 700; padding: 9px 12px; border-radius: 10px; font-size: 14px;
    transition: background .15s ease;
}
.tc-btn:hover { background: var(--teal-dark); }

/* -------- PROMOTION + COUNTDOWN -------- */
.promo-block {
    background: #fbfdfc; border: 2px dashed var(--teal);
    border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow-sm);
}
.promo-title { color: var(--teal-dark); font-size: clamp(17px, 4.4vw, 24px); font-weight: 800; margin: 0 0 14px; }
.countdown { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 14px; }
.cd-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cd-num { background: #1f2a2e; color: #fff; font-size: clamp(24px, 7vw, 40px); font-weight: 800; padding: 6px 12px; border-radius: 10px; min-width: 52px; display: inline-block; }
.cd-lbl { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--muted); }
.cd-sep { font-size: 28px; font-weight: 800; color: #1f2a2e; align-self: flex-start; margin-top: 6px; }
.promo-desc { color: var(--ink); font-size: 15px; margin: 0; }
.promo-expired { opacity: .7; }

/* -------- OPERATING HOURS -------- */
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
.hours-list li:last-child { border-bottom: 0; }
.h-day { font-weight: 600; }
.h-time { color: var(--teal-dark); font-weight: 700; }

/* -------- LOCATION -------- */
.location-block { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.loc-office { margin: 0 0 4px; }
.loc-addr { margin: 0 0 10px; color: var(--muted); }
.loc-link { color: var(--teal); font-weight: 700; }
.loc-map { border-radius: 12px; overflow: hidden; min-height: 180px; }
.loc-map iframe { width: 100%; height: 100%; min-height: 200px; border: 0; }

.site-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 26px 0 10px; }

/* -------- WHATSAPP FLOATING BUTTON (center bottom, pill) -------- */
.wa-float {
    position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
    background: var(--wa); color: #fff; display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 30px; border-radius: 999px; font-weight: 700; font-size: 17px;
    box-shadow: 0 10px 26px rgba(31,168,85,.45); z-index: 999;
    transition: transform .15s ease, box-shadow .15s ease;
}
.wa-float:hover { transform: translateX(-50%) translateY(-3px); box-shadow: 0 14px 32px rgba(31,168,85,.55); }
.wa-ic svg { width: 26px; height: 26px; display: block; }

/* -------- Responsive tweaks (tours stay 3-col!) -------- */
@media (max-width: 640px) {
    .hero { padding: 26px 16px 26px; }
    .hero-logo { width: 88px; height: 88px; }
    .about-block.has-img { grid-template-columns: 1fr; }
    .location-block { grid-template-columns: 1fr; }
    .tours-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .tc-body { padding: 8px; }
    .tc-name { font-size: 12px; }
    .tc-name small { display: block; }
    .tc-price { font-size: 12.5px; }
    .tc-desc { display: none; }
    .tc-btn { font-size: 12px; padding: 7px 6px; }
    .social-badge { width: 42px; height: 42px; }
}

/* ============================================================
   DEVICE FRAME — di PC/laptop halaman tampil seperti layar HP
   di dalam frame iPhone (sama seperti pratinjau di dashboard).
   Di HP asli frame hilang (tampilan penuh seperti biasa).
   ============================================================ */
.stage { min-height: 100vh; }
.device { position: relative; }
.device-notch, .device-btn { display: none; }

@media (min-width: 768px) {
    body { background: #10181b; }
    .stage { display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
    .device {
        width: 390px; height: min(844px, calc(100vh - 48px));
        background: #0c0c0c; border-radius: 54px; padding: 12px;
        box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 2px #2b3134;
    }
    .screen {
        height: 100%; overflow-y: auto; border-radius: 42px;
        background: var(--bg); scroll-behavior: smooth;
        scrollbar-width: none;
    }
    .screen::-webkit-scrollbar { width: 0; height: 0; }
    .device-notch {
        display: block; position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
        width: 120px; height: 26px; background: #0c0c0c; border-radius: 0 0 10px 10px; z-index: 1001;
    }
    .device-btn { display: block; position: absolute; background: #2b3134; border-radius: 2px; }
    .db-power { right: -3px; top: 200px; width: 3px; height: 86px; }
    .db-vol-up { left: -3px; top: 160px; width: 3px; height: 56px; }
    .db-vol-down { left: -3px; top: 226px; width: 3px; height: 56px; }
    /* Tombol WhatsApp melayang tetap di dalam frame HP */
    .wa-float { position: absolute; bottom: 20px; }
}
