:root {
  color-scheme: light;
  --ink: #151511;
  --muted: #706b5f;
  --line: #ded6c3;
  --paper: #f7f4ec;
  --panel: #ffffff;
  --green: #b99a5f;
  --green-dark: #151511;
  --coral: #b99a5f;
  --gold: #b99a5f;
  --blue: #2f3330;
  --shadow: 0 18px 50px rgba(21, 21, 17, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 86px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(247, 244, 236, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 34px rgba(21, 21, 17, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 6px 10px;
  border: 1px solid rgba(185, 154, 95, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(21, 21, 17, 0.06);
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(170px, 18vw, 240px);
  height: 52px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.nav {
  display: flex;
  gap: 8px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav a {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.nav a.active {
  background: var(--panel);
  color: var(--green-dark);
  box-shadow: 0 6px 16px rgba(21, 21, 17, 0.08);
}

.hero {
  position: relative;
  min-height: clamp(390px, 64vh, 620px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #151511;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(0deg, var(--paper), rgba(251, 252, 250, 0));
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(21, 21, 17, 0.94), rgba(21, 21, 17, 0.64), rgba(21, 21, 17, 0.24)),
    linear-gradient(0deg, rgba(21, 21, 17, 0.74), rgba(21, 21, 17, 0.12) 58%),
    url("https://images.unsplash.com/photo-1522708323590-d24dbb6b0267?auto=format&fit=crop&w=1800&q=80") center 45%/cover;
  transform: scale(1.02);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 32px));
  margin: 0 clamp(16px, 7vw, 82px) clamp(38px, 8vw, 86px);
  padding-inline-start: 18px;
  border-inline-start: 4px solid var(--coral);
  color: white;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 10px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--coral);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0;
}

.hero-copy h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 640px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2.2vw, 21px);
  line-height: 1.8;
  text-wrap: pretty;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(247, 244, 236, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.hero-badges span::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(217, 95, 72, 0.2);
}

.home-strip {
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: -34px auto 34px;
  position: relative;
  z-index: 2;
}

.home-strip div {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.home-strip strong,
.home-strip span {
  display: block;
}

.home-strip strong {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 18px;
}

.home-strip span {
  color: var(--muted);
  line-height: 1.7;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 54px;
}

.hidden {
  display: none !important;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: 0;
}

.count-pill,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #f1eadb;
  color: var(--green-dark);
  font-weight: 800;
  font-size: 13px;
}

.filters,
.admin-form,
.admin-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 12px;
  padding: 14px;
  margin-bottom: 18px;
}

.client-notes {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(197, 154, 45, 0.4);
  border-radius: 8px;
  background: #fff9ea;
  color: #684d0f;
  font-weight: 800;
  line-height: 1.8;
}

.client-notes p {
  margin: 0;
}

.account-grid,
.stats-grid,
.admin-review-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.account-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.single-account-grid {
  width: min(520px, 100%);
  grid-template-columns: 1fr;
  margin-inline: auto;
}

.account-switcher,
.signup-type-chooser {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 auto 14px;
}

.signup-type-chooser {
  margin-bottom: 18px;
}

.account-grid h3,
.admin-form h3,
.admin-list h3 {
  margin-top: 0;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-grid div {
  min-height: 106px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stats-grid strong,
.stats-grid span,
.request-item strong,
.request-item span {
  display: block;
}

.stats-grid strong {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 34px;
}

.stats-grid span,
.request-item span {
  color: var(--muted);
  line-height: 1.7;
}

.admin-review-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.request-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f0;
}

.request-item + .request-item {
  margin-top: 10px;
}

.request-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

textarea {
  resize: vertical;
  line-height: 1.7;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 123, 99, 0.13);
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 20px;
}

.room-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(21, 21, 17, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.room-card:hover {
  transform: translateY(-3px);
  border-color: rgba(185, 154, 95, 0.38);
  box-shadow: 0 22px 54px rgba(24, 32, 29, 0.14);
}

.room-media {
  position: relative;
  overflow: hidden;
  background: #e7dfcf;
}

.room-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(21, 21, 17, 0.42), rgba(21, 21, 17, 0));
  pointer-events: none;
}

.room-photo {
  width: 100%;
  height: 250px;
  flex: 0 0 250px;
  background: #e7dfcf center/cover no-repeat;
  transition: transform 220ms ease;
}

.room-card:hover .room-photo {
  transform: scale(1.025);
}

.room-gallery {
  display: flex;
  gap: 7px;
  min-height: 62px;
  padding: 9px 12px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  background: #fbf8f0;
}

.room-gallery:empty {
  display: none;
}

.room-gallery button {
  flex: 0 0 54px;
  width: 54px;
  height: 44px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #e7dfcf center/cover no-repeat;
  cursor: pointer;
}

.room-gallery button.is-active {
  border-color: var(--gold);
}

.room-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 18px;
}

.room-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 34px;
  margin-bottom: 10px;
  align-content: flex-start;
}

.room-gender {
  background: #f7efe0;
  color: #6c5424;
}

.room-code {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 6px;
  direction: ltr;
  background: var(--green-dark);
  color: #fffaf0;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 10px 22px rgba(21, 21, 17, 0.26);
}

.room-card h3 {
  margin: 0 0 10px;
  min-height: 54px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.3;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.room-area,
.room-details {
  color: var(--muted);
  line-height: 1.65;
}

.room-area {
  position: relative;
  margin: 0 0 10px;
  padding-inline-start: 16px;
  font-weight: 800;
  min-height: 26px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.room-area::before {
  content: "";
  position: absolute;
  top: 0.75em;
  right: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
}

.room-details {
  margin: 0 0 16px;
  min-height: 78px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.room-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: auto 0 16px;
}

.room-meta div {
  min-width: 0;
  min-height: 68px;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf8f0;
}

.room-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.room-meta dd {
  margin: 5px 0 0;
  font-weight: 800;
  color: var(--ink);
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.whatsapp-btn,
.primary-btn,
.secondary-btn,
.text-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.whatsapp-btn,
.primary-btn {
  width: 100%;
  padding: 12px 16px;
  background: var(--green-dark);
  color: #fffaf0;
}

.room-card .whatsapp-btn {
  margin-top: 0;
  min-height: 48px;
  border: 1px solid rgba(21, 21, 17, 0.08);
  box-shadow: 0 10px 20px rgba(21, 21, 17, 0.12);
}

.whatsapp-btn:hover,
.primary-btn:hover {
  background: #2a2921;
}

.secondary-btn,
.text-btn {
  padding: 10px 14px;
  background: #f1eadb;
  color: var(--green-dark);
}

.danger-btn {
  color: #a63a2a;
}

.icon-btn {
  width: 44px;
  background: #eef3f0;
  color: var(--green-dark);
  font-size: 22px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 380px;
  gap: 16px;
  align-items: start;
}

.admin-stack {
  display: grid;
  gap: 16px;
}

.admin-form,
.admin-list {
  padding: 16px;
}

.compact-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.form-actions,
.admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.form-actions {
  margin-top: 14px;
}

.file-btn {
  position: relative;
  overflow: hidden;
}

.file-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.photo-choice {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #dce4df center/cover no-repeat;
}

.photo-choice.is-primary {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 123, 99, 0.12);
}

.photo-choice-actions {
  position: absolute;
  inset-inline: 8px;
  bottom: 8px;
  display: flex;
  gap: 6px;
}

.photo-choice-actions button {
  min-height: 32px;
  flex: 1;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
}

.photo-choice-actions button.is-active {
  background: var(--green);
  color: white;
}

.photo-choice-actions button.danger {
  flex: 0 0 38px;
  color: #a63a2a;
}

.admin-list h3 {
  margin: 0 0 12px;
}

.admin-room {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.admin-room:first-child {
  border-top: 0;
}

.admin-thumb {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  background: #dce4df center/cover no-repeat;
}

.admin-room h4 {
  margin: 0 0 4px;
  font-size: 15px;
}

.admin-room p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.admin-room-actions {
  display: flex;
  gap: 8px;
}

.mini-btn {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.mini-btn.danger {
  color: #a63a2a;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 18, 16, 0.58);
}

.login-panel {
  position: relative;
  width: min(420px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 26px 70px rgba(10, 18, 16, 0.28);
}

.login-panel h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.login-panel label {
  display: block;
  margin-bottom: 12px;
}

.close-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: #eef3f0;
  color: var(--green-dark);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.login-error {
  margin: 0 0 12px;
  color: #a63a2a;
  font-weight: 800;
}

@media (max-width: 900px) {
  .filters,
  .rooms-grid,
  .admin-layout,
  .home-strip,
  .account-grid,
  .stats-grid,
  .admin-review-grid {
    grid-template-columns: 1fr;
  }

  .room-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    flex: 1;
    text-align: center;
  }

  .hero-copy {
    width: calc(100% - 32px);
  }

  .room-photo {
    height: 220px;
    flex-basis: 220px;
  }

  .room-body {
    padding: 14px;
  }

  .room-card h3 {
    font-size: 19px;
  }

  .section-head,
  .form-actions,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .compact-form {
    grid-template-columns: 1fr;
  }

  .photo-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-switcher,
  .signup-type-chooser {
    grid-template-columns: 1fr;
  }
}
