﻿:root {
    --green:      #22c55e;
    --green-dark: #16a34a;
    --dark:       #0a0a0a;
    --dark-2:     #141414;
    --dark-3:     #1e1e1e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: #fff;
    padding-bottom: 72px;
    -webkit-font-smoothing: antialiased;
}

/* Top Bar */
.topbar {
    position: sticky; top: 0; z-index: 90;
    background: var(--dark);
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.brand { font-size: 1.25rem; font-weight: 700; letter-spacing: -.2px; color: #fff; }
.brand em { font-style: normal; color: var(--green); }
.topbar-menu { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 4px; line-height: 1; }

/* Hero */
.hero {
    position: relative;
    background:
        linear-gradient(170deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.80) 55%, var(--dark) 100%),
        url('../img/iquitos-airpot.jpg') center 35%/cover no-repeat;
    padding: 48px 24px 36px;
    min-height: calc(100svh - 56px);
    display: flex; flex-direction: column; justify-content: space-between;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.1); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.18); border-radius: 100px;
    padding: 6px 14px; font-size: .78rem; font-weight: 600;
    color: rgba(255,255,255,.9); margin-bottom: 22px;
}
.hero-badge i { color: var(--green); }
.hero-headline {
    font-size: clamp(2.3rem, 9vw, 4rem);
    font-weight: 800; line-height: 1.05;
    letter-spacing: -.5px; text-transform: uppercase;
}
.hero-headline .accent { display: block; color: var(--green); }
.hero-desc {
    color: rgba(255,255,255,.68); font-size: .95rem; line-height: 1.7;
    font-weight: 300;
    margin-top: 16px; margin-bottom: 32px; max-width: 420px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-hero-primary {
    background: var(--green); color: #fff; border: none; border-radius: 6px;
    padding: 14px 26px; font-weight: 700; font-size: .95rem; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    transition: background .2s, transform .15s; text-decoration: none;
}
.btn-hero-primary:hover { background: var(--green-dark); transform: translateY(-1px); color: #fff; }

.btn-hero-ghost {
    background: transparent; color: #fff;
    border: 1.5px solid rgba(255,255,255,.5); border-radius: 6px;
    padding: 14px 26px; font-weight: 600; font-size: .95rem; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    transition: border-color .2s, background .2s; text-decoration: none;
}
.btn-hero-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

/* Hero mini service cards */
.hero-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 40px; }
.hero-card { border-radius: 12px; overflow: hidden; position: relative; cursor: pointer; }
.hero-card img { width: 100%; height: 120px; object-fit: cover; display: block; transition: transform .3s; }
.hero-card:hover img { transform: scale(1.06); }
.hero-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 55%);
    display: flex; align-items: flex-end; padding: 10px;
}
.hero-card-label { font-size: .7rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .3px; }
.hero-fine-print { font-size: .68rem; color: rgba(255,255,255,.32); font-style: italic; margin-top: 12px; text-align: center; }

/* Shared section styles */
.section-tag   { font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px; color: var(--green); }
.section-title { font-size: 1.7rem; font-weight: 700; margin-top: 4px; letter-spacing: -.3px; }
.section-hdr   { margin-bottom: 28px; }

/* Services */
.svc-section { padding: 56px 24px; background: var(--dark-2); }
.svc-card {
    background: var(--dark-3); border-radius: 16px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.07);
    transition: transform .25s, border-color .25s;
}
.svc-card:hover { transform: translateY(-4px); border-color: rgba(34,197,94,.3); }
.svc-card img  { width: 100%; height: 180px; object-fit: cover; display: block; }
.svc-body { padding: 20px; }
.svc-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.svc-body h5 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.svc-body p  { font-size: .82rem; color: rgba(255,255,255,.5); line-height: 1.65; font-weight: 300; margin-bottom: 14px; }
.btn-svc {
    background: none; border: 1.5px solid rgba(255,255,255,.2); border-radius: 100px;
    padding: 7px 18px; font-size: .8rem; font-weight: 600; color: #fff; cursor: pointer;
    transition: border-color .2s, background .2s; text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
}
.btn-svc:hover, .btn-svc:focus { border-color: var(--green); background: rgba(34,197,94,.1); color: var(--green); }
.btn-svc.filled { background: var(--green); border-color: var(--green); color: #fff; }
.btn-svc.filled:hover { background: var(--green-dark); }

/* Benefits */
.ben-section { padding: 56px 24px; background: var(--dark); }
.ben-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ben-item {
    background: var(--dark-3); border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px; padding: 20px 16px;
    display: flex; flex-direction: column; gap: 10px;
}
.ben-icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(34,197,94,.12); display: flex; align-items: center; justify-content: center; }
.ben-item h6 { font-size: .88rem; font-weight: 600; margin: 0; }
.ben-item p  { font-size: .78rem; color: rgba(255,255,255,.5); margin: 0; line-height: 1.55; font-weight: 300; }

/* Gallery */
.gal-section { padding: 56px 24px; background: var(--dark-2); }
.gal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gal-grid .main { grid-column: span 2; }
.gal-grid img   { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; display: block; }
.gal-grid .main img { height: 240px; }

/* Footer */
.site-footer {
    padding: 48px 24px 24px; background: var(--dark-2);
    border-top: 1px solid rgba(255,255,255,.07);
}
.footer-brand { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.footer-brand em { font-style: normal; color: var(--green); }
.site-footer p, .site-footer li { font-size: .82rem; color: rgba(255,255,255,.45); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer h6 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.site-footer a  { color: rgba(255,255,255,.45); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-div  { border-color: rgba(255,255,255,.07); margin: 20px 0; }
.footer-copy { font-size: .75rem; color: rgba(255,255,255,.3); text-align: center; }
.social-links { display: flex; gap: 14px; margin-top: 14px; }
.social-links a { font-size: 1.15rem; color: rgba(255,255,255,.4); transition: color .2s; }
.social-links a:hover { color: var(--green); }

/* Bottom Nav */
.bnav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
    background: #fff; border-top: 1px solid #e5e7eb;
    display: flex; justify-content: space-around; align-items: stretch;
    padding: 8px 0 max(10px, env(safe-area-inset-bottom));
}
.bnav-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    text-decoration: none; background: none; border: none; cursor: pointer;
    color: #9ca3af; font-size: .62rem; font-weight: 600;
    padding: 4px 6px; transition: color .15s;
}
.bnav-item i { font-size: 1.25rem; line-height: 1; }
.bnav-item.active, .bnav-item:hover { color: var(--green); }
.bnav-item.bnav-cta { color: var(--green); }
.bnav-item.bnav-cta i {
    background: var(--green); color: #fff;
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-top: -18px;
    box-shadow: 0 4px 16px rgba(34,197,94,.5);
}

/* WhatsApp Float */
.wa-float {
    position: fixed; bottom: 82px; right: 18px; z-index: 70;
    background: #25d366; color: #fff; border-radius: 100px;
    padding: 10px 16px 10px 12px; font-weight: 700; font-size: .85rem;
    text-decoration: none; display: flex; align-items: center; gap: 7px;
    box-shadow: 0 4px 18px rgba(37,211,102,.5); transition: transform .2s;
}
.wa-float i { font-size: 1.2rem; }
.wa-float:hover { transform: scale(1.05); color: #fff; }
.wa-text { display: none; }
@media (min-width: 480px) { .wa-text { display: inline; } }

/* Booking Overlay */
.booking-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,.65);
    display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity .3s;
}
.booking-overlay.open { opacity: 1; pointer-events: auto; }

/* Booking Panel */
.booking-panel {
    background: #fff; width: 100%; max-width: 580px;
    border-radius: 22px 22px 0 0;
    max-height: 92svh; overflow-y: auto; overscroll-behavior: contain;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    transform: translateY(110%);
    transition: transform .38s cubic-bezier(.32,.72,0,1);
}
.booking-overlay.open .booking-panel { transform: translateY(0); }

.panel-drag    { width: 36px; height: 4px; background: #e5e7eb; border-radius: 2px; margin: 12px auto 0; }
.panel-topbar  { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 4px; }
.panel-title   { font-size: 1.15rem; font-weight: 700; color: #111; }
.panel-subtitle{ padding: 2px 20px 14px; font-size: .8rem; color: #6b7280; }
.panel-close   { background: #f3f4f6; border: none; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; color: #374151; font-size: .95rem; display: flex; align-items: center; justify-content: center; }

/* Route card */
.route-wrap { padding: 0 20px 14px; }
.route-box  { background: #f8fafc; border-radius: 16px; padding: 16px; border: 1px solid #e9ecef; }
.route-box-label { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: #9ca3af; margin-bottom: 10px; }

.origin-pill { background: var(--green); color: #fff; border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.origin-pill > i:first-child { font-size: 1.15rem; flex-shrink: 0; }
.op-name { font-weight: 700; font-size: .88rem; }
.op-sub  { font-size: .72rem; opacity: .78; margin-top: 1px; }
.op-lock { margin-left: auto; opacity: .55; font-size: .85rem; }

.route-line { display: flex; align-items: center; gap: 8px; padding: 7px 6px; }
.route-line .dot  { width: 8px; height: 8px; border-radius: 50%; background: #d1d5db; }
.route-line .line { flex: 1; height: 1px; background: #e5e7eb; }

.dest-pill { background: #fff; border: 2px solid #e5e7eb; border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; transition: border-color .2s; }
.dest-pill:focus-within { border-color: var(--green); }
.dest-pill.error { border-color: #ef4444; animation: shake .3s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }
.dest-pill > i { font-size: 1.15rem; color: var(--green); flex-shrink: 0; }
.dest-pill input { border: none; outline: none; background: transparent; font-size: .9rem; font-weight: 600; color: #111; width: 100%; }
.dest-pill input::placeholder { color: #9ca3af; font-weight: 400; }

/* Quick destinations */
.quick-section { padding: 0 20px 14px; }
.quick-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #374151; margin-bottom: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #f3f4f6; border: 1.5px solid #e5e7eb; border-radius: 100px; padding: 7px 13px; font-size: .78rem; font-weight: 600; color: #374151; cursor: pointer; display: flex; align-items: center; gap: 5px; transition: all .15s; white-space: nowrap; }
.chip:hover, .chip.selected { background: #dcfce7; border-color: var(--green); color: #15803d; }

/* Trip detail fields */
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 20px 14px; }
.det-field { background: #f8fafc; border: 1.5px solid #e9ecef; border-radius: 12px; padding: 11px 14px; transition: border-color .2s; }
.det-field:focus-within { border-color: var(--green); }
.det-field label { display: block; font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #9ca3af; margin-bottom: 3px; }
.det-field input { border: none; outline: none; background: transparent; font-size: .88rem; font-weight: 700; color: #111; width: 100%; }

/* Price row */
.price-row { margin: 0 20px 16px; background: #f0fdf4; border: 1.5px solid #bbf7d0; border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.price-label { font-size: .7rem; color: #6b7280; margin-bottom: 2px; }
.price-val   { font-size: 1.5rem; font-weight: 700; color: #15803d; letter-spacing: -.3px; }
.price-sub   { font-size: .7rem; color: #6b7280; margin-top: 1px; }
.price-note  { font-size: .68rem; color: #9ca3af; margin-top: 4px; }
.price-ico   { font-size: 2rem; color: var(--green); opacity: .32; }

/* Confirm button */
.btn-confirm {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: calc(100% - 40px); margin: 0 20px;
    background: #111; color: #fff; border: none;
    border-radius: 14px; padding: 16px 24px;
    font-size: 1rem; font-weight: 700; cursor: pointer;
    letter-spacing: -.2px; transition: background .2s;
}
.btn-confirm:hover { background: #333; }

/* Desktop */
@media (min-width: 992px) {
    .hero { padding: 80px 80px 60px; }
    .hero-headline { font-size: 4.5rem; }
    .hero-cards { max-width: 500px; }
    .svc-section, .ben-section, .gal-section, .site-footer { padding-left: 80px; padding-right: 80px; }
    .bnav { display: none; }
    body { padding-bottom: 0; }
    .wa-float { bottom: 28px; right: 28px; }
    .booking-overlay { align-items: center; padding: 24px; }
    .booking-panel { border-radius: 22px; max-height: 88vh; }
}
