/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:       #0b1d2e;
    --blue:       #1761a0;
    --sky:        #2e9bc0;
    --amber:      #c07d30;
    --amber-dark: #a36825;
    --sand:       #fdf3e5;
    --white:      #ffffff;
    --off-white:  #f8fafb;
    --light:      #edf2f7;
    --border:     #cdd8e3;
    --text:       #1c2d3a;
    --gray:       #5c7080;
    --radius:     6px;
    --shadow:     0 1px 3px rgba(11,29,46,.06), 0 4px 14px rgba(11,29,46,.09);
    --shadow-hover: 0 8px 28px rgba(11,29,46,.18);
    --transition: .2s ease;
    --max-w:      1200px;
    --font:       'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--off-white);
    line-height: 1.7;
    font-size: 17px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 72px 0; }
.section--alt  { background: var(--light); }
.section--sand { background: var(--sand); }

/* ── Header & Nav ─────────────────────────────────────────────────────────── */
.site-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    max-width: var(--max-w);
    margin: 0 auto;
    height: 64px;
}

.site-logo {
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-decoration: none;
}
.site-logo__name {
    font-family: var(--font);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: .2px;
}
.site-logo__sub {
    font-size: .68rem;
    color: rgba(255,255,255,.45);
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

/* ── Navigation ── */
.main-nav { display: flex; align-items: center; gap: 2px; list-style: none; }

.main-nav > li { position: relative; }

.main-nav > li > a,
.main-nav > li > button {
    display: block;
    padding: 7px 13px;
    color: rgba(255,255,255,.75);
    font-size: .875rem;
    font-weight: 500;
    border-radius: 4px;
    transition: background var(--transition), color var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    white-space: nowrap;
    letter-spacing: .15px;
}
.main-nav > li > a:hover,
.main-nav > li > button:hover,
.main-nav > li.active > a {
    background: rgba(255,255,255,.1);
    color: var(--white);
    text-decoration: none;
}
.main-nav > li.active > a {
    color: var(--white);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(11,29,46,.14);
    min-width: 210px;
    list-style: none;
    z-index: 200;
    padding: 6px 0;
    /* Unsichtbarer Puffer oben, damit der Hover beim Überfahren nicht abbricht */
    margin-top: 0;
    border-top: 6px solid transparent;
    background-clip: padding-box;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }

.dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    color: var(--text);
    font-size: .88rem;
    transition: background var(--transition);
}
.dropdown-menu li a:hover {
    background: var(--light);
    text-decoration: none;
    color: var(--navy);
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
    background: var(--navy);
    color: var(--white);
    padding: 96px 24px 88px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle radial glow */
.hero::after {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(23,97,160,.35) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero__wave {
    font-family: var(--font);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -.5px;
}
.hero__sub {
    font-size: 1.1rem;
    opacity: .75;
    max-width: 520px;
    margin: 0 auto 36px;
    font-weight: 400;
    line-height: 1.7;
}
.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 34px;
    background: var(--amber);
    color: var(--white);
    font-weight: 600;
    border-radius: 4px;
    font-size: .97rem;
    letter-spacing: .3px;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.hero__cta:hover {
    background: var(--amber-dark);
    text-decoration: none;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,.3);
}

/* ── Section Title ─────────────────────────────────────────────────────────── */
.section-title {
    font-family: var(--font);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    letter-spacing: -.3px;
    line-height: 1.2;
}
.section-lead {
    color: var(--gray);
    margin-bottom: 40px;
    font-size: 1rem;
    max-width: 560px;
}
.section-header {
    margin-bottom: 40px;
}
.section-header::before {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--amber);
    margin-bottom: 18px;
    border-radius: 2px;
}
.section-header .section-title { margin-bottom: 8px; }

/* ── Property Grid ─────────────────────────────────────────────────────────── */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.property-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
}
.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(11,29,46,.05);
}

.property-card__img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    background: var(--light);
}
.property-card__img-placeholder {
    width: 100%;
    height: 230px;
    background: linear-gradient(150deg, #1a3a5a 0%, #0b1d2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.3);
    font-size: 3rem;
}

.property-card__body {
    padding: 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.property-card__category {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    color: var(--amber);
}

.property-card__name {
    font-family: var(--font);
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    line-height: 1.25;
}

.property-card__desc {
    color: var(--gray);
    font-size: .88rem;
    line-height: 1.55;
    flex: 1;
}

.property-card__meta {
    display: flex;
    gap: 14px;
    font-size: .82rem;
    color: var(--gray);
    flex-wrap: wrap;
    padding-top: 4px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}
.property-card__meta span { display: flex; align-items: center; gap: 4px; }

.property-card__footer {
    padding: 0 22px 20px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    border: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition), color var(--transition);
    text-align: center;
    letter-spacing: .15px;
}
.btn-primary {
    background: var(--blue);
    color: var(--white);
    width: 100%;
}
.btn-primary:hover {
    background: var(--navy);
    text-decoration: none;
    color: var(--white);
}
.btn-secondary {
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--light);
    text-decoration: none;
    border-color: #b0c0ce;
}
.btn-danger { background: #c0392b; color: var(--white); }
.btn-danger:hover { background: #a02f24; color: var(--white); text-decoration: none; }
.btn-sm { padding: 5px 13px; font-size: .8rem; }

/* ── Property Detail ───────────────────────────────────────────────────────── */
.property-detail { padding-top: 48px; padding-bottom: 48px; }

.property-detail__header { margin-bottom: 32px; }

.property-detail__gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    margin-bottom: 40px;
    border-radius: var(--radius);
    overflow: hidden;
    max-height: 480px;
}
.property-detail__gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.property-detail__gallery-main { grid-row: 1 / 3; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 10px; }
.gallery-thumbs img { flex: 1; object-fit: cover; }

.gallery-full { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 40px; }
.gallery-full img { border-radius: var(--radius); height: 180px; object-fit: cover; cursor: zoom-in; transition: transform var(--transition), opacity var(--transition); }
.gallery-full img:hover { transform: scale(1.02); opacity: .92; }

.property-detail__body { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }

.property-detail__desc { line-height: 1.8; color: var(--text); font-size: 1rem; }

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    margin-top: 24px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: var(--text);
    padding: 6px 0;
}
.feature-item:not(.feature-item--icon)::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amber);
    flex-shrink: 0;
}
.feature-item__icon {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-item__icon svg { width: 100%; height: 100%; stroke: var(--blue); stroke-width: 1.8; }

/* Sidebar */
.property-sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.sidebar-card__title {
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
}

/* Pricing table */
.pricing-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.pricing-table th { text-align: left; padding: 8px 6px; color: var(--gray); font-weight: 600; border-bottom: 2px solid var(--border); font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; }
.pricing-table td { padding: 9px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table .price { font-weight: 700; color: var(--navy); white-space: nowrap; }
.pricing-table .period { color: var(--text); }
.pricing-table .label { font-size: .78rem; color: var(--gray); }

/* Notes list */
.notes-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.notes-list li { font-size: .88rem; color: var(--gray); display: flex; gap: 8px; align-items: flex-start; }
.notes-list li::before { content: '–'; color: var(--amber); flex-shrink: 0; font-weight: 700; }

/* Contact box */
.contact-box {
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    border-top: 3px solid var(--amber);
}
.contact-box a { color: rgba(255,255,255,.8); }
.contact-box a:hover { color: var(--white); }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--gray); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--blue); }
.breadcrumb__sep { color: var(--border); }

/* ── Info Boxes ────────────────────────────────────────────────────────────── */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-left: 3px solid var(--amber);
    text-align: left;
}
.info-card__icon { margin-bottom: 14px; }
.info-card__icon svg { width: 2rem; height: 2rem; stroke: var(--blue); stroke-width: 1.5; display: block; }
.lucide { display: inline-block; vertical-align: -0.15em; }
.property-card__meta .lucide,
.property-detail__header .lucide { width: 1em; height: 1em; stroke: currentColor; stroke-width: 2; }
.sidebar-card__title .lucide { width: 1.1em; height: 1.1em; stroke: currentColor; stroke-width: 1.8; margin-right: 2px; }
.info-card__title {
    font-family: var(--font);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    font-size: 1.05rem;
}
.info-card__text { color: var(--gray); font-size: .9rem; line-height: 1.55; }

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .88rem; color: var(--navy); letter-spacing: .1px; }
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .95rem;
    font-family: var(--font);
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--white);
    color: var(--text);
}
.form-control:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(23,97,160,.12);
}
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { height: 42px; padding-top: 0; padding-bottom: 0; }
.flatpickr-wrapper { width: 100%; }

/* ── Guestbook ─────────────────────────────────────────────────────────────── */
.guestbook-entries { display: flex; flex-direction: column; gap: 20px; margin-bottom: 48px; }
.gb-entry {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-left: 3px solid var(--sky);
}
.gb-entry__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.gb-entry__name { font-weight: 700; color: var(--navy); font-family: var(--font); }
.gb-entry__date { font-size: .8rem; color: var(--gray); }
.gb-entry__prop { font-size: .82rem; color: var(--amber); margin-bottom: 8px; font-weight: 500; }
.gb-entry__text { color: var(--text); line-height: 1.65; font-size: .95rem; }

/* ── Page content ──────────────────────────────────────────────────────────── */
.page-content { max-width: 760px; }
.page-content h2 { font-family: var(--font); font-size: 1.4rem; color: var(--navy); margin: 36px 0 12px; }
.page-content h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 24px 0 8px; }
.page-content p { margin-bottom: 16px; color: var(--text); }
.page-content ul { margin: 0 0 16px 20px; color: var(--text); }
.page-content li { margin-bottom: 6px; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
    background: #08192b;
    color: rgba(255,255,255,.6);
    padding: 56px 0 28px;
    border-top: 3px solid var(--amber);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col__title { color: var(--white); font-weight: 600; margin-bottom: 14px; font-size: .92rem; letter-spacing: .3px; text-transform: uppercase; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { color: rgba(255,255,255,.55); font-size: .88rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--white); text-decoration: none; }
.footer-col p { font-size: .88rem; line-height: 1.65; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .82rem;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--white); }

/* ── Admin ─────────────────────────────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--navy); padding: 0; }
.admin-sidebar__brand { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-sidebar__brand h1 { color: var(--white); font-size: 1.05rem; font-family: var(--font); }
.admin-sidebar__brand p { color: rgba(255,255,255,.45); font-size: .75rem; }
.admin-nav { list-style: none; padding: 12px 0; }
.admin-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: rgba(255,255,255,.7);
    font-size: .88rem;
    transition: background var(--transition), color var(--transition);
}
.admin-nav li a:hover, .admin-nav li.active a {
    background: rgba(255,255,255,.08);
    color: var(--white);
    text-decoration: none;
}
.admin-main { background: var(--light); overflow-y: auto; }
.admin-topbar {
    background: var(--white);
    padding: 16px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-topbar h2 { font-size: 1.15rem; color: var(--navy); font-family: var(--font); }
.admin-content { padding: 32px; }
.admin-sidebar-overlay { display: none; }
.admin-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
.admin-hamburger span {
    display: block;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all .2s;
}

.table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th { background: var(--navy); color: var(--white); padding: 12px 16px; text-align: left; font-size: .82rem; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .9rem; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #f5f8fa; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: .72rem; font-weight: 700; letter-spacing: .3px; }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-gray { background: var(--light); color: var(--gray); }

.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: .92rem; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ── Lightbox ──────────────────────────────────────────────────────────────── */
.lightbox {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 4px; object-fit: contain; }
.lightbox__close { position: absolute; top: 16px; right: 20px; color: var(--white); font-size: 2rem; cursor: pointer; background: none; border: none; opacity: .7; transition: opacity .15s; }
.lightbox__close:hover { opacity: 1; }

/* ── Responsive Layout Grids ───────────────────────────────────────────────── */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    align-items: start;
}
.two-col-equal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.date-inputs-row {
    display: grid;
    grid-template-columns: 1fr 1fr 110px;
    gap: 16px;
    align-items: start;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .property-detail__body { grid-template-columns: 1fr; }
    .property-detail__gallery { grid-template-columns: 1fr; grid-template-rows: auto; max-height: none; }
    .property-detail__gallery-main { grid-row: auto; }
    .gallery-thumbs { flex-direction: row; }
    .gallery-thumbs img { height: 100px; flex: 1; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar {
        display: none;
        position: fixed;
        top: 0; left: 0; bottom: 0;
        width: 260px;
        z-index: 600;
        overflow-y: auto;
    }
    .admin-sidebar.sidebar-open { display: block; }
    .admin-sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 599;
    }
    .admin-sidebar-overlay.sidebar-open { display: block; }
    .admin-hamburger { display: flex; }
    .admin-content { padding: 20px; }
}

@media (max-width: 700px) {
    .main-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); padding: 12px 0; }
    .main-nav.open { display: flex; }
    .main-nav > li > a, .main-nav > li > button { padding: 12px 20px; border-radius: 0; }
    .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 20px; background: rgba(0,0,0,.15); }
    .nav-toggle { display: flex; }
    .header-inner { position: relative; }
    .hero__wave { font-size: 2.1rem; }
    .property-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .section { padding: 48px 0; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .layout-with-sidebar,
    .two-col-equal { grid-template-columns: 1fr; gap: 24px; }
    .date-inputs-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .date-inputs-row { grid-template-columns: 1fr; }
    /* iOS: verhindert Auto-Zoom beim Fokus auf Eingabefelder */
    .form-control, select.form-control { font-size: 16px; }
}

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* ── Admin Image Grid ──────────────────────────────────────────────────────── */
.img-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}
.img-admin-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #f0f0f0;
}
.img-admin-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.img-admin-num {
    position: absolute;
    bottom: 4px;
    left: 6px;
    background: rgba(0,0,0,.5);
    color: #fff;
    font-size: .7rem;
    padding: 1px 5px;
    border-radius: 3px;
}
.img-admin-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,.55);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    text-decoration: none;
    line-height: 1;
    transition: background .15s;
}
.img-admin-delete:hover { background: #e74c3c; }
.img-multi-check {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.45);
    border-radius: 50%;
    cursor: pointer;
}
.img-multi-check input[type=checkbox] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #e74c3c;
}
.img-admin-item.multi-selected {
    outline: 3px solid #e74c3c;
    outline-offset: -3px;
}
.img-drag-handle {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0,0,0,.45);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: grab;
    line-height: 1;
    user-select: none;
    transition: background .15s;
}
.img-drag-handle:hover { background: rgba(0,0,0,.7); }
.img-admin-item[draggable="true"] { cursor: default; }
.prop-drag-handle {
    color: var(--gray);
    cursor: grab;
    font-size: 1.1rem;
    user-select: none;
    padding: 0 4px;
    line-height: 1;
}
.prop-drag-handle:active { cursor: grabbing; }

/* ── Property Gallery – Airbnb Desktop Layout ──────────────────────────────── */
.gallery-airbnb {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 6px;
    height: 480px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
    position: relative;
}
.gallery-airbnb--single { grid-template-columns: 1fr; }
.gallery-airbnb__main {
    overflow: hidden;
    cursor: zoom-in;
}
.gallery-airbnb__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.gallery-airbnb__main:hover img { transform: scale(1.02); }
.gallery-airbnb__thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 6px;
}
.gallery-airbnb__thumb {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}
.gallery-airbnb__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.gallery-airbnb__thumb:hover img { transform: scale(1.04); }
.gallery-airbnb__empty { background: var(--light); cursor: default; }
.gallery-showall {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: #fff;
    border: 1.5px solid #222;
    border-radius: 8px;
    padding: 7px 13px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background .15s;
    font-family: var(--font);
    white-space: nowrap;
    z-index: 10;
}
.gallery-showall:hover { background: var(--light); }

/* Desktop: show Airbnb grid, hide carousel */
@media (min-width: 701px) {
    .gallery-carousel-wrap { display: none; }
}
/* Mobile: hide Airbnb grid, show carousel */
@media (max-width: 700px) {
    .gallery-airbnb { display: none; }
}

/* ── Upgraded Lightbox Navigation ───────────────────────────────────────────── */
.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    line-height: 1;
    z-index: 2;
}
.lightbox__nav:hover { background: rgba(255,255,255,.3); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox:not(.has-prev) .lightbox__nav--prev { display: none; }
.lightbox:not(.has-next) .lightbox__nav--next { display: none; }
.lightbox__counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.7);
    font-size: .88rem;
    letter-spacing: .5px;
}

/* ── Property Gallery Carousel ─────────────────────────────────────────────── */
.gallery-carousel-wrap {
    position: relative;
    margin-bottom: 32px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--light);
}
.gallery-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.gallery-carousel::-webkit-scrollbar { display: none; }
.gallery-carousel img {
    flex: 0 0 100%;
    width: 100%;
    height: 420px;
    object-fit: cover;
    scroll-snap-align: start;
    cursor: zoom-in;
    display: block;
}
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.45);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 2;
}
.gallery-btn:hover { background: rgba(0,0,0,.7); }
.gallery-btn--prev { left: 12px; }
.gallery-btn--next { right: 12px; }
.gallery-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}
.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
}
.gallery-dot.active { background: #fff; transform: scale(1.3); }

@media (max-width: 700px) {
    .gallery-carousel img { height: 260px; }
    .gallery-btn { width: 36px; height: 36px; font-size: 1.3rem; }
}

/* ── Booking Calendar ───────────────────────────────────────────────────────── */
.cal-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.cal-month {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}
.cal-month__title {
    background: var(--navy);
    color: #fff;
    text-align: center;
    padding: 10px 8px;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .3px;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 8px;
    background: var(--bg);
}
.cal-day-header {
    text-align: center;
    font-size: .72rem;
    font-weight: 700;
    color: var(--gray);
    padding: 4px 0;
}
/* Base day = pastel green (free) */
.cal-day {
    text-align: center;
    font-size: .8rem;
    padding: 6px 2px;
    border-radius: 4px;
    background: #c8f0d4;
    color: #1a4f2a;
    line-height: 1;
}
.cal-day--empty     { background: transparent; color: transparent; pointer-events: none; }

/* Past days: neutral gray, regardless of status */
.cal-day--past      { background: #efefef !important; color: #bbb !important; }

.cal-day--today     { font-weight: 700; outline: 2px solid var(--blue); outline-offset: -2px; }

/* Fully booked = pastel red */
.cal-day--booked    { background: #ffc5c5; color: #7a1a1a; }

/* Blocked (admin only) = gray */
.cal-day--blocked {
  background: #e0e0e0;
  color: #999;
}
/* Block-Start (admin): frei oben-links → grau unten-rechts */
.cal-day--block_in {
  background: linear-gradient(to bottom right, #c8f0d4 50%, #e0e0e0 50%);
  color: #333;
}
/* Block-Ende (admin): grau oben-links → frei unten-rechts */
.cal-day--block_out {
  background: linear-gradient(to bottom right, #e0e0e0 50%, #c8f0d4 50%);
  color: #333;
}
/* Abreisetag (rot) + Block-Start (grau) */
.cal-day--checkout_blockin {
  background: linear-gradient(to bottom right, #ffc5c5 50%, #e0e0e0 50%);
  color: #333;
}
/* Block-Ende + Block-Start (selber Tag): komplett grau mit weißer Diagonale */
.cal-day--blockout_blockin {
  background: linear-gradient(to bottom right, #e0e0e0 calc(50% - 1px), #fff 50%, #e0e0e0 calc(50% + 1px));
  color: #999;
}
/* Block-Ende (grau) + Buchungs-Anreisetag (rot) */
.cal-day--blockout_checkin {
  background: linear-gradient(to bottom right, #e0e0e0 50%, #ffc5c5 50%);
  color: #333;
}

/* Arrival (Anreisetag): green top-left, red triangle bottom-right */
.cal-day--checkin   {
    background: linear-gradient(to bottom right, #c8f0d4 50%, #ffc5c5 50%);
    color: #333;
}

/* Departure (Abreisetag): red triangle top-left, green bottom-right */
.cal-day--checkout  {
    background: linear-gradient(to bottom right, #ffc5c5 50%, #c8f0d4 50%);
    color: #333;
}

/* Same-day checkin + checkout: diagonal black line, red on both sides */
.cal-day--checkinout {
    background: linear-gradient(
        to bottom right,
        #ffc5c5 calc(50% - 1px),
        #333    calc(50% - 1px),
        #333    calc(50% + 1px),
        #ffc5c5 calc(50% + 1px)
    );
    color: #333;
}

/* Legend */
.cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
    font-size: .83rem;
}
.cal-legend__item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray);
}
.cal-legend__item::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
}
.cal-legend__item--free::before       { background: #c8f0d4; border: 1px solid #aadcbb; }
.cal-legend__item--booked::before     { background: #ffc5c5; border: 1px solid #f5a0a0; }
.cal-legend__item--checkin::before    { background: linear-gradient(to bottom right, #c8f0d4 50%, #ffc5c5 50%); }
.cal-legend__item--checkout::before   { background: linear-gradient(to bottom right, #ffc5c5 50%, #c8f0d4 50%); }
.cal-legend__item--checkinout::before {
    background: linear-gradient(
        to bottom right,
        #ffc5c5 calc(50% - 1px),
        #333    calc(50% - 1px),
        #333    calc(50% + 1px),
        #ffc5c5 calc(50% + 1px)
    );
}

/* Calendar extra months: always visible on desktop, collapsible on mobile */
.cal-extra-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-bottom: 24px; }
.cal-toggle-wrap { display: none; justify-content: center; margin: 4px 0 16px; }
.cal-toggle-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--blue);
    font-size: .88rem;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font);
    transition: background .15s, color .15s;
}
.cal-toggle-btn:hover { background: var(--light); color: var(--navy); }

@media (max-width: 700px) {
    .cal-wrapper { grid-template-columns: 1fr 1fr; }
    .cal-extra-months { grid-template-columns: 1fr 1fr; display: none; }
    .cal-extra-months.open { display: grid; }
    .cal-toggle-wrap { display: flex; }
}
@media (max-width: 480px) {
    .cal-wrapper,
    .cal-extra-months { grid-template-columns: 1fr; }
}
