:root {
    --primary: #1a4d5c;
    --primary-dark: #0d3340;
    --primary-light: #2a6a7d;
    --secondary: #d4a84b;
    --secondary-dark: #b8923f;
    --accent: #8b4d5c;
    --light: #f8f6f3;
    --cream: #faf9f7;
    --dark: #1a1a1a;
    --gray: #6b6b6b;
    --light-gray: #e8e6e3;
    --white: #ffffff;
    --success: #3d7a5a;
    --sea-blue: #3a7ca5;
    --sand: #e6dfd3;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    background-color: var(--cream);
    line-height: 1.7;
    font-size: 17px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
}

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.site-header .navbar-brand {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

.site-header .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.15rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.site-header .nav-link:hover {
    background-color: var(--light);
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(26,77,92,0.92) 0%, rgba(13,51,64,0.95) 100%),
                url('/images/nysted-hafen.webp') center/cover no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--cream), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero .lead {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-badge {
    display: inline-block;
    background: rgba(212,168,75,0.9);
    color: var(--dark);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Breadcrumb */
.breadcrumb-section {
    background: var(--light);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.breadcrumb {
    margin: 0;
    font-size: 0.9rem;
}

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

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

/* TOC */
.toc {
    background: var(--light);
    border-radius: 10px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--secondary);
}

.toc h2 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0;
}

.toc h2::after {
    display: none;
}

.toc ol {
    margin: 0;
    padding-left: 1.25rem;
}

.toc li {
    margin-bottom: 0.4rem;
}

.toc a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.toc a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

/* Content Sections */
.content-section {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.04);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.content-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.content-section h3 {
    color: var(--primary-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content-section h4 {
    color: var(--primary-light);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

/* Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, var(--light) 0%, var(--sand) 100%);
    border-left: 4px solid var(--secondary);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.highlight-box.info {
    background: linear-gradient(135deg, #e8f4f8 0%, #d0e8ef 100%);
    border-left-color: var(--sea-blue);
}

.highlight-box.tip {
    background: linear-gradient(135deg, #e8f4ed 0%, #d5ebe0 100%);
    border-left-color: var(--success);
}

.highlight-box strong {
    color: var(--primary-dark);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--secondary), var(--primary));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--secondary);
}

.timeline-year {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Attraction Cards */
.attraction-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid var(--light-gray);
}

.attraction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

.attraction-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

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

.attraction-card-body {
    padding: 1.5rem;
}

.attraction-card-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.attraction-card-text {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.attraction-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
    font-size: 0.85rem;
    color: var(--gray);
}

.attraction-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Map Section */
.map-section {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0,0,0,0.04);
    margin-bottom: 2rem;
}

.map-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--light-gray);
}

.map-header h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--primary);
    margin: 0;
    font-size: 1.75rem;
}

#nysted-map {
    height: 450px;
    width: 100%;
}

.map-legend {
    padding: 1.25rem 2rem;
    background: var(--light);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.castle { background: #8b4d5c; }
.legend-dot.church { background: #4a6fa5; }
.legend-dot.museum { background: #5a8f5c; }
.legend-dot.nature { background: #3d9970; }
.legend-dot.beach { background: #e6b84d; }

/* Event Cards */
.event-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.event-date {
    background: var(--secondary);
    color: var(--dark);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.event-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.event-description {
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Practical Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.info-item {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.info-item-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* FAQ Accordion */
.faq-item {
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-question {
    background: var(--light);
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-dark);
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--sand);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1.25rem 1.5rem;
}

/* CTA Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,77,92,0.25);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--dark);
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,168,75,0.3);
}

/* Images */
.img-feature {
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
}

.img-credit {
    font-size: 0.8rem;
    color: var(--gray);
    text-align: right;
    margin-top: -1rem;
    margin-bottom: 1rem;
}

/* Tables */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.info-table th {
    background: var(--primary);
    color: var(--white);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.info-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.info-table tr:hover {
    background: var(--light);
}

/* Sticky Booking Button */
.booking-button {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: var(--secondary);
    color: var(--dark);
    padding: 1rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.booking-button:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.2);
    color: var(--dark);
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 3rem;
}

.site-footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-links h5 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2rem;
    }

    .content-section {
        padding: 1.75rem;
    }

    .content-section h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .hero {
        min-height: 60vh;
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .content-section {
        padding: 1.5rem;
        border-radius: 8px;
    }

    #nysted-map {
        height: 350px;
    }

    .booking-button {
        bottom: 1rem;
        right: 1rem;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }

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

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus {
    outline: 3px solid rgba(26,77,92,0.5);
    outline-offset: 2px;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 5rem;
    left: 1.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    color: var(--white);
}
