:root {
    --bg: #ffffff;
    --bg-alt: #faf8f5;
    --surface: #ffffff;
    --text: #24262d;
    --muted: #6f6a63;
    --line: #e6e2dc;
    --primary: #978667;
    --primary-dark: #7a6b50;
    --wood: #978667;
    --wood-dark: #7a6b50;
    --busy: #e4e1dc;
    --busy-text: #a6a19a;
    --pending: #efe6d4;
    --sel: #978667;
    --sel-soft: #eee8dd;
    --radius: 0;
    --shadow: 0 1px 2px rgba(36, 38, 45, .05), 0 8px 24px rgba(36, 38, 45, .06);
    --serif: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15.5px/1.7 var(--sans);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--wood-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); max-width: 26ch; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

.eyebrow {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--wood);
    margin-bottom: .6em;
}

/* Butoane */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4em;
    padding: .8em 1.4em;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--surface);
    color: var(--text);
    font: 600 .95rem/1.2 var(--sans);
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { border-color: var(--text); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-light { background: rgba(255,255,255,.92); border-color: transparent; }
.btn-sm { padding: .55em 1.1em; font-size: .875rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--text); text-decoration: none; margin-right: auto; display: flex; align-items: center; gap: 10px; }
.logo img { width: 52px; height: 52px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--text); text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav a:hover { color: var(--wood); }
.nav-toggle { display: none; }

/* Hero */
.hero {
    position: relative;
    min-height: min(82vh, 760px);
    display: flex; align-items: flex-end;
    background: #1d2420 center / cover no-repeat;
    color: #fff;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1) 30%, rgba(0,0,0,.65)); }
.hero-content { position: relative; padding-block: 64px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 700; margin-bottom: .2em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero .eyebrow { color: #d8c9ad; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 34ch; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }

/* Cifre */
.facts { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 26px 12px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact i { font-size: 1.5rem; color: var(--wood); width: 1.6em; text-align: center; }
.fact p { margin: 0; font-size: 1rem; color: var(--text); }
.fact strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; margin-right: 2px; }

/* Secțiuni */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-alt { background: var(--bg-alt); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split-img { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split-img img { border-radius: 0; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.split-img img:first-child { margin-top: 40px; }
.split-img.single { grid-template-columns: 1fr; }
.split-img.single img { aspect-ratio: 4 / 3; margin-top: 0; cursor: zoom-in; }

/* Camere */
.rooms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.room { margin: 0; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.room img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; transition: transform .6s ease; }
.room:hover img { transform: scale(1.05); }
.room figcaption { padding: 18px 20px 20px; }
.room h3 { margin-bottom: .2em; }
.room p { margin: 0; color: var(--muted); }
.room .room-meta { margin-top: .8em; padding-top: .8em; border-top: 1px solid var(--line); font-size: .85rem; color: var(--wood-dark); font-weight: 500; }

/* Facilități */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.feature { border: 1px solid var(--line); border-radius: 0; padding: 24px; background: var(--surface); }
.feature ul { list-style: none; margin: 0; padding: 0; }
.feature li { padding: .45em 0 .45em 1.5em; position: relative; border-top: 1px solid var(--line); font-size: .95rem; }
.feature li:first-child { border-top: 0; }
.feature li::before { content: ''; position: absolute; left: 2px; top: .95em; width: 8px; height: 8px; border-radius: 0; background: var(--wood); }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 0; cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s ease, filter .6s ease; }
.gallery figure:hover img { transform: scale(1.06); filter: brightness(1.05); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15, 15, 13, .94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 0; margin: auto; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 0; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }

/* Rezervare */
.booking { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; margin-top: 28px; align-items: start; }
.card { background: var(--surface); border-radius: 0; box-shadow: var(--shadow); padding: 24px; }
.calendar-card { position: relative; }
.cal-head { position: absolute; top: 20px; left: 16px; right: 16px; display: flex; justify-content: space-between; pointer-events: none; }
.cal-nav { pointer-events: auto; width: 36px; height: 36px; border-radius: 0; border: 1px solid var(--line); background: var(--surface); font-size: 20px; line-height: 1; cursor: pointer; color: var(--text); }
.cal-nav:hover:not(:disabled) { border-color: var(--text); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.calendar { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; min-height: 320px; }
.month h3 { text-align: center; font-size: 1.05rem; margin: 6px 0 14px; text-transform: capitalize; }
.dow, .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.dow span { font-size: .75rem; color: var(--muted); font-weight: 600; padding-bottom: 6px; }
.day {
    aspect-ratio: 1; border: 0; background: none; border-radius: 0;
    font: 500 .9rem var(--sans); color: var(--text); cursor: pointer; position: relative;
}
.day:hover:not(:disabled) { background: var(--sel-soft); }
.day:disabled { cursor: default; }
.day.past { color: #c8beb3; }
.day.busy { background: var(--busy); color: var(--busy-text); text-decoration: line-through; }
.day.pending { background: var(--pending); color: #9a7a45; }
/* Ziua în care se eliberează: prima jumătate ocupată, a doua liberă */
.day.turnover { background: linear-gradient(135deg, var(--busy) 50%, transparent 50%); }
.day.turnover.pending-edge { background: linear-gradient(135deg, var(--pending) 50%, transparent 50%); }
.day.in-range { background: var(--sel-soft); border-radius: 0; }
.day.sel-start, .day.sel-end { background: var(--sel); color: #fff; }
.day.sel-start { border-radius: 0; }
.day.sel-end { border-radius: 0; }
.day.sel-start.sel-end { border-radius: 0; }
.day.today::after { content: ''; position: absolute; bottom: 5px; left: 50%; translate: -50% 0; width: 4px; height: 4px; border-radius: 0; background: currentColor; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 14px; border-radius: 0; display: inline-block; border: 1px solid var(--line); }
.lg-free { background: var(--surface); }
.lg-busy { background: var(--busy); border-color: var(--busy); }
.lg-pending { background: var(--pending); border-color: var(--pending); }
.lg-sel { background: var(--sel); border-color: var(--sel); }

.booking-form { display: flex; flex-direction: column; gap: 14px; }
.booking-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--muted); }
input, textarea, select {
    font: 400 1rem var(--sans); color: var(--text);
    padding: .7em .85em; border: 1px solid var(--line); border-radius: 0; background: var(--bg);
    width: 100%; min-width: 0;
}
input:focus, textarea:focus { outline: 2px solid var(--wood); outline-offset: 1px; border-color: transparent; }
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.stay-summary { margin: -4px 0 0; padding: 10px 14px; background: var(--bg-alt); border-radius: 0; font-size: .92rem; }
.stay-summary.ok { background: var(--sel-soft); color: var(--wood-dark); font-weight: 600; }
.stay-summary.warn { background: #fbe9e4; color: #9b3b26; }
.form-status { margin: 0; font-weight: 500; }
.form-status.ok { padding: 14px; border-radius: 0; background: var(--sel-soft); color: var(--wood-dark); }
.form-status.err { color: #b3402a; }

/* Împrejurimi */
.attractions { list-style: none; padding: 0; margin: 20px 0 0; }
.attractions li { display: flex; justify-content: space-between; gap: 16px; padding: .75em 0; border-bottom: 1px solid var(--line); }
.km { color: var(--wood); font-weight: 600; white-space: nowrap; }

/* Contact */
.contact-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 20px 0; }
.contact-list dt { font-weight: 600; color: var(--muted); }
.contact-list dd { margin: 0; }
.map { border-radius: 0; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--bg-alt); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.site-footer { background: #1f2127; color: #cfcac2; padding: 36px 0 44px; text-align: center; font-size: .92rem; }
.site-footer p { margin: .3em 0; }
.footer-logo { width: 110px; height: 110px; margin: 0 auto 16px; }
.site-footer a { color: #fff; }
.site-footer .muted { color: #8d8880; }

.fab-group {
    position: fixed; right: 16px; bottom: 16px; z-index: 40;
    display: flex; flex-direction: column; gap: 12px;
}
.fab {
    width: 56px; height: 56px; border-radius: 50%; color: #fff; text-decoration: none;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .15s, filter .15s;
}
.fab:hover { transform: scale(1.07); filter: brightness(1.05); }
.fab-whatsapp { background: #25d366; font-size: 30px; }
.fab-phone { background: var(--text); }

/* Responsive */
@media (max-width: 1000px) {
    .rooms, .features { grid-template-columns: repeat(2, 1fr); }
    .gallery { grid-template-columns: repeat(3, 1fr); }
    .booking { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .nav-toggle {
        display: flex; flex-direction: column; gap: 5px; justify-content: center;
        width: 40px; height: 40px; border: 0; background: none; cursor: pointer; padding: 8px;
    }
    .nav-toggle span { height: 2px; background: var(--text); border-radius: 0; transition: transform .2s; }
    .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
    .nav {
        display: none; position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line);
        padding: 8px 16px 16px;
    }
    .nav.open { display: flex; }
    .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
    .header-inner { gap: 12px; }
    .split { grid-template-columns: 1fr; }
    .facts-grid { grid-template-columns: repeat(2, 1fr); }
    .fact { flex-direction: column; gap: 6px; padding: 18px 8px; text-align: center; }
    .fact:nth-child(3) { border-left: 0; }
    .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
    .fact i { font-size: 1.2rem; }
    .fact p { font-size: .9rem; }
    .fact strong { font-size: 1.25rem; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .calendar { grid-template-columns: 1fr; }
    .calendar .month:nth-child(2) { display: none; }
    }
@media (max-width: 520px) {
    .rooms, .features { grid-template-columns: 1fr; }
    .booking-form .row { grid-template-columns: 1fr; }
    .card { padding: 18px; }
    .cal-head { top: 14px; left: 10px; right: 10px; }
    .hero-actions .btn { flex: 1 1 100%; }
}

/* Admin */
body.admin { background: var(--bg-alt); }
.admin-wrap { padding-block: 32px 64px; }
.login-card { max-width: 380px; margin: 12vh auto 0; display: flex; flex-direction: column; gap: 14px; }
.login-card h1 { margin: 0; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.admin-head h1 { font-size: 1.6rem; margin: 0; }
.alert { background: var(--sel-soft); color: var(--wood-dark); padding: 12px 16px; border-radius: 0; }
.alert-error { background: #fbe9e4; color: #9b3b26; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: .55em 1em; border-radius: 0; text-decoration: none; color: var(--text); font-weight: 500; font-size: .92rem; }
.tabs a.active { background: var(--surface); box-shadow: var(--shadow); }
.badge { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 0; background: var(--wood); color: #fff; font-size: .75rem; text-align: center; }
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: 0; box-shadow: var(--shadow); }
.bookings { width: 100%; border-collapse: collapse; font-size: .92rem; }
.bookings th, .bookings td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.bookings th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.bookings .msg { max-width: 260px; color: var(--muted); }
.actions form { display: flex; gap: 6px; flex-wrap: wrap; }
.status { font-size: .78rem; font-weight: 600; padding: .25em .7em; border-radius: 0; white-space: nowrap; }
.status-pending { background: var(--pending); color: #8a6a35; }
.status-confirmed { background: var(--sel-soft); color: var(--wood-dark); }
.status-blocked { background: var(--busy); color: #6f665d; }
.status-rejected { background: #f3e1dc; color: #9b3b26; }
.empty { padding: 32px; text-align: center; background: var(--surface); border-radius: 0; }
.admin-block { margin-top: 24px; }
.admin-block h2 { font-size: 1.25rem; }
.block-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.block-form .grow { flex: 1 1 220px; }
.copy { font-family: ui-monospace, monospace; font-size: .85rem; margin-bottom: 12px; }

/* ---------- Animații ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

.hero-content > * { animation: fadeUp .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-content > :nth-child(1) { animation-delay: .1s; }
.hero-content > :nth-child(2) { animation-delay: .22s; }
.hero-content > :nth-child(3) { animation-delay: .34s; }
.hero-content > :nth-child(4) { animation-delay: .46s; }

.site-header { transition: box-shadow .3s ease; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(36, 38, 45, .08); }

.room, .feature { transition: transform .35s ease, box-shadow .35s ease; }
.room:hover, .feature:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(36, 38, 45, .1); }
.fact i { transition: transform .35s ease; }
.fact:hover i { transform: translateY(-3px) scale(1.1); }

.fab-whatsapp { animation: pulse 2.4s ease-out 2s infinite; }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
