@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@300;400;500;600&family=Italianno&display=swap");

:root {
  --cream: #fbf7f0;
  --ink: #2b2a27;
  --muted: #6f6a63;
  --accent: #c96b4f;
  --accent-hover: #b55a3f;
  --accent-light: #fdf0eb;
  --accent2: #5a9e7c;
  --accent2-light: #e9f5ef;
  --border: #e6dccf;
  --card: #ffffff;
  --glow: rgba(201, 107, 79, 0.18);
}

* {
  box-sizing: border-box;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes gentlePulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--glow); }
  50%      { box-shadow: 0 0 0 6px transparent; }
}

::selection {
  background: var(--accent);
  color: #fff;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  margin: 0 0 0.6rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 3vw, 3.3rem);
}

h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
}

p {
  margin: 0 0 1rem;
}

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

/* Keep focus indication for keyboard users, avoid blue tap/click outlines */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
  outline: none;
}

a,
button,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 16px;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
  animation: fadeInUp 0.5s ease both;
}

.section-muted {
  background: linear-gradient(180deg, #f0ebe3 0%, #ede4d8 100%);
}

.narrow {
  max-width: 540px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--muted);
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 241, 234, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
}

.logo {
  font-family: "Italianno", "Cormorant Garamond", serif;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.hero-banner {
  position: relative;
  height: min(42vh, 360px);
  overflow: hidden;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.hero-banner__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.45));
}

.hero-banner__overlay p {
  font-family: "Italianno", "Cormorant Garamond", serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: #fff;
  margin: 0;
  text-shadow: 0 4px 16px rgba(160, 80, 50, 0.3), 0 8px 30px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease both;
}

.nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.95rem;
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
}

.mobile-menu {
  display: none;
  padding: 0.6rem 0 1rem;
  border-top: 1px solid var(--border);
  background: rgba(245, 241, 234, 0.98);
}

.mobile-menu nav {
  display: grid;
  gap: 0.8rem;
  padding: 0.6rem 1.2rem 0.8rem;
}

.hero {
  padding: 3.5rem 0 3rem;
}

.hero-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.hero-image img {
  border-radius: 32px;
  box-shadow: 0 26px 70px rgba(160, 80, 50, 0.2);
  height: 420px;
  width: 100%;
  object-fit: cover;
  transition: box-shadow 0.4s ease;
}

.hero-image img:hover {
  box-shadow: 0 30px 80px rgba(160, 80, 50, 0.28);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.primary-btn,
.ghost-btn {
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: linear-gradient(135deg, var(--accent) 0%, #d4896e 100%);
  color: #fff;
  position: relative;
}

.ghost-btn {
  background: transparent;
  color: var(--accent);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201, 107, 79, 0.3);
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 107, 79, 0.15);
  background: var(--accent-light);
}

.primary-btn:active,
.ghost-btn:active {
  transform: translateY(0);
}

.card {
  background: var(--card);
  border-radius: 20px;
  padding: 1.6rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(31, 30, 28, 0.06);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.card:hover {
  box-shadow: 0 16px 40px rgba(201, 107, 79, 0.12), 0 6px 16px rgba(31, 30, 28, 0.06);
  transform: translateY(-2px);
}

.split {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.icon-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.icon-list li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.6rem;
}

.icon-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1.5px;
  background-position: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease, color 0.2s ease;
}

.text-link:hover {
  background-size: 100% 1.5px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  grid-auto-rows: 8px;
  grid-auto-flow: dense;
}

.gallery-tile {
  position: relative;
  grid-row-end: span 1;
  overflow: hidden;
  border-radius: 20px;
  background: #1f1e1c;
  box-shadow: 0 16px 40px rgba(31, 30, 28, 0.18);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.gallery-tile--portrait {
  --tile-rows: 4;
}

.gallery-tile img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transform: scale(1.02);
  transition: transform 0.5s ease;
  cursor: zoom-in;
}

.gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.gallery-tile:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 28px 60px rgba(160, 80, 50, 0.22), 0 12px 24px rgba(31, 30, 28, 0.1);
}

.gallery-tile:hover img {
  transform: scale(1.08);
}

.gallery-tile:hover::after {
  opacity: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 50;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 88vw);
  max-height: 82vh;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transition: opacity 0.15s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease;
  z-index: 2;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-counter {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

@media (max-width: 600px) {
  .lightbox-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }
}

.floor-plan img {
  border-radius: 18px;
  border: 1px solid var(--border);
}

.map-card img {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fefcf9;
  padding: 1rem;
}

.calendar {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.calendar-month {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.75rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
  margin-top: 0.4rem;
  font-size: 0.75rem;
}

.calendar-day,
.calendar-label {
  text-align: center;
  padding: 0.28rem 0;
  border-radius: 8px;
  user-select: none;
}

.calendar-label {
  color: var(--muted);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.calendar-day.available {
  background: var(--accent2-light);
  color: var(--accent2);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.calendar-day.available:hover {
  background: #d0ead9;
  transform: scale(1.1);
}

.calendar-day.unavailable {
  background: transparent;
  color: #b3aca4;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.calendar-day.today {
  border: 1px solid var(--accent);
}

.calendar-legend {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.9rem;
}

.legend {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.4rem;
}

.legend.available {
  background: var(--accent2-light);
}

.legend.unavailable {
  background: #e7e2da;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-email {
  font-size: 1.1rem;
}

.guest-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.guest-tabs {
  display: flex;
  gap: 0.8rem;
  margin: 2rem 0 1.5rem;
  flex-wrap: wrap;
}

.guest-tab {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.guest-tab:hover:not(.is-active) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.guest-tab.is-active {
  background: linear-gradient(135deg, var(--accent) 0%, #d4896e 100%);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(201, 107, 79, 0.25);
}

.guest-tab-panel {
  display: none;
}

.guest-tab-panel.is-active {
  display: block;
}

.guestbook-form {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.login-form .primary-btn {
  margin-top: 0.6rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-weight: 500;
}

input,
textarea {
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}

.upload-progress {
  display: none;
  margin-top: 0.4rem;
}

.upload-progress.is-active {
  display: block;
}

.upload-progress .muted {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, #d4896e 60%, var(--accent2) 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.guestbook-entries {
  display: grid;
  gap: 1.6rem;
}

.guestbook-entry {
  background: var(--card);
  border-radius: 18px;
  padding: 1.4rem;
  border: 1px solid var(--border);
  position: relative;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.guestbook-entry:hover {
  box-shadow: 0 10px 30px rgba(201, 107, 79, 0.08);
  transform: translateY(-1px);
}

.guestbook-delete {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  font-size: 0.82rem;
  transition: background 0.15s, color 0.15s;
}

.guestbook-delete:hover {
  background: #f5e6e4;
  color: #b33a2a;
}

.guestbook-media {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin-top: 1rem;
}

.guestbook-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  cursor: zoom-in;
  background: rgba(0, 0, 0, 0.04);
}

.guestbook-media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  cursor: zoom-in;
  background: #000;
}

/* Single media item gets a comfortable max width */
.guestbook-media:has(> :only-child) {
  grid-template-columns: minmax(0, 420px);
}

.guestbook-media:has(> :only-child) video {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.guest-info-editor {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.guest-info-card label textarea {
  resize: vertical;
}

.local-guide {
  margin-top: 2.5rem;
}

.local-guide-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.local-guide-card {
  background: var(--card);
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(31, 30, 28, 0.1);
  display: grid;
  gap: 0.8rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.local-guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(160, 80, 50, 0.14), 0 6px 16px rgba(31, 30, 28, 0.06);
}

.local-guide-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0;
  cursor: zoom-in;
}

.local-guide-card .content {
  padding: 0 1.2rem 1.2rem;
}

.local-guide-card h3 {
  margin-top: 0.2rem;
}

.local-guide-card .meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 55;
}

.modal.is-open {
  display: flex;
}

.modal-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.6rem;
  width: min(560px, 94vw);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
}

.modal-card--narrow {
  width: min(400px, 90vw);
  text-align: center;
}

.modal-card--narrow p {
  margin: 0.6rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.modal-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}

.secondary-btn {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  transition: all 0.25s ease;
}

.secondary-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.danger-btn {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: #b33a2a;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  transition: background 0.15s;
}

.danger-btn:hover {
  background: #922e22;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: linear-gradient(180deg, #f0ebe3 0%, #ebe3d7 100%);
}

.footer-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.footer-title {
  font-weight: 600;
}

.footer-admin {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.footer-admin a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}

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

.error {
  color: #b1453b;
  background: #f7e6e4;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
}

/* Admin Mode Styles */
.admin-mode-banner {
  background: linear-gradient(135deg, var(--accent-light) 0%, #fce4d8 100%);
  border-bottom: 1px solid var(--accent);
  padding: 0.6rem 0;
}

.admin-mode-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-mode-badge,
.header-admin-badge {
  background: var(--accent);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.header-admin-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
}

.auth {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-mode-hint {
  color: var(--accent);
  font-size: 0.9rem;
}

/* Admin Calendar Inline Editing */
.calendar--admin .calendar-day {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
}

.calendar--admin .calendar-day:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(201, 107, 79, 0.25);
  z-index: 2;
  position: relative;
}

.calendar--admin .calendar-day.saving {
  opacity: 0.5;
  pointer-events: none;
}

.calendar--admin .calendar-day.available:hover {
  background: #c3e4ce;
}

.calendar--admin .calendar-day.unavailable:hover {
  background: #f5e6e4;
  text-decoration: line-through;
}


/* ── The Home ── */

.space-intro-section {
  padding-bottom: 1.5rem;
}

.space-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.space-stats {
  font-size: 1.05rem;
  color: var(--muted);
  margin-top: 0.8rem;
  letter-spacing: 0.01em;
}

.space-nav {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(251, 247, 240, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
}

.space-nav-scroll {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.space-nav-scroll::-webkit-scrollbar {
  display: none;
}

.space-nav-pill {
  flex-shrink: 0;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.82rem;
  color: var(--ink);
  transition: all 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.space-nav-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.space-nav-pill.is-active {
  background: linear-gradient(135deg, var(--accent) 0%, #d4896e 100%);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(201, 107, 79, 0.25);
}

.space-nav-count {
  font-size: 0.72rem;
  opacity: 0.7;
  margin-left: 0.15rem;
}

.space-nav-pill.is-active .space-nav-count {
  opacity: 0.85;
}

.space-rooms {
  padding-bottom: 2rem;
}

.space-room {
  padding: 2.5rem 0 1.5rem;
}

.space-room + .space-room {
  border-top: 1px solid var(--border);
}

.space-room-header {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.space-room-title {
  margin-bottom: 0;
}

.space-room-count {
  font-size: 0.88rem;
}

/* Room photo grids */

.space-room-grid {
  display: grid;
  gap: 0.6rem;
  grid-auto-rows: 8px;
  grid-auto-flow: dense;
  grid-template-columns: repeat(2, 1fr);
}

.space-room-tile {
  position: relative;
  grid-row-end: span 1;
  overflow: hidden;
  border-radius: 14px;
  background: #ede4d8;
  box-shadow: 0 4px 16px rgba(31, 30, 28, 0.08);
  transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.space-room-tile--portrait {
  --tile-rows: 4;
}

.space-room-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.5s ease;
  cursor: zoom-in;
}

.space-room-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.15));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: 14px;
}

.space-room-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(160, 80, 50, 0.16), 0 4px 12px rgba(31, 30, 28, 0.06);
}

.space-room-tile:hover img {
  transform: scale(1.05);
}

.space-room-tile:hover::after {
  opacity: 1;
}

/* Grid variants by image count */

/* Floor plan */

.space-floor-plan {
  max-width: 800px;
}

.space-floor-plan img {
  border: 1px solid var(--border);
  border-radius: 18px;
  cursor: zoom-in;
}

@media (min-width: 700px) {
  .space-room-grid[data-count="4"],
  .space-room-grid[data-count="5"],
  .space-room-grid[data-count="6"] {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .space-room-grid {
    grid-template-columns: 1fr;
  }

  .space-room-header {
    flex-direction: column;
    gap: 0.2rem;
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  body.menu-open .mobile-menu {
    display: block;
  }
}
