/* open-sans-300 - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/open-sans-v44-latin-300.woff2') format('woff2');
}
/* open-sans-300italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 300;
  src: url('fonts/open-sans-v44-latin-300italic.woff2') format('woff2');
}
/* open-sans-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/open-sans-v44-latin-regular.woff2') format('woff2');
}
/* open-sans-italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/open-sans-v44-latin-italic.woff2') format('woff2');
}
/* open-sans-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/open-sans-v44-latin-500.woff2') format('woff2');
}
/* open-sans-500italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 500;
  src: url('fonts/open-sans-v44-latin-500italic.woff2') format('woff2');
}
/* open-sans-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/open-sans-v44-latin-600.woff2') format('woff2');
}
/* open-sans-600italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 600;
  src: url('fonts/open-sans-v44-latin-600italic.woff2') format('woff2');
}
/* open-sans-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/open-sans-v44-latin-700.woff2') format('woff2');
}
/* open-sans-700italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 700;
  src: url('fonts/open-sans-v44-latin-700italic.woff2') format('woff2');
}
/* open-sans-800 - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/open-sans-v44-latin-800.woff2') format('woff2');
}
/* open-sans-800italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 800;
  src: url('fonts/open-sans-v44-latin-800italic.woff2') format('woff2');
}

:root {
    --primary-blue: #214f70;
    --primary-blue-dark: #163a55;
    --secondary-beige: #f7f3eb;
    --accent-gold: #e3a82b;
    --accent-sea: #3b93bd;
    --text-color: #24323a;
    --text-light: #63717a;
    --white: #ffffff;
    --border-radius: 16px;
    --shadow-sm: 0 8px 24px rgba(25, 57, 75, 0.07);
    --shadow-md: 0 14px 36px rgba(25, 57, 75, 0.11);
    --shadow-lg: 0 22px 52px rgba(25, 57, 75, 0.15);
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--primary-blue);
}

/* Header */
.main-header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-blue);
}

.logo i {
    font-size: 24px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-light);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
}

.main-nav a:hover {
    color: var(--primary-blue);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px; /* Rounded pill shape */
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--white);
}

.btn-white:hover {
    background-color: #f0f0f0;
}

.btn-transparent {
    background-color: rgba(255,255,255,0.2);
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(5px);
}

.btn-transparent:hover {
    background-color: rgba(255,255,255,0.3);
}

.btn-block {
    display: block;
    width: 100%;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 4px; /* Standard button radius for cards */
    padding: 12px;
}

/* Hero Section */
.hero-logo-section {
    background-color: var(--white);
    text-align: center;
    padding-bottom: 40px;
}

.hero-logo-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-logo-img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-content-below {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.hero-content-below p {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons-below {
    display: flex;
    justify-content: center;
    gap: 15px;
}

@media (max-width: 768px) {
    .hero-buttons-below {
        flex-direction: column;
    }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 3px;
}

.photo-placeholder {
    position: relative;
    background-image: url('img/placeholder.svg') !important;
    background-size: cover;
    background-position: center;
}

.photo-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e5f2f5;
    color: var(--primary-blue-dark);
    font-size: 13px;
    font-weight: 700;
}

.season-prices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 8px;
}

.season-price {
    padding: 14px;
    border: 1px solid #d8e2e7;
    border-radius: 10px;
    background: #fff;
}

.season-price strong {
    display: block;
    color: var(--primary-blue);
    font-size: 22px;
}

.season-price span {
    color: var(--text-light);
    font-size: 12px;
}

.fact-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.fact-chip {
    padding: 16px;
    border-radius: 10px;
    background: #eef5f7;
    color: var(--primary-blue-dark);
    text-align: center;
    font-weight: 700;
}

.map-consent-free {
    display: flex;
    min-height: 230px;
    padding: 28px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(35, 78, 112, .93), rgba(58, 117, 139, .9)),
        url('img/hero-ostsee.webp') center/cover;
    color: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.map-consent-free h4 {
    color: #fff;
    font-size: 22px;
}

.map-consent-free p {
    margin: 5px 0 18px;
}

.bread-table {
    width: 100%;
    margin-top: 22px;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 1px 0 #dce4e8;
}

.bread-table th,
.bread-table td {
    padding: 13px 15px;
    border-bottom: 1px solid #e2e8eb;
    text-align: left;
}

.bread-table th {
    background: var(--primary-blue);
    color: #fff;
}

.bread-table tr:nth-child(even) td {
    background: #f6f9fa;
}

.bread-table td:last-child,
.bread-table th:last-child {
    text-align: right;
    white-space: nowrap;
}

.legal-warning {
    padding: 18px 20px;
    border-left: 4px solid var(--accent-gold);
    border-radius: 8px;
    background: #fff8e7;
    color: #6d5316;
}

@media (max-width: 720px) {
    .season-prices,
    .fact-strip {
        grid-template-columns: 1fr;
    }

    .bread-table {
        font-size: 14px;
    }

    .bread-table th,
    .bread-table td {
        padding: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Detail Page Styles --- */

.detail-hero-container {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background-color: #eee;
    overflow: hidden;
}

.hero-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.carousel-slide.active {
    opacity: 1;
}

.hero-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    z-index: 2;
}

.hero-text-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text-content h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-text-content p {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.9;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: none;
}

.carousel-btn {
    pointer-events: auto;
    background: rgba(255,255,255,0.8);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background 0.2s;
    color: var(--primary-blue);
    font-size: 18px;
}

.carousel-btn:hover {
    background: white;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.indicator {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: width 0.3s;
}

.indicator.active {
    background: white;
    width: 20px;
    border-radius: 4px;
}

/* Stats and Content Layout */
.content-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 80px;
}

@media (min-width: 992px) {
    .content-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

@media (min-width: 576px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: white;
    text-align: center;
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-icon {
    font-size: 24px;
    color: var(--text-light);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

.detail-section {
    margin-bottom: 40px;
}

.detail-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Highlights */
.highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
@media (min-width: 768px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.highlight-item {
    background: var(--secondary-beige);
    padding: 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.highlight-item i {
    color: var(--primary-blue);
}

/* Amenities Tags */
.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.amenity-tag {
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-color);
}

/* Sidebar Price Card */
.booking-sidebar {
    /* For sticky */
}
.sidebar-sticky {
    position: sticky;
    top: 100px;
}

.price-card {
    background: white;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

.price-display {
    margin-bottom: 20px;
}

.price-label {
    font-size: 14px;
    color: var(--text-light);
}

.price-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-blue);
}

.price-unit {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 400;
}

.booking-btn {
    width: 100%;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    margin-top: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.booking-btn:hover {
    background-color: var(--primary-blue-dark);
}

.booking-note {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}

/* Gallery Grid Section */
.gallery-section {
    margin: 60px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 10px;
    height: auto;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: 200px 200px;
        height: 410px;
    }
    
    .gallery-item:nth-child(1) {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }
    .gallery-item:nth-child(2) {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    .gallery-item:nth-child(3) {
        grid-column: 3 / 4;
        grid-row: 1 / 2;
    }
    .gallery-item:nth-child(4) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
    .gallery-item:nth-child(5) {
        grid-column: 3 / 4;
        grid-row: 2 / 3;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: filter 0.3s;
}

.gallery-item img:hover {
    filter: brightness(0.9);
}

.gallery-more-btn {
    position: relative;
}

.more-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(16, 43, 61, 0.42);
    color: #fff;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.gallery-more-btn img {
    filter: blur(2px) brightness(0.78);
    transform: scale(1.04);
}

.gallery-more-btn img:hover {
    filter: blur(2px) brightness(0.7);
    transform: scale(1.07);
}

.gallery-item[hidden] {
    display: none;
}

/* Features Bar */
.features-bar {
    background-color: var(--white);
    padding: 50px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Columns */
    gap: 30px;
    text-align: center;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: #edf2f7; /* Very light blue/gray */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    color: var(--primary-blue);
    font-size: 24px;
}

.feature-item h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.feature-item p {
    font-size: 14px;
    color: var(--text-light);
}

/* Sections General */
section {
    padding: 80px 0;
}

.section-bg-beige {
    background-color: var(--secondary-beige);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    font-size: 32px;
    color: var(--primary-blue);
}

.section-title p {
    color: var(--text-light);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.card-image.wide {
    height: 250px;
}

.activity-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
    background:
        radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.2), transparent 25%),
        linear-gradient(135deg, #3d789f, #214f70);
}

.activity-placeholder-fish {
    background:
        radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.2), transparent 24%),
        linear-gradient(135deg, #4b9bb5, #225b79);
}

.activity-placeholder i {
    font-size: 42px;
}

.activity-placeholder span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-header h3, .card-body h4 {
    margin-bottom: 0px;
    font-size: 20px;
    color: var(--primary-blue);
}

.stars {
    color: var(--accent-gold);
}

.card-body p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #718096;
}

.card-meta span i {
    margin-right: 5px;
}

/* Haupthaus Box */
.info-box-large {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background-color: #edf2f7;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-blue);
    font-size: 24px;
    flex-shrink: 0;
}

.info-box-content h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.info-box-content p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 15px;
}

.info-note {
    background-color: #f7fafc;
    padding: 15px;
    border-radius: var(--border-radius);
    font-size: 13px;
    color: var(--text-light);
}

/* Extras & Infos Grid */
.extras-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.extra-card {
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.blue-card {
    background: linear-gradient(135deg, #4c7da6 0%, #2f5678 100%);
    color: var(--white);
}

.blue-card h3, .blue-card p, .blue-card .extra-icon {
    color: var(--white);
}

.blue-card .extra-icon {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.2); 
}

.beige-card {
    background: linear-gradient(135deg, #f3e9d5 0%, #e2d3b6 100%);
}

.beige-card .extra-icon {
    color: #4a5568;
    background-color: rgba(0, 0, 0, 0.05);
}

.extra-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.extra-icon {
    font-size: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.extra-card p {
    font-size: 14px;
    margin-bottom: 20px;
}

.check-list li {
    font-size: 13px;
    margin-bottom: 5px;
}
.check-list li::before {
    content: "✓";
    margin-right: 8px;
    font-weight: bold;
}

.white-note {
    background-color: rgba(255,255,255,0.7);
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
}

/* Aktivitäten Categories */
.category-title {
    margin-top: 40px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
}

.location-link {
    font-size: 12px;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Small Cards Grid (Romantik) */
.small-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.small-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.small-card .icon-box {
    width: 60px;
    height: 60px;
    background-color: #dce8f0;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #234e70;
    flex-shrink: 0;
}

.small-card h4 {
    margin-bottom: 5px;
    font-size: 16px;
}

.small-card p {
    font-size: 13px;
    color: var(--text-light);
}

/* Insider Bar */
.insider-bar {
    background: linear-gradient(135deg, #3a6b96 0%, #24486b 100%);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.insider-item {
    text-align: left;
}

.insider-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.insider-item h4 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 16px;
}

.insider-item p {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
}

/* Kontakt Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.booking-form-card, .contact-info-card, .map-card {
    background-color: var(--secondary-beige);
    padding: 30px;
    border-radius: var(--border-radius);
}

.contact-info-card {
    background-color: var(--primary-blue);
    color: var(--white);
    margin-bottom: 30px;
}

.contact-info-card h3 {
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    margin-top: 5px;
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-family: inherit;
}

.form-group input[type="checkbox"] {
    width: auto;
}

/* Guest Counter */
.guest-counter {
    display: flex;
    align-items: center;
    gap: 15px;
}

.counter-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-blue);
    background-color: var(--white);
    color: var(--primary-blue);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
}

.counter-btn:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.counter-btn:active {
    transform: scale(0.95);
}

.guest-counter input[type="number"] {
    width: 60px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border: 1px solid #cbd5e0;
    padding: 8px;
    cursor: default;
}

.guest-counter input[type="number"]::-webkit-inner-spin-button,
.guest-counter input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

/* Map Card */
.map-card {
    /* Background inherited from general rule (beige), specific styling here */
    padding: 20px;
    margin-top: 30px; /* Space between info and map */
}
.map-placeholder {
    height: 200px;
    background-color: #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.map-placeholder iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #e53e3e;
    font-size: 30px;
}

.map-details p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.map-details i {
    width: 20px;
    color: var(--primary-blue);
}

/* Footer */
.main-footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-top: 60px;
    padding-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 70px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 14px;
    opacity: 0.9;
    max-width: 300px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact-info p {
    font-size: 13px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-info i {
    font-size: 14px;
    opacity: 0.7;
    width: 16px;
    text-align: center;
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    font-size: 14px;
    opacity: 0.8;
}

.footer-col a:hover {
    opacity: 1;
}

/* Footer CTA banner */
.footer-cta {
    background: rgba(255,255,255,0.08);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 30px 0;
    margin-bottom: 0;
}

.footer-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-cta-text h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 4px;
}

.footer-cta-text p {
    font-size: 14px;
    opacity: 0.7;
}

.footer-cta .btn-white {
    white-space: nowrap;
    flex-shrink: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    opacity: 0.7;
    padding-top: 25px;
}

.social-icons a {
    margin-left: 15px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .features-grid, .cards-grid, .two-columns, .extras-grid, .insider-bar, .contact-grid, .small-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .booking-form-card, .contact-info-card, .map-card {
        padding: 20px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group input, .form-group select, .form-group textarea {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* --- New Design System (Mariechen Template) --- */

/* Hero Section */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 70vh; 
    min-height: 500px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.0) 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.flex-bottom {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 60px;
}

.hero-title {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    max-width: 800px;
    line-height: 1.2;
}

/* Sections */
.section-padding {
    padding: 80px 0;
}
.pt-0 { padding-top: 0; }
.mb-5 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 1.5rem; }

.section-bg-beige {
    background-color: #fcf8f2; 
}

/* Welcome Section */
.welcome-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}

.section-title-left {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #000; 
    font-weight: 700;
}

.lead-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

.welcome-action {
    display: flex;
    justify-content: flex-end;
}

/* Amenities with Circular Icons */
.amenities-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.amenity-item-circle h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #000;
    font-weight: 600;
}

.circle-icon {
    width: 90px;
    height: 90px;
    background-color: var(--primary-blue); /* Dark Blue Circle from image analysis re-check: Image shows solid dark blue circle with white icon */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.2rem;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.small-text {
    font-size: 0.9rem;
    color: #555;
}

/* Gallery Slider Look-alike */
.gallery-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.gallery-item-center img, 
.gallery-item-arrow img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.gallery-item-center {
    flex: 1.4;
    height: 320px;
}
.gallery-item-center img {
    height: 100%;
}

.gallery-item-arrow {
    flex: 1;
    position: relative;
    cursor: pointer;
    height: 250px;
}

.arrow-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    color: #333;
}

/* Detail Texts */
.detail-texts h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #000;
}
.detail-texts p {
    color: #555;
    margin-bottom: 30px;
}

/* Footer refinements */
.main-footer {
    background-color: var(--primary-blue);
    color: white;
    padding: 0 0 20px;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 0;
    padding-top: 70px;
    padding-bottom: 50px;
}
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 70px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.footer-logo-text span {
    font-weight: 700;
    font-size: 18px;
}
.footer-logo-text small {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 16px;
    font-weight: 600;
}
.footer-col ul li {
    margin-bottom: 12px;
}
.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}
.footer-col ul li a:hover {
    color: white;
}
.footer-desc {
    opacity: 0.7;
    line-height: 1.6;
    font-size: 14px;
    max-width: 300px;
    margin-bottom: 20px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact-info p {
    font-size: 13px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-info i {
    font-size: 14px;
    opacity: 0.7;
    width: 16px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    font-size: 12px;
    opacity: 0.6;
}
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.social-links {
    display: flex;
    gap: 15px;
}
.social-links a {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: background 0.3s;
}
.social-links a:hover {
    background: rgba(255,255,255,0.2);
}

@media (max-width: 992px) {
    .amenities-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .welcome-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .welcome-action {
        justify-content: center;
    }
    .hero-title {
        font-size: 2rem;
    }
    .amenities-grid-4 {
        grid-template-columns: 1fr;
    }
    .gallery-row {
        flex-direction: column;
    }
    .gallery-item-center {
        width: 100%;
        height: auto;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 40px;
        padding-bottom: 10px;
    }
    
    /* Mobile footer brand section - centered */
    .footer-brand {
        text-align: center;
        padding-bottom: 30px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin-bottom: 25px;
    }
    
    .footer-brand .footer-logo {
        display: flex;
        justify-content: center;
    }
    
    .footer-brand .footer-desc {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-brand .footer-contact-info {
        align-items: center;
    }
    
    /* Accordion-style link columns on mobile */
    .footer-col:not(.footer-brand) {
        padding: 0;
    }
    
    .footer-col:not(.footer-brand) h4 {
        margin-bottom: 15px;
        padding-bottom: 0;
        font-size: 15px;
    }
    
    .footer-col:not(.footer-brand) ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 15px;
        margin-bottom: 20px;
    }
    
    .footer-col:not(.footer-brand) ul li {
        margin-bottom: 0;
    }
    
    /* CTA banner mobile */
    .footer-cta {
        padding: 25px 0;
    }
    
    .footer-cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-cta-text h3 {
        font-size: 18px;
    }
    
    .footer-cta .btn-white {
        width: 100%;
        text-align: center;
    }
    
    /* Footer bottom mobile */
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .social-icons {
        display: flex;
        gap: 20px;
    }
    
    .social-icons a {
        margin-left: 0;
        font-size: 20px;
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background 0.3s;
    }
    
    .social-icons a:hover {
        background: rgba(255,255,255,0.2);
    }
}
.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-blue);
    z-index: 1001; /* Above header */
}

/* Burger Menu Functionality */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        width: 100%;
        max-width: 100%;
        height: 100vh;
        background-color: var(--white);
        padding: 80px 30px 20px;
        transition: right 0.3s ease-in-out;
        z-index: 1002;
    }
    .main-nav.active {
        right: 0;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
        padding-left: 10px;
    }
    
    .main-nav a {
        font-size: 28px;
        font-weight: 700;
    }
    
    /* Overlay for when menu is open */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }
    .menu-overlay.active {
        display: block;
    }
    
    /* Close button for menu (optional, X icon usually replaces burger) */
    .nav-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
        cursor: pointer;
        color: var(--text-color);
        z-index: 1003;
    }
    
    /* Mobile Grid Color Fix */
    /* Target the extras-grid items to swap background colors of 3rd and 4th item visually */
    /* Original order: 1:Blue, 2:Beige, 3:Beige, 4:Blue. Mobile Stack: Blue, Beige, Beige, Blue. */
    /* Desired Mobile: Blue, Beige, Blue, Beige. Swap 3rd and 4th background styles or order. */
    
    /* Re-order items 3 and 4 */
    .extras-grid .extra-card:nth-child(3) {
        order: 4; 
    }
    .extras-grid .extra-card:nth-child(4) {
        order: 3;
    }

    /* Carousel Responsive Styles for Mariechen */
    .gallery-row {
        position: relative;
        height: 300px;
        /* display: block; or flex with only one visible? */
    }
    .gallery-item-center {
        display: block; /* Show only center */
        width: 100%;
        height: 100%;
    }
    .gallery-item-arrow {
        position: absolute;
        width: 50px; /* Small click area */
        height: 100%;
        top: 0;
        background: transparent;
        z-index: 10;
        /* Content hidden except arrow */
    }
    .gallery-item-arrow img {
        display: none; /* Hide side preview images on mobile */
    }
    .gallery-item-arrow.left {
        left: 0;
    }
    .gallery-item-arrow.right {
        right: 0;
    }
    
    /* Adjust arrow overlay position */
    .arrow-overlay {
        background: rgba(255,255,255,0.8);
    }
}


/* --- Desktop Fixes --- */
/* Ensure nav-close is hidden on desktop */
.nav-close {
    display: none;
}

/* --- Mobile Header Improvements --- */
@media (max-width: 768px) {
    /* Hide the close button on desktop but show on mobile inside the menu */
    .main-nav .nav-close {
        display: block;
    }
    
    /* Header Container: Icon Left, Burger Right */
    .main-header {
        padding: 10px 0;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 12px;
        width: 100%;
        gap: 0;
        flex-wrap: nowrap;
    }
    
    /* Logo: Show only the icon, hide text */
    .logo {
        gap: 0;
        flex: 0 0 auto;
    }
    .logo-text {
        display: none; /* Hides Title and Subtitle */
    }
    .logo i {
        font-size: 28px; /* Slightly larger icon */
    }
    
    /* Hide the 'Jetzt Buchen' button in header on mobile if desired, or keep it. 
       Usually header becomes crowded. Let's keep it but ensure Burger is visible.
       However, common pattern is Logo Left, Burger Right. 
       If button is there, where does burger go? 
       Let's assume user wants: [Logo Icon] [Whitespace] [Burger] 
       The button might be hidden or moved to menu. 
       Let's hide the direct header button on mobile to clean up space 
       as it is likely duplicated in the hero or menu. */
    .header-container .btn-primary {
         display: none; 
    }
    
    /* Burger Menu Icon */
    .nav-toggle {
        display: block;
        font-size: 24px;
        margin-left: auto;
        flex: 0 0 auto;
    }
    
    /* Logo Order */
    .logo {
        margin-right: auto;
    }
}


/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

body.lightbox-open {
    overflow: hidden;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(10, 24, 34, 0.72);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
}

.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }

.lightbox-meta {
    position: absolute;
    right: 0;
    bottom: -42px;
    left: 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #fff;
    font-size: 14px;
}

.lightbox-counter {
    flex: none;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
    .lightbox-nav {
        width: 42px;
        height: 42px;
    }

    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }

    .lightbox-meta {
        bottom: -52px;
        padding: 0 6px;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(10, 24, 34, 0.72);
    color: white;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}


/* ========================================
   Subpage Hero Section
   ======================================== */
.subpage-hero {
    position: relative;
    height: 320px;
    box-sizing: border-box;
    padding: 18px 0 58px;
    background-image: url('img/unterkuenfte/emma/emma-01.jpg');
    background-size: cover;
    background-position: center 24%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.subpage-hero.extras-hero {
    background-image: url('img/hero-extras-ostsee.jpg');
    background-position: center 56%;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(16, 57, 84, 0.76) 0%, rgba(29, 86, 122, 0.58) 52%, rgba(19, 63, 91, 0.7) 100%);
    z-index: 1;
}

.subpage-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23fcf8f2' d='M0,30 C240,60 480,0 720,30 C960,60 1200,0 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
    z-index: 2;
    margin-bottom: -2px;

}

.subpage-hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    padding: 0 24px;
    max-width: 800px;
}

.subpage-hero-content h1 {
    font-size: 38px;
    color: var(--white);
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.subpage-hero-content p {
    font-size: 17px;
    opacity: 0.9;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Decorative floating particles */
.subpage-hero .hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.subpage-hero .hero-particles span {
    position: absolute;
    display: block;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: particleDrift linear infinite;
}

.subpage-hero .hero-particles span:nth-child(1) { left: 10%; top: 20%; animation-duration: 8s; width: 6px; height: 6px; }
.subpage-hero .hero-particles span:nth-child(2) { left: 25%; top: 60%; animation-duration: 12s; animation-delay: 2s; }
.subpage-hero .hero-particles span:nth-child(3) { left: 50%; top: 35%; animation-duration: 10s; animation-delay: 4s; width: 5px; height: 5px; }
.subpage-hero .hero-particles span:nth-child(4) { left: 70%; top: 70%; animation-duration: 9s; animation-delay: 1s; }
.subpage-hero .hero-particles span:nth-child(5) { left: 85%; top: 25%; animation-duration: 11s; animation-delay: 3s; width: 7px; height: 7px; }
.subpage-hero .hero-particles span:nth-child(6) { left: 40%; top: 80%; animation-duration: 7s; animation-delay: 5s; }

@keyframes particleDrift {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-200px) translateX(30px); opacity: 0; }
}

/* Responsive subpage hero */
@media (max-width: 768px) {
    .subpage-hero {
        height: 260px;
        padding: 12px 0 48px;
        background-position: 60% center;
    }
    .subpage-hero-content h1 {
        font-size: 28px;
    }
    .subpage-hero-content p {
        font-size: 15px;
    }
}

/* ========================================
   Cohesive maritime design refresh
   ======================================== */
body {
    background: #fffdfa;
}

body.menu-open {
    overflow: hidden;
}

.main-header {
    padding: 10px 0;
    border-bottom: 1px solid rgba(33, 79, 112, 0.09);
    box-shadow: 0 8px 30px rgba(24, 58, 80, 0.05);
}

.main-nav a {
    position: relative;
    padding: 10px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    transform: scaleX(1);
}

.btn,
.booking-btn {
    border-radius: 11px;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.booking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(22, 58, 85, 0.16);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 1px solid rgba(33, 79, 112, 0.28);
}

.btn-secondary:hover {
    background: rgba(33, 79, 112, 0.06);
}

/* Homepage hero */
.home-hero {
    position: relative;
    padding: 72px 0 78px;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 18%, rgba(59, 147, 189, 0.13), transparent 30%),
        linear-gradient(135deg, #fbf8f1 0%, #ffffff 62%);
}

.home-hero::after {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    right: -170px;
    bottom: -210px;
    border: 52px solid rgba(227, 168, 43, 0.09);
    border-radius: 50%;
    pointer-events: none;
}

.home-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
    gap: 64px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--primary-blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.eyebrow i {
    color: var(--accent-gold);
}

.home-hero-copy h1 {
    max-width: 620px;
    margin-bottom: 22px;
    color: var(--primary-blue-dark);
    font-size: clamp(40px, 4.6vw, 64px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.home-hero-copy > p {
    max-width: 610px;
    margin-bottom: 28px;
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.7;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 28px;
    color: #52636d;
    font-size: 13px;
    font-weight: 600;
}

.home-hero-facts li {
    display: flex;
    align-items: center;
    gap: 7px;
}

.home-hero-facts i {
    color: var(--accent-sea);
}

.home-hero-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 500px;
}

.home-hero-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.home-hero-main {
    grid-row: 1 / 3;
}

.home-hero-badge {
    position: absolute;
    left: -24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 1px solid rgba(33, 79, 112, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-md);
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.3;
}

.home-hero-badge i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #f9ebc9;
    color: #b77a00;
}

.home-hero-badge strong {
    color: var(--primary-blue);
    font-size: 14px;
}

/* Reusable icon language */
.feature-icon,
.icon-circle,
.extra-icon,
.small-card .icon-box,
.insider-icon,
.circle-icon {
    border-radius: 15px;
}

.feature-icon,
.icon-circle,
.small-card .icon-box {
    background: linear-gradient(145deg, #edf6f9, #e4edf3);
    color: var(--primary-blue);
}

.feature-icon {
    width: 54px;
    height: 54px;
    font-size: 21px;
}

.features-bar {
    padding: 46px 0;
    border-top: 1px solid rgba(33, 79, 112, 0.06);
    border-bottom: 1px solid rgba(33, 79, 112, 0.06);
}

.feature-item {
    position: relative;
}

.feature-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 8px;
    right: -15px;
    width: 1px;
    height: 70px;
    background: rgba(33, 79, 112, 0.09);
}

/* Cards and photos */
.cards-grid {
    gap: 24px;
}

.card {
    border: 1px solid rgba(33, 79, 112, 0.09);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.card-image {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    background: #e9eef0;
}

.activity-photo {
    position: relative;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #e8eff2;
    overflow: hidden;
}

.activity-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-photo.ai-generated::after {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(20, 38, 52, 0.86);
    color: #fff;
    content: "KI-generiertes Stimmungsbild";
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    pointer-events: none;
}

.activity-icon-image {
    display: grid;
    min-height: 190px;
    place-items: center;
    background: linear-gradient(135deg, #e8f0f4 0%, #d5e3e9 100%);
    color: var(--primary-blue);
}

.activity-icon-image i {
    font-size: 56px;
}

.activity-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-top: 16px;
    color: var(--primary-blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.activity-link:hover,
.activity-link:focus-visible {
    text-decoration: underline;
}

.activity-link i {
    font-size: 11px;
}

.image-credits {
    margin-top: 36px;
    padding: 18px 22px;
    border: 1px solid rgba(33, 79, 112, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-light);
    font-size: 12px;
}

.image-credits summary {
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.image-credits p {
    margin: 14px 0 8px;
}

.image-credits ul {
    margin: 0;
    padding-left: 20px;
}

.image-credits li + li {
    margin-top: 6px;
}

.image-credits a {
    color: var(--primary-blue);
}

.card-body {
    padding: 24px;
}

.unit-size {
    padding: 6px 9px;
    border-radius: 9px;
    background: #edf5f8;
    color: var(--primary-blue);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.card-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    color: #657783;
}

.card-meta span {
    line-height: 1.4;
}

.card-meta i {
    color: var(--primary-blue);
}

.btn-block {
    border-radius: 10px;
}

.info-box-large,
.extra-card,
.small-card,
.price-card,
.stat-card,
.booking-form-card,
.contact-info-card,
.map-card,
.insider-bar {
    border-radius: 18px;
}

.extra-card {
    padding: 28px;
}

.beige-card {
    background: linear-gradient(145deg, #f7f0e3, #efe3ce);
}

.blue-card {
    background: linear-gradient(145deg, #376c91, #214d6d);
}

.white-note,
.info-note,
.highlight-item {
    border-radius: 10px;
}

/* Detail pages */
.detail-hero-container {
    height: min(58vh, 610px);
    min-height: 430px;
}

.hero-text-overlay {
    padding: 72px 20px 38px;
    background: linear-gradient(to top, rgba(10, 28, 39, 0.82), rgba(10, 28, 39, 0));
}

.hero-text-content h1 {
    letter-spacing: -0.03em;
}

.carousel-btn {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
}

.stat-card {
    padding: 18px 12px;
    border-color: rgba(33, 79, 112, 0.1);
    box-shadow: none;
}

.stat-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #edf5f8;
    color: var(--primary-blue);
    font-size: 19px;
}

.season-price,
.amenity-tag {
    border-color: rgba(33, 79, 112, 0.14);
}

.gallery-grid {
    gap: 12px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 13px;
    background: #e9eef0;
}

.gallery-item img {
    border-radius: 0;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item img:hover {
    transform: scale(1.025);
    filter: brightness(0.94);
}

.subpage-hero .hero-particles {
    display: none;
}

.main-footer {
    background: #173d59;
}

@media (max-width: 1040px) {
    .home-hero-grid {
        grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
        gap: 38px;
    }

    .home-hero-gallery {
        height: 440px;
    }

    .home-hero-copy h1 {
        font-size: 46px;
    }
}

@media (max-width: 768px) {
    .main-nav a::after {
        display: none;
    }

    .home-hero {
        padding: 48px 0 56px;
    }

    .home-hero-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .home-hero-copy h1 {
        font-size: clamp(36px, 11vw, 48px);
    }

    .home-hero-copy > p {
        font-size: 16px;
    }

    .home-hero-actions {
        flex-direction: column;
    }

    .home-hero-actions .btn {
        width: 100%;
    }

    .home-hero-facts {
        display: grid;
        gap: 10px;
    }

    .home-hero-gallery {
        grid-template-columns: 1.45fr 1fr;
        height: 360px;
        gap: 8px;
    }

    .home-hero-gallery img {
        border-radius: 14px;
    }

    .home-hero-badge {
        left: 12px;
        bottom: 12px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 34px 16px;
    }

    .feature-item:not(:last-child)::after {
        display: none;
    }

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

    .detail-hero-container {
        height: 55vh;
        min-height: 360px;
    }
}

@media (max-width: 430px) {
    .home-hero-gallery {
        height: 315px;
    }

    .home-hero-badge {
        display: none;
    }

    .card-meta {
        grid-template-columns: 1fr 1fr;
    }

    .card-meta span:last-child {
        grid-column: 1 / -1;
    }
}

/* ========================================
   Availability calendar and mini CMS
   ======================================== */
[hidden] {
    display: none !important;
}

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

.form-status {
    min-height: 24px;
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.form-status.is-error,
.form-status.is-success,
.form-status.is-neutral {
    padding: 10px 12px;
    border-radius: 9px;
}

.form-status.is-error {
    color: #8a2630;
    background: #fff0f1;
    border: 1px solid #f1c7cb;
}

.form-status.is-success {
    color: #176341;
    background: #edf9f2;
    border: 1px solid #bfe4ce;
}

.form-status.is-neutral {
    color: var(--primary-blue);
    background: #eef6fa;
    border: 1px solid #c8dfe9;
}

.btn:disabled,
.booking-btn:disabled {
    cursor: wait;
    opacity: 0.64;
    transform: none;
}

.form-trust-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 18px;
    padding: 12px 14px;
    color: #455861;
    background: #f4f8fa;
    border-left: 3px solid var(--accent-sea);
    border-radius: 0 8px 8px 0;
    font-size: 13px;
}

.form-trust-note i {
    margin-top: 3px;
    color: var(--primary-blue);
}

.form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.detail-availability-picker {
    margin-bottom: 20px;
    padding: 16px;
    background: #f7fafb;
    border: 1px solid #dfe9ed;
    border-radius: 14px;
}

.detail-picker-heading {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 13px;
    color: var(--primary-blue);
}

.detail-picker-heading > i {
    display: grid;
    flex: 0 0 34px;
    height: 34px;
    place-items: center;
    background: #e3f0f4;
    border-radius: 9px;
}

.detail-picker-heading strong,
.detail-picker-heading span {
    display: block;
}

.detail-picker-heading strong {
    font-size: 15px;
}

.detail-picker-heading span {
    margin-top: 1px;
    color: #71818a;
    font-size: 11px;
}

.detail-picker-selection {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 7px;
    align-items: center;
    margin-bottom: 14px;
}

.detail-picker-selection > i {
    color: #8da0a9;
    font-size: 11px;
}

.detail-picker-selection button {
    min-width: 0;
    padding: 9px 10px;
    color: #284857;
    background: #fff;
    border: 1px solid #d5e0e5;
    border-radius: 9px;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.detail-picker-selection button.is-active {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(33, 79, 112, 0.1);
}

.detail-picker-selection button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.detail-picker-selection small,
.detail-picker-selection span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-picker-selection small {
    margin-bottom: 2px;
    color: #7b8990;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.detail-picker-selection span {
    font-size: 12px;
    font-weight: 700;
}

.detail-picker-toolbar {
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    gap: 6px;
    align-items: center;
    margin-bottom: 10px;
}

.detail-picker-toolbar strong {
    color: #274b60;
    font-size: 14px;
    text-align: center;
    text-transform: capitalize;
}

.detail-picker-toolbar button {
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    color: var(--primary-blue);
    background: #fff;
    border: 1px solid #d5e0e5;
    border-radius: 8px;
    cursor: pointer;
}

.detail-picker-toolbar button:hover:not(:disabled),
.detail-picker-toolbar button:focus-visible {
    background: #e9f3f6;
}

.detail-picker-toolbar button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.detail-picker-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.detail-picker-weekday {
    padding: 3px 0 5px;
    color: #89969c;
    font-size: 9px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.detail-picker-day {
    position: relative;
    display: grid;
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    place-items: center;
    color: #235f43;
    background: #eaf7ef;
    border: 1px solid #c8e4d2;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
}

.detail-picker-day.is-free:hover,
.detail-picker-day.is-free:focus-visible {
    color: #fff;
    background: #397658;
    border-color: #397658;
    outline: none;
}

.detail-picker-day.is-occupied,
.detail-picker-day.is-past {
    color: #9aa4a9;
    background: #e8ebec;
    border-color: #dfe3e5;
    cursor: not-allowed;
    text-decoration: line-through;
}

.detail-picker-day.is-past {
    color: #bcc3c6;
    background: #f1f3f3;
    border-color: #eceeee;
}

.detail-picker-day.is-empty {
    visibility: hidden;
}

.detail-picker-day.is-in-range {
    color: #214f70;
    background: #dcecf4;
    border-color: #b8d4e1;
}

.detail-picker-day.is-selected {
    color: #fff;
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 2px 7px rgba(33, 79, 112, 0.28);
}

.detail-picker-day.is-today::after {
    content: '';
    position: absolute;
    right: 5px;
    bottom: 3px;
    left: 5px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.detail-picker-legend {
    display: flex;
    gap: 14px;
    margin-top: 10px;
    color: #73828a;
    font-size: 10px;
}

.detail-picker-legend span {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.detail-picker-legend i {
    width: 9px;
    height: 9px;
    background: #eaf7ef;
    border: 1px solid #c8e4d2;
    border-radius: 3px;
}

.detail-picker-legend i.is-occupied {
    background: #e8ebec;
    border-color: #d6dcdf;
}

.detail-picker-status {
    min-height: 32px;
    margin: 10px 0 0;
    padding: 8px 9px;
    color: #5e7079;
    background: #edf3f5;
    border-radius: 7px;
    font-size: 10px;
    line-height: 1.45;
}

.detail-picker-status.is-error {
    color: #8b3b3b;
    background: #fbeaea;
}

.detail-picker-status.is-success {
    color: #256044;
    background: #e9f6ee;
}

.availability-hero {
    min-height: 340px;
}

.availability-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.availability-live-pill span {
    width: 8px;
    height: 8px;
    background: #85ddb0;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(133, 221, 176, 0.16);
}

.availability-page {
    padding: 64px 0 84px;
}

.availability-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
    gap: 48px;
    align-items: end;
    margin-bottom: 34px;
}

.availability-intro h2,
.availability-cta h2 {
    max-width: 680px;
    margin-bottom: 12px;
    font-size: clamp(27px, 4vw, 38px);
    letter-spacing: -0.03em;
}

.availability-intro > div > p,
.availability-cta p {
    max-width: 760px;
    color: var(--text-light);
    font-size: 16px;
}

.availability-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(33, 79, 112, 0.12);
    border-radius: 14px;
}

.availability-privacy-note > i {
    display: grid;
    flex: 0 0 38px;
    height: 38px;
    place-items: center;
    color: var(--primary-blue);
    background: #e8f3f7;
    border-radius: 10px;
}

.availability-privacy-note strong,
.availability-privacy-note span {
    display: block;
}

.availability-privacy-note span {
    margin-top: 2px;
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.45;
}

.availability-shell {
    padding: 28px;
    background: #fff;
    border: 1px solid rgba(33, 79, 112, 0.1);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.availability-toolbar,
.admin-panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.apartment-tabs {
    display: inline-flex;
    gap: 5px;
    padding: 5px;
    background: #edf2f4;
    border-radius: 12px;
}

.apartment-tab {
    min-width: 115px;
    padding: 10px 17px;
    color: #53646d;
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
}

.apartment-tab:hover,
.apartment-tab:focus-visible {
    color: var(--primary-blue);
}

.apartment-tab.active {
    color: var(--primary-blue);
    background: #fff;
    box-shadow: 0 3px 12px rgba(26, 58, 77, 0.11);
}

.month-navigation {
    display: flex;
    gap: 6px;
    align-items: center;
}

.month-navigation button {
    min-width: 40px;
    min-height: 40px;
    padding: 8px 12px;
    color: var(--primary-blue);
    background: #fff;
    border: 1px solid #d7e0e5;
    border-radius: 9px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.month-navigation button:hover,
.month-navigation button:focus-visible {
    background: #f0f6f8;
    border-color: #9cb8c7;
}

.month-navigation button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.public-calendar-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    min-height: 350px;
    margin-top: 12px;
}

.month-card {
    padding: 22px;
    border: 1px solid #e4e9ec;
    border-radius: 16px;
}

.month-card h3 {
    margin-bottom: 20px;
    color: #1d3f54;
    font-size: 19px;
    text-align: center;
    text-transform: capitalize;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 7px;
}

.calendar-weekdays {
    margin-bottom: 8px;
    color: #8a979e;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.calendar-day {
    position: relative;
    display: grid;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
}

.calendar-day.is-free {
    color: #1b6644;
    background: #eaf7ef;
    border: 1px solid #c9e7d5;
}

.calendar-day.is-occupied {
    color: #fff;
    background: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.calendar-day.is-past {
    color: #a1aaaf;
    background: #f3f4f4;
    border: 1px solid #eceeee;
}

.calendar-day.is-empty {
    visibility: hidden;
}

.calendar-day.is-today::after {
    content: '';
    position: absolute;
    right: 4px;
    bottom: 3px;
    left: 4px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.availability-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 22px;
    color: #64747c;
    font-size: 13px;
}

.availability-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

.legend-dot.is-free { background: #d5efdf; border: 1px solid #aed8be; }
.legend-dot.is-occupied { background: var(--primary-blue); }
.legend-dot.is-past { background: #e5e7e8; }

.availability-footnote {
    display: flex;
    gap: 11px;
    margin-top: 22px;
    padding: 15px 17px;
    color: #5e6e76;
    background: #f7f9fa;
    border-radius: 11px;
    font-size: 13px;
}

.availability-footnote i {
    margin-top: 4px;
    color: var(--accent-sea);
}

.availability-cta {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
    margin-top: 34px;
    padding: 36px 40px;
    background: linear-gradient(125deg, #edf7fa, #fff 58%);
    border: 1px solid #d8e8ee;
    border-radius: 20px;
}

.availability-cta .btn {
    flex: 0 0 auto;
}

/* Admin */
.admin-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 7% 0%, rgba(59, 147, 189, 0.12), transparent 28%),
        #f3f6f7;
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    min-height: 76px;
    justify-content: space-between;
    align-items: center;
    padding: 10px clamp(18px, 4vw, 58px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #dfe7ea;
    backdrop-filter: blur(14px);
}

.admin-brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.admin-brand img {
    width: auto;
    height: 48px;
}

.admin-brand span,
.admin-brand strong,
.admin-brand small {
    display: block;
}

.admin-brand strong {
    color: var(--primary-blue);
    font-size: 16px;
}

.admin-brand small {
    color: #77868d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-header-actions {
    display: flex;
    gap: 18px;
    align-items: center;
    color: #5c6c74;
    font-size: 13px;
    font-weight: 600;
}

.admin-header-actions a:hover {
    color: var(--primary-blue);
}

.admin-logout {
    padding: 8px 13px;
    color: #8a3940;
    background: #fff;
    border: 1px solid #e4c7ca;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
}

.admin-main {
    width: min(1480px, calc(100% - 36px));
    min-height: calc(100vh - 132px);
    margin: 0 auto;
    padding: 54px 0 70px;
}

.admin-login-shell {
    display: grid;
    width: min(1040px, 100%);
    grid-template-columns: 1.15fr 0.85fr;
    gap: 72px;
    align-items: center;
    min-height: 620px;
    margin: 0 auto;
}

.admin-login-copy h1 {
    max-width: 600px;
    margin-bottom: 18px;
    color: #153e59;
    font-size: clamp(38px, 5vw, 58px);
    letter-spacing: -0.045em;
}

.admin-login-copy > p {
    max-width: 600px;
    color: #64757d;
    font-size: 17px;
}

.admin-benefits {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.admin-benefits li {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #43565f;
    font-size: 14px;
}

.admin-benefits i {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: #287852;
    background: #dcf2e5;
    border-radius: 50%;
    font-size: 10px;
}

.admin-login-card,
.admin-panel,
.admin-stat-card {
    background: #fff;
    border: 1px solid rgba(29, 73, 98, 0.11);
    box-shadow: 0 16px 42px rgba(30, 59, 75, 0.08);
}

.admin-login-card {
    padding: 36px;
    border-radius: 20px;
}

.admin-lock-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    place-items: center;
    color: #fff;
    background: var(--primary-blue);
    border-radius: 13px;
    box-shadow: 0 10px 22px rgba(33, 79, 112, 0.23);
}

.admin-login-card h2 {
    margin-bottom: 4px;
    font-size: 26px;
}

.admin-login-card > p {
    margin-bottom: 22px;
    color: var(--text-light);
    font-size: 14px;
}

.admin-login-card .form-group label span,
.admin-editor-panel .form-group label span {
    color: #859198;
    font-size: 11px;
    font-weight: 400;
}

.admin-login-card input,
.admin-editor-panel input,
.admin-editor-panel select,
.admin-editor-panel textarea,
.admin-filter select {
    width: 100%;
    padding: 11px 12px;
    font: inherit;
    font-size: 14px;
    background: #fff;
    border: 1px solid #ced9de;
    border-radius: 9px;
}

.admin-login-card input:focus,
.admin-editor-panel input:focus,
.admin-editor-panel select:focus,
.admin-editor-panel textarea:focus,
.admin-filter select:focus {
    border-color: var(--accent-sea);
    outline: 3px solid rgba(59, 147, 189, 0.13);
}

.admin-dashboard-heading {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: end;
    margin-bottom: 28px;
}

.admin-dashboard-heading h1 {
    margin-bottom: 5px;
    color: #163f59;
    font-size: clamp(31px, 4vw, 44px);
    letter-spacing: -0.035em;
}

.admin-dashboard-heading p,
.admin-panel-heading p {
    color: #738189;
    font-size: 14px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0;
}

.admin-stat-card {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 20px;
    border-radius: 14px;
}

.admin-stat-icon {
    display: grid;
    flex: 0 0 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
}

.admin-stat-icon.is-blue { color: #245d7c; background: #e5f1f7; }
.admin-stat-icon.is-green { color: #287852; background: #e3f3e9; }
.admin-stat-icon.is-gold { color: #916b17; background: #faf0d7; }

.admin-stat-card strong,
.admin-stat-card span {
    display: block;
}

.admin-stat-card strong {
    color: #173f58;
    font-size: 23px;
    line-height: 1.2;
}

.admin-stat-card div span {
    margin-top: 3px;
    color: #78868d;
    font-size: 12px;
}

.admin-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(340px, 0.35fr);
    gap: 20px;
    align-items: start;
}

.admin-panel {
    padding: 24px;
    border-radius: 16px;
}

.admin-panel-heading {
    margin-bottom: 22px;
}

.admin-panel-heading h2 {
    margin-bottom: 3px;
    color: #24495f;
    font-size: 19px;
}

.admin-calendar {
    display: grid;
    gap: 28px;
}

.admin-month h3 {
    margin-bottom: 12px;
    color: #4d616b;
    font-size: 14px;
    text-transform: capitalize;
}

.admin-calendar-scroll {
    overflow-x: auto;
    padding-bottom: 4px;
}

.admin-calendar table {
    width: 100%;
    min-width: 760px;
    border-spacing: 3px;
    table-layout: fixed;
}

.admin-calendar th,
.admin-calendar td {
    height: 30px;
    border-radius: 4px;
    text-align: center;
}

.admin-calendar thead th {
    color: #728188;
    font-size: 10px;
    font-weight: 700;
}

.admin-calendar thead th:first-child,
.admin-calendar tbody th {
    width: 110px;
    text-align: left;
}

.admin-calendar thead th span {
    display: block;
    color: #a0a9ad;
    font-size: 8px;
    text-transform: uppercase;
}

.admin-calendar thead th.is-weekend {
    background: #f6f7f8;
}

.admin-calendar thead th.is-today {
    color: #fff;
    background: var(--primary-blue);
}

.admin-calendar tbody th {
    padding-right: 6px;
    color: #435861;
    font-size: 11px;
    white-space: nowrap;
}

.admin-calendar td.is-free { background: #f1f4f5; }
.admin-calendar td.is-occupied.is-blue { background: #397fa4; }
.admin-calendar td.is-occupied.is-gold { background: #dea42c; }
.admin-calendar td.is-occupied.is-green { background: #4d9b70; }

.apartment-color {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 7px;
    border-radius: 50%;
}

.apartment-color.is-blue { background: #397fa4; }
.apartment-color.is-gold { background: #dea42c; }
.apartment-color.is-green { background: #4d9b70; }

.admin-editor-panel {
    position: sticky;
    top: 96px;
}

.admin-editor-panel textarea {
    min-height: 96px;
    resize: vertical;
}

.admin-editor-panel .form-group small {
    display: block;
    margin-top: 5px;
    color: #849198;
    font-size: 11px;
}

.admin-form-actions {
    display: flex;
    gap: 9px;
}

.admin-form-actions .btn {
    padding-right: 15px;
    padding-left: 15px;
    font-size: 13px;
}

.admin-list-panel {
    margin-top: 20px;
}

.admin-filter {
    display: flex;
    gap: 9px;
    align-items: center;
    color: #68777e;
    font-size: 12px;
    font-weight: 700;
}

.admin-filter select {
    width: auto;
    min-width: 125px;
}

.admin-block-list {
    display: grid;
    gap: 8px;
}

.admin-block-item {
    display: grid;
    grid-template-columns: 150px minmax(210px, 0.75fr) minmax(240px, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 15px 16px;
    border: 1px solid #e3e9ec;
    border-radius: 11px;
}

.admin-block-apartment,
.admin-block-dates strong,
.admin-block-dates span {
    display: block;
}

.admin-block-apartment strong,
.admin-block-dates strong {
    color: #334d5b;
    font-size: 13px;
}

.admin-block-dates span,
.admin-block-note {
    color: #7b898f;
    font-size: 11px;
}

.admin-block-note {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-block-actions {
    display: flex;
    gap: 5px;
}

.admin-icon-button {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 7px 9px;
    color: #4e6875;
    background: #f5f8f9;
    border: 1px solid #dbe4e8;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
}

.admin-icon-button:hover {
    color: var(--primary-blue);
    background: #edf5f8;
}

.admin-icon-button.is-danger {
    color: #9b3f47;
    background: #fff7f7;
    border-color: #ecd6d8;
}

.admin-empty-state {
    padding: 46px 20px;
    color: #7d898f;
    text-align: center;
    border: 1px dashed #ced9de;
    border-radius: 12px;
}

.admin-empty-state i {
    margin-bottom: 12px;
    color: #789baa;
    font-size: 30px;
}

.admin-empty-state h3 {
    color: #48616d;
    font-size: 16px;
}

.admin-empty-state p {
    font-size: 12px;
}

.admin-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px clamp(18px, 4vw, 58px);
    color: #74848c;
    background: #e9eef0;
    border-top: 1px solid #d8e1e5;
    font-size: 11px;
}

.admin-footer span:first-child {
    color: #526b77;
    font-weight: 700;
}

@media (max-width: 1050px) {
    .availability-intro,
    .availability-cta,
    .admin-login-shell,
    .admin-workspace {
        grid-template-columns: 1fr;
    }

    .admin-login-shell {
        gap: 38px;
        min-height: auto;
    }

    .admin-login-copy {
        text-align: center;
    }

    .admin-login-copy > p,
    .admin-login-copy h1 {
        margin-right: auto;
        margin-left: auto;
    }

    .admin-benefits {
        width: fit-content;
        margin-right: auto;
        margin-left: auto;
        text-align: left;
    }

    .admin-login-card {
        width: min(480px, 100%);
        margin: 0 auto;
    }

    .admin-editor-panel {
        position: static;
    }

    .availability-cta {
        display: grid;
        align-items: start;
    }

    .availability-cta .btn {
        justify-self: start;
    }
}

@media (max-width: 820px) {
    .availability-page {
        padding-top: 42px;
    }

    .availability-toolbar,
    .admin-dashboard-heading,
    .admin-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .apartment-tabs {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
    }

    .apartment-tab {
        min-width: 0;
        padding-right: 8px;
        padding-left: 8px;
    }

    .public-calendar-grid,
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-block-item {
        grid-template-columns: 1fr auto;
    }

    .admin-block-dates,
    .admin-block-note {
        grid-column: 1 / 2;
    }

    .admin-block-actions {
        grid-column: 2;
        grid-row: 1 / 4;
        align-items: flex-end;
        flex-direction: column;
    }

    .admin-header-actions a {
        display: none;
    }
}

@media (max-width: 560px) {
    .availability-shell,
    .availability-cta,
    .admin-panel,
    .admin-login-card {
        padding: 19px;
        border-radius: 14px;
    }

    .availability-intro {
        gap: 22px;
    }

    .month-card {
        padding: 13px;
    }

    .calendar-weekdays,
    .calendar-days {
        gap: 4px;
    }

    .calendar-day {
        border-radius: 6px;
        font-size: 11px;
    }

    .admin-main {
        width: min(100% - 22px, 1480px);
        padding-top: 32px;
    }

    .admin-login-shell {
        gap: 28px;
    }

    .admin-login-copy h1 {
        font-size: 35px;
    }

    .admin-brand span {
        display: none;
    }

    .admin-stats-grid {
        gap: 10px;
    }

    .admin-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-block-item {
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 7px;
    }

    .admin-block-note {
        white-space: normal;
    }

    .admin-block-actions {
        align-items: stretch;
        flex-direction: row;
        margin-top: 5px;
    }

    .admin-footer {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }
}
