@charset "UTF-8";
/* =========================================================
   Estra — Design tokens + base
   ========================================================= */
:root {
  /* Color — moody walnut + brass + dusty rose,
     pulled from the apartment hero photo */
  --bg: #F2EDE3; /* warmer linen */
  --bg-2: #E8E1D2; /* dusty oat */
  --surface: #FBF7EE; /* soft cream paper */
  --ink: #1C1610; /* deep walnut */
  --ink-2: #3A2F25;
  --muted: #857664;
  --line: #DFD5C3;
  --line-2: #C9BCA4;
  --clay: oklch(0.58 0.07 70); /* brass accent */
  --clay-soft: oklch(0.92 0.03 70);
  --danger: oklch(0.505 0.17 27); /* readable error red (form validation) */
  --danger-bg: oklch(0.955 0.03 27); /* soft red tint */
  --danger-border: oklch(0.80 0.11 27);
  --rose: oklch(0.78 0.045 25); /* dusty rose, echoes the upholstery */
  --walnut: #2A2017; /* dark section background */
  --walnut-2: #3A2D20;
  --sage: oklch(0.62 0.04 145);
  --shadow-sm: 0 1px 2px rgba(26,23,20,0.04), 0 1px 3px rgba(26,23,20,0.04);
  --shadow-md: 0 6px 18px -8px rgba(26,23,20,0.10), 0 2px 6px rgba(26,23,20,0.04);
  --shadow-lg: 0 24px 48px -24px rgba(26,23,20,0.18), 0 8px 16px -8px rgba(26,23,20,0.06);
  /* Type */
  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Geist", "Manrope", "Helvetica Neue", Helvetica, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
}

* {
  box-sizing: border-box;
}

html, body, #root {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(40px, 7vw, 88px);
}

h2 {
  font-size: clamp(32px, 4.5vw, 56px);
}

h3 {
  font-size: clamp(22px, 2.4vw, 30px);
}

p {
  margin: 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}
.section {
  padding: 80px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 120px 0;
  }
}
/* =========================================================
   Top nav
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bg) 80%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.nav.scrolled {
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Wordmark — mutation of the EstraPlast parent logo.
   Same bold compressed sans + two-colour split; brass swapped in
   for the parent's blue to signal a sibling brand. */
.logo {
  font-family: "Archivo Black", "Geist", system-ui, sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  text-transform: none;
  line-height: 1;
}

.logo .l-a {
  color: var(--ink);
}

.logo .l-b {
  color: var(--clay);
}

.logo-dot {
  display: none;
}

.footer .logo {
  font-size: 30px;
}

.footer .logo .l-a {
  color: #F4ECD8;
}

.footer .logo .l-b {
  color: oklch(72% 0.09 75deg);
}

.nav-links {
  display: none;
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}
.nav-link {
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link.active {
  color: var(--ink);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--clay);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13.5px;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.2s ease;
}

.nav-cta:hover {
  background: #000;
  transform: translateY(-1px);
}

.nav-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
}

@media (min-width: 900px) {
  .nav-burger {
    display: none;
  }
}
.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.nav-mobile a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-family: var(--serif);
}

.nav-mobile a:last-of-type {
  border-bottom: none;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: #000;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}

.btn-ghost:hover {
  background: var(--bg-2);
}

.btn-clay {
  background: var(--clay);
  color: #fff;
}

.btn-clay:hover {
  filter: brightness(0.95);
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 16px 22px;
}

/* =========================================================
   Hero (Home)
   ========================================================= */
.hero {
  padding-top: 24px;
  padding-bottom: 0;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-meta .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
}

.hero-headline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 40px;
}

@media (min-width: 900px) {
  .hero-headline {
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
  }
}
.hero h1 .accent {
  font-style: italic;
  color: var(--clay);
}

.hero-sub {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 38ch;
  line-height: 1.5;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: var(--shadow-lg);
}

.hero-image {
  width: 100%;
  height: clamp(360px, 60vh, 640px);
  object-fit: cover;
  display: block;
}

.hero-overlay-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: color-mix(in oklch, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--r-lg);
  border: 1px solid color-mix(in oklch, white 60%, transparent);
}

@media (min-width: 768px) {
  .hero-overlay-card {
    bottom: 32px;
    left: 32px;
    right: auto;
    max-width: 560px;
  }
}
.hero-overlay-card .left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-overlay-card .price {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
}

.hero-overlay-card .price small {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--sans);
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

/* =========================================================
   Highlights row
   ========================================================= */
.highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 64px;
}

@media (min-width: 768px) {
  .highlights {
    grid-template-columns: repeat(4, 1fr);
  }
}
.highlight {
  background: var(--surface);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.highlight .num {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
}

.highlight .lbl {
  font-size: 13px;
  color: var(--muted);
}

/* =========================================================
   Section header
   ========================================================= */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 48px;
  max-width: 720px;
}

.section-head .title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-head h2 .accent {
  font-style: italic;
  color: var(--clay);
}

/* =========================================================
   About / Description
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
  }
}
.about-text p {
  font-size: 17px;
  color: var(--ink-2);
  margin-bottom: 16px;
  line-height: 1.6;
}

.about-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-2);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   Amenities grid
   ========================================================= */
.amenities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

@media (min-width: 768px) {
  .amenities {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1100px) {
  .amenities {
    grid-template-columns: repeat(4, 1fr);
  }
}
.amenity {
  background: var(--surface);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 130px;
}

.amenity .ico {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--clay);
}

.amenity .name {
  font-size: 15px;
}

.amenity .desc {
  font-size: 13px;
  color: var(--muted);
}

/* =========================================================
   Gallery (Task 005) — semantic <img> tiles for /galeria/.
   Grid geometry (.detail-grid, .detail-tile spans + height) lives in
   _admin.scss; here the tile is an accessible <button> carrying a real
   responsive <img>, replacing the former background-image .crop <div>.
   These reset props are ones _admin.scss does not set, so author-over-UA
   makes them win regardless of import order.
   ========================================================= */
.detail-tile.js-lightbox {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: zoom-in;
}

.detail-tile .tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.detail-tile:hover .tile-img {
  transform: scale(1.04);
}

.detail-tile:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .detail-tile .tile-img {
    transition: none;
  }
  .detail-tile:hover .tile-img {
    transform: none;
  }
}
/* =========================================================
   Location row
   ========================================================= */
.location {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .location {
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
  }
}
.map-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #E8E2D5 0%, #D9D1BE 100%);
  min-height: 360px;
  border: 1px solid var(--line);
}

.map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-pin {
  position: absolute;
  top: 48%;
  left: 56%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 8px 16px rgba(26, 23, 20, 0.18));
}

.map-pin .dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--clay);
  box-shadow: 0 0 0 6px color-mix(in oklch, var(--clay) 30%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}

.map-pin .label {
  margin-top: 12px;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  white-space: nowrap;
  border: 1px solid var(--line);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 6px color-mix(in oklch, var(--clay) 30%, transparent);
  }
  50% {
    box-shadow: 0 0 0 14px color-mix(in oklch, var(--clay) 0%, transparent);
  }
}
.location-list {
  display: flex;
  flex-direction: column;
}

.loc-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.loc-item:last-child {
  border-bottom: none;
}

.loc-item .name {
  font-size: 16px;
}

.loc-item .dist {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--mono);
}

/* =========================================================
   Calendar
   ========================================================= */
.cal-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cal-head .month {
  font-family: var(--serif);
  font-size: 22px;
}

.cal-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  transition: background 0.2s ease;
}

.cal-nav:hover {
  background: var(--bg);
}

.cal-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

/* role="row" wrappers must not break the 7-column grid layout. */
.cal-dow-row, .cal-week {
  display: contents;
}

.cal-dow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
  padding: 8px 0 12px;
  text-transform: uppercase;
}

.cal-day {
  aspect-ratio: 1;
  border: 0;
  background: transparent;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ink);
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}

.cal-day:hover:not([aria-disabled=true]):not(.empty) {
  background: var(--bg-2);
}

.cal-day.empty {
  visibility: hidden;
}

.cal-day.past {
  color: var(--line-2);
}

.cal-day.booked {
  color: var(--line-2);
  text-decoration: line-through;
}

/* Days are aria-disabled (still focusable) rather than hard-disabled, so the
   context-sensitive reason stays discoverable and a blocked day can still be a checkout. */
.cal-day[aria-disabled=true] {
  cursor: not-allowed;
}

.cal-day:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 2px;
  position: relative;
  z-index: 1;
}

.cal-day.today::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--clay);
}

.cal-day.in-range {
  background: var(--clay-soft);
  border-radius: 0;
}

.cal-day.range-start {
  background: var(--ink);
  color: var(--bg);
  border-radius: 10px 0 0 10px;
}

.cal-day.range-end {
  background: var(--ink);
  color: var(--bg);
  border-radius: 0 10px 10px 0;
}

.cal-day.range-start.range-end {
  border-radius: 10px;
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.cal-legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}

.cal-legend .dot.available {
  background: var(--surface);
  border: 1px solid var(--line);
}

.cal-legend .dot.selected {
  background: var(--ink);
}

.cal-legend .dot.booked {
  background: var(--bg-2);
  border: 1px solid var(--line);
}

/* Screen-reader-only live region for month/range/error announcements. */
.cal-live, #estra-availability .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Contact form
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1000px) {
  .contact-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.field label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  font-family: var(--mono);
}

.field input,
.field textarea,
.field select {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ink) 8%, transparent);
}

.field.error input,
.field.error textarea {
  border-color: var(--clay);
}

.field .err {
  font-size: 12px;
  color: var(--clay);
  font-family: var(--sans);
  letter-spacing: 0;
  text-transform: none;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Prominent, reusable validation alert for the enquiry form (missing dates / too-short stay /
   server-side rejection). Hidden until .is-visible; high-contrast red, not the muted label colour. */
.form-alert {
  display: none;
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
  border-left: 4px solid var(--danger);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}

.form-alert.is-visible {
  display: block;
}

.form-alert:focus {
  outline: 3px solid var(--danger);
  outline-offset: 2px;
}

.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-bottom: 22px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 14px;
}

.summary-row + .summary-row {
  border-top: 1px dashed var(--line);
}

.summary-row .lbl {
  color: var(--muted);
  font-size: 13px;
}

.summary-row .val {
  font-family: var(--serif);
  font-size: 18px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  z-index: 200;
}

@keyframes toastIn {
  from {
    transform: translate(-50%, 20px);
    opacity: 0;
  }
}
/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--ink);
  color: #C8BFB1;
  padding: 80px 0 40px;
  margin-top: 100px;
}

.footer .container {
  color: inherit;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8A7F72;
  margin-bottom: 18px;
  font-weight: 400;
}

.footer .logo {
  color: var(--bg);
  font-size: 36px;
}

.footer-tagline {
  font-family: var(--serif);
  font-size: 22px;
  color: #E5DDD0;
  max-width: 26ch;
  margin-top: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--bg);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 12px;
  color: #8A7F72;
  flex-wrap: wrap;
  gap: 16px;
}

/* =========================================================
   Admin
   ========================================================= */
.admin-shell {
  min-height: 100vh;
  background: var(--bg);
}

.login-card {
  width: 100%;
  max-width: 440px;
  margin: 80px auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.login-card h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.login-card .sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.login-hint {
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--r-sm);
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
}

.admin-top {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

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

.admin-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  overflow-x: auto;
}

.admin-tab {
  padding: 8px 16px;
  border: none;
  background: transparent;
  font-size: 13px;
  border-radius: 999px;
  color: var(--ink-2);
  white-space: nowrap;
}

.admin-tab.active {
  background: var(--ink);
  color: var(--bg);
}

.admin-content {
  padding: 40px 0 80px;
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.admin-card h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.admin-card .desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.photo-manager {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 700px) {
  .photo-manager {
    grid-template-columns: repeat(4, 1fr);
  }
}
.photo-tile {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-2);
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-tile .actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.photo-tile:hover .actions {
  opacity: 1;
}

.photo-tile .actions button {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.photo-tile.add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--line-2);
  background: transparent;
  color: var(--muted);
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.photo-tile.add:hover {
  background: var(--bg-2);
  border-color: var(--clay);
  color: var(--clay);
}

.admin-cal-day {
  cursor: pointer;
}

.admin-cal-day.blocked {
  background: var(--clay-soft);
  color: var(--clay);
  text-decoration: line-through;
}

.admin-cal-day:hover:not(.empty):not(.past) {
  background: var(--bg-2);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 24px;
}

@media (min-width: 700px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat {
  background: var(--surface);
  padding: 22px 18px;
}

.stat .num {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
}

.stat .lbl {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.text-edit-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 700px) {
  .text-edit-row {
    grid-template-columns: 1fr 1fr;
  }
}
.req-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.req-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
}

.req-item .who {
  font-size: 14px;
}

.req-item .meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.req-item .badge {
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge.new {
  background: var(--clay-soft);
  color: var(--clay);
}

.badge.replied {
  background: var(--bg-2);
  color: var(--muted);
}

/* Tags */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.tag .ico {
  color: var(--clay);
}

/* Star */
.star {
  color: var(--clay);
}

/* Dark inverted section — for editorial moments */
.dark-section {
  background: var(--walnut);
  color: #E8DFCB;
}

.dark-section .eyebrow {
  color: #B0A189;
}

.dark-section h1, .dark-section h2, .dark-section h3, .dark-section h4 {
  color: #F4ECD8;
}

.dark-section .muted {
  color: #A89A82;
}

.dark-section .btn-ghost {
  color: #F4ECD8;
  border-color: rgba(244, 236, 216, 0.22);
}

.dark-section .btn-ghost:hover {
  background: rgba(244, 236, 216, 0.08);
}

.dark-section .accent {
  color: var(--rose) !important;
}

.dark-section .hr {
  border-top: 1px solid rgba(244, 236, 216, 0.12);
}

/* Hero — full-bleed photo */
.hero-photo-tall {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  height: clamp(440px, 78vh, 760px);
}

.hero-photo-tall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.hero-photo-tall::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 15, 11, 0) 40%, rgba(20, 15, 11, 0.55) 100%);
  pointer-events: none;
}

.hero-photo-tall .corner-info {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 14px;
  background: rgba(244, 236, 216, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-transform: uppercase;
}

/* Detail-crop grid (gallery replacement using single photo) */
.detail-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, 1fr);
}

.detail-tile {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
  height: clamp(220px, 30vw, 340px);
  grid-column: span 12;
}

@media (min-width: 800px) {
  /* alternate the wide side every row: wide-left, then wide-right */
  .detail-tile:nth-child(4n+1), .detail-tile:nth-child(4n) {
    grid-column: span 7;
  }
  .detail-tile:nth-child(4n+2), .detail-tile:nth-child(4n+3) {
    grid-column: span 5;
  }
}
.detail-tile.tall {
  aspect-ratio: 4/5;
}

.detail-tile.wide {
  aspect-ratio: 16/9;
}

.detail-tile .crop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s ease;
}

.detail-tile:hover .crop {
  transform: scale(1.04);
}

.detail-tile .cap {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(244, 236, 216, 0.92);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
}

/* Page transition (subtle) */
.page-fade {
  animation: pageFade 0.35s ease;
}

@keyframes pageFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Utilities */
.flex {
  display: flex;
}

.row {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.gap-24 {
  gap: 24px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.muted {
  color: var(--muted);
}

.serif {
  font-family: var(--serif);
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.text-center {
  text-align: center;
}

/* =========================================================
   Phase 1 overrides (EstraStay Umbraco build)
   Mobile nav uses the [hidden] attribute instead of React
   conditional rendering, and must never show on desktop.
   ========================================================= */
.nav-mobile[hidden] {
  display: none;
}

@media (min-width: 900px) {
  .nav-mobile {
    display: none;
  }
}
/* =========================================================
   Phase 4 — review cards + lightbox (EstraStay)
   ========================================================= */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.review-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.review-card .stars {
  display: flex;
  gap: 2px;
  color: var(--clay);
  margin-bottom: 14px;
}

.review-card .rev-text {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 18px;
  color: var(--ink);
}

.review-card .rev-who {
  font-size: 13px;
  color: var(--muted);
}

.dark-section .review-card {
  background: rgba(244, 236, 216, 0.04);
  border-color: rgba(244, 236, 216, 0.1);
}

.dark-section .review-card .rev-text {
  color: #F4ECD8;
}

.dark-section .review-card .stars {
  color: var(--rose);
}

.dark-section .review-card .rev-who {
  color: #A89A82;
}

.dark-section .eyebrow, .dark-section h2 {
  color: #F4ECD8;
}

/* Accessible lightbox dialog (Task 005). Backdrop closes on click; the image
   itself does not. Close button + Escape close; focus is trapped and restored. */
.estra-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 16, 12, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.estra-lightbox .lb-img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: var(--r-md);
  cursor: default;
}

.estra-lightbox .lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  cursor: pointer;
}

.estra-lightbox .lb-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.estra-lightbox .lb-close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Previous/next controls. Omitted from the DOM for a single-image gallery. */
.estra-lightbox .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  cursor: pointer;
}

.estra-lightbox .lb-prev {
  left: 20px;
}

.estra-lightbox .lb-next {
  right: 20px;
}

.estra-lightbox .lb-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.estra-lightbox .lb-nav:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .estra-lightbox .lb-prev {
    left: 8px;
  }
  .estra-lightbox .lb-next {
    right: 8px;
  }
  .estra-lightbox .lb-img {
    max-width: calc(100vw - 112px);
  }
}
/* Screen-reader-only "Zdjęcie N z M" announcement. */
.estra-lightbox .lb-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
