/* ═══════════════════════════════════════════════════════════
   PAPĖS PERLAS — single stylesheet for index.html + admin/index.html
   ═══════════════════════════════════════════════════════════ */

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
[hidden] {
  display: none !important;
}

/* ── DESIGN TOKENS ── */
:root {
  /* Brand */
  --green: #2a7a6e;
  --green-dark: #1c5c52;
  --green-pale: rgba(42, 122, 110, 0.08);

  /* Accent — white dune sand */
  --dune: #d4cbb0;
  --dune-pale: rgba(212, 203, 176, 0.18);

  /* Accent — warm pine wood / amber */
  --wood: #b8874a;
  --wood-pale: rgba(184, 135, 74, 0.1);

  /* Accent — interior sage green */
  --sage: #7a9e8e;
  --sage-pale: rgba(122, 158, 142, 0.1);

  /* Accent — Baltic sea */
  --sea: #4a8fa8;
  --sea-pale: rgba(74, 143, 168, 0.1);

  /* Text */
  --text: #18181b;
  --text-light: #71717a;

  /* Surfaces */
  --bg: #f8f7f4;
  --white: #ffffff;

  /* State colors */
  --reserved: #ef4444;
  --selecting: #3b82f6;

  /* Borders & lines */
  --border: #e4e0d8;
  --cal-line: #f0ede8;

  /* Elevation */
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);

  /* Radii */
  --radius: 10px;

  /* Main-page-only tokens */
  --nav-bg: rgba(8, 20, 22, 0.7);
  --nav-bg-mobile: rgba(8, 20, 22, 0.97);
  --footer-bg: #0d1a1c;
  --placeholder-bg: #c5d9d6;
  --placeholder-text: #3d6b66;
  --success-bg: #f0faf8;
  --nav-h: 56px;
}

/* ── BASE ── */
body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  /* Subtle grain texture — adds depth without distracting */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ════════════════════════════════════════════════════════════
   CALENDAR COMPONENT — shared visual language
   Admin-specific interactive overrides are scoped to #admin-panel
   ════════════════════════════════════════════════════════════ */

.cal-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.cal-btn {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 0.75rem;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text);
  transition:
    background 0.15s,
    border-color 0.15s;
}

.cal-btn:hover {
  background: var(--bg);
  border-color: #ccc;
}
.cal-btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
.cal-today-btn {
  font-size: 0.8rem;
}

.cal-month-label {
  margin-left: auto;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.2px;
}

.cal-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-th {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light);
  padding: 0.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Calendar cells ── */
.cal-cell {
  position: relative;
  height: 64px;
  border-top: 1px solid var(--cal-line);
  padding: 0.35rem 0.45rem 0;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: right;
  overflow: hidden;
  transition: background 0.12s;
}

.cal-cell.other-month {
  color: #c8c4bc;
  font-weight: 400;
}
.cal-cell.past {
  color: #c8c4bc;
  font-weight: 400;
}
.cal-cell.today {
  background: #f0f9f7;
}
.cal-cell.available {
  background: rgba(42, 122, 110, 0.05);
}

/* Today's date — green circle badge */
.day-num-today {
  background: var(--green);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
}


/* ── Calendar legend ── */
.cal-legend {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--cal-line);
  font-size: 0.78rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cal-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.cal-legend-dot--available {
  background: rgba(42, 122, 110, 0.15);
}
.cal-legend-dot--reserved {
  background: rgba(239, 68, 68, 0.2);
}
.cal-legend-dot--selecting {
  background: rgba(59, 130, 246, 0.2);
}
.cal-legend-dot--today {
  background: #f0f9f7;
  border: 1px solid #a8d5cc;
}

/* ── Admin calendar interactive overrides (scoped to admin panel) ── */
#admin-panel .cal-cell.available {
  cursor: pointer;
}
#admin-panel .cal-cell.available:hover {
  background: rgba(42, 122, 110, 0.12);
}

#admin-panel .cal-cell.reserved {
  cursor: pointer;
  background: rgba(239, 68, 68, 0.18);
}
#admin-panel .cal-cell.reserved:hover {
  background: rgba(239, 68, 68, 0.28);
}

#admin-panel .cal-cell.selecting {
  cursor: pointer;
  background: rgba(59, 130, 246, 0.12);
}

#admin-panel .cal-cell.sel-start,
#admin-panel .cal-cell.sel-end {
  background: rgba(59, 130, 246, 0.22);
  font-weight: 700;
}

/* ════════════════════════════════════════════════════════════
   MAIN PAGE (index.html)
   ════════════════════════════════════════════════════════════ */

body {
  line-height: 1.65;
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--green);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.9rem;
  text-decoration: none;
  z-index: 200;
}
.skip-link:focus {
  top: 0;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  color: white;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: white;
}
.nav-links a:focus-visible {
  color: white;
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition:
    transform 0.25s,
    opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 520px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.42)),
    url("../images/hero/main.jpg") center bottom / cover no-repeat;
  background-color: var(--green-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 2rem;
}

/* Hero fade-in */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-title {
  animation: heroFadeUp 0.7s ease both;
}
.hero-sub {
  animation: heroFadeUp 0.7s 0.15s ease both;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: heroFadeUp 0.7s 0.28s ease both;
}

/* Ghost button variant */
.btn-ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: white;
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  box-shadow: none;
  transform: translateY(-2px);
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.hero p,
.hero-sub {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  max-width: 560px;
  margin-bottom: 2.25rem;
  opacity: 0.9;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* Scroll-down arrow */
.scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  animation: bounce 2.2s ease-in-out infinite;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.scroll-arrow svg {
  display: block;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(9px);
  }
}

/* ── Primary button ── */
.btn {
  display: inline-block;
  background: var(--green);
  color: white;
  padding: 0.8rem 2.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(45, 122, 88, 0.3);
}

.btn:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(45, 122, 88, 0.38);
}
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}
.btn:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* ── Sections ── */
/* Alternating section backgrounds for visual rhythm.
   Even sections (nameliai, rezervacija) get a clean white band
   that spans the full viewport width via a centred pseudo-element. */
.section {
  padding: 4.5rem 2rem;
  max-width: 960px;
  margin: 0 auto;
  scroll-margin-top: var(--nav-h);
  position: relative;
  isolation: isolate;
}

.section:nth-of-type(even)::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: var(--white);
  z-index: -1;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.4px;
  display: inline-block;
  position: relative;
  padding-bottom: 0.65rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--wood);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-light);
  margin-top: 0.75rem;
  font-size: 0.95rem;
}
.section-divider {
  display: none;
}
.subsection-heading {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 2.75rem;
  margin-bottom: 1.25rem;
}

/* ── Stat strip ── */
.stat-strip {
  display: flex;
  gap: 0;
  margin: 2rem 0 2.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  text-align: center;
  border-right: 1.5px solid var(--border);
  gap: 0.3rem;
}

.stat-item:last-child {
  border-right: none;
}

.stat-icon {
  color: var(--green);
  margin-bottom: 0.15rem;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
}

@media (max-width: 700px) {
  .stat-strip {
    flex-wrap: wrap;
  }
  .stat-item {
    flex: 1 1 50%;
    border-bottom: 1.5px solid var(--border);
  }
  .stat-item:nth-child(even) {
    border-right: none;
  }
  .stat-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

/* ── About ── */
.about-text {
  color: var(--text-light);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-top: 1rem;
  max-width: 720px;
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition:
    box-shadow 0.25s,
    transform 0.25s;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--sage-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  color: var(--sage);
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.feature-card p {
  font-size: 0.87rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* ── Amenities ── */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 1rem;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.amenity-item:hover {
  border-color: var(--green);
  box-shadow: 0 2px 8px rgba(42, 122, 110, 0.1);
}

.amenities-toggle {
  display: none;
  margin: 1rem auto 0;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 0.45rem 1.2rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text-light);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.amenities-toggle:hover {
  border-color: var(--green);
  color: var(--green);
}

.amenity-icon {
  color: var(--wood);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

@media (max-width: 700px) {
  .amenities-grid {
    grid-template-columns: 1fr 1fr;
  }
  .amenities-grid:not(.expanded) .amenity-item:nth-child(n+9) {
    display: none;
  }
  .amenities-toggle {
    display: flex;
  }
}

/* ── House cards ── */
.houses-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.house-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.25s,
    transform 0.25s;
}

.house-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.house-card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--placeholder-bg);
  cursor: zoom-in;
}

.house-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.house-card-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.88);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
  color: var(--text);
}

.house-card-photo:hover .house-card-arrow {
  opacity: 1;
}
.house-card-arrow:hover {
  background: white;
}
.house-card-arrow--prev {
  left: 0.6rem;
}
.house-card-arrow--next {
  right: 0.6rem;
}

.house-card-counter {
  position: absolute;
  bottom: 0.65rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.52);
  color: white;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  pointer-events: none;
}

.house-card-all-photos {
  position: absolute;
  bottom: 0.65rem;
  left: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s;
}

.house-card-all-photos:hover {
  background: white;
}

.house-card-body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.house-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.house-card-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-top: 0.15rem;
  margin-bottom: 0.6rem;
}

.house-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.house-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.house-card-desc {
  font-size: 0.87rem;
  color: var(--text-light);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.house-card-desc.expanded {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.house-card-read-more {
  background: none;
  border: none;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.house-card-read-more:hover {
  text-decoration: underline;
}

/* ── Availability Modal ── */
.avail-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-top: 5rem;
}
.avail-modal[hidden] {
  display: none;
}
.avail-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.avail-modal-inner {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: modalIn 0.18s ease both;
  will-change: transform, opacity;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.avail-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}
.avail-modal-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-dark);
  margin: 0;
}
.avail-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: #888;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.avail-modal-close:hover {
  background: var(--bg);
  color: #333;
}
.avail-modal-body {
  padding: 1.25rem 1.5rem;
}
.avail-modal-hint {
  font-size: 0.85rem;
  color: #777;
  margin: 0 0 1rem;
  text-align: center;
}
.avail-modal-error {
  font-size: 0.82rem;
  color: var(--reserved);
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  margin: -0.25rem 0 0.75rem;
  text-align: center;
}
.avail-legend {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.avail-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #555;
}
.avail-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.avail-dot--available { background: #d1fae5; border: 1px solid #6ee7b7; }
.avail-dot--reserved  { background: #fee2e2; border: 1px solid #fca5a5; }
.avail-dot--today     { background: var(--green); }
.avail-modal-footer {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}
.avail-modal-footer .btn {
  flex: 1;
}
.avail-modal-footer .btn:disabled {
  background: var(--border);
  color: #999;
  box-shadow: none;
  cursor: not-allowed;
}
.btn-secondary {
  flex: 1;
  background: var(--bg);
  color: #555;
  border: 1px solid var(--border);
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  text-align: center;
}
.btn-secondary:hover {
  background: #ede9e0;
}

/* Flatpickr theme overrides */
.avail-modal-body .flatpickr-calendar {
  box-shadow: none;
  border: none;
  background: transparent;
  width: 100% !important;
  font-family: inherit;
}
.avail-modal-body .flatpickr-rContainer,
.avail-modal-body .flatpickr-days,
.avail-modal-body .dayContainer {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
.avail-modal-body .flatpickr-day {
  width: calc(100% / 7) !important;
  max-width: calc(100% / 7) !important;
  flex-basis: calc(100% / 7) !important;
}
.avail-modal-body .flatpickr-months {
  padding-bottom: 0.5rem;
}
.avail-modal-body .flatpickr-month,
.avail-modal-body .flatpickr-current-month {
  color: var(--green-dark);
  fill: var(--green-dark);
}
.avail-modal-body .flatpickr-prev-month,
.avail-modal-body .flatpickr-next-month {
  color: var(--green) !important;
  fill: var(--green) !important;
}
.avail-modal-body .flatpickr-prev-month:hover svg,
.avail-modal-body .flatpickr-next-month:hover svg {
  fill: var(--green-dark) !important;
}
.avail-modal-body .flatpickr-weekday {
  color: #888;
  font-weight: 600;
  font-size: 0.75rem;
}
.avail-modal-body .flatpickr-day {
  border-radius: 8px;
  font-size: 0.88rem;
}
.avail-modal-body .flatpickr-day.today {
  border-color: var(--green);
  color: var(--green);
  font-weight: 600;
}
.avail-modal-body .flatpickr-day.today:hover {
  background: var(--green);
  color: white;
}
.avail-modal-body .flatpickr-day:hover,
.avail-modal-body .flatpickr-day.prevMonthDay:hover,
.avail-modal-body .flatpickr-day.nextMonthDay:hover {
  background: #e6f4f1;
  border-color: transparent;
  color: var(--green-dark);
}
.avail-modal-body .flatpickr-day.selected,
.avail-modal-body .flatpickr-day.startRange,
.avail-modal-body .flatpickr-day.endRange {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.avail-modal-body .flatpickr-day.inRange {
  background: #d1ede9;
  border-color: transparent;
  box-shadow: -5px 0 0 #d1ede9, 5px 0 0 #d1ede9;
  color: var(--green-dark);
}
.avail-modal-body .flatpickr-day.disabled,
.avail-modal-body .flatpickr-day.disabled:hover,
.avail-modal-body .flatpickr-day.avail-reserved,
.avail-modal-body .flatpickr-day.avail-reserved:hover {
  background: #fee2e2 !important;
  border-color: transparent !important;
  color: #ef4444 !important;
  text-decoration: line-through;
  opacity: 0.8;
  cursor: not-allowed;
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: white;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.9rem 1rem;
  border-radius: 6px;
  opacity: 0.75;
  transition:
    opacity 0.15s,
    background 0.15s;
}

.lightbox-prev {
  left: 1.5rem;
}
.lightbox-next {
  right: 1.5rem;
}
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
}

/* ── "Check dates" button on house cards ── */
.house-card-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.house-card-check-dates {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green-pale);
  border: none;
  color: var(--green-dark);
  border-radius: 7px;
  padding: 0.5rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}

.house-card-check-dates:hover {
  background: rgba(42, 122, 110, 0.16);
}

.house-card-reserve {
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
  box-shadow: none;
}

.house-card-reserve:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(45, 122, 88, 0.3);
}

/* ── Calendar loading spinner ── */
.cal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem 1rem;
  color: var(--text-light);
  font-size: 0.88rem;
}

.cal-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Calendar house tabs (public page) ── */
.cal-house-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.cal-house-tab {
  padding: 0.28rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-light);
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s;
}

.cal-house-tab:hover {
  border-color: var(--green);
  color: var(--text);
}

.cal-house-tab.active {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

/* ── Public calendar wrapper ── */
.calendar-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-top: 1.75rem;
  overflow-x: auto;
}

.calendar-wrapper .cal-grid {
  min-width: 420px;
}
.calendar-wrapper .cal-header {
  margin-bottom: 1.1rem;
}

/* ── Reservation form ── */
.reservation-form {
  max-width: 500px;
  margin: 1.75rem auto 0;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.form-label span[aria-hidden] {
  color: var(--reserved);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 122, 88, 0.13);
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: var(--reserved);
  box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.1);
}

.form-group textarea {
  height: 105px;
  resize: vertical;
}

.date-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.date-trigger:hover {
  border-color: var(--green);
}
.date-trigger:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 122, 88, 0.13);
}
.date-trigger[aria-invalid="true"] {
  border-color: var(--reserved);
  box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.1);
}
.date-trigger svg {
  flex-shrink: 0;
  color: var(--text-light);
}
.date-trigger-placeholder {
  color: var(--text-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-error {
  color: var(--reserved);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.3rem;
  display: none;
}

.form-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.form-success {
  display: none;
  background: var(--success-bg);
  border: 1.5px solid var(--green);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--green-dark);
  text-align: center;
  margin-top: 1rem;
  font-size: 0.93rem;
  font-weight: 500;
}

/* ── Location / contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.contact-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon svg {
  display: block;
}

.contact-card-icon--phone {
  background: #e8f5e9;
  color: #2e7d32;
}
.contact-card-icon--whatsapp {
  background: #e7f8ee;
  color: #25d366;
}
.contact-card-icon--facebook {
  background: #e8f0fe;
  color: #1877f2;
}
.contact-card-icon--email {
  background: #fef3e2;
  color: #d97706;
}
.contact-card-icon--instagram {
  background: #fdf2f8;
  color: #c2185b;
}

.contact-card-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-card-value {
  font-size: 0.93rem;
  font-weight: 600;
  margin-top: 0.1rem;
}

.address-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.4rem;
  margin-top: 1.5rem;
}

.address-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.address-card-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.address-card-value {
  font-size: 0.93rem;
  font-weight: 600;
  margin-top: 0.1rem;
  color: var(--text);
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
  display: block;
}

/* ── Footer ── */
footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.83rem;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.65rem;
}

.footer-tagline {
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-end;
  padding-top: 0.1rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: white;
}

.footer-bottom {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
}

footer a {
  color: rgba(255, 255, 255, 0.72);
}
footer a:hover {
  color: white;
}

@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
  }
  .footer-nav {
    align-items: flex-start;
  }
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive (main page) ── */
@media (max-width: 700px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .amenities-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .houses-list {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--nav-bg-mobile);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
  }

  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    font-size: 1rem;
  }
  .nav-toggle {
    display: flex;
  }

  .lightbox-prev {
    left: 0.5rem;
  }
  .lightbox-next {
    right: 0.5rem;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ════════════════════════════════════════════════════════════
   ADMIN PAGE (admin/index.html)
   ════════════════════════════════════════════════════════════ */

/* ── Login screen ── */
#login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2.25rem;
  width: 100%;
  max-width: 380px;
}

.login-logo {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.login-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: -0.3px;
}

.login-subtitle {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1.75rem;
}

.login-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.login-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  margin-bottom: 1rem;
}

.login-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 122, 88, 0.13);
}

.login-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.login-btn:hover {
  background: var(--green-dark);
}

.login-error {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--reserved);
  font-weight: 500;
  text-align: center;
}

/* ── Admin panel ── */
#admin-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-header {
  background: var(--green-dark);
  color: white;
  padding: 0 1.75rem;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.admin-header-logo {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.9;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-header-label {
  font-size: 0.78rem;
  opacity: 0.6;
}

.logout-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.admin-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.75rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.5rem;
}

/* ── Admin house tabs ── */
.house-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.house-tab {
  flex: 1;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-light);
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s;
}

.house-tab:hover {
  border-color: var(--green);
  color: var(--text);
}

.house-tab.active {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.tab-count {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  min-width: 20px;
  text-align: center;
}

.house-tab:not(.active) .tab-count {
  background: var(--bg);
  color: var(--text-light);
}
.tab-count-total {
  opacity: 0.6;
  font-weight: 500;
}

/* ── Admin calendar card ── */
.cal-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.cal-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.cal-card-hint {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.cal-card .cal-grid {
  min-width: 360px;
}

/* ── Date selection bar ── */
.selection-bar {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.selection-info {
  font-size: 0.85rem;
  color: var(--text-light);
  flex: 1;
}
.selection-info strong {
  color: var(--text);
}

.add-btn {
  background: var(--green);
  color: white;
  border: none;
  border-radius: 7px;
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.add-btn:hover {
  background: var(--green-dark);
}
.add-btn:disabled {
  background: var(--border);
  cursor: not-allowed;
}

.clear-sel-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-family: inherit;
  color: var(--text-light);
  cursor: pointer;
  transition: border-color 0.15s;
}

.clear-sel-btn:hover {
  border-color: var(--text-light);
}

/* ── Reservations sidebar ── */
.res-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.res-card-title {
  font-size: 1rem;
  font-weight: 700;
}

.res-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
}

.res-empty {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
  padding: 1.5rem 0;
}

.res-past-section {
  list-style: none;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 0.25rem;
}
.res-past-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.res-past-summary::-webkit-details-marker { display: none; }
.res-past-summary::before {
  content: "▸";
  font-size: 0.75rem;
  transition: transform 0.15s;
}
details[open] .res-past-summary::before {
  transform: rotate(90deg);
}
.res-past-count {
  background: var(--border);
  color: var(--text-light);
  border-radius: 999px;
  padding: 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.res-past-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.25rem;
}
.res-past-list .res-item {
  opacity: 0.65;
}

.res-item {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.res-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
}

.res-fields {
  list-style: none;
  padding: 0;
  margin: 0 0.75rem;
  border-top: 1px solid var(--border);
}

.res-fields li {
  display: flex;
  gap: 0.6rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.83rem;
}
.res-fields li:last-child {
  border-bottom: none;
}

.res-field-label {
  color: #aaa;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 72px;
}

.res-field-val {
  color: #222;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

.res-notes-wrap {
  border-top: 1px solid var(--border);
  margin: 0 0.75rem;
  padding: 0.5rem 0 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.res-notes {
  font-size: 0.82rem;
  color: #555;
  margin: 0;
  line-height: 1.5;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.res-notes.expanded {
  display: block;
  overflow: visible;
}

.res-notes-toggle {
  background: none;
  border: none;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.res-notes-toggle:hover {
  text-decoration: underline;
}

/* Guest form */
.guest-form {
  margin-top: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
}

.guest-form-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--green-dark);
}

.guest-form-optional {
  font-weight: 400;
  color: #999;
  font-size: 0.8rem;
}

.guest-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.guest-textarea {
  grid-column: 1 / -1;
  resize: vertical;
}

.guest-form-actions {
  display: flex;
  gap: 0.5rem;
}

.res-dates {
  font-size: 0.85rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.res-delete {
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-light);
  font-size: 0.78rem;
  width: 26px;
  height: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s;
}

.res-delete:hover {
  border-color: var(--reserved);
  color: var(--reserved);
  background: rgba(224, 82, 82, 0.06);
}

/* ── Admin info notice ── */
.notice {
  font-size: 0.76rem;
  color: var(--text-light);
  background: var(--green-pale);
  border-radius: 7px;
  padding: 0.65rem 0.9rem;
  line-height: 1.5;
}

.notice strong {
  color: var(--green-dark);
}

/* ── Responsive (admin) ── */
@media (max-width: 820px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-body {
    padding: 1rem;
  }
  .cal-card .cal-grid {
    min-width: 0;
  }
}
