/**
 * Modern Single Tour Page Styles
 * Inspired by React layout for progressive enhancement
 */

/* Base Colors */
:root {
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --primary: #324fbe;
    --primary-hover: #2a42a8;
    --success: #10b981;
    --success-light: #d1fae5;
    --amber-100: #fef3c7;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;
    --amber-800: #92400e;
    
    /* CSS Variables for modern components */
    --border: 214.3 31.8% 91.4%;
    --radius: 0.5rem;
}

/* Typography Improvements */
.st-single-tour h1.st-heading {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

/* H2 Heading Styles - GeistSans */
.st-single-tour h2 {
    font-family: GeistSans, "GeistSans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    font-style: normal;
    color: rgb(9, 9, 11);
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 1rem;
}

/* Ensure all section headings use h2 */
.st-single-tour .tour-details-section h2,
.st-single-tour .highlights-section h2,
.st-single-tour .pickup-widget h2,
.st-single-tour .st-heading-section,
.st-single-tour .nav-tabs h2 {
    font-family: GeistSans, "GeistSans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    font-style: normal;
    color: rgb(9, 9, 11);
    font-size: 24px;
    line-height: 32px;
}

@media (min-width: 768px) {
    .st-single-tour h1.st-heading {
        font-size: 2.5rem;
    }
}

/* Breadcrumb Styling */
.st-single-tour .breadcrumb-wrapper {
    margin-bottom: 1rem;
}

.st-single-tour .breadcrumb-wrapper p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Header Info Section */
.st-single-tour .tour-header-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.st-single-tour .rating-wrapper {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.st-single-tour .rating-wrapper .star-icon {
    color: var(--primary);
    fill: var(--primary);
    width: 1.25rem;
    height: 1.25rem;
}

.st-single-tour .rating-value {
    font-weight: 700;
    color: var(--gray-900);
}

.st-single-tour .review-count {
    color: var(--gray-500);
}

/* Action Buttons */
.st-single-tour .action-buttons {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
}

.st-single-tour .action-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    background: transparent;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
}

.st-single-tour .action-button:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

/* Image Gallery Improvements */
.st-single-tour .st-gallery {
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.st-single-tour .st-gallery img {
    border-radius: 0;
    transition: transform 0.3s ease;
}

.st-single-tour .st-gallery .gallery-item:hover img {
    transform: scale(1.05);
}

/* Tour Details Section */
.st-single-tour .tour-details-section {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.st-single-tour .tour-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.st-single-tour .tour-description {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--gray-800);
}

/* Top Rated Badge */
.st-single-tour .top-rated-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    background: var(--amber-100);
    border: 2px solid var(--amber-300);
    border-radius: 50%;
    text-align: center;
    padding: 0.25rem;
    flex-shrink: 0;
}

.st-single-tour .top-rated-badge .star {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--amber-500);
    fill: var(--amber-400);
}

.st-single-tour .top-rated-badge .text {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--amber-800);
    line-height: 1.2;
    margin-top: 0.125rem;
}

/* Highlights Section */
.st-single-tour .highlights-section {
    margin: 2rem 0;
}

.st-single-tour .highlights-section h2 {
    font-family: GeistSans, "GeistSans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    font-style: normal;
    color: rgb(9, 9, 11);
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 1rem;
}

.st-single-tour .highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.st-single-tour .highlights-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.st-single-tour .highlights-list li span {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: rgb(9, 9, 11);
}

.st-single-tour .highlights-list .check-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--success);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Modern Tabs */
.st-single-tour .nav-tabs {
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
}

.st-single-tour .nav-tabs .nav-item {
    flex: 1;
}

@media (min-width: 768px) {
    .st-single-tour .nav-tabs .nav-item {
        flex: initial;
    }
}

.st-single-tour .nav-tabs .nav-link {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--gray-500);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.st-single-tour .nav-tabs .nav-link:hover {
    color: var(--gray-700);
    background: var(--gray-50);
}

.st-single-tour .nav-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}

.st-single-tour .nav-tabs h2 {
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

/* Tab Content */
.st-single-tour .tab-content {
    padding: 1.5rem 0;
}

.st-single-tour .tab-pane {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Itinerary Timeline */
.st-single-tour .itinerary-timeline {
    position: relative;
    padding-left: 2rem;
}

.st-single-tour .itinerary-timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.st-single-tour .itinerary-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.st-single-tour .itinerary-item::before {
    content: '';
    position: absolute;
    left: -1.375rem;
    top: 0.375rem;
    width: 0.75rem;
    height: 0.75rem;
    background: var(--gray-200);
    border-radius: 50%;
    border: 2px solid white;
}

.st-single-tour .itinerary-time {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-bottom: 0.25rem;
}

.st-single-tour .itinerary-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.st-single-tour .itinerary-description {
    color: var(--gray-600);
}

/* Included/Excluded Lists */
.st-single-tour .included-section,
.st-single-tour .excluded-section {
    margin-bottom: 2rem;
}

.st-single-tour .included-section h4,
.st-single-tour .excluded-section h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.st-single-tour .included-list,
.st-single-tour .excluded-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.st-single-tour .included-list li,
.st-single-tour .excluded-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.st-single-tour .included-list .icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--success);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.st-single-tour .excluded-list .icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #ef4444;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Review Cards */
.st-single-tour .review-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.st-single-tour .review-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.st-single-tour .review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.st-single-tour .review-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--gray-200);
}

.st-single-tour .review-author {
    font-weight: 600;
    color: var(--gray-900);
}

.st-single-tour .review-date {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.st-single-tour .review-rating {
    display: flex;
    gap: 0.125rem;
    margin-bottom: 0.75rem;
}

.st-single-tour .review-rating .star {
    width: 1rem;
    height: 1rem;
    color: var(--gray-300);
}

.st-single-tour .review-rating .star.filled {
    color: var(--primary);
    fill: var(--primary);
}

.st-single-tour .review-content {
    color: var(--gray-600);
    line-height: 1.5;
}

/* Pickup Location Widget */
.st-single-tour .pickup-widget {
    background: white;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius, 0.5rem);
    padding: 1rem;
    margin: 2rem 0;
}

.st-single-tour .pickup-widget h2 {
    font-family: GeistSans, "GeistSans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    font-style: normal;
    color: rgb(9, 9, 11);
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 0.25rem;
}

.st-single-tour .pickup-widget .subtitle {
    color: var(--gray-500);
    margin-bottom: 1rem;
}

/* Border and rounded classes for pickup widget elements */
.st-single-tour .pickup-widget .border {
    border-width: 1px;
    border-color: hsl(var(--border));
}

.st-single-tour .pickup-widget .rounded-lg {
    border-radius: var(--radius, 0.5rem);
}

.st-single-tour .pickup-widget .p-4 {
    padding: 1rem;
}


/* Mobile Improvements */
@media (max-width: 767px) {
    .st-single-tour .tour-header-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .st-single-tour .action-buttons {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }
    
    .st-single-tour .nav-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .st-single-tour .nav-tabs .nav-link {
        white-space: nowrap;
        padding: 0.75rem 1rem;
    }
}

/* Smooth Transitions */
.st-single-tour * {
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

/* Override some parent theme styles for cleaner look */
.st-single-tour .st-service-content {
    background: var(--gray-50);
}

.st-single-tour .st-hotel-content {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

/* Separator styling */
.st-single-tour hr,
.st-single-tour .separator {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 2rem 0;
}