/* Import Tailwind Utilities */
@import url('tailwind-utilities.css');

/* --- Base Design Styles --- */
body {
    font-family: 'Inter', sans-serif;
    color: #334155; /* slate-700 */
    background-color: #ffffff; /* white */
    min-height: 100vh;
}

.tour-page-wrapper {
    background-color: transparent;
}

.tour-page-container {
    max-width: 1024px; /* max-w-5xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.section {
    margin-bottom: 3rem; /* mb-12 */
}

.section-title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 1.875rem; /* md:text-3xl */
    }
}

/* --- Reusable Content Card Style --- */
.content-card {
    background-color: #f8fafc; /* slate-50 */
    padding: 2rem;
    border-radius: 0.75rem; /* rounded-xl */
    border: 1px solid #e2e8f0; /* slate-200 */
    transition: all 0.3s ease-out;
    margin-bottom: 3rem;
}

/* --- Natural Pop-Out Effect (Reduced) --- */
.interactive-pop-grid .content-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.07);
}

/* --- Component-Specific Styles --- */
.gradient-button {
    background-image: linear-gradient(to right, #fbbf24, #f97316);
}

.gradient-button:hover {
    background-image: linear-gradient(to right, #f97316, #fbbf24);
}

.faq-toggle {
    background-color: #F1F5F9; /* slate-100 */
    transition: background-color 0.3s ease;
}

.faq-toggle:hover {
    background-color: #E2E8F0; /* slate-200 */
}

.faq-content {
    background-color: #F1F5F9; /* slate-100 */
}

.gallery-modal {
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.gallery-modal-button {
    background-color: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.gallery-modal-button:hover {
    background-color: rgba(0,0,0,0.8);
}

.gallery-image-clickable {
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.gallery-image-clickable:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* --- FAQ Rotation for Icon --- */
.faq-toggle i.rotate-180 {
    transform: rotate(180deg);
}

/* --- Share Dropdown Animation --- */
#shareDropdown {
    animation: fadeIn 0.2s ease-out;
}

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

/* --- Custom Scrollbar for Modals --- */
.overflow-y-auto::-webkit-scrollbar {
    width: 8px;
}

.overflow-y-auto::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* --- Responsive Adjustments --- */
@media (max-width: 640px) {
    .content-card {
        padding: 1.5rem;
    }
    
    .tour-page-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .gallery-modal-button {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* --- Print Styles --- */
@media print {
    .interactive-pop-grid .content-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    #shareButton,
    #showMoreReviewsBtn,
    .gallery-modal,
    #reviewsModal {
        display: none !important;
    }
}

/* Tour Hero Section */
.tour-hero {
    position: relative;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.tour-hero-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 100%;
    overflow: hidden;
}

@media (min-width: 768px) {
    .tour-hero-gallery {
        grid-template-columns: 2fr 1fr;
        max-height: 500px;
    }
}

.hero-main-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 0.5rem;
}

@media (min-width: 768px) {
    .hero-main-image {
        height: 500px;
    }
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
}

.hero-thumb-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    height: fit-content;
}

@media (min-width: 768px) {
    .hero-thumb-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        height: 100%;
        max-height: 500px;
    }
}

.hero-thumb-grid picture,
.hero-thumb-grid img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s;
    display: block;
}

@media (min-width: 768px) {
    .hero-thumb-grid picture,
    .hero-thumb-grid img {
        height: calc((500px - 1.5rem) / 4);
    }
}

.hero-thumb-grid picture:hover,
.hero-thumb-grid img:hover {
    transform: scale(1.05);
}

/* Breadcrumb */
.breadcrumb-section {
    background-color: #f8fafc;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
    margin-top: 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: #94a3b8;
}

.breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #f97316;
}

.breadcrumb .active {
    color: #1e293b;
    font-weight: 500;
}

/* Tour Overview */
.tour-overview {
    padding: 3rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.tour-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .tour-main-grid {
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
    }
}

/* Quick Facts Card */
.quick-facts-card {
    background-color: #f8fafc;
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.quick-fact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quick-fact i {
    color: #f97316;
    font-size: 1.25rem;
}

.quick-fact div {
    display: flex;
    flex-direction: column;
}

.fact-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.fact-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

/* --- Additional Utility Classes --- */
.text-shadow {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.border-gradient {
    border-image: linear-gradient(to right, #fbbf24, #f97316) 1;
}

/* --- Loading State --- */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* --- Focus Styles for Accessibility --- */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* --- Smooth Scroll Behavior --- */
html {
    scroll-behavior: smooth;
}

/* --- Image Loading Placeholder --- */
img:not([src]) {
    background-color: #e2e8f0;
    border-radius: 0.5rem;
}