/* =============================================
   User Controls — extracted from *.ascx inline <style> blocks.
   Loaded globally via Site.Master (all pages use it).

   Sections:
     1. Banner.ascx              — .santo-banner-* namespace
     2. BookingPopupsControl.ascx — booking popup modals + tabs
     3. CompareCnt.ascx          — excursion comparison table / cards
     4. RelatedExcursionsList.ascx — swiper-based related list
   ============================================= */


/* =============================================
   1. BANNER CONTROL (Banner.ascx)
   Selectors already use a distinctive .santo-banner-* namespace.
   ============================================= */

body.santo-banner-popup-open {
    overflow: hidden;
}

.santo-banner-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: santoBannerFadeIn 0.4s ease-out;
}

@keyframes santoBannerFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.santo-banner-popup-overlay.santo-banner-popup-fade-out {
    animation: santoBannerFadeOut 0.3s ease-in forwards;
}

@keyframes santoBannerFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.santo-banner-popup-modal {
    position: relative;
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(181, 151, 113, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: santoBannerScaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes santoBannerScaleIn {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to   { transform: scale(1) translateY(0);      opacity: 1; }
}

.santo-banner-popup-modal.santo-banner-popup-scale-out {
    animation: santoBannerScaleOut 0.3s ease-in forwards;
}

@keyframes santoBannerScaleOut {
    from { transform: scale(1) translateY(0);      opacity: 1; }
    to   { transform: scale(0.9) translateY(20px); opacity: 0; }
}

/* Close Button */
.santo-banner-popup-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid rgba(181, 151, 113, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.santo-banner-popup-close:hover {
    background: linear-gradient(135deg, var(--main-color) 0%, #A68861 100%);
    border-color: var(--main-color);
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 8px 24px rgba(181, 151, 113, 0.5);
}

.santo-banner-popup-close svg {
    color: #111111;
    transition: color 0.3s ease;
}

.santo-banner-popup-close:hover svg {
    color: #ffffff;
}

/* Image */
.santo-banner-popup-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, #f8f8f8 0%, #ffffff 100%);
}

.santo-banner-popup-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px 16px 0 0;
}

.santo-banner-popup-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, transparent 0%, var(--main-color) 25%, var(--main-color) 75%, transparent 100%);
    opacity: 0.8;
}

/* Content */
.santo-banner-popup-content {
    padding: 45px 50px 50px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    background: #ffffff;
}

.santo-banner-popup-content::-webkit-scrollbar       { width: 6px; }
.santo-banner-popup-content::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
.santo-banner-popup-content::-webkit-scrollbar-thumb { background: var(--main-color); border-radius: 3px; }
.santo-banner-popup-content::-webkit-scrollbar-thumb:hover { background: #A68861; }

.santo-banner-popup-title {
    font-family: var(--heading-font);
    font-size: 38px;
    font-weight: 700;
    color: #000000;
    margin-top: 15px;
    margin-bottom: 25px;
    line-height: 1.25;
    letter-spacing: -0.8px;
}

.santo-banner-popup-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--main-color) 0%, rgba(181, 151, 113, 0.2) 100%);
    margin-top: 18px;
    border-radius: 2px;
}

.santo-banner-popup-description {
    font-family: var(--default-font);
    font-size: 17px;
    line-height: 30px;
    color: #555555;
}

.santo-banner-popup-description p          { margin-bottom: 18px; }
.santo-banner-popup-description p:last-child { margin-bottom: 0; }
.santo-banner-popup-description strong      { color: #000000; font-weight: 600; }

/* Repeater items */
.santo-banner-popup-item             { margin-bottom: 20px; }
.santo-banner-popup-item:last-child  { margin-bottom: 0; }

.santo-banner-popup-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--main-color) 50%, transparent 100%);
    margin: 30px 0;
    opacity: 0.5;
}

.santo-banner-popup-item:last-of-type + .santo-banner-popup-divider {
    display: none;
}

/* Banner mode (CTA overlay) */
.santo-banner-section {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    margin-top: 26px;
}

.santo-banner-section .santo-banner-inner { margin-bottom: 30px; }
.santo-banner-section .santo-banner-inner:last-child { margin-bottom: 0; }

.santo-banner-inner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.santo-banner-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 0.6s ease;
}

.santo-banner-inner:hover .santo-banner-bg { transform: scale(1.03); }

.santo-banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}

.santo-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 50px;
}

.santo-banner-title { margin-bottom: 20px; }

.santo-banner-title h2 {
    font-size: 48px;
    color: #000000;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-top: 20px;
}

.santo-banner-title h2 span { color: var(--main-color); }

.santo-banner-description {
    font-family: var(--default-font);
    width: 100%;
}

.santo-banner-description p          { margin-bottom: 30px !important; }
.santo-banner-description p:last-child { margin-bottom: 0; }
.santo-banner-description strong     { color: var(--main-color); font-weight: 600; }

/* Gold accent lines */
.santo-banner-inner::before,
.santo-banner-inner::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--main-color) 50%, transparent 100%);
    z-index: 2;
}
.santo-banner-inner::before { top: 0; }
.santo-banner-inner::after  { bottom: 0; }

/* Banner responsive */
@media only screen and (min-width: 1200px) and (max-width: 1500px) {
    .santo-banner-inner   { padding: 70px 50px; }
    .santo-banner-title h2 { font-size: 44px; }
}

@media only screen and (max-width: 991px) {
    .santo-banner-popup-modal   { max-width: 90%; }
    .santo-banner-popup-content { padding: 35px 35px 40px; }
    .santo-banner-popup-title   { font-size: 32px; }
    .santo-banner-inner         { padding: 60px 40px; min-height: 280px; }
    .santo-banner-title h2      { font-size: 38px; }
    .santo-banner-description   { font-size: 17px; line-height: 30px; }
}

@media only screen and (max-width: 767px) {
    .santo-banner-popup-overlay { padding: 15px; }
    .santo-banner-popup-modal   { max-width: 100%; max-height: 95vh; border-radius: 12px; }
    .santo-banner-popup-close   { top: 16px; right: 16px; width: 42px; height: 42px; }
    .santo-banner-popup-content { padding: 30px 25px 35px; }
    .santo-banner-popup-title   { font-size: 28px; margin-bottom: 20px; }
    .santo-banner-popup-title::after { width: 60px; height: 3px; margin-top: 15px; }
    .santo-banner-popup-description { font-size: 16px; line-height: 28px; }
    .santo-banner-section       { margin-bottom: 30px; }
    .santo-banner-inner         { padding: 50px 30px; min-height: 260px; border-radius: 10px; }
    .santo-banner-title h2      { font-size: 32px; }
    .santo-banner-description   { font-size: 16px; line-height: 28px; }
}

@media only screen and (max-width: 479px) {
    .santo-banner-popup-overlay { padding: 10px; }
    .santo-banner-popup-modal   { border-radius: 10px; }
    .santo-banner-popup-close   { top: 14px; right: 14px; width: 38px; height: 38px; }
    .santo-banner-popup-content { padding: 25px 20px 30px; }
    .santo-banner-popup-title   { font-size: 24px; }
    .santo-banner-popup-title::after { width: 50px; height: 3px; margin-top: 12px; }
    .santo-banner-popup-description { font-size: 15px; line-height: 26px; }
    .santo-banner-inner         { padding: 40px 25px; min-height: 240px; border-radius: 8px; }
    .santo-banner-title h2      { font-size: 26px; letter-spacing: -0.5px; }
    .santo-banner-description   { font-size: 15px; line-height: 26px; }
}


/* =============================================
   2. BOOKING POPUPS CONTROL (BookingPopupsControl.ascx)
   Generic .nav-tabs selectors rescoped to .booking-tabs-nav
   to prevent bleed onto other Bootstrap nav-tabs on the site.
   ============================================= */

/* Offer badge (shared with RelatedExcursionsList — deduped here) */
.sisf-e-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 2px;
}

.sisf-e-badge--offer {
    background-color: var(--main-color);
    color: #ffffff;
}

/* Mobile-friendly tab nav inside booking popups */
.booking-tabs-nav .nav-link {
    color: #484848;
    font-weight: bold;
    padding: 12px 8px;
    white-space: nowrap;
}
.booking-tabs-nav .nav-link.active {
    color: var(--main-color);
    border-color: #dee2e6 #dee2e6 #fff;
}
.nav-tabs-scrollable {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}
.nav-tabs-scrollable::-webkit-scrollbar {
    display: none;
}

/* Desktop: switch pcBookAllChoices from tabs to side-by-side columns */
@media (min-width: 768px) {
    .booking-tabs-nav {
        display: none !important;
    }
    .booking-tabs-content {
        display: flex !important;
        gap: 0;
        align-items: flex-start;
    }
    .booking-tabs-content > .tab-pane {
        display: block !important;
        opacity: 1 !important;
        flex: 1;
        min-width: 0;
        padding: 0 1rem;
    }
    .booking-tabs-content > .tab-pane:first-child {
        padding-left: 0;
    }
    .booking-tabs-content > .tab-pane:last-child {
        padding-right: 0;
    }
    .booking-tabs-content > .tab-pane + .tab-pane {
        border-left: 1px solid #dee2e6;
    }
}


/* =============================================
   3. COMPARE CONTROL (CompareCnt.ascx)
   Selectors already use distinctive .comparison-*, .compare-*, .cmp-* names.
   ============================================= */

/* Desktop table (≥ 768px) */
.comparison-container {
    width: 100%;
    border: 1px solid #ede8df;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
}

.comparison-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-scroll-wrapper::-webkit-scrollbar { height: 6px; }
.comparison-scroll-wrapper::-webkit-scrollbar-thumb { background: var(--main-color); border-radius: 10px; }
.comparison-scroll-wrapper::-webkit-scrollbar-track { background: #f5f1ec; }

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    table-layout: fixed;
}

/* Sticky label column */
.comparison-table .sticky-col {
    position: sticky;
    left: 0;
    z-index: 10;
    background-color: #f9f6f2 !important;
    border-right: 2px solid #ede8df;
    width: 150px;
    min-width: 150px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #888;
    text-align: left !important;
    padding: 16px 18px !important;
    vertical-align: middle;
}

/* Header row */
.comparison-table thead th {
    background: #000000;
    color: #fff;
    padding: 22px 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 210px;
    text-align: center;
    vertical-align: middle;
}

.comparison-table thead th.sticky-col {
    background: #0c1030 !important;
    color: var(--main-color);
}

/* Body cells */
.comparison-table tbody td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0ebe3;
    vertical-align: middle;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    text-align: center;
}

/* Alternating rows */
.comparison-table tbody tr:nth-child(even) td         { background-color: #fafaf8; }
.comparison-table tbody tr:nth-child(even) .sticky-col { background-color: #f4f0ea !important; }

/* Row hover */
.comparison-table tbody tr:hover td          { background-color: #fdf6ee; }
.comparison-table tbody tr:hover .sticky-col { background-color: #ede8df !important; }

/* Price row (first) */
.comparison-table tbody tr:first-child td.feature-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--main-color);
}
.comparison-table tbody tr:first-child .sticky-col {
    color: var(--main-color);
}

/* Last row — no border */
.comparison-table tbody tr:last-child td { border-bottom: none; }

/* Yes / No badges */
.cmp-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.cmp-badge-yes { background: #e8f5e9; color: #2e7d32; }
.cmp-badge-no  { background: #fce8e8; color: #c62828; }

/* Mobile cards (< 768px) */
.compare-cards-grid {
    display: none;
    flex-wrap: wrap;
    gap: 14px;
}

.compare-card {
    flex: 1 1 280px;
    background: #fff;
    border: 1px solid #ede8df;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.compare-card-header {
    background: #000000;
    color: #fff;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: center;
}

.compare-card-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 16px;
    border-bottom: 1px solid #f0ebe3;
    gap: 12px;
}

.compare-card-row:last-child { border-bottom: none; }
.compare-card-row:nth-child(even) { background: #fafaf8; }

.compare-card-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #aaa;
    flex-shrink: 0;
    padding-top: 2px;
}

.compare-card-value {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: right;
    line-height: 1.5;
}

.compare-card-row.is-price .compare-card-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--main-color);
}

@media (max-width: 767px) {
    .comparison-container  { display: none; }
    .compare-cards-grid    { display: flex; }
}


/* =============================================
   4. RELATED EXCURSIONS LIST (RelatedExcursionsList.ascx)
   Selectors use .santo-related-* and scoped .relatedSwiper descendants.
   ============================================= */

.santo-related-section { padding: 80px 0; background-color: #ffffff; overflow: hidden; }

.santo-related-header {
    margin-bottom: 40px; border-bottom: 1px solid #E8E1D5; padding-bottom: 15px;
    display: flex; justify-content: space-between; align-items: center;
}
.santo-related-header h2 {
    font-family: "Lexend Deca", sans-serif; font-size: 42px; color: #000000;
    display: flex; align-items: center; gap: 15px; margin: 0;
}
.santo-related-header h2 i { color: var(--main-color); font-size: 32px; }

/* Navigation arrows */
.santo-nav-wrapper { display: flex; gap: 10px; }
.santo-arrow {
    width: 45px; height: 45px; border: 1px solid var(--main-color); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #000000; cursor: pointer; transition: all 0.3s ease; background: #fff;
}
.santo-arrow:hover { background: #000000; color: var(--main-color); border-color: #000000; }
.santo-arrow.swiper-button-disabled { opacity: 0.3; cursor: default; }

.relatedSwiper .swiper-slide { height: auto !important; display: flex; }

/* Card — no overflow:hidden so the border survives the child scale() transform */
.relatedSwiper .sisf-e-inner {
    border-radius: 12px; border-color: #E8E1D5; padding: 0;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.relatedSwiper .sisf-e-inner:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(181, 151, 113, 0.18);
    border-color: var(--main-color);
}
/* Image clips itself — does not need the parent to do it */
.relatedSwiper .sisf-e-media-image {
    border-radius: 11px 11px 0 0; overflow: hidden;
    position: relative;
}
.relatedSwiper .sisf-e-media-image img { transition: transform 0.6s ease !important; }
.relatedSwiper .sisf-e-inner:hover .sisf-e-media-image img { transform: scale(1.06) !important; }

/* Price — small white square inside the image */
.relatedSwiper .sisf-e-price {
    position: absolute; bottom: 0px; z-index: 6;
    padding: 20px 30px; background: #ffffff;
    display: flex; flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,0.14);
}
.relatedSwiper .sisf-e-price .sisf-e-price-label {
    font-size: 10px; color: #999;
    text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
    line-height: 1; margin-bottom: 4px;
}
.relatedSwiper .sisf-e-price .sisf-e-price-value {
    font-size: 20px; color: var(--main-color); font-weight: 700; line-height: 1;
}

/* Typography */
.relatedSwiper .sisf-e-content { padding: 0 15px 18px; }
.relatedSwiper .sisf-e-title {
    font-family: "Lexend Deca", sans-serif; font-size: 22px; font-weight: 600;
    margin: 18px 0 8px; line-height: 1.25; color: #000000;
}
.relatedSwiper .sisf-e-title a { color: #000000; }
.relatedSwiper .sisf-e-title a:hover { color: var(--main-color) !important; }
.relatedSwiper .sisf-e-basic-info {
    border-top: 1px solid #E8E1D5; padding-top: 10px !important; margin-bottom: 14px;
}
.relatedSwiper .sisf-e-basic-info .sisf-e-item { font-size: 13px; color: #666; }

.santo-old-price { text-decoration: line-through; color: #aaa; font-size: 11px; margin-right: 4px; font-weight: 400; }
