:root {
  --ink: #183027;
  --ink-soft: #637269;
  --canvas: #f5f4ef;
  --surface: #ffffff;
  --surface-soft: #faf9f6;
  --line: #e2e3dd;
  --line-dark: #d2d5ce;
  --sage: #e9efea;
  --sage-deep: #315b4b;
  --sand: #d8c2a4;
  --sand-soft: #f2e9dc;
  --warning: #9c6a22;
  --warning-bg: #fbf1db;
  --shadow-sm: 0 5px 18px rgba(25, 47, 39, .07);
  --shadow-lg: 0 22px 70px rgba(19, 37, 31, .18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  margin: 0;
  min-width: 320px;
}

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

button,
a,
select { cursor: pointer; }

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(49, 91, 75, .22);
  outline-offset: 2px;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  background: #173027;
  color: white;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 24px 15px 16px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.sidebar-brand-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 0 8px 25px;
}

.admin-brand {
  align-items: center;
  display: flex;
  font-size: 19px;
  font-weight: 600;
  gap: 10px;
  letter-spacing: -.04em;
}

.brand-mark {
  align-items: center;
  background: #f0ece3;
  border-radius: 50%;
  color: var(--ink);
  display: flex;
  height: 35px;
  justify-content: center;
  width: 35px;
}

.brand-mark svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  width: 19px;
}

.admin-brand > span:last-child { display: grid; }

.admin-brand small {
  color: #aebdb6;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .1em;
  margin-top: -2px;
  text-transform: uppercase;
}

.sidebar-close,
.mobile-menu-button {
  align-items: center;
  background: transparent;
  border: 0;
  display: none;
  justify-content: center;
}

.admin-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
}

.nav-label {
  color: #879b92;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  margin: 8px 12px 7px;
  text-transform: uppercase;
}

.nav-label-secondary { margin-top: 23px; }

.admin-nav a {
  align-items: center;
  border-radius: 8px;
  color: #b9c8c1;
  display: grid;
  font-size: 13px;
  font-weight: 500;
  gap: 11px;
  grid-template-columns: 19px 1fr auto;
  min-height: 43px;
  padding: 0 12px;
}

.admin-nav a:hover { background: rgba(255, 255, 255, .05); color: white; }

.admin-nav a.active {
  background: rgba(255, 255, 255, .1);
  color: white;
}

.admin-nav svg { height: 18px; width: 18px; }

.admin-nav b {
  background: rgba(255, 255, 255, .1);
  border-radius: 999px;
  font-size: 9px;
  min-width: 22px;
  padding: 4px 6px;
  text-align: center;
}

.admin-nav b.notice { background: #d5b58b; color: #173027; }

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding-top: 15px;
}

.mvp-indicator {
  align-items: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 9px;
  display: grid;
  gap: 9px;
  grid-template-columns: 30px 1fr;
  padding: 9px;
}

.mvp-indicator > span {
  align-items: center;
  background: rgba(216, 194, 164, .15);
  border-radius: 7px;
  color: #e0c6a4;
  display: flex;
  height: 30px;
  justify-content: center;
}

.mvp-indicator svg { height: 15px; width: 15px; }
.mvp-indicator div { display: grid; gap: 2px; }
.mvp-indicator strong { font-size: 10px; }
.mvp-indicator small { color: #95a79f; font-size: 8px; }

.admin-profile {
  align-items: center;
  background: transparent;
  border: 0;
  color: white;
  display: grid;
  gap: 9px;
  grid-template-columns: 34px 1fr 16px;
  margin-top: 10px;
  padding: 8px;
  text-align: left;
  width: 100%;
}

.admin-profile > span {
  align-items: center;
  background: var(--sand);
  border-radius: 50%;
  color: var(--ink);
  display: flex;
  font-size: 10px;
  font-weight: 600;
  height: 34px;
  justify-content: center;
}

.admin-profile div { display: grid; gap: 2px; }
.admin-profile strong { font-size: 11px; }
.admin-profile small { color: #91a49b; font-size: 9px; }
.admin-profile > svg { color: #82958c; height: 14px; width: 14px; }

.sidebar-backdrop { display: none; }

.admin-main { min-width: 0; }

.admin-topbar {
  align-items: center;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 58px;
  justify-content: space-between;
  padding: 0 31px;
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  z-index: 20;
}

.topbar-path,
.topbar-actions {
  align-items: center;
  display: flex;
}

.topbar-path { color: #8a958f; font-size: 12px; gap: 7px; }
.topbar-path svg { height: 13px; width: 13px; }
.topbar-path strong { color: var(--ink); font-weight: 500; }

.topbar-actions { gap: 9px; }

.preview-site-link,
.notification-button {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  display: flex;
  height: 34px;
  justify-content: center;
}

.preview-site-link {
  font-size: 11px;
  gap: 7px;
  padding: 0 12px;
}

.preview-site-link svg,
.notification-button svg { height: 15px; width: 15px; }

.notification-button { position: relative; width: 34px; }
.notification-button span {
  background: #b98555;
  border: 2px solid white;
  border-radius: 50%;
  height: 7px;
  position: absolute;
  right: 6px;
  top: 6px;
  width: 7px;
}

.admin-content {
  margin: 0 auto;
  max-width: 1460px;
  padding: 34px 31px 45px;
}

.page-heading {
  align-items: end;
  display: flex;
  gap: 30px;
  justify-content: space-between;
}

.page-kicker,
.drawer-kicker {
  color: #8a958f;
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.page-heading h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(34px, 3vw, 45px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1;
  margin: 0;
}

.page-heading h1 em { color: #7b8d83; font-weight: 400; }

.page-heading p {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
  margin: 11px 0 0;
}

.primary-button,
.secondary-button {
  align-items: center;
  border: 0;
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
}

.primary-button { background: var(--ink); color: white; }
.primary-button:hover { background: #24483c; }
.primary-button:disabled { cursor: wait; opacity: .58; }
.primary-button.is-loading svg { animation: media-save-spin .8s linear infinite; }
.primary-button svg { height: 16px; width: 16px; }
@keyframes media-save-spin { to { transform: rotate(360deg); } }
.secondary-button { background: white; border: 1px solid var(--line-dark); color: var(--ink); }

.stats-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 29px;
}

.stats-grid article {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 42px 1fr;
  min-height: 105px;
  padding: 17px;
}

.stat-icon {
  align-items: center;
  background: var(--sage);
  color: var(--sage-deep);
  display: flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.stat-icon-live { background: #e6f2e9; color: #3e7651; }
.stat-icon-draft { background: var(--warning-bg); color: var(--warning); }
.stat-icon-rate { background: var(--sand-soft); color: #876d4e; }
.stat-icon svg { height: 19px; width: 19px; }
.stats-grid article > div { display: grid; grid-template-columns: 1fr auto; }
.stats-grid small { color: var(--ink-soft); font-size: 10px; grid-column: 1; }
.stats-grid strong { font-size: 23px; font-weight: 500; grid-column: 1; margin-top: 2px; }
.stats-grid p { color: #929b96; font-size: 9px; grid-column: 1; margin: 3px 0 0; }

.listing-section {
  background: white;
  border: 1px solid var(--line);
  margin-top: 18px;
}

.listing-section-header {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 20px;
}

.listing-section-header h2 { font-size: 15px; margin: 0; }
.listing-section-header p { color: var(--ink-soft); font-size: 10px; margin: 4px 0 0; }
.listing-tools { display: flex; gap: 8px; }

.search-field,
.select-field {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  display: flex;
  height: 38px;
}

.search-field { gap: 8px; padding: 0 11px; width: 245px; }
.search-field svg,
.select-field svg { color: #849087; height: 15px; flex: 0 0 15px; width: 15px; }
.search-field input {
  background: transparent;
  border: 0;
  font-size: 11px;
  height: 100%;
  min-width: 0;
  outline: none;
  width: 100%;
}

.select-field { gap: 7px; padding: 0 10px; }
.select-field select {
  appearance: none;
  background: transparent;
  border: 0;
  font-size: 11px;
  outline: none;
  padding-right: 4px;
}
.select-field svg:last-child { height: 13px; width: 13px; }

.listing-table-wrap { border-top: 1px solid var(--line); overflow-x: auto; }
.listing-table { border-collapse: collapse; min-width: 900px; table-layout: fixed; width: 100%; }
.listing-table th {
  background: #f8f8f5;
  color: #8b958f;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 10px 14px;
  text-align: left;
  text-transform: uppercase;
}
.listing-table th:first-child { padding-left: 20px; width: 27%; }
.listing-table th:nth-child(2) { width: 11%; }
.listing-table th:nth-child(3) { width: 13%; }
.listing-table th:nth-child(4) { width: 16%; }
.listing-table th:nth-child(5) { width: 13%; }
.listing-table th:nth-child(6) { width: 12%; }
.listing-table th:last-child { width: 48px; }
.listing-table td { border-top: 1px solid #ecece8; font-size: 11px; padding: 12px 14px; vertical-align: middle; }
.listing-table tbody tr:hover { background: #fbfbf8; }
.listing-table td:first-child { padding-left: 20px; }

.property-cell {
  align-items: center;
  display: grid;
  gap: 11px;
  grid-template-columns: 52px 1fr;
}
.property-cell img { height: 46px; object-fit: cover; width: 52px; }
.property-cell div { display: grid; gap: 3px; min-width: 0; }
.property-cell strong { font-family: "Instrument Serif", Georgia, serif; font-size: 16px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.property-cell small { color: #849088; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.status-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 9px;
  font-weight: 600;
  gap: 5px;
  padding: 6px 8px;
}
.status-pill::before { background: currentColor; border-radius: 50%; content: ""; height: 5px; width: 5px; }
.status-pill.published { background: #e8f3ea; color: #447554; }
.status-pill.draft { background: var(--warning-bg); color: var(--warning); }

.capacity-cell { color: #5e6c64; }
.capacity-cell span { display: inline-flex; gap: 4px; margin-right: 8px; }
.capacity-cell svg { height: 13px; width: 13px; }
.location-cell { color: #5e6c64; }
.price-cell strong { display: block; font-size: 11px; font-weight: 600; }
.price-cell small,
.updated-cell { color: #89938d; font-size: 9px; }

.row-action {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  color: #65736b;
  display: flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}
.row-action:hover { background: var(--sage); color: var(--ink); }
.row-action svg { height: 14px; width: 14px; }

.empty-listings { justify-items: center; padding: 60px 20px; text-align: center; }
.empty-listings:not([hidden]) { display: grid; }
.empty-listings > span {
  align-items: center;
  background: var(--sage);
  color: var(--sage-deep);
  display: flex;
  height: 45px;
  justify-content: center;
  width: 45px;
}
.empty-listings svg { height: 20px; width: 20px; }
.empty-listings h3 { font-size: 14px; margin: 13px 0 4px; }
.empty-listings p { color: var(--ink-soft); font-size: 11px; margin: 0; }

.table-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 11px 20px;
}
.table-footer p { color: var(--ink-soft); font-size: 9px; margin: 0; }
.table-footer div { align-items: center; display: flex; gap: 6px; }
.table-footer button,
.table-footer span {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  display: flex;
  font-size: 9px;
  height: 27px;
  justify-content: center;
  width: 27px;
}
.table-footer span { background: var(--ink); border-color: var(--ink); color: white; }
.table-footer button:disabled { color: #b8beba; cursor: default; }
.table-footer svg { height: 13px; width: 13px; }

.drawer-layer {
  inset: 0;
  pointer-events: none;
  position: fixed;
  visibility: hidden;
  z-index: 100;
}
.drawer-layer.open { pointer-events: auto; visibility: visible; }
.drawer-backdrop {
  background: rgba(14, 29, 24, .42);
  border: 0;
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 220ms ease;
  width: 100%;
}
.drawer-layer.open .drawer-backdrop { opacity: 1; }

.listing-drawer {
  background: white;
  box-shadow: var(--shadow-lg);
  height: 100%;
  max-width: 680px;
  position: absolute;
  right: 0;
  top: 0;
  transform: translateX(100%);
  transition: transform 260ms cubic-bezier(.22, .75, .2, 1);
  width: min(100%, 680px);
}
.drawer-layer.open .listing-drawer { transform: translateX(0); }
.listing-drawer form { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; height: 100%; }

.drawer-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 20px 24px;
}
.drawer-header h2 { font-family: "Instrument Serif", Georgia, serif; font-size: 27px; font-weight: 400; margin: 0; }
.drawer-kicker { margin-bottom: 3px; }
.drawer-close {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}
.drawer-close svg { height: 16px; width: 16px; }

.drawer-progress {
  align-items: center;
  background: #fafaf7;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  padding: 11px 24px;
}
.drawer-progress span { align-items: center; color: #98a19c; display: flex; font-size: 9px; font-weight: 600; gap: 6px; }
.drawer-progress span.active { color: var(--ink); }
.drawer-progress i {
  align-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: flex;
  font-size: 8px;
  font-style: normal;
  height: 20px;
  justify-content: center;
  width: 20px;
}
.drawer-progress .active i { background: var(--ink); border-color: var(--ink); color: white; }
.drawer-progress b { background: var(--line); height: 1px; margin: 0 10px; }

.drawer-scroll { overflow-y: auto; padding: 0 24px 30px; }
.form-section { border-bottom: 1px solid var(--line); padding: 26px 0; }
.form-section:last-child { border-bottom: 0; }
.form-section-heading { align-items: start; display: grid; gap: 10px; grid-template-columns: 26px 1fr; margin-bottom: 19px; }
.form-section-heading > span {
  align-items: center;
  background: var(--sage);
  color: var(--sage-deep);
  display: flex;
  font-size: 9px;
  font-weight: 600;
  height: 26px;
  justify-content: center;
  width: 26px;
}
.form-section-heading h3 { font-size: 14px; margin: 1px 0 3px; }
.form-section-heading p { color: var(--ink-soft); font-size: 10px; margin: 0; }

.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 15px; }
.form-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-field { display: grid; gap: 6px; }
.form-field-wide { margin-bottom: 15px; }
.form-field > span,
.amenity-options legend { color: #586860; font-size: 10px; font-weight: 600; }
.form-field > span b { color: #a45d45; }
.form-field input,
.form-field select,
.form-field textarea {
  background: white;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  font-size: 12px;
  min-height: 41px;
  outline: none;
  padding: 10px 11px;
  width: 100%;
}
.form-field textarea { line-height: 1.5; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: #698276; box-shadow: 0 0 0 3px rgba(49, 91, 75, .08); }
.form-field > small { color: #98a19c; font-size: 9px; }

.image-url-field,
.input-with-icon,
.currency-field { position: relative; }
.image-url-field > svg,
.input-with-icon > svg {
  color: #849188;
  height: 15px;
  left: 11px;
  position: absolute;
  top: 13px;
  width: 15px;
}
.image-url-field input,
.input-with-icon input { padding-left: 35px; }
.currency-field b {
  color: #68766e;
  font-size: 11px;
  left: 11px;
  position: absolute;
  top: 13px;
}
.currency-field input { padding-left: 36px; }

[hidden] { display: none !important; }
.property-media-field { display: grid; gap: 9px; }
.property-media-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
}
.property-media-heading > div { display: grid; gap: 3px; }
.property-media-heading strong { color: #586860; font-size: 10px; }
.property-media-heading small { color: #8a958f; font-size: 9px; }
.property-media-heading > span {
  background: var(--sage);
  color: var(--sage-deep);
  font-size: 8px;
  padding: 4px 6px;
  text-transform: uppercase;
}
.media-dropzone {
  align-items: center;
  background: #fbfcf9;
  border: 1px dashed #aebbb3;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr auto;
  padding: 14px;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.media-dropzone:hover,
.media-dropzone.is-dragging {
  background: #f0f4ef;
  border-color: var(--sage-deep);
  box-shadow: inset 0 0 0 1px var(--sage-deep);
}
.media-drop-icon {
  align-items: center;
  background: var(--sage);
  color: var(--sage-deep);
  display: flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}
.media-drop-icon svg { height: 18px; width: 18px; }
.media-drop-copy { display: grid; gap: 3px; }
.media-drop-copy strong { color: var(--ink); font-size: 11px; }
.media-drop-copy small { color: #7e8a83; font-size: 9px; }
.media-dropzone em {
  color: #8d9791;
  font-size: 8px;
  font-style: normal;
  text-align: right;
}
.property-dropzone { min-height: 92px; }
.property-media-previews {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.property-media-thumb {
  background: #e9ece7;
  border: 1px solid transparent;
  margin: 0;
  min-width: 0;
  position: relative;
}
.property-media-thumb.is-cover { border-color: var(--sage-deep); }
.property-media-thumb > button:first-child {
  background: transparent;
  border: 0;
  display: block;
  height: 88px;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}
.property-media-thumb img { height: 100%; object-fit: cover; width: 100%; }
.property-media-thumb span {
  background: rgba(18, 39, 31, .78);
  bottom: 4px;
  color: white;
  font-size: 7px;
  left: 4px;
  padding: 3px 5px;
  position: absolute;
}
.property-media-thumb:not(.is-cover) span { background: rgba(89, 104, 96, .78); }
.remove-property-media {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  color: #839088;
  display: flex;
  height: 24px;
  justify-content: center;
  position: absolute;
  right: 4px;
  top: 4px;
  width: 24px;
}
.remove-property-media:hover { color: #a34f3d; }
.remove-property-media svg { height: 11px; width: 11px; }

.amenity-options { border: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; padding: 0; }
.amenity-options legend { margin-bottom: 9px; }
.amenity-options label { position: relative; }
.amenity-options input { opacity: 0; position: absolute; }
.amenity-options label span {
  align-items: center;
  background: white;
  border: 1px solid var(--line-dark);
  display: flex;
  font-size: 10px;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
}
.amenity-options input:checked + span { background: var(--sage); border-color: #afc2b7; color: var(--ink); }
.amenity-options svg { height: 14px; width: 14px; }

.room-editor-heading {
  align-items: end;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 22px 0 10px;
}
.room-editor-heading strong { display: block; font-size: 11px; }
.room-editor-heading p { color: #87928c; font-size: 9px; line-height: 1.45; margin: 3px 0 0; }
.room-editor-heading button {
  align-items: center;
  background: white;
  border: 1px solid var(--line-dark);
  display: flex;
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 600;
  gap: 5px;
  min-height: 32px;
  padding: 0 9px;
}
.room-editor-heading button:hover { background: var(--sage); }
.room-editor-heading svg { height: 13px; width: 13px; }

.room-editor { display: grid; gap: 10px; margin-bottom: 19px; }
.room-entry {
  background: #fafaf7;
  border: 1px solid var(--line);
  padding: 13px;
}
.room-entry-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.room-entry-header span { align-items: center; display: flex; font-size: 10px; font-weight: 600; gap: 7px; }
.room-entry-header span i {
  align-items: center;
  background: var(--sage);
  color: var(--sage-deep);
  display: flex;
  font-size: 8px;
  font-style: normal;
  height: 22px;
  justify-content: center;
  width: 22px;
}
.remove-room-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #8d9892;
  display: flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}
.remove-room-button:hover { color: #a34f3d; }
.remove-room-button:disabled { cursor: default; opacity: .3; }
.remove-room-button svg { height: 14px; width: 14px; }
.room-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(140px, 1.5fr) .6fr .75fr 1fr;
}
.room-fields .form-field > span { font-size: 9px; }
.room-fields .form-field input,
.room-fields .form-field select { font-size: 10px; min-height: 36px; padding: 8px 9px; }
.room-price-field { grid-column: 1 / -1; max-width: 230px; }
.room-price-field .currency-field input { padding-left: 35px; }
.booking-model-whole .room-editor-heading,
.booking-model-whole .room-editor { display: none; }
.booking-model-room #wholeVillaPriceField { opacity: .72; }

.room-media {
  border-top: 1px solid var(--line);
  margin-top: 13px;
  padding-top: 12px;
}
.room-media-heading {
  align-items: center;
  display: flex;
  margin-bottom: 9px;
}
.room-media-heading > div { display: grid; gap: 2px; }
.room-media-heading strong { font-size: 10px; }
.room-media-heading small { color: #8a958f; font-size: 8px; }
.room-media-dropzone {
  min-height: 68px;
  padding: 10px 11px;
}
.room-media-dropzone .media-drop-icon { height: 34px; width: 34px; }
.room-media-dropzone .media-drop-icon svg { height: 15px; width: 15px; }
.room-media-dropzone .media-drop-copy strong { font-size: 10px; }
.room-media-previews {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 8px;
}
.room-media-thumb {
  background: #e9ece7;
  border: 1px solid transparent;
  margin: 0;
  min-width: 0;
  position: relative;
}
.room-media-thumb.is-cover { border-color: var(--sage-deep); }
.room-media-thumb > button:first-child {
  background: transparent;
  border: 0;
  display: block;
  height: 72px;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}
.room-media-thumb img { height: 100%; object-fit: cover; width: 100%; }
.room-media-thumb span {
  background: rgba(18, 39, 31, .78);
  bottom: 4px;
  color: white;
  font-size: 7px;
  left: 4px;
  padding: 3px 5px;
  position: absolute;
}
.room-media-thumb:not(.is-cover) span { background: rgba(89, 104, 96, .78); }
.remove-room-media {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  color: #839088;
  display: flex;
  height: 24px;
  justify-content: center;
  position: absolute;
  right: 4px;
  top: 4px;
  width: 24px;
}
.remove-room-media:hover { color: #a34f3d; }
.remove-room-media svg { height: 11px; width: 11px; }

.admin-location-map {
  background: #e4e9e3;
  height: 260px;
  overflow: hidden;
  position: relative;
}
.admin-location-map .maplibregl-canvas { outline: none; }
.admin-location-map .maplibregl-ctrl-group { border-radius: 0; box-shadow: var(--shadow-sm); }
.admin-location-map .maplibregl-ctrl-attrib { font-size: 8px; }
.admin-map-marker-shell { display: block; }
.admin-map-pin {
  align-items: center;
  background: rgba(24, 48, 39, .16);
  border: 1px solid rgba(24, 48, 39, .24);
  border-radius: 50%;
  display: flex;
  height: 48px;
  justify-content: center;
  position: relative;
  width: 48px;
}
.admin-map-pin::after {
  background: var(--ink);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(20, 38, 32, .22);
  content: "";
  height: 14px;
  width: 14px;
}
.coordinate-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 12px; }
.location-note { align-items: center; color: #748178; display: flex; font-size: 9px; gap: 6px; margin: 10px 0 0; }
.location-note svg { color: #4e725f; height: 14px; width: 14px; }

.drawer-footer {
  align-items: center;
  background: white;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 13px 24px;
}
.drawer-footer > p { align-items: center; color: #7b8780; display: flex; font-size: 9px; gap: 7px; margin: 0; }
.drawer-footer > p > svg { height: 15px; width: 15px; }
.drawer-footer > p span { display: grid; }
.drawer-footer > p strong { color: var(--ink); font-size: 9px; }
.drawer-footer > div { display: flex; gap: 8px; }

.admin-toast {
  align-items: center;
  background: #173027;
  bottom: 24px;
  box-shadow: 0 16px 40px rgba(15, 32, 26, .25);
  color: white;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px 1fr;
  min-width: 310px;
  opacity: 0;
  padding: 13px;
  pointer-events: none;
  position: fixed;
  right: 24px;
  transform: translateY(20px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 150;
}
.admin-toast.show { opacity: 1; transform: translateY(0); }
.admin-toast > span { align-items: center; background: rgba(255, 255, 255, .1); display: flex; height: 34px; justify-content: center; }
.admin-toast svg { height: 17px; width: 17px; }
.admin-toast div { display: grid; gap: 2px; }
.admin-toast strong { font-size: 11px; }
.admin-toast p { color: #b5c5bd; font-size: 9px; margin: 0; }

@media (max-width: 1120px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-section-header { align-items: start; flex-direction: column; }
  .listing-tools { width: 100%; }
  .search-field { flex: 1; width: auto; }
}

@media (max-width: 820px) {
  .admin-shell { display: block; }
  .admin-sidebar {
    left: 0;
    max-width: 280px;
    position: fixed;
    transform: translateX(-100%);
    transition: transform 220ms ease;
    width: calc(100% - 55px);
  }
  body.sidebar-open .admin-sidebar { transform: translateX(0); }
  .sidebar-close { color: white; display: flex; height: 34px; width: 34px; }
  .sidebar-close svg { height: 17px; width: 17px; }
  .sidebar-backdrop {
    background: rgba(12, 27, 22, .42);
    border: 0;
    display: block;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 180ms ease;
    width: 100%;
    z-index: 35;
  }
  body.sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
  .mobile-menu-button { display: flex; height: 34px; margin-left: -8px; width: 34px; }
  .mobile-menu-button svg { height: 18px; width: 18px; }
  .admin-topbar { padding: 0 18px; }
  .topbar-path > span,
  .topbar-path > svg,
  .topbar-path > strong { display: none; }
  .admin-content { padding: 28px 18px 40px; }
}

@media (max-width: 620px) {
  .preview-site-link span { display: none; }
  .preview-site-link { padding: 0; width: 34px; }
  .page-heading { align-items: stretch; flex-direction: column; gap: 18px; }
  .page-heading .primary-button { align-self: start; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stats-grid article { gap: 8px; grid-template-columns: 34px 1fr; min-height: 92px; padding: 12px; }
  .stat-icon { height: 34px; width: 34px; }
  .stat-icon svg { height: 16px; width: 16px; }
  .stats-grid strong { font-size: 18px; }
  .listing-tools { flex-direction: column; }
  .search-field,
  .select-field { width: 100%; }
  .listing-table-wrap { overflow: visible; }
  .listing-table { display: block; min-width: 0; padding: 0 12px; }
  .listing-table thead { display: none; }
  .listing-table tbody { display: grid; }
  .listing-table tr {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 11px;
    grid-template-columns: 1fr 1fr;
    padding: 15px 2px;
    position: relative;
  }
  .listing-table td { border: 0; display: block; padding: 0; }
  .listing-table td:first-child { grid-column: 1 / -1; padding: 0 42px 0 0; }
  .listing-table td:nth-child(2) { position: absolute; right: 0; top: 15px; }
  .listing-table td:nth-child(3)::before,
  .listing-table td:nth-child(4)::before,
  .listing-table td:nth-child(5)::before,
  .listing-table td:nth-child(6)::before {
    color: #929c96;
    display: block;
    font-size: 8px;
    letter-spacing: .06em;
    margin-bottom: 3px;
    text-transform: uppercase;
  }
  .listing-table td:nth-child(3)::before { content: "Capacity"; }
  .listing-table td:nth-child(4)::before { content: "Location"; }
  .listing-table td:nth-child(5)::before { content: "Price / night"; }
  .listing-table td:nth-child(6)::before { content: "Updated"; }
  .listing-table td:last-child { position: absolute; bottom: 15px; right: 0; }
  .property-cell { grid-template-columns: 62px 1fr; }
  .property-cell img { height: 54px; width: 62px; }
  .table-footer { padding-inline: 14px; }
  .drawer-header,
  .drawer-progress,
  .drawer-scroll,
  .drawer-footer { padding-left: 17px; padding-right: 17px; }
  .drawer-progress span { font-size: 0; }
  .drawer-progress span i { font-size: 8px; }
  .form-grid,
  .form-grid-three,
  .coordinate-row { grid-template-columns: 1fr; }
  .room-editor-heading { align-items: start; flex-direction: column; }
  .room-fields { grid-template-columns: 1fr 1fr; }
  .room-price-field { grid-column: 1 / -1; max-width: none; }
  .media-dropzone { grid-template-columns: auto 1fr; }
  .media-dropzone > em { grid-column: 2; text-align: left; }
  .property-media-previews,
  .room-media-previews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .drawer-footer { align-items: stretch; flex-direction: column; }
  .drawer-footer > p { display: none; }
  .drawer-footer > div { display: grid; grid-template-columns: .65fr 1fr; }
  .admin-toast { bottom: 13px; left: 13px; min-width: 0; right: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
