:root {
  --accent: #315e50;
  --ink: #203d37;
  --muted: #66746f;
  --paper: #f8f7f3;
  --white: #fff;
  --line: #dfe6e0;
  --shadow: 0 18px 48px rgba(25, 53, 44, 0.08);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: var(--accent);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.preview-banner {
  padding: 10px 20px;
  background: #f5e8bf;
  color: #584814;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.topbar {
  min-height: 76px;
  padding: 0 max(4vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--ink);
}
.guest-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.guest-nav > a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
}
.guest-nav > a:hover,
.text-link:hover {
  text-decoration: underline;
}
.language-control select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 32px 9px 14px;
  background: #fff;
  color: var(--ink);
  max-width: 155px;
}
.eyebrow {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero {
  width: min(1440px, 100%);
  margin: auto;
  padding: clamp(32px, 5vw, 72px) max(4vw, 24px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.hero-copy {
  max-width: 620px;
}
.hero h1 {
  font-size: clamp(2.7rem, 5.2vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
  margin: 18px 0 22px;
}
.hero p {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.75;
  color: var(--muted);
  white-space: pre-line;
}
.text-link {
  display: inline-flex;
  margin-top: 12px;
  gap: 12px;
  font-weight: 760;
  text-decoration: none;
}
.hero-gallery {
  height: clamp(320px, 39vw, 520px);
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #dce7dd, #b7cabe);
}
.hero-gallery.single {
  display: block;
}
.hero-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-gallery img:first-child {
  grid-row: span 2;
}
.hero-gallery img:only-child {
  grid-row: auto;
}
.hero-gallery img:nth-child(2):last-child {
  grid-row: span 2;
}
.hero:not(.has-images) .hero-gallery {
  display: none;
}
.hero:not(.has-images) {
  grid-template-columns: 1fr;
  padding-block: 72px 54px;
}
.hero:not(.has-images) .hero-copy {
  max-width: 840px;
}
.booking-layout {
  width: min(1340px, 92vw);
  margin: 0 auto 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
.booking-main {
  min-width: 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}
.section-heading h2 {
  margin: 8px 0 18px;
}
.section-heading p {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}
.booking-page h2 {
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
  letter-spacing: -0.045em;
  line-height: 1.15;
}
.notice {
  color: var(--muted);
  min-height: 1.3em;
  margin: 0 0 16px;
}
.notice:empty {
  display: none;
}
.results {
  display: grid;
  gap: 22px;
}
.unit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 7px 28px rgba(30, 55, 46, 0.035);
  display: grid;
  grid-template-columns: minmax(225px, 40%) minmax(0, 1fr);
}
.unit-card.no-photo {
  grid-template-columns: 1fr;
}
.unit-media {
  position: relative;
  min-height: 310px;
  background: #e2e9e2;
}
.unit-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.unit-media .photo-count {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.75rem;
  font-weight: 750;
}
.unit-copy {
  padding: 26px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.unit-copy h3 {
  font-size: 1.6rem;
  letter-spacing: -0.04em;
  margin: 0 0 11px;
}
.unit-copy .description {
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-line;
  margin: 0 0 18px;
}
.unit-copy .capacity {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 760;
  margin: 0 0 24px;
}
.unit-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.unit-bottom .price {
  font-size: 1.65rem;
  font-weight: 850;
  letter-spacing: -0.04em;
}
.unit-bottom .price-label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 3px;
}
.unit-bottom .button {
  white-space: nowrap;
}
.deposit-note {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  margin: 12px 0 0;
}
.search-card {
  position: sticky;
  top: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.search-card h2 {
  margin: 8px 0 25px;
}
.search-grid,
.request-form,
.admin-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.search-grid label,
.request-form label,
.admin-form label {
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
}
.search-grid input,
.request-form input,
.request-form textarea,
.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid #ccd7d0;
  border-radius: 10px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
}
.search-grid input:focus,
.request-form input:focus,
.request-form textarea:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.search-hint {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  font-weight: 760;
  text-decoration: none;
}
.button.primary {
  background: var(--accent);
  color: #fff;
}
.button.primary:hover {
  filter: brightness(0.9);
}
.button.secondary {
  background: #fff;
  color: var(--accent);
}
.button.danger {
  background: #fff;
  color: #9a3434;
  border-color: #d7a7a7;
}
.button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.full {
  grid-column: 1/-1;
}
.request-card {
  width: min(1120px, 92vw);
  margin: 0 auto 90px;
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(26px, 4vw, 60px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.request-intro h2 {
  margin: 9px 0 16px;
}
.request-intro p {
  line-height: 1.6;
  color: var(--muted);
}
.price-summary {
  padding: 20px;
  background: #eef4ef;
  border-radius: 12px;
  line-height: 1.6;
  font-weight: 700;
}
.price-summary strong {
  display: block;
  font-size: 1.2rem;
}
.price-summary small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}
.checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 10px !important;
  font-weight: 500 !important;
  line-height: 1.5;
}
.checkbox input {
  width: auto !important;
  margin-top: 4px;
}
.request-form details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
}
.request-form details p {
  white-space: pre-wrap;
  line-height: 1.5;
}
.trap {
  position: absolute;
  left: -10000px;
  opacity: 0;
}
footer {
  padding: 30px max(4vw, 24px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}
.photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}
.photo-nav.prev {
  left: 12px;
}
.photo-nav.next {
  right: 12px;
}
.photo-nav:hover {
  background: #fff;
}
.booking-admin {
  background: #f6f8f6;
}
.booking-admin .topbar {
  min-height: 68px;
}
.admin-back-link {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}
.admin-back-link:hover {
  text-decoration: underline;
}
.admin-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 30px auto 88px;
}
.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.82rem;
}
.admin-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.admin-page-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 25px;
}
.admin-page-heading h1 {
  margin: 8px 0 10px;
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  letter-spacing: -0.055em;
  line-height: 1.08;
}
.admin-page-heading p {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.admin-page-heading .button {
  flex: 0 0 auto;
}
.property-toolbar {
  display: flex;
  align-items: end;
  gap: 18px;
  padding: 19px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.property-toolbar label,
.language-toolbar label {
  display: grid;
  gap: 6px;
  font-size: 0.83rem;
  font-weight: 750;
}
.property-toolbar select,
.language-toolbar input {
  min-height: 43px;
  border: 1px solid #ccd7d0;
  border-radius: 9px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}
.property-toolbar select {
  min-width: min(350px, 60vw);
}
.site-status,
.room-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf0ed;
  color: #5d6961;
  font-size: 0.76rem;
  font-weight: 800;
}
.site-status.published,
.room-status.active {
  background: #e4f2e9;
  color: #245f3d;
}
.property-toolbar .site-status {
  margin-bottom: 8px;
}
.property-actions {
  display: flex;
  gap: 9px;
  margin-left: auto;
}
.property-actions .button {
  min-height: 42px;
  font-size: 0.84rem;
}
.admin-section-nav {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  border-bottom: 1px solid #d5ded7;
  margin: 20px 0 24px;
}
.admin-section-nav a {
  flex: 0 0 auto;
  padding: 15px 2px;
  color: #52645b;
  font-size: 0.9rem;
  font-weight: 720;
  text-decoration: none;
}
.admin-section-nav a:hover,
.admin-section-nav a:focus-visible {
  color: var(--accent);
  box-shadow: inset 0 -3px var(--accent);
}
.admin-notice:not(:empty) {
  position: sticky;
  top: 12px;
  z-index: 10;
  padding: 14px 18px;
  border: 1px solid #c1d6c8;
  border-radius: 10px;
  background: #ebf5ee;
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(32, 61, 55, 0.08);
}
.admin-settings {
  display: grid;
  gap: 20px;
}
.admin-panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(22px, 3vw, 34px);
  border-radius: 14px;
  scroll-margin-top: 28px;
}
.admin-panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.admin-panel-heading h2 {
  margin: 7px 0 9px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.04em;
}
.admin-panel-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.count-badge {
  white-space: nowrap;
  padding: 7px 11px;
  background: #f0f3f0;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 750;
}
.unit-filter {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  overflow-x: auto;
}
.unit-filter button {
  flex: 0 0 auto;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 11px 2px;
  font-weight: 700;
}
.unit-filter button[aria-pressed="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.unit-filter span {
  margin-left: 4px;
  opacity: 0.75;
}
.panel-help,
.empty-state {
  color: var(--muted);
  line-height: 1.5;
}
.panel-help {
  margin: 20px 0 0;
  font-size: 0.85rem;
}
.admin-form .panel-help {
  align-self: end;
  margin: 0;
}
.empty-state {
  padding: 25px;
  background: #f7f9f7;
  border-radius: 10px;
}
.admin-form .checkbox {
  grid-column: 1/-1;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.request-item {
  border: 1px solid var(--line);
  padding: 17px;
  border-radius: 10px;
  margin: 12px 0;
}
.request-item h3 {
  margin: 0 0 8px;
}
.request-item p {
  margin: 6px 0;
}
.room-editors,
#translation-editors {
  display: grid;
  gap: 16px;
}
.room-editor {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: #fff;
}
.room-overview {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 16px;
}
.room-cover {
  width: 180px;
  height: 135px;
  overflow: hidden;
  border-radius: 8px;
  background: #e7eee8;
}
.room-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.room-cover-empty {
  display: grid;
  height: 100%;
  place-items: center;
  color: #71877a;
  font-size: 0.8rem;
  font-weight: 700;
}
.room-overview-info h3 {
  margin: 0 0 9px;
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}
.room-facts {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.84rem;
}
.room-overview-price {
  text-align: right;
}
.room-overview-price strong,
.room-overview-price span {
  display: block;
}
.room-overview-price strong {
  font-size: 1.2rem;
}
.room-overview-price span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}
.room-visibility {
  grid-column: 2/-1;
  display: flex !important;
  align-items: center;
  gap: 9px !important;
  justify-self: end;
  font-size: 0.83rem !important;
  font-weight: 650 !important;
}
.room-visibility input {
  width: auto !important;
  accent-color: var(--accent);
}
.room-details {
  border-top: 1px solid var(--line);
}
.room-details summary {
  padding: 13px 18px;
  color: var(--accent);
  font-size: 0.87rem;
  font-weight: 800;
  cursor: pointer;
}
.room-details[open] summary {
  border-bottom: 1px solid var(--line);
}
.room-detail-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 22px;
  background: #fbfcfb;
}
.room-detail-fields > .translation-room,
.room-detail-fields > .image-gallery-admin,
.room-detail-fields > h4,
.room-detail-fields > p {
  grid-column: 1/-1;
}
.room-detail-fields > h4 {
  margin: 0;
  padding-top: 6px;
}
.room-detail-fields > label,
.translation-room label,
.translation-card > label {
  display: grid;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 700;
}
.room-detail-fields input,
.room-detail-fields textarea,
.translation-card input,
.translation-card textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #ccd7d0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.translation-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 18px 18px;
  background: #fbfcfa;
}
.translation-card summary {
  padding: 17px 0;
  font-weight: 800;
  cursor: pointer;
}
.translation-card > label,
.translation-card > .button,
.translation-card > .translation-room,
.translation-card > .ui-translations {
  margin-top: 14px;
}
.room-editor h3,
.translation-card h3,
.translation-room h4 {
  margin: 0;
}
.translation-room {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  gap: 13px;
}
.image-gallery-admin {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.image-thumb {
  width: 140px;
  display: grid;
  gap: 6px;
}
.image-thumb img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}
.image-thumb button {
  font-size: 0.75rem;
  padding: 7px;
}
.ui-translations {
  display: grid;
  gap: 8px;
}
.ui-translations label {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.status {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.language-toolbar {
  display: flex;
  gap: 24px;
  align-items: end;
  flex-wrap: wrap;
  padding-bottom: 22px;
}
.language-toolbar > label input {
  max-width: 140px;
}
.language-add .actions input {
  width: 120px;
}
.stripe-action {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.publish-toggle {
  padding: 18px;
  border: 1px solid #cbded0;
  border-radius: 10px;
  background: #f3f8f4;
}
.publish-toggle small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
}
.save-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -8px 30px rgba(32, 61, 55, 0.08);
}
.save-bar span {
  color: var(--muted);
  font-size: 0.83rem;
}
.activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.activity-column {
  min-width: 0;
}
.activity-column .section-heading {
  align-items: center;
}
.activity-column h3 {
  margin: 0;
  font-size: 1.08rem;
}
.activity-column > p {
  font-size: 0.83rem;
}
.subtle {
  color: var(--muted);
}
@media (max-width: 1000px) {
  .room-overview {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .room-cover {
    width: 150px;
    height: 115px;
  }
  .room-overview-price {
    grid-column: 2;
    text-align: left;
  }
  .room-visibility {
    grid-column: 2;
    justify-self: start;
  }
  .activity-grid {
    grid-template-columns: 1fr;
  }
  .booking-layout {
    grid-template-columns: 1fr;
  }
  .search-card {
    position: static;
    grid-row: 1;
  }
  .search-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .search-grid .full {
    grid-column: auto;
  }
  .search-grid .button {
    align-self: end;
  }
  .search-hint {
    margin-top: 15px;
  }
  .hero {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 740px) {
  .admin-shell {
    width: calc(100% - 32px);
    margin-top: 22px;
  }
  .admin-page-heading {
    align-items: start;
    flex-direction: column;
  }
  .property-toolbar {
    align-items: start;
    flex-wrap: wrap;
  }
  .property-actions {
    width: 100%;
    margin-left: 0;
  }
  .room-overview {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px;
  }
  .room-cover {
    width: 110px;
    height: 100px;
  }
  .room-overview-price,
  .room-visibility {
    grid-column: 1/-1;
  }
  .room-detail-fields {
    grid-template-columns: 1fr;
  }
  .room-detail-fields > .translation-room,
  .room-detail-fields > .image-gallery-admin,
  .room-detail-fields > h4,
  .room-detail-fields > p {
    grid-column: auto;
  }
  .save-bar span {
    display: none;
  }
  .save-bar {
    position: static;
  }
  .save-bar .button {
    width: 100%;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }
  .hero-gallery {
    height: 330px;
  }
  .guest-nav > a {
    display: none;
  }
  .unit-card {
    grid-template-columns: 1fr;
  }
  .unit-media {
    min-height: 290px;
  }
  .unit-media img {
    position: relative;
    height: 290px;
  }
  .search-grid {
    grid-template-columns: 1fr 1fr;
  }
  .search-grid .full {
    grid-column: 1/-1;
  }
  .request-card {
    grid-template-columns: 1fr;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 0;
  }
  .section-heading p {
    text-align: left;
    margin: 0 0 18px;
  }
  .admin-form {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .topbar {
    min-height: 64px;
  }
  .hero-gallery {
    height: 250px;
  }
  .booking-layout {
    width: min(100% - 32px, 1340px);
  }
  .search-card {
    padding: 22px;
  }
  .unit-copy {
    padding: 22px;
  }
  .unit-bottom {
    align-items: stretch;
    flex-direction: column;
  }
  .request-form {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .request-card {
    width: calc(100% - 32px);
  }
  .admin-panel {
    padding: 20px;
  }
}

/* Verwaltung: ruhige Übersicht und ein Bearbeitungsbereich pro Zimmer. */
.booking-admin {
  --ink: #242424;
  --muted: #707070;
  --line: #e9e9e9;
  --accent: #222;
  color: #242424;
  background: #fff;
}
.booking-admin .gestionale-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 10px 28px;
  border-bottom: 1px solid #e9e9e9;
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(14px);
}
.booking-admin .gestionale-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: #242424;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.booking-admin .gestionale-brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px 9px 9px 2px;
  background: #315e50;
  color: #fff;
  font-style: italic;
  font-weight: 750;
}
.booking-admin .gestionale-brand-app {
  color: #6f7772;
  font-weight: 500;
}
.booking-admin .gestionale-navigation {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid #e7ebe8;
  border-radius: 999px;
  background: #f5f7f5;
}
.booking-admin .gestionale-navigation a {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #727872;
  font-size: 0.82rem;
  font-weight: 620;
  text-decoration: none;
  white-space: nowrap;
}
.booking-admin .gestionale-navigation a:hover {
  color: #242424;
}
.booking-admin .gestionale-navigation a.active {
  background: #fff;
  color: #242424;
  box-shadow: 0 1px 6px rgb(0 0 0 / 7%);
}
.booking-admin .gestionale-menu {
  position: relative;
  justify-self: end;
}
.booking-admin .gestionale-menu summary {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #e7ebe8;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  list-style: none;
  font-size: 1.1rem;
}
.booking-admin .gestionale-menu summary::-webkit-details-marker {
  display: none;
}
.booking-admin .gestionale-menu-panel {
  position: absolute;
  top: 43px;
  right: 0;
  display: grid;
  min-width: 210px;
  padding: 9px;
  border: 1px solid #e7ebe8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 32px rgb(0 0 0 / 10%);
}
.booking-admin .gestionale-menu-panel strong {
  padding: 9px 10px;
  color: #777;
  font-size: 0.78rem;
}
.booking-admin .gestionale-menu-panel a {
  padding: 9px 10px;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
}
.booking-admin .gestionale-menu-panel a:hover {
  background: #f5f7f5;
}
.booking-admin .admin-shell {
  width: min(1370px, calc(100% - 56px));
  margin: 10px auto 90px;
}
.booking-admin .admin-page-heading {
  align-items: center;
  margin: 12px 0 32px;
}
.booking-admin .admin-page-heading h1 {
  margin: 0 0 8px;
  font-size: clamp(2.1rem, 3.3vw, 3rem);
  letter-spacing: -0.045em;
}
.booking-admin .admin-page-heading p {
  color: #777;
  font-size: 0.96rem;
}
.booking-admin .button.primary {
  background: #242424;
  border-color: #242424;
  color: #fff;
}
.booking-admin .button.secondary {
  background: #f5f5f5;
  border-color: transparent;
  color: #242424;
}
.booking-admin .property-toolbar {
  border: 0;
  padding: 0;
  border-radius: 0;
  align-items: center;
  gap: 16px;
}
.booking-admin .property-toolbar label {
  color: #777;
}
.booking-admin .property-toolbar select {
  min-width: min(330px, 55vw);
  border-color: #dedede;
  border-radius: 8px;
}
.booking-admin .property-toolbar .site-status {
  margin: 17px 0 0;
}
.booking-admin .site-status,
.booking-admin .room-status {
  background: transparent;
  padding: 0;
  color: #707070;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}
.booking-admin .site-status::before,
.booking-admin .room-status::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: #a1a1a1;
}
.booking-admin .site-status.published::before,
.booking-admin .room-status.active::before {
  background: #19a34a;
}
.booking-admin .site-status.published,
.booking-admin .room-status.active {
  color: #666;
  background: transparent;
}
.booking-admin .admin-section-nav {
  gap: 32px;
  margin: 31px 0 23px;
  border-color: #ececec;
}
.booking-admin .admin-section-nav a {
  font-weight: 590;
  color: #737373;
  padding: 14px 1px;
}
.booking-admin .admin-section-nav a[aria-current="page"] {
  color: #242424;
  box-shadow: inset 0 -2px #242424;
}
.booking-admin .admin-settings {
  display: block;
}
.booking-admin .admin-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
}
.booking-admin .admin-panel-heading {
  margin: 12px 0 26px;
  align-items: center;
}
.booking-admin .admin-panel-heading h2 {
  margin: 0 0 5px;
  font-size: 1.55rem;
  letter-spacing: -0.025em;
}
.booking-admin .admin-panel-heading p {
  color: #777;
}
.booking-admin .admin-panel-heading .eyebrow {
  display: none;
}
.booking-admin .count-badge {
  color: #686868;
  background: #f4f4f4;
  font-weight: 600;
}
.booking-admin .unit-filter {
  gap: 27px;
  margin: 0 0 23px;
  border-color: #ececec;
}
.booking-admin .unit-filter button {
  color: #777;
  font-weight: 580;
}
.booking-admin .unit-filter button[aria-pressed="true"] {
  color: #242424;
  border-color: #242424;
}
.booking-admin .room-list-head,
.booking-admin .room-list-row {
  display: grid;
  grid-template-columns:
    minmax(310px, 2.6fr) minmax(130px, 1fr) minmax(150px, 1fr)
    minmax(130px, 0.9fr) 28px;
  gap: 24px;
  align-items: center;
}
.booking-admin .room-list-head {
  padding: 12px 18px 18px;
  color: #333;
  font-weight: 650;
  font-size: 0.91rem;
}
.booking-admin .room-list-row {
  min-height: 132px;
  padding: 14px 18px;
  color: #242424;
  text-decoration: none;
  border-top: 1px solid #ededed;
  transition: background 0.15s ease;
}
.booking-admin .room-list-row:hover,
.booking-admin .room-list-row:focus-visible {
  background: #fafafa;
  outline: 0;
}
.booking-admin .room-list-row:last-child {
  border-bottom: 1px solid #ededed;
}
.booking-admin .room-list-info {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 22px;
}
.booking-admin .room-list-name {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.booking-admin .room-list-name strong {
  font-size: 1.04rem;
  font-weight: 650;
  line-height: 1.35;
}
.booking-admin .room-list-name small,
.booking-admin .room-list-muted {
  color: #777;
  font-size: 0.91rem;
  font-weight: 400;
}
.booking-admin .room-list-arrow {
  color: #777;
  font-size: 1.8rem;
  text-align: right;
}
.booking-admin .room-list-info .room-cover {
  flex: 0 0 94px;
  width: 94px;
  height: 94px;
  border-radius: 14px;
  background: #f2f2f2;
}
.booking-admin .room-cover-empty {
  color: #888;
  font-weight: 500;
}
.booking-admin .panel-help {
  margin-top: 23px;
  color: #888;
}
.booking-admin #room-detail-panel {
  max-width: 1030px;
}
.booking-admin .room-back {
  display: inline-block;
  margin: 9px 0 27px;
  text-decoration: none;
  font-weight: 650;
  color: #333;
}
.booking-admin .room-back:hover {
  text-decoration: underline;
}
.booking-admin .room-editor {
  border: 0;
  border-radius: 0;
}
.booking-admin .room-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e9e9e9;
}
.booking-admin .room-detail-title {
  display: flex;
  align-items: center;
  gap: 21px;
  min-width: 0;
}
.booking-admin .room-detail-title .room-cover {
  width: 122px;
  height: 100px;
  border-radius: 12px;
  flex: 0 0 122px;
}
.booking-admin .room-detail-title h2 {
  margin: 0 0 7px;
  font-size: 1.55rem;
  letter-spacing: -0.025em;
}
.booking-admin .room-detail-title p {
  margin: 0;
  color: #777;
}
.booking-admin .room-visibility {
  display: flex !important;
  align-items: center;
  justify-self: auto;
  gap: 10px !important;
  flex: 0 0 auto;
  color: #333;
}
.booking-admin .room-visibility input {
  accent-color: #222;
}
.booking-admin .room-detail-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 30px;
  padding: 15px 0 0;
  background: #fff;
}
.booking-admin .room-section-title {
  grid-column: 1 / -1;
  margin: 26px 0 0;
  padding-top: 24px;
  border-top: 1px solid #ededed;
  font-size: 1.2rem;
}
.booking-admin .room-section-title:first-child {
  border-top: 0;
  padding-top: 0;
}
.booking-admin .room-detail-fields > .translation-room,
.booking-admin .room-detail-fields > .image-gallery-admin,
.booking-admin .room-detail-fields > p,
.booking-admin .room-language {
  grid-column: 1 / -1;
}
.booking-admin .translation-room {
  border: 0;
  padding: 0;
}
.booking-admin .translation-room h4 {
  display: none;
}
.booking-admin .room-detail-fields input,
.booking-admin .room-detail-fields textarea,
.booking-admin .translation-card input,
.booking-admin .translation-card textarea {
  border-color: #dedede;
  border-radius: 8px;
}
.booking-admin .room-detail-fields label,
.booking-admin .translation-room label,
.booking-admin .translation-card > label {
  color: #3a3a3a;
  font-weight: 590;
}
.booking-admin .room-language {
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  padding: 0 18px;
}
.booking-admin .room-language summary {
  padding: 16px 0;
  font-weight: 650;
  cursor: pointer;
}
.booking-admin .room-language .translation-room {
  padding: 0 0 20px;
}
.booking-admin .room-translation-toolbar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}
.booking-admin .room-translation-toolbar label {
  display: grid;
  gap: 6px;
}
.booking-admin .room-translation-toolbar input {
  width: 130px;
}
.booking-admin .room-translation-help {
  grid-column: 1 / -1;
  margin: 0;
  color: #777;
  font-size: 0.88rem;
}
.booking-admin .image-thumb {
  width: 155px;
}
.booking-admin .image-thumb img {
  width: 155px;
  height: 110px;
  border-radius: 10px;
}
.booking-admin #site-settings-view {
  display: grid;
  gap: 36px;
  max-width: 1030px;
}
.booking-admin #site-settings-view .admin-panel {
  padding-bottom: 36px;
  border-bottom: 1px solid #ededed;
}
.booking-admin .translation-card {
  background: #fff;
  border-color: #e9e9e9;
}
.booking-admin .publish-toggle {
  background: #f8f8f8;
  border-color: #e6e6e6;
}
.booking-admin .save-bar {
  max-width: 1030px;
  margin-top: 24px;
  border-color: #e7e7e7;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.05);
}
.booking-admin #activity-panel {
  max-width: 1150px;
}
.booking-admin .request-item {
  border-color: #e9e9e9;
}
@media (max-width: 850px) {
  .booking-admin .gestionale-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding-inline: 16px;
  }
  .booking-admin .gestionale-brand-app {
    display: none;
  }
  .booking-admin .gestionale-navigation {
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .booking-admin .gestionale-navigation::-webkit-scrollbar {
    display: none;
  }
  .booking-admin .gestionale-navigation a {
    padding-inline: 10px;
  }
  .booking-admin .gestionale-navigation a.active {
    order: -1;
  }
  .booking-admin .room-list-head,
  .booking-admin .room-list-row {
    grid-template-columns:
      minmax(260px, 2fr) minmax(130px, 1fr) minmax(110px, 0.9fr)
      20px;
    gap: 12px;
  }
  .booking-admin .room-list-head span:nth-child(2),
  .booking-admin .room-list-row > :nth-child(2) {
    display: none;
  }
}
@media (max-width: 620px) {
  .booking-admin .gestionale-header {
    grid-template-columns: 1fr auto;
    gap: 9px;
    padding-block: 10px;
  }
  .booking-admin .gestionale-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .booking-admin .gestionale-menu {
    grid-column: 2;
    grid-row: 1;
  }
  .booking-admin .admin-shell {
    width: calc(100% - 32px);
  }
  .booking-admin .admin-page-heading {
    margin-top: 5px;
  }
  .booking-admin #heading-save {
    display: none !important;
  }
  .booking-admin .admin-page-heading h1 {
    font-size: 2rem;
  }
  .booking-admin .property-toolbar {
    align-items: start;
  }
  .booking-admin .property-toolbar label {
    width: 100%;
  }
  .booking-admin .property-toolbar select {
    width: 100%;
    min-width: 0;
  }
  .booking-admin .property-toolbar .site-status {
    margin: 3px 0;
  }
  .booking-admin .property-actions {
    flex-wrap: wrap;
  }
  .booking-admin .admin-section-nav {
    gap: 24px;
    margin-top: 25px;
  }
  .booking-admin .admin-section-nav a {
    font-size: 0.84rem;
  }
  .booking-admin .room-list-head {
    display: none;
  }
  .booking-admin .room-list-row {
    grid-template-columns: minmax(0, 1fr) 20px;
    min-height: 108px;
    padding: 12px 0;
    gap: 8px;
  }
  .booking-admin .room-list-row > .room-list-muted,
  .booking-admin .room-list-row > .room-status {
    display: none;
  }
  .booking-admin .room-list-info {
    gap: 13px;
  }
  .booking-admin .room-list-info .room-cover {
    flex-basis: 82px;
    width: 82px;
    height: 82px;
  }
  .booking-admin .room-list-name strong {
    font-size: 0.95rem;
  }
  .booking-admin .room-detail-header {
    flex-direction: column;
    align-items: start;
  }
  .booking-admin .room-detail-title .room-cover {
    width: 95px;
    height: 85px;
    flex-basis: 95px;
  }
  .booking-admin .room-detail-title h2 {
    font-size: 1.22rem;
  }
  .booking-admin .room-detail-fields {
    grid-template-columns: 1fr;
  }
  .booking-admin .room-section-title,
  .booking-admin .room-language {
    grid-column: auto;
  }
  .booking-admin .save-bar {
    position: sticky;
    bottom: 0;
    padding: 12px;
  }
  .booking-admin .save-bar .button {
    width: 100%;
  }
}

/* Embedded pages can be narrower than the surrounding website. */
.search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.search-grid label, .search-grid input { min-width: 0; }
@media (max-width: 480px) {
  .search-grid { grid-template-columns: minmax(0, 1fr); }
  .search-grid .full, .search-grid .button { grid-column: 1; }
}
