/* ===== Tour Detail Page Styles ===== */

/* Tour Hero Gallery */
.tour-hero {
    padding-top: 80px;
    padding-bottom: 32px;
    background: var(--off-white);
}

.tour-hero-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 450px;
}

.main-image {
    position: relative;
    border-radius: 16px 0 0 16px;
    overflow: hidden;
}

.tour-gallery-trigger {
    cursor: pointer;
    border: none;
    padding: 0;
    background: none;
    text-align: inherit;
}

.tour-gallery-trigger:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-count {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-count:hover {
    background: rgba(0, 0, 0, 0.85);
}

.image-count i {
    margin-right: 6px;
}

.side-images {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.side-image {
    flex: 1;
    border-radius: 0;
    overflow: hidden;
}

.side-image:first-child {
    border-radius: 0 16px 0 0;
}

.side-image:last-child {
    border-radius: 0 0 16px 0;
}

.side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.side-image:hover img {
    transform: scale(1.05);
}

/* Tour photo lightbox */
.tour-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.94);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tour-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.tour-lightbox-image {
    max-width: min(92vw, 1200px);
    max-height: 85vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    user-select: none;
}

.tour-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.tour-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: rotate(90deg);
}

.tour-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tour-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.tour-lightbox-prev {
    left: 20px;
}

.tour-lightbox-next {
    right: 20px;
}

.tour-lightbox-counter {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Tour Content Layout */
.tour-content {
    padding: 40px 0 80px;
    background: var(--white);
}

.tour-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 10px;
    color: #ccc;
}

/* Tour Title Block */
.tour-title-block {
    margin-bottom: 32px;
    padding-top: 8px;
}

.tour-title-block h1 {
    font-size: 32px;
    line-height: 1.4;
    color: var(--primary-color);
    margin-bottom: 16px;
    overflow: visible;
}

.tour-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(201, 169, 98, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
}

.rating-badge i {
    color: var(--secondary-color);
}

.rating-badge .rating {
    font-weight: 700;
    color: var(--primary-dark);
}

.rating-badge .review-count {
    color: var(--text-light);
    font-size: 13px;
}

.tour-meta-row .location,
.tour-meta-row .duration {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 14px;
}

.tour-meta-row .location i,
.tour-meta-row .duration i {
    color: var(--primary-color);
}

/* Quick Info */
.quick-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px;
    background: var(--off-white);
    border-radius: 16px;
    margin-bottom: 40px;
}

.quick-info .info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.quick-info .info-item i {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 16px;
    flex-shrink: 0;
}

.quick-info .info-item strong {
    display: block;
    color: var(--primary-dark);
    font-size: 14px;
    margin-bottom: 2px;
}

.quick-info .info-item span {
    display: block;
    color: var(--text-light);
    font-size: 13px;
}

/* Section Blocks */
.section-block {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(26, 58, 92, 0.08);
}

.section-block:last-child {
    border-bottom: none;
}

.section-block h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Overview */
.overview-text {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.overview-text:last-child {
    margin-bottom: 0;
}

/* What's Included */
.included-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.included-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--off-white);
    border-radius: 10px;
    font-size: 14px;
}

.included-item.yes i {
    color: #27ae60;
}

.included-item.no i {
    color: #e74c3c;
}

.included-item.no span {
    color: var(--text-light);
}

/* Itinerary */
.itinerary {
    position: relative;
    padding-left: 100px;
}

.itinerary::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
}

.itinerary-item {
    position: relative;
    margin-bottom: 24px;
}

.itinerary-item:last-child {
    margin-bottom: 0;
}

.itinerary-time {
    position: absolute;
    left: -100px;
    top: 0;
    width: 80px;
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 14px;
}

.itinerary-item::before {
    content: '';
    position: absolute;
    left: -54px;
    top: 6px;
    width: 10px;
    height: 10px;
    background: var(--secondary-color);
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.2);
}

.itinerary-content h4 {
    font-size: 16px;
    color: var(--primary-dark);
    margin-bottom: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.itinerary-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.itinerary-note {
    margin-top: 24px;
    padding: 16px;
    background: rgba(41, 128, 185, 0.08);
    border-radius: 10px;
    font-size: 13px;
    color: var(--primary-dark);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.itinerary-note i {
    color: var(--accent-color);
    margin-top: 2px;
}

/* Highlights */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.highlight-card {
    padding: 24px;
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.03) 0%, rgba(201, 169, 98, 0.05) 100%);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(26, 58, 92, 0.1);
}

.highlight-card i {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.highlight-card h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.highlight-card p {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.5;
}

.overview-highlights {
    grid-template-columns: 1fr;
}

.overview-highlights .highlight-card h4 {
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@media (min-width: 900px) {
    .overview-highlights {
        grid-template-columns: repeat(2, 1fr);
    }

    .overview-highlights .highlight-card:last-child:nth-child(3) {
        grid-column: 1 / -1;
        text-align: left;
    }

    .overview-highlights .highlight-card:last-child:nth-child(3) p {
        max-width: 900px;
        margin-inline: auto;
    }
}

/* Know Before You Go */
.know-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.know-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--off-white);
    border-radius: 12px;
}

.know-item i {
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    flex-shrink: 0;
}

.know-item strong {
    display: block;
    color: var(--primary-dark);
    font-size: 15px;
    margin-bottom: 4px;
}

.know-item p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

/* Meeting Point */
.meeting-info {
    background: var(--off-white);
    border-radius: 16px;
    padding: 24px;
}

.meeting-point {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.meeting-point > i {
    width: 44px;
    height: 44px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    flex-shrink: 0;
}

.meeting-point strong {
    display: block;
    color: var(--primary-dark);
    font-size: 15px;
    margin-bottom: 4px;
}

.meeting-point p {
    color: var(--text-light);
    font-size: 14px;
}

.meeting-detail {
    margin-top: 8px;
    font-style: italic;
}

.meeting-map {
    border-radius: 12px;
    overflow: hidden;
}

.meeting-map iframe {
    display: block;
    width: 100%;
    min-height: 208px;
}

.map-open-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.map-open-link:hover {
    color: var(--primary-dark);
}

/* Reviews */
.reviews-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    padding: 24px;
    background: var(--off-white);
    border-radius: 16px;
}

.rating-big {
    text-align: center;
}

.rating-big .score {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.rating-big .stars {
    color: var(--secondary-color);
    font-size: 16px;
    margin: 8px 0;
}

.rating-big .count {
    display: block;
    font-size: 13px;
    color: var(--text-light);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-card {
    padding: 24px;
    background: var(--off-white);
    border-radius: 16px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.reviewer-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #e8cd91 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
}

.reviewer-name {
    display: block;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 15px;
}

.review-date {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 2px;
}

.review-rating {
    color: var(--secondary-color);
    font-size: 14px;
}

.review-title {
    font-size: 16px;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.review-card .review-text {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.review-tags span {
    font-size: 12px;
    padding: 6px 12px;
    background: var(--white);
    border-radius: 20px;
    color: var(--primary-color);
    border: 1px solid rgba(26, 58, 92, 0.1);
}

.see-all-reviews {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.see-all-reviews:hover {
    color: var(--secondary-color);
}

/* Sidebar */
.tour-sidebar {
    position: sticky;
    top: 100px;
}

/* Booking Box */
.booking-box {
    background: var(--white);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 40px rgba(26, 58, 92, 0.12);
    border: 1px solid rgba(26, 58, 92, 0.08);
    margin-bottom: 20px;
}

.price-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(26, 58, 92, 0.08);
}

.from-text {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.main-price {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 4px;
}

.per-text {
    display: block;
    font-size: 13px;
    color: var(--text-light);
}

.booking-features {
    margin-bottom: 24px;
}

.booking-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(26, 58, 92, 0.05);
}

.booking-feature:last-child {
    border-bottom: none;
}

.booking-feature i {
    color: #27ae60;
    font-size: 14px;
    width: 20px;
}

.booking-feature span {
    font-size: 13px;
    color: var(--text-dark);
}

.booking-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.book-btn.primary {
    background: var(--primary-color);
    color: var(--white);
}

.book-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 58, 92, 0.3);
}

.book-btn.whatsapp {
    background: #25D366;
    color: var(--white);
}

.book-btn.whatsapp:hover {
    background: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.book-btn i {
    font-size: 18px;
}

.urgency-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--accent-color);
    font-weight: 600;
}

.urgency-text i {
    color: #f39c12;
}

/* Skipper Box */
.skipper-box {
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(26, 58, 92, 0.08);
    border: 1px solid rgba(26, 58, 92, 0.08);
    margin-bottom: 20px;
}

.skipper-box h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.skipper-profile {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.skipper-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
}

.skipper-info h4 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 2px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.skipper-title {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.skipper-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.skipper-rating i {
    color: var(--secondary-color);
}

.skipper-rating span:first-of-type {
    font-weight: 700;
    color: var(--primary-dark);
}

.rating-count {
    color: var(--text-light);
}

.skipper-bio {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* Similar Tours */
.similar-box {
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(26, 58, 92, 0.08);
    border: 1px solid rgba(26, 58, 92, 0.08);
}

.similar-box h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.similar-tour {
    display: flex;
    gap: 16px;
    padding: 12px;
    background: var(--off-white);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.similar-tour:hover {
    background: rgba(201, 169, 98, 0.1);
}

.similar-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.similar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.similar-info h4 {
    font-size: 15px;
    color: var(--primary-dark);
    margin-bottom: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.similar-info p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.similar-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Back Section */
.back-section {
    padding: 40px 0;
    background: var(--off-white);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--secondary-color);
    gap: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .tour-layout {
        grid-template-columns: 1fr;
    }

    .tour-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .booking-box {
        grid-column: span 2;
    }

    .tour-hero-gallery {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .tour-hero {
        padding-bottom: 24px;
    }

    .tour-content {
        padding-top: 32px;
    }

    .tour-hero-gallery {
        grid-template-columns: 1fr;
        height: auto;
    }

    .main-image {
        border-radius: 16px;
        height: 280px;
    }

    .side-images {
        display: none;
    }

    .tour-title-block h1 {
        font-size: 26px;
    }

    .tour-meta-row {
        gap: 12px;
    }

    .quick-info {
        grid-template-columns: 1fr;
    }

    .included-grid {
        grid-template-columns: 1fr;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .itinerary {
        padding-left: 80px;
    }

    .itinerary::before {
        left: 35px;
    }

    .itinerary-time {
        left: -80px;
        width: 60px;
        font-size: 13px;
    }

    .itinerary-item::before {
        left: -42px;
    }

    .tour-sidebar {
        grid-template-columns: 1fr;
    }

    .booking-box {
        grid-column: span 1;
    }

    .reviews-summary {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .tour-content {
        padding: 24px 0 60px;
    }

    .tour-title-block h1 {
        font-size: 22px;
    }

    .section-block h2 {
        font-size: 20px;
    }

    .booking-box {
        padding: 20px;
    }

    .main-price {
        font-size: 36px;
    }

    .book-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
}
