:root {
    --primary: #005D8A;
    --primary-dark: #00456B;
    --secondary: #FFC107;
    --secondary-dark: #E6AD00;
    --light: #F8F9FA;
    --dark: #212529;
    --gray: #6C757D;
    --light-gray: #E9ECEF;
    --white: #FFFFFF;
    --success: #28A745;
    --blue-accent: #0074D9;
    --warning: #FF9800;
    --danger: #DC3545;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
}

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

.site-header .navbar-brand {
    font-weight: 700;
    color: var(--primary);
}

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(0,93,138,0.65) 0%, rgba(29,53,87,0.7) 100%), url('/images/marielyst-strand-daenemark.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 4rem 0;
    margin-bottom: 3rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Content Sections */
.content-section {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.content-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

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

/* Beach Cards */
.beach-card {
    background-color: var(--white);
    border-radius: 8px;
    border: 2px solid var(--light-gray);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.beach-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.beach-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

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

.beach-card-body h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-top: 0;
}

.beach-card .beach-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.beach-tag {
    display: inline-block;
    background-color: rgba(0,93,138,0.08);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.beach-tag.free {
    background-color: rgba(40,167,69,0.1);
    color: var(--success);
}

.beach-tag.leash {
    background-color: rgba(255,152,0,0.1);
    color: var(--warning);
}

/* Season Info Box */
.season-box {
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.season-box.winter {
    background-color: rgba(40,167,69,0.08);
    border-left: 4px solid var(--success);
}

.season-box.summer {
    background-color: rgba(255,152,0,0.08);
    border-left: 4px solid var(--warning);
}

.season-box h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.season-box.winter h4 {
    color: var(--success);
}

.season-box.summer h4 {
    color: var(--warning);
}

/* Info Cards */
.info-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--light-gray);
    transition: all 0.3s ease;
    height: 100%;
}

.info-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.info-card h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Insider Tip */
.insider-tip {
    background-color: rgba(0,116,217,0.05);
    border-left: 4px solid var(--blue-accent);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.insider-tip h4 {
    color: var(--blue-accent);
    margin-bottom: 0.5rem;
}

/* Rule Cards */
.rule-card {
    background-color: rgba(0,93,138,0.05);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
}

.rule-card.warning {
    background-color: rgba(255,152,0,0.1);
    border-left-color: var(--warning);
}

/* CTA Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--dark);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Content Image */
.content-image {
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Last Updated */
.last-updated {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Footer */
.site-footer {
    background-color: var(--primary);
    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 ease;
}

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

.footer-links h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.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;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    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.5rem;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    color: var(--white);
}

/* Accessibility */
:focus {
    outline: 3px solid rgba(0,93,138,0.5);
    outline-offset: 2px;
}

.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;
}

/* Accordion */
.accordion-item {
    background-color: var(--white);
    border: none;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-button {
    padding: 1.25rem;
    font-weight: 600;
    background-color: var(--white);
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    color: var(--primary);
    background-color: rgba(0,93,138,0.05);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,93,138,0.25);
}

.accordion-body {
    padding: 1.25rem;
    background-color: var(--white);
}

/* Table of Contents */
.toc-box {
    border-left: 4px solid var(--primary);
}

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

.toc-box a:hover {
    text-decoration: underline;
}

.toc-box ol li {
    padding: 2px 0;
}

/* Checklist */
.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    padding: 0.4rem 0;
    padding-left: 1.8rem;
    position: relative;
}

.checklist li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Distance Badge */
.distance-badge {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

    .content-section {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }

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

    .beach-card img {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 2rem 0;
    }

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

    .content-section {
        padding: 1.25rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .beach-card img {
        height: 160px;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .back-to-top,
    .btn {
        display: none !important;
    }

    .content-section {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    .toc-box {
        display: none;
    }
}
