
/* =========================================================
   ALANONA TOUR DETAIL
   File: /assets/css/tour-detail.css
   Purpose: Premium responsive tour detail layout
   ========================================================= */

:root {
    --tour-navy: #173747;
    --tour-teal: #346A6C;
    --tour-teal-dark: #285657;
    --tour-gold: #B99A62;
    --tour-cream: #F8F6F1;
    --tour-white: #FFFFFF;
    --tour-text: #34434A;
    --tour-muted: #78858A;
    --tour-border: #E7E8E5;
    --tour-shadow: 0 12px 35px rgba(23, 55, 71, 0.08);
    --tour-radius: 18px;
}

/* =========================================================
   BASE
   ========================================================= */

.tour-page {
    width: 100%;
    color: var(--tour-text);
    background: var(--tour-white);
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

.tour-page *,
.tour-page *::before,
.tour-page *::after {
    box-sizing: border-box;
}

.tour-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.tour-page img {
    display: block;
    max-width: 100%;
}

.tour-page a {
    text-decoration: none;
}

.tour-page h1,
.tour-page h2,
.tour-page h3,
.tour-page h4 {
    color: var(--tour-navy);
    line-height: 1.25;
}

/* =========================================================
   HERO SECTION
   ========================================================= */

.tour-hero {
    padding: 34px 0 58px;
    background:
        linear-gradient(135deg, #FAF9F5 0%, #F3F6F3 100%);
}

.tour-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 30px;
    color: var(--tour-muted);
    font-size: 13px;
}

.tour-breadcrumb a {
    color: var(--tour-teal);
    transition: color .2s ease;
}

.tour-breadcrumb a:hover {
    color: var(--tour-gold);
}

.tour-breadcrumb span {
    color: #AAB2B1;
}

.tour-hero-grid {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: 55px;
}

.tour-hero-content {
    min-width: 0;
}

.tour-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 17px;
    color: var(--tour-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tour-eyebrow::before {
    content: "";
    width: 25px;
    height: 2px;
    background: var(--tour-gold);
}

.tour-hero h1 {
    margin: 0 0 20px;
    max-width: 650px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4.2vw, 54px);
    font-weight: 600;
    letter-spacing: -.8px;
    line-height: 1.13;
}

.tour-hero-description {
    max-width: 560px;
    margin-bottom: 25px;
    color: #68777C;
    font-size: 16px;
    line-height: 1.85;
}

.tour-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.tour-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid #E3E8E3;
    border-radius: 30px;
    background: rgba(255,255,255,.75);
    color: var(--tour-navy);
    font-size: 13px;
    font-weight: 700;
}

.tour-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tour-btn {
    display: inline-flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 800;
    transition: all .25s ease;
}

.tour-btn-primary {
    background: var(--tour-teal);
    color: var(--tour-white);
}

.tour-btn-primary:hover {
    background: var(--tour-teal-dark);
    color: var(--tour-white);
    transform: translateY(-2px);
}

.tour-btn-outline {
    border-color: #C9D5D1;
    background: transparent;
    color: var(--tour-navy);
}

.tour-btn-outline:hover {
    border-color: var(--tour-teal);
    background: var(--tour-white);
    color: var(--tour-teal);
}

.tour-hero-image {
    position: relative;
    min-width: 0;
}

.tour-hero-image > img {
    width: 100%;
    height: 470px;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 22px 55px rgba(23, 55, 71, .15);
}


.tour-hero-price {
    position: absolute;
    right: 20px;
    bottom: 20px;
    min-width: 185px;
    padding: 17px 22px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 13px;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
}


.tour-hero-price strong {
    display: block;
    color: var(--tour-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    line-height: 1.2;
}

.tour-price-caption {
    display: block;
    margin-top: 4px;
    color: var(--tour-muted);
    font-size: 12px;
}

/* =========================================================
   QUICK INFORMATION
   ========================================================= */

.tour-quick-info {
    position: relative;
    z-index: 2;
    margin-top: -1px;
    padding: 0 0 35px;
    background: var(--tour-white);
}

.tour-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid var(--tour-border);
    border-radius: 14px;
    background: var(--tour-white);
    box-shadow: var(--tour-shadow);
}

.tour-info-item {
    min-width: 0;
    padding: 22px 24px;
    border-right: 1px solid var(--tour-border);
}

.tour-info-item:last-child {
    border-right: 0;
}

.tour-info-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--tour-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.tour-info-item span {
    display: block;
    color: var(--tour-navy);
    font-size: 15px;
    font-weight: 800;
}

/* =========================================================
   MAIN CONTENT LAYOUT
   ========================================================= */

.tour-details-section {
    padding: 45px 0 80px;
}

.tour-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    align-items: start;
    gap: 55px;
}

.tour-main-content {
    min-width: 0;
}

/* =========================================================
   GALLERY
   ========================================================= */

.tour-gallery {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 13px;
    margin-bottom: 55px;
}

.tour-gallery-main {
    min-width: 0;
    height: 390px;
    overflow: hidden;
    border-radius: var(--tour-radius);
}

.tour-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.tour-gallery-main:hover img {
    transform: scale(1.035);
}

.tour-gallery-secondary {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 13px;
    min-width: 0;
}

.tour-gallery-secondary img {
    width: 100%;
    height: 188px;
    border-radius: 13px;
    object-fit: cover;
}

/* =========================================================
   CONTENT SECTIONS
   ========================================================= */

.tour-content-section {
    padding: 0 0 38px;
    margin-bottom: 38px;
    border-bottom: 1px solid var(--tour-border);
}

.tour-section-kicker {
    margin-bottom: 9px;
    color: var(--tour-gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tour-content-section h2 {
    margin: 0 0 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 600;
}

.tour-rich-content {
    color: #58686D;
    font-size: 15px;
    line-height: 1.9;
}

.tour-rich-content p {
    margin: 0 0 16px;
}

.tour-rich-content h3 {
    margin: 25px 0 12px;
    font-size: 19px;
}

.tour-rich-content h4 {
    margin: 20px 0 10px;
    font-size: 16px;
}

.tour-rich-content ul,
.tour-rich-content ol {
    margin: 15px 0 20px;
    padding-left: 23px;
}

.tour-rich-content li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.tour-rich-content li::marker {
    color: var(--tour-gold);
}

.tour-rich-content img {
    height: auto;
    margin: 20px 0;
    border-radius: 12px;
}

.tour-rich-content a {
    color: var(--tour-teal);
    text-decoration: underline;
}

.tour-summary {
    padding: 22px 25px;
    border-left: 3px solid var(--tour-gold);
    border-radius: 0 10px 10px 0;
    background: var(--tour-cream);
    color: var(--tour-navy);
    font-size: 16px;
    line-height: 1.85;
}

/* =========================================================
   ITINERARY
   ========================================================= */

.tour-itinerary {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tour-itinerary-item {
    position: relative;
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr);
    gap: 17px;
    padding-bottom: 28px;
}

.tour-itinerary-item:not(:last-child)::before {
    position: absolute;
    top: 42px;
    bottom: 0;
    left: 20px;
    width: 1px;
    background: #DCE4DF;
    content: "";
}

.tour-itinerary-number {
    position: relative;
    z-index: 1;
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #D8E3DD;
    border-radius: 50%;
    background: #F4F7F3;
    color: var(--tour-teal);
    font-size: 13px;
    font-weight: 900;
}

.tour-itinerary-content {
    padding-top: 6px;
}

.tour-itinerary-content h3 {
    margin: 0 0 7px;
    font-size: 17px;
}

.tour-itinerary-content p {
    margin: 0;
    color: #68777C;
    font-size: 14px;
    line-height: 1.8;
}

/* =========================================================
   MEETING POINT
   ========================================================= */

.tour-meeting-instruction {
    margin-bottom: 22px;
}

.tour-meeting-image {
    overflow: hidden;
    margin: 20px 0;
    border-radius: 14px;
}

.tour-meeting-image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.tour-map {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-top: 22px;
    border-radius: 14px;
    background: #EEF2EF;
}

.tour-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================================================
   BOOKING SIDEBAR
   ========================================================= */

.tour-sidebar {
    min-width: 0;
}

.tour-sidebar-sticky {
    position: sticky;
    top: 105px;
}

.tour-booking-card {
    overflow: hidden;
    padding: 26px;
    border: 1px solid var(--tour-border);
    border-radius: 16px;
    background: var(--tour-white);
    box-shadow: var(--tour-shadow);
}

.tour-booking-card h2 {
    margin: 0 0 20px;
    font-size: 20px;
}

.tour-booking-price {
    padding: 20px;
    margin-bottom: 22px;
    border-radius: 11px;
    background: var(--tour-cream);
}

.tour-booking-price strong {
    display: block;
    color: var(--tour-teal);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    line-height: 1.2;
}

.tour-booking-price span {
    display: block;
    margin-top: 6px;
    color: var(--tour-muted);
    font-size: 12px;
}

.tour-booking-button {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border-radius: 7px;
    background: var(--tour-teal);
    color: var(--tour-white);
    font-size: 14px;
    font-weight: 900;
    text-align: center;
    transition: background .2s ease, transform .2s ease;
}

.tour-booking-button:hover {
    transform: translateY(-2px);
    background: var(--tour-teal-dark);
    color: var(--tour-white);
}

.tour-sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 22px 0;
    margin-top: 5px;
    border-bottom: 1px solid var(--tour-border);
}

.tour-sidebar-info > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: var(--tour-muted);
    font-size: 13px;
}

.tour-sidebar-info strong {
    color: var(--tour-navy);
    font-weight: 800;
    text-align: right;
}

.tour-availability {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    color: #65766D;
    font-size: 13px;
    line-height: 1.6;
}

.tour-availability-dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: #64A77D;
}

.tour-sidebar-card {
    padding: 23px;
    margin-top: 18px;
    border: 1px solid var(--tour-border);
    border-radius: 14px;
    background: var(--tour-white);
}

.tour-sidebar-card h3 {
    margin: 0 0 15px;
    font-size: 17px;
}

.tour-sidebar-card .tour-rich-content {
    font-size: 13px;
    line-height: 1.8;
}

.tour-session {
    padding: 15px;
    margin-bottom: 11px;
    border: 1px solid var(--tour-border);
    border-radius: 10px;
    background: #FCFCFA;
}

.tour-session:last-child {
    margin-bottom: 0;
}

.tour-session strong {
    display: block;
    margin-bottom: 5px;
    color: var(--tour-navy);
    font-size: 14px;
}

.tour-session-detail {
    color: var(--tour-muted);
    font-size: 12px;
    line-height: 1.7;
}

.tour-session-price {
    display: block;
    margin-top: 7px;
    color: var(--tour-teal);
    font-size: 15px;
    font-weight: 900;
}

/* =========================================================
   RELATED / WIDGET SECTION
   ========================================================= */

.tour-related-section {
    padding: 65px 0 75px;
    background: var(--tour-cream);
}

.tour-related-heading {
    max-width: 650px;
    margin: 0 auto 30px;
    text-align: center;
}

.tour-related-heading .tour-section-kicker {
    margin-bottom: 10px;
}

.tour-related-heading h2 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 600;
}

.tour-related-heading p {
    margin: 0;
    color: var(--tour-muted);
    font-size: 14px;
}

.tour-related-widget {
    width: 100%;
    min-width: 0;
}

/* =========================================================
   NOT FOUND
   ========================================================= */

.tour-not-found {
    max-width: 720px;
    margin: 70px auto;
    padding: 60px 30px;
    border: 1px solid var(--tour-border);
    border-radius: 18px;
    background: var(--tour-cream);
    text-align: center;
}

.tour-not-found h1 {
    margin: 0 0 15px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
}

.tour-not-found p {
    margin: 0 0 25px;
    color: var(--tour-muted);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .tour-hero-grid {
        gap: 30px;
    }

    .tour-hero-image > img {
        height: 400px;
    }

    .tour-content-grid {
        grid-template-columns: minmax(0, 1fr) 310px;
        gap: 30px;
    }

    .tour-info-item {
        padding: 19px 17px;
    }

    .tour-gallery-main {
        height: 330px;
    }

    .tour-gallery-secondary img {
        height: 158px;
    }
}

/* =========================================================
   MOBILE / SMALL TABLET
   ========================================================= */

@media (max-width: 760px) {

    .tour-container {
        width: min(100% - 32px, 600px);
    }

    .tour-hero {
        padding: 24px 0 38px;
    }

    .tour-breadcrumb {
        margin-bottom: 22px;
        font-size: 12px;
    }

    .tour-hero-grid {
        grid-template-columns: 1fr;
        gap: 27px;
    }

    .tour-hero-content {
        order: 1;
    }

    .tour-hero-image {
        order: 2;
    }

    .tour-hero h1 {
        font-size: clamp(32px, 8vw, 43px);
    }

    .tour-hero-description {
        font-size: 15px;
    }

    .tour-hero-image > img {
        height: 330px;
        border-radius: 16px;
    }

    .tour-hero-price {
        right: 13px;
        bottom: 13px;
        min-width: 155px;
        padding: 13px 16px;
    }

    .tour-hero-price strong {
        font-size: 23px;
    }

    .tour-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tour-info-item {
        padding: 17px;
        border-right: 1px solid var(--tour-border);
        border-bottom: 1px solid var(--tour-border);
    }

    .tour-info-item:nth-child(2n) {
        border-right: 0;
    }

    .tour-info-item:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .tour-info-item strong {
        font-size: 10px;
    }

    .tour-info-item span {
        font-size: 14px;
    }

    .tour-details-section {
        padding: 32px 0 55px;
    }

    .tour-content-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .tour-gallery {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 40px;
    }

    .tour-gallery-main {
        height: 280px;
    }

    .tour-gallery-secondary {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 125px;
        gap: 10px;
    }

    .tour-gallery-secondary img {
        height: 125px;
    }

    .tour-content-section {
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    .tour-content-section h2 {
        font-size: 27px;
    }

    .tour-summary {
        padding: 18px;
        font-size: 14px;
    }

    .tour-sidebar-sticky {
        position: static;
    }

    .tour-booking-card {
        padding: 22px;
    }

    .tour-related-section {
        padding: 48px 0 55px;
    }

}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .tour-container {
        width: calc(100% - 26px);
    }

    .tour-hero h1 {
        font-size: 31px;
    }

    .tour-hero-meta {
        gap: 7px;
    }

    .tour-hero-meta span {
        padding: 7px 10px;
        font-size: 11px;
    }

    .tour-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tour-btn {
        width: 100%;
    }

    .tour-hero-image > img {
        height: 270px;
    }

    .tour-gallery-main {
        height: 230px;
    }

    .tour-gallery-secondary {
        grid-template-rows: 105px;
    }

    .tour-gallery-secondary img {
        height: 105px;
    }

    .tour-booking-price strong {
        font-size: 28px;
    }

}

/* Interactive Tour Gallery */

.tour-gallery-secondary img {
    cursor: pointer;
    transition: opacity .25s ease, transform .3s ease;
}

.tour-gallery-secondary img:hover {
    opacity: .82;
    transform: scale(1.02);
}

.tour-gallery-main img {
    cursor: pointer;
}
