/* Base styles */
/* :root { */
    /* --primary-color: #2E7D32; */
    /* blue-600 */
    /* --primary-dark: #2563EB; */
    /* blue-700 */
    /* --primary-light: #93C5FD; */
    /* blue-300 */
    /* --text-color: #1F2937; */
    /* gray-800 */
    /* --text-light: #6B7280; */
    /* gray-500 */
    /* --background: #FFFFFF; */
    /* --error-color: #EF4444; */
    /* red-500 */
/* } */

:root {
    --primary-color: #2E7D32;    /* deep green-700 */
    --primary-dark: #1B5E20;     /* forest green-900 */
    --primary-light: #81C784;    /* light green-300 */
    --text-color: #1F2937;       /* gray-800 - keeping this as it works well */
    --text-light: #4B5563;       /* slightly darker gray for better contrast */
    --background: #FFFFFF;       /* keeping white background */
    --error-color: #D32F2F;      /* red-700 - slightly deeper red */
    --accent-color: #8D6E63;     /* brown-400 - earthy tone for accent */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    line-height: 1.5;
    background-color: var(--background);
}

/* Layout */
.header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
}

.header-container {
    max-width: 48rem;
    /* 768px */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-container {
    max-width: 48rem;
    /* 768px */
    margin: 0 auto;
    padding: 1.5rem 1rem;
    min-height: calc(100vh - 130px);
    /* Adjust based on header/footer height */
}

.footer {
    background-color: var(--text-color);
    color: white;
    padding: 1rem;
    text-align: center;
    font-size: 0.875rem;
}

/* Typography */
h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Components */
.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

.language-selector select {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid #e5e7eb;
    background-color: white;
    color: #1e3a8a;
    font-size: 0.875rem;
    cursor: pointer;
}

.language-selector select:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: #93c5fd;
}

.loading {
    text-align: center;
    color: var(--text-light);
    padding: 2rem 0;
}

.error {
    color: var(--error-color);
    padding: 1rem;
    border: 1px solid var(--error-color);
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

/* Card styles for attractions */
.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.attraction-card {
    display: block;
    padding: 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: background-color 0.2s;
    text-decoration: none;
    color: var(--text-color);
}

.attraction-card:hover {
    background-color: #EFF6FF;
    /* blue-50 */
    text-decoration: none;
}

.attraction-card h2 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}


/* Utility classes */
.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

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


/* Add these utility classes to your styles.css file */

/* Flexbox utilities */
.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.flex-grow {
    flex-grow: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

/* Width and height utilities */
.w-full {
    width: 100%;
}

.max-w-xl {
    max-width: 36rem;
}

.min-h-screen {
    min-height: 100vh;
}

.h-16 {
    height: 4rem;
}

.w-16 {
    width: 4rem;
}

.min-h-\[44px\] {
    min-height: 44px;
}

.min-w-\[44px\] {
    min-width: 44px;
}

.h-0\.5 {
    height: 0.125rem;
}

.h-5 {
    height: 1.25rem;
}

.w-5 {
    width: 1.25rem;
}

/* Spacing utilities */
.p-8 {
    padding: 2rem;
}

.p-4 {
    padding: 1rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-1 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.my-6 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.space-y-3>*+* {
    margin-top: 0.75rem;
}


.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-5>*+* {
    margin-top: 1.25rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

.hover\:bg-blue-50:hover {
    background-color: #eff6ff;
}

/* Transition utilities */
.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Typography */
.text-center {
    text-align: center;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-base {
    font-size: 1rem;
}

.text-sm {
    font-size: 0.875rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

/* Colors */
.text-gray-800 {
    color: #1F2937;
}

.text-gray-600 {
    color: #4B5563;
}

.text-gray-500 {
    color: #6B7280;
}

.text-blue-700 {
    color: #1B5E20;
}

.text-blue-600 {
    color: #2E7D32;
}

.text-white {
    color: #FFFFFF;
}

.bg-white {
    background-color: #FFFFFF;
}

.bg-blue-600 {
    background-color: #2E7D32;
}

.bg-blue-50 {
    background-color: #EFF6FF;
}

.bg-gray-100 {
    background-color: #F3F4F6;
}

.bg-amber-500 {
    background-color: #F59E0B;
}

.border-gray-200 {
    border-color: #E5E7EB;
}

.border-gray-300 {
    border-color: #D1D5DB;
}

.border-blue-600 {
    border-color: #2E7D32;
}

.border-blue-300 {
    border-color: #93C5FD;
}

/* Border utilities */
.border {
    border-width: 1px;
    border-style: solid;
}

.border-t {
    border-top-width: 1px;
    border-top-style: solid;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Effects */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}

/* Display */
.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.inline-flex {
    display: inline-flex;
}

/* Cursor */
.cursor-pointer {
    cursor: pointer;
}

/* Transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Images */
.object-cover {
    object-fit: cover;
}

.overflow-hidden {
    overflow: hidden;
}

/* Hover states */
.hover\:bg-blue-50:hover {
    background-color: #EFF6FF;
}

.hover\:border-blue-300:hover {
    border-color: #93C5FD;
}

.hover\:shadow:hover {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Background gradients */
.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.from-blue-50 {
    --tw-gradient-from: #EFF6FF;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(239, 246, 255, 0));
}

.to-gray-100 {
    --tw-gradient-to: #F3F4F6;
}

/* Form elements */
input[type="radio"] {
    accent-color: #2E7D32;
}

/* Horizontal rule */
hr {
    border: 0;
    border-top: 1px solid #E5E7EB;
}

/* Prose for content */
.prose {
    max-width: 65ch;
    line-height: 1.6;
    color: #374151;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1em;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    color: #111827;
    font-weight: 600;
    margin-top: 2em;
    margin-bottom: 1em;
}

.prose h1 {
    font-size: 2.25em;
    line-height: 1.1111111;
}

.prose h2 {
    font-size: 1.5em;
    line-height: 1.3333333;
}

.prose h3 {
    font-size: 1.25em;
    line-height: 1.6;
}

.prose a {
    color: #2E7D32;
    text-decoration: underline;
    font-weight: 500;
}

.prose strong {
    color: #111827;
    font-weight: 600;
}

.prose ul {
    margin-top: 1.25em;
    margin-left: 1.5em;
    margin-bottom: 1em;
    list-style-type: disc;
    padding-left: 1.625em;
}

.prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    list-style-type: decimal;
    padding-left: 1.625em;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose blockquote {
    font-style: italic;
    color: #6B7280;
    border-left-width: 0.25rem;
    border-left-color: #E5E7EB;
    quotes: "\201C" "\201D" "\2018" "\2019";
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    padding-left: 1em;
}

/* Additional hover states */
.hover\:text-blue-700:hover {
    color: #1B5E20;
}

.hover\:bg-blue-700:hover {
    background-color: #1B5E20;
}

.hover\:underline:hover {
    text-decoration: underline;
}

/* Focus states */
.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-2:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-blue-500:focus {
    --tw-ring-color: #2E7D32;
}

.focus\:ring-offset-2:focus {
    --tw-ring-offset-width: 2px;
}

/* Additional spacing utilities */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mx-2 {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.pb-4 {
    padding-bottom: 1rem;
}

/* Additional display utilities */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Additional utilities for the attraction cards */
.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

/* Specific styles for the focus options */
.focus-option {
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border-radius: 9999px;
    transition: all 0.2s ease-in-out;
    font-size: 0.875rem;
    line-height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.focus-option.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Specific styles for the detail level options */
.detail-level-option {
    cursor: pointer;
}

/* Styles for the attractions list */
.attractions-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.attraction-item {
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

.attraction-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.attraction-image {
    height: 160px;
    background-color: #F3F4F6;
    overflow: hidden;
}

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

.attraction-content {
    padding: 1rem;
}

.attraction-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.attraction-description {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Styles for the markdown content */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: var(--primary-dark);
}

.markdown-content h1 {
    font-size: 1.875rem;
}

.markdown-content h2 {
    font-size: 1.5rem;
}

.markdown-content h3 {
    font-size: 1.25rem;
}

.markdown-content h4 {
    font-size: 1.125rem;
}

.markdown-content p {
    margin-bottom: 1em;
}

.markdown-content ul,
.markdown-content ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.markdown-content li {
    margin-bottom: 0.5em;
}

.markdown-content blockquote {
    border-left: 4px solid var(--primary-light);
    padding-left: 1em;
    margin-left: 0;
    margin-right: 0;
    font-style: italic;
    color: var(--text-light);
}

/* Styles for the spaced paragraphs */
.spaced-paragraph {
    margin-bottom: 1.5em !important;
}

.dash-paragraph {
    display: block;
    margin-top: 1.5em !important;
    margin-bottom: 1.5em !important;
}

.custom-markdown-content h1,
.custom-markdown-content h2,
.custom-markdown-content h3,
.custom-markdown-content h4 {
    margin-top: 1.5em !important;
    margin-bottom: 1em !important;
}

.custom-markdown-content em {
    font-style: italic;
}

.custom-markdown-content strong {
    font-weight: 700;
}



/* Grid layout for attractions */
.attractions-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* On larger screens, we can use grid if desired */
@media (min-width: 640px) {
    .attractions-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Attraction card with image background */
.attraction-card {
    position: relative;
    height: 12rem;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

.attraction-card:hover {
    transform: translateY(-2px);
}

/* Background image and overlay */
.attraction-card>div:first-child {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
}

/* Gradient overlay */
.bg-gradient-to-t {
    background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-black\/70 {
    --tw-gradient-from: rgba(0, 0, 0, 0.7);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.to-transparent {
    --tw-gradient-to: transparent;
}

/* Positioning utilities */
.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}

/* Additional hover effect */
.hover\:shadow-md:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Height utility */
.h-48 {
    height: 12rem;
}

.list-none {
    list-style-type: none;
}

.p-0 {
    padding: 0;
}

ul.space-y-3 {
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}



/* Responsive utilities for attraction page */
@media (min-width: 640px) {
    .sm\:space-y-6>*+* {
        margin-top: 1.5rem;
    }

    .sm\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    .sm\:pt-6 {
        padding-top: 1.5rem;
    }
}

/* Breadcrumb navigation styles */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--primary-color);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 0.25rem;
}

.breadcrumb-container {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(to right, #f8fafc, #f1f5f9);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.breadcrumb-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-link {
    color: #2E7D32;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.breadcrumb-link:hover {
    background-color: rgba(59, 130, 246, 0.1);
    text-decoration: none;
    transform: scale(1.05);
}

.breadcrumb-separator {
    color: #94a3b8;
    margin: 0 0.25rem;
    font-size: 0.8rem;
}

.breadcrumb-current {
    font-weight: 600;
    color: #1e40af;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background-color: rgba(59, 130, 246, 0.1);
}

/* For focus states - accessibility */
.breadcrumb-link:focus {
    outline: 2px solid #2E7D32;
    outline-offset: 2px;
}


/* Add these styles to reduce layout shifts */
.content-placeholder {
    min-height: 200px;
    position: relative;
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    overflow: hidden;
}

.image-placeholder {
    position: relative;
    width: 100%;
    background-color: #f3f4f6;
    overflow: hidden;
}

/* Use aspect ratio to reserve space for images */
.aspect-ratio-container {
    position: relative;
    width: 100%;
}

.aspect-ratio-container::before {
    content: "";
    display: block;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
}

.aspect-ratio-container>img,
.aspect-ratio-container>.content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Smooth transitions for content changes */
.content-container {
    transition: opacity 0.3s ease;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Skeleton loading animation */
.skeleton-loading {
    position: relative;
    overflow: hidden;
    background-color: #e2e8f0;
}

.skeleton-loading::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.2) 20%,
            rgba(255, 255, 255, 0.5) 60%,
            rgba(255, 255, 255, 0));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}


/* Loader styles */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid #2E7D32;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-text {
    position: absolute;
    margin-top: 70px;
    font-size: 14px;
    color: #4b5563;
}

/* Fade out animation */
.loader-fade-out {
    opacity: 0;
}


.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}