/* =========================================================
   Alpine Adventures — Single Tour Page Styles
   ========================================================= */

:root {
    --aat-primary:       #ff5400;
    --aat-primary-dark:  #ff732d;
    --aat-primary-light: #fff0e6;
    --aat-heading:       #1a1a1a;
    --aat-body:          #565656;
    --aat-muted:         #6d6d6d;
    --aat-border:        #e6e8ee;
    --aat-bg-soft:       #f6f8fb;
    --aat-bg-white:      #ffffff;
    --aat-radius:        10px;
    --aat-shadow-sm:     0 4px 12px rgba(0,0,0,.05);
    --aat-shadow-md:     0 12px 28px rgba(0,0,0,.08);
    --aat-shadow-lg:     0 30px 40px rgba(0,0,0,.10);
}

/* Reset inside plugin area */
.aat-single-tour-wrap,
.aat-single-tour-wrap * { box-sizing: border-box; }

.aat-single-tour-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--aat-body);
    line-height: 1.7;
    background: #fff;
    padding-bottom: 60px;
}

.aat-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================================
   1. HERO GALLERY
   ========================================================= */
.aat-hero-gallery {
    padding: 30px 0 10px;
    background: #fff;
}
.aat-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1.4fr;
    gap: 8px;
    height: 420px;
    border-radius: var(--aat-radius);
    overflow: hidden;
    position: relative;
}
.aat-gallery-main,
.aat-gallery-thumbs { min-height: 0; }
.aat-gallery-main .aat-lightbox { display: block; height: 100%; }
.aat-gallery-main img,
.aat-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.aat-gallery-main:hover img { transform: scale(1.03); }

.aat-gallery-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
}
.aat-thumb {
    position: relative;
    overflow: hidden;
    display: block;
}
.aat-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.aat-thumb:hover img { transform: scale(1.05); }
.aat-thumb-empty {
    background: var(--aat-bg-soft);
}

.aat-gallery-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--aat-border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--aat-heading);
    cursor: pointer;
    box-shadow: var(--aat-shadow-sm);
    transition: all .2s;
}
.aat-gallery-btn:hover { background: var(--aat-primary); color: #fff; border-color: var(--aat-primary); }

/* =========================================================
   2. TITLE + META
   ========================================================= */
.aat-tour-head {
    padding: 20px 0 10px;
    border-bottom: 1px solid var(--aat-border);
}
.aat-tour-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--aat-heading);
    margin: 0 0 10px;
    line-height: 1.25;
}
.aat-tour-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--aat-muted);
}
.aat-star { fill: #dcdcdc; }
.aat-star.filled { fill: #ffb400; }
.aat-rating-text { margin-left: 6px; color: var(--aat-muted); }

.aat-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 16px;
}
.aat-meta-strip li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--aat-muted);
}
.aat-meta-strip svg { color: var(--aat-primary); flex-shrink: 0; }

/* =========================================================
   3. MAIN LAYOUT
   ========================================================= */
.aat-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
    padding-top: 40px;
}
.aat-tour-main { min-width: 0; }

/* =========================================================
   4. TAB NAVIGATION
   ========================================================= */
.aat-tabs-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 2px solid var(--aat-border);
    margin-bottom: 30px;
    position: relative;
    overflow-x: auto;
    scrollbar-width: none;
}
.aat-tabs-nav::-webkit-scrollbar { display: none; }

.aat-tab-link {
    padding: 14px 20px;
    font-size: 17px;
    font-weight: 600;
    color: var(--aat-muted);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: color .2s;
    border: none;
    background: transparent;
}
.aat-tab-link:hover { color: var(--aat-heading); }
.aat-tab-link.active { color: var(--aat-primary); }
.aat-tab-slider {
    position: absolute;
    bottom: -2px;
    height: 2px;
    background: var(--aat-primary);
    transition: left .3s ease, width .3s ease;
    pointer-events: none;
}

/* =========================================================
   5. TAB PANELS + BLOCKS
   ========================================================= */
.aat-tab-panel { display: none; animation: aatFade .3s ease; }
.aat-tab-panel.active { display: block; }

@keyframes aatFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.aat-block { margin-bottom: 40px; }
.aat-block-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--aat-heading);
    margin: 0 0 20px;
    padding-bottom: 10px;
    position: relative;
}
.aat-block-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--aat-primary);
    border-radius: 2px;
}

/* Highlights */
.aat-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 17px;
}
.aat-highlights li {
    padding: 8px 0 8px 26px;
    position: relative;
}
.aat-highlights li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--aat-primary);
    border-radius: 50%;
}

/* Overview */
.aat-overview { font-size: 17px; color: var(--aat-body); }
.aat-overview p { margin-bottom: 18px; }

/* Inclusions / Exclusions */
.aat-inc-exc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.aat-inc h3,
.aat-exc h3 {
    font-size: 20px;
    margin: 0 0 14px;
    color: var(--aat-heading);
}
.aat-inc h3::before { content: '✓ '; color: #2ecc71; }
.aat-exc h3::before { content: '✕ '; color: #e74c3c; }
.aat-inc ul,
.aat-exc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.aat-inc li,
.aat-exc li {
    padding: 6px 0;
    font-size: 16px;
}

/* =========================================================
   6. ACCORDION (Itinerary & FAQ)
   ========================================================= */
.aat-accordion {
    border-radius: var(--aat-radius);
    overflow: hidden;
}
.aat-acc-item {
    background: #fff;
    border: 1px solid var(--aat-border);
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: var(--aat-shadow-sm);
}
.aat-acc-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 17px;
    font-weight: 700;
    color: var(--aat-heading);
    cursor: pointer;
}
.aat-acc-day { color: var(--aat-primary); flex-shrink: 0; }
.aat-acc-title { flex: 1; }
.aat-acc-icon {
    position: relative;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.aat-acc-icon::before,
.aat-acc-icon::after {
    content: '';
    position: absolute;
    background: var(--aat-primary);
    border-radius: 2px;
    transition: transform .25s ease;
}
.aat-acc-icon::before { top: 6px; left: 0; width: 14px; height: 2px; }
.aat-acc-icon::after  { left: 6px; top: 0; width: 2px; height: 14px; }
.aat-acc-item.open .aat-acc-icon::after { transform: scaleY(0); }

.aat-acc-body {
    display: none;
    padding: 0 22px 22px;
    color: var(--aat-body);
    font-size: 16px;
}
.aat-acc-item.open .aat-acc-body { display: block; }
.aat-acc-body ul { padding-left: 20px; }

/* =========================================================
   7. PRICING / DEPARTURES
   ========================================================= */
.aat-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.aat-price-item {
    background: var(--aat-bg-soft);
    border: 1px solid var(--aat-border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}
.aat-price-item-name {
    font-weight: 700;
    color: var(--aat-heading);
    margin-bottom: 8px;
}
.aat-price-item-price {
    color: var(--aat-primary);
    font-size: 20px;
    font-weight: 700;
}

.aat-departures-table-wrap { overflow-x: auto; }
.aat-departures-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.aat-departures-table th,
.aat-departures-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--aat-border);
}
.aat-departures-table th {
    background: var(--aat-bg-soft);
    font-weight: 700;
    color: var(--aat-heading);
}
.aat-status {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.aat-status-available { background: #e6f7ec; color: #1e7e34; }
.aat-status-sold_out  { background: #fde8e8; color: #c0392b; }
.aat-status-limited   { background: #fff4e0; color: #b8741a; }
.aat-status-closed    { background: #eee; color: #666; }

/* =========================================================
   8. REVIEWS
   ========================================================= */
.aat-reviews-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.aat-reviews-list { display: flex; flex-direction: column; gap: 22px; }
.aat-review-item {
    display: flex;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--aat-border);
    border-radius: 10px;
    background: #fff;
}
.aat-review-avatar img { border-radius: 50%; }
.aat-review-body { flex: 1; }
.aat-review-top {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: var(--aat-heading);
}
.aat-review-country { color: var(--aat-muted); font-size: 14px; }
.aat-review-stars { margin: 6px 0; }
.aat-review-text { margin: 6px 0 0; font-size: 15px; }

/* =========================================================
   9. STICKY SIDEBAR
   ========================================================= */
.aat-tour-sidebar { position: relative; }
.aat-sidebar-sticky {
    position: sticky;
    top: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* --- Price Card --- */
.aat-price-card {
    background: #fff;
    border: 1px solid var(--aat-border);
    border-radius: var(--aat-radius);
    box-shadow: var(--aat-shadow-md);
    overflow: hidden;
    position: relative;
}
.aat-price-card-ribbon {
    background: var(--aat-primary);
    color: #fff;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    letter-spacing: .3px;
}
.aat-price-card-head {
    padding: 18px 22px 14px;
    background: linear-gradient(135deg, #fff7f2 0%, #fff 100%);
    border-bottom: 1px solid var(--aat-border);
    text-align: center;
}
.aat-price-from {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.aat-price-label {
    font-size: 13px;
    color: var(--aat-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.aat-price-amount {
    font-size: 26px;
    font-weight: 800;
    color: var(--aat-primary);
}

/* Card tabs */
.aat-card-tabs {
    display: flex;
    border-bottom: 1px solid var(--aat-border);
}
.aat-card-tab {
    flex: 1;
    padding: 12px 10px;
    background: var(--aat-bg-soft);
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--aat-muted);
    cursor: pointer;
    transition: all .2s;
    border-bottom: 2px solid transparent;
}
.aat-card-tab.active {
    color: var(--aat-primary);
    background: #fff;
    border-bottom-color: var(--aat-primary);
}
.aat-card-tab-panel { display: none; padding: 18px 22px; }
.aat-card-tab-panel.active { display: block; }

/* Booking form fields */
.aat-booking-form .aat-field { margin-bottom: 12px; }
.aat-booking-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--aat-heading);
    margin-bottom: 4px;
}
.aat-booking-form .aat-req { color: var(--aat-primary); }
.aat-booking-form input,
.aat-booking-form textarea,
.aat-booking-form select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid var(--aat-border);
    border-radius: 6px;
    background: #fff;
    color: var(--aat-body);
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}
.aat-booking-form input:focus,
.aat-booking-form textarea:focus {
    outline: none;
    border-color: var(--aat-primary);
    box-shadow: 0 0 0 3px rgba(255,84,0,.10);
}
.aat-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Buttons */
.aat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s ease;
    font-family: inherit;
    line-height: 1.2;
}
.aat-btn-primary {
    background: var(--aat-primary);
    color: #fff;
}
.aat-btn-primary:hover {
    background: var(--aat-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(255,84,0,.25);
}
.aat-btn-block { width: 100%; }

.aat-form-response { margin-top: 10px; font-size: 14px; }
.aat-form-response.success { color: #1e7e34; }
.aat-form-response.error   { color: #c0392b; }

/* Price card foot */
.aat-price-card-foot {
    padding: 0 22px 18px;
}
.aat-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #25d366;
    color: #fff;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    transition: background .2s;
}
.aat-whatsapp-btn:hover { background: #1da851; color: #fff; }

/* --- Sidebar Widgets --- */
.aat-widget {
    background: #fff;
    border: 1px solid var(--aat-border);
    border-radius: var(--aat-radius);
    padding: 22px;
    box-shadow: var(--aat-shadow-sm);
}
.aat-widget-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--aat-heading);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--aat-border);
    position: relative;
}
.aat-widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 40px;
    height: 2px;
    background: var(--aat-primary);
}

.aat-why-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.aat-why-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 15px;
    color: var(--aat-body);
    border-bottom: 1px dashed var(--aat-border);
}
.aat-why-list li:last-child { border-bottom: none; }
.aat-why-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.aat-help-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    font-size: 15px;
}
.aat-help-line a {
    color: var(--aat-heading);
    font-weight: 600;
    text-decoration: none;
}
.aat-help-line a:hover { color: var(--aat-primary); }

.aat-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.aat-related-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--aat-border);
}
.aat-related-list li:last-child { border-bottom: none; }
.aat-related-list a {
    color: var(--aat-body);
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color .2s;
}
.aat-related-list a::before {
    content: '›';
    color: var(--aat-primary);
    font-weight: 700;
}
.aat-related-list a:hover { color: var(--aat-primary); }

/* =========================================================
   10. MOBILE BOTTOM BAR
   ========================================================= */
.aat-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--aat-border);
    padding: 10px 16px;
    z-index: 9999;
    box-shadow: 0 -8px 20px rgba(0,0,0,.08);
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.aat-mobile-bar-price { line-height: 1.2; }
.aat-mb-label {
    font-size: 11px;
    color: var(--aat-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    display: block;
}
.aat-mb-amount {
    font-size: 18px;
    font-weight: 800;
    color: var(--aat-primary);
}
.aat-mb-btn { padding: 10px 22px; font-size: 14px; }

/* =========================================================
   11. LIGHTBOX
   ========================================================= */
.aat-lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.aat-lightbox-overlay.active { display: flex; }
.aat-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
}
.aat-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    border: none;
    font-size: 26px;
    cursor: pointer;
    transition: background .2s;
}
.aat-lightbox-close:hover { background: rgba(255,255,255,.3); }

/* =========================================================
   12. RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .aat-main-layout {
        grid-template-columns: 1fr;
    }
    .aat-sidebar-sticky {
        position: static;
        top: auto;
    }
    .aat-tour-sidebar { order: 2; }
}

@media (max-width: 768px) {
    .aat-gallery-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .aat-gallery-main { height: 280px; }
    .aat-gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 90px;
    }
    .aat-thumb-empty { display: none; }
    .aat-tour-title { font-size: 26px; }
    .aat-meta-strip { gap: 14px; font-size: 14px; }
    .aat-meta-strip svg { width: 16px; height: 16px; }
    .aat-tabs-nav { margin-bottom: 20px; }
    .aat-tab-link { padding: 12px 14px; font-size: 15px; }
    .aat-block-title { font-size: 20px; }
    .aat-inc-exc { grid-template-columns: 1fr; gap: 20px; }

    .aat-mobile-bar { display: flex; }
    .aat-single-tour-wrap { padding-bottom: 90px; }

    .aat-review-item { flex-direction: column; }
}

@media (max-width: 480px) {
    .aat-gallery-thumbs { grid-template-columns: repeat(2, 1fr); grid-template-rows: 70px 70px; }
    .aat-field-row { grid-template-columns: 1fr; }
}