:root {
  --ink: #141514;
  --muted: #5f6761;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --line: #dfe4dc;
  --forest: #1f6b4a;
  --leaf: #36a66a;
  --coral: #e96f4c;
  --amber: #d8a21b;
  --steel: #45637d;
  --danger: #b83232;
  --shadow: 0 18px 50px rgba(17, 25, 20, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 4px clamp(8px, 2vw, 26px);
  background: rgba(247, 248, 244, 0.92);
  border-bottom: 1px solid rgba(20, 21, 20, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(17, 25, 20, 0);
  transition: padding 0.18s ease, gap 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.brand,
.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.brand > span:last-child {
  min-width: 0;
  transition: opacity 0.14s ease, max-width 0.18s ease;
}

.brand strong,
.admin-brand {
  display: block;
  font-size: 0.86rem;
  letter-spacing: 0;
  line-height: 1.1;
}

.brand small {
  display: none;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--forest), var(--coral));
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 0.66rem;
  transition: width 0.18s ease, height 0.18s ease, flex-basis 0.18s ease, font-size 0.18s ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 4px 7px;
  color: #2d332f;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1.1;
  white-space: nowrap;
  transition: min-height 0.18s ease, padding 0.18s ease, font-size 0.18s ease, background 0.18s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(31, 107, 74, 0.1);
  color: var(--forest);
}

.site-nav .nav-icon {
  width: 28px;
  padding: 0;
  color: #fff;
  background: var(--ink);
}

.nav-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: width 0.18s ease, height 0.18s ease;
}

.site-header.is-condensed {
  gap: 6px;
  padding: 2px clamp(6px, 1.5vw, 18px);
  background: rgba(247, 248, 244, 0.98);
  box-shadow: 0 8px 24px rgba(17, 25, 20, 0.1);
}

.site-header.is-condensed .brand {
  gap: 0;
}

.site-header.is-condensed .brand > span:last-child {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
}

.site-header.is-condensed .brand-mark {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
  font-size: 0.52rem;
}

.site-header.is-condensed .site-nav a {
  min-height: 21px;
  padding: 2px 6px;
  font-size: 0.62rem;
}

.site-header.is-condensed .site-nav .nav-icon {
  width: 22px;
  padding: 0;
}

.site-header.is-condensed .nav-icon svg {
  width: 12px;
  height: 12px;
}

.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;
}

.hero {
  position: relative;
  min-height: min(700px, calc(100svh - 55px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 9, 7, 0.84) 0%, rgba(6, 9, 7, 0.56) 38%, rgba(6, 9, 7, 0.12) 74%),
    linear-gradient(0deg, rgba(6, 9, 7, 0.72), rgba(6, 9, 7, 0.02) 42%),
    url("/assets/hero-rentals.png") center / cover no-repeat;
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
  padding: clamp(36px, 8vw, 90px) clamp(18px, 5vw, 72px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 780;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: var(--forest);
  box-shadow: 0 12px 28px rgba(31, 107, 74, 0.24);
}

.button.secondary {
  color: var(--forest);
  background: #e7f3ec;
  border-color: rgba(31, 107, 74, 0.18);
}

.button.dark {
  color: #fff;
  background: var(--ink);
}

.button.ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.button.danger {
  color: #fff;
  background: var(--danger);
}

.button.small {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.button.full {
  width: 100%;
}

.section {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(44px, 7vw, 88px) 0;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 28px));
  margin-top: -44px;
  padding: 0;
  background: var(--line);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.intro-strip div {
  min-height: 154px;
  padding: 26px;
  background: var(--surface);
}

.intro-strip span {
  color: var(--amber);
  font-weight: 900;
}

.intro-strip strong {
  display: block;
  margin-top: 10px;
  font-size: 1.1rem;
}

.intro-strip p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-heading,
.result-head,
.panel-head,
.admin-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2,
.assurance-band h2,
.inquiry-section h2,
.detail-copy h1,
.page-hero h1,
.admin-topbar h1 {
  margin: 0;
}

.section-heading h2,
.assurance-band h2,
.inquiry-section h2 {
  max-width: 720px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading a,
.panel-head a {
  color: var(--forest);
  font-weight: 800;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.item-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(20, 21, 20, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(17, 25, 20, 0.08);
}

.item-image {
  display: block;
  aspect-ratio: 4 / 3;
  background: #dfe4dc;
}

.item-image img,
.detail-media img,
.table-item img,
.current-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-card-body {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.item-meta,
.price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.item-meta span {
  padding: 5px 9px;
  color: var(--steel);
  background: #edf3f5;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.item-card h2,
.item-card h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.15;
}

.item-card p {
  margin: 0;
  color: var(--muted);
}

.price-row strong {
  font-size: 1.2rem;
}

.price-row span {
  color: var(--muted);
}

.assurance-band {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  align-items: center;
  gap: 28px;
  width: 100%;
  padding-inline: clamp(18px, 5vw, 72px);
  background: #233226;
  color: #fff;
}

.assurance-band p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.page-hero {
  padding: clamp(44px, 7vw, 90px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(20, 21, 20, 0.82), rgba(20, 21, 20, 0.42)),
    url("/assets/hero-rentals.png") center / cover no-repeat;
  color: #fff;
}

.page-hero.compact {
  min-height: 340px;
  display: grid;
  align-items: end;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.filter-panel,
.inquiry-form,
.login-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(17, 25, 20, 0.08);
}

.filter-panel {
  position: sticky;
  top: 96px;
}

label {
  display: grid;
  gap: 7px;
  color: #26302b;
  font-weight: 760;
}

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

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(31, 107, 74, 0.14);
}

.result-head {
  margin-bottom: 16px;
  color: var(--muted);
}

.result-head strong {
  color: var(--ink);
}

.empty-state {
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.account-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-card,
.tenant-panel,
.tenant-side,
.reference-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(17, 25, 20, 0.08);
}

.account-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.account-card h2,
.tenant-panel h2,
.tenant-side h2 {
  margin: 0;
}

.account-card p,
.tenant-side,
.tenant-record p,
.tenant-record small {
  color: var(--muted);
}

.account-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--forest);
  border-radius: var(--radius);
  font-weight: 900;
}

.account-icon.owner {
  background: var(--ink);
}

.reference-box {
  display: inline-grid;
  gap: 5px;
  margin-top: 22px;
  padding: 16px 18px;
  color: var(--ink);
}

.reference-box span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.reference-box strong {
  font-size: 1.6rem;
  letter-spacing: 0.08em;
}

.reference-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.login-section {
  display: grid;
  justify-items: center;
}

.tenant-login {
  width: min(460px, 100%);
}

.tenant-login h2 {
  margin: 0;
  text-align: center;
}

.tenant-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
  align-items: start;
}

.tenant-main,
.tenant-list {
  display: grid;
  gap: 16px;
}

.tenant-panel,
.tenant-side {
  padding: 20px;
}

.tenant-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
  background: #f7f8f4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tenant-record h3 {
  margin: 8px 0 4px;
}

.tenant-actions {
  display: flex;
  align-items: start;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-form {
  margin-top: 18px;
}

.item-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.detail-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #dfe4dc;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  color: var(--steel);
  font-size: 1.18rem;
  font-weight: 720;
}

.detail-copy p {
  color: var(--muted);
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.detail-stats div {
  min-height: 94px;
  padding: 16px;
  background: #fff;
}

.detail-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.detail-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 1.35rem;
}

.detail-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-lists h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.detail-lists ul,
.legal-page ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.availability-section {
  border-top: 1px solid var(--line);
}

.calendar-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.calendar-legend i,
.booking-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #dce5dd;
}

.calendar-legend .available {
  background: #dff1e7;
}

.calendar-legend .busy,
.calendar-legend .confirmed,
.booking-dot.confirmed {
  background: var(--forest);
}

.calendar-legend .today {
  background: var(--coral);
}

.calendar-legend .reserved,
.booking-dot.reserved {
  background: var(--amber);
}

.calendar-legend .blocked,
.booking-dot.blocked {
  background: var(--steel);
}

.calendar-legend .cancelled,
.booking-dot.cancelled,
.booking-dot.completed {
  background: #9ca3a0;
}

.availability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.calendar-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(17, 25, 20, 0.06);
}

.calendar-card h2,
.calendar-card h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.calendar-weekdays,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.calendar-weekdays {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-align: center;
}

.calendar-day {
  min-height: 34px;
  display: grid;
  place-items: center;
  color: #26302b;
  background: #eef4ef;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 800;
}

.calendar-day.empty {
  visibility: hidden;
}

.calendar-day.busy {
  color: #fff;
  background: var(--forest);
}

.calendar-day.today {
  border-color: var(--coral);
  box-shadow: inset 0 0 0 1px var(--coral);
}

.calendar-day.past {
  opacity: 0.48;
}

.calendar-note,
.muted {
  color: var(--muted);
}

.admin-calendar-card {
  box-shadow: none;
}

.admin-month-grid {
  align-items: stretch;
}

.admin-day {
  min-height: 112px;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-direction: column;
  gap: 5px;
  padding: 7px;
  text-align: left;
  background: #f7f8f4;
}

.admin-day strong {
  font-size: 0.82rem;
}

.day-booking {
  display: block;
  overflow: hidden;
  padding: 4px 6px;
  color: #fff;
  background: var(--amber);
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-booking.confirmed {
  background: var(--forest);
}

.day-booking.blocked {
  background: var(--steel);
}

.day-booking.completed,
.day-booking.cancelled {
  color: #29302b;
  background: #d8ddd7;
}

.more-bookings {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.booking-list {
  display: grid;
  gap: 8px;
}

.booking-list.compact {
  gap: 6px;
}

.booking-row {
  display: grid;
  grid-template-columns: 10px minmax(160px, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f7f8f4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.booking-row span:not(.booking-dot),
.booking-row small {
  color: var(--muted);
}

.booking-row em {
  color: var(--forest);
  font-style: normal;
  font-weight: 850;
}

.calendar-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px auto auto auto;
  gap: 12px;
  align-items: end;
}

.inquiry-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.legal-note {
  padding: 16px;
  background: #fff7e2;
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
}

.legal-note a {
  color: var(--forest);
  font-weight: 800;
}

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

.checkline {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  color: var(--muted);
  font-weight: 650;
}

.checkline input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.form-error {
  padding: 12px 14px;
  color: #801f1f;
  background: #ffe7e1;
  border: 1px solid #f2b3a7;
  border-radius: var(--radius);
  font-weight: 760;
}

.legal-page {
  width: min(880px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 88px) 0;
}

.legal-page h1 {
  margin: 0 0 26px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
}

.legal-page h2 {
  margin: 34px 0 10px;
  font-size: 1.35rem;
}

.legal-page p {
  color: #3d463f;
}

.contract-layout {
  width: min(980px, calc(100% - 36px));
}

.contract-form {
  width: 100%;
}

.form-section-title {
  grid-column: 1 / -1;
}

.form-section-title h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.form-section-title p,
.contract-note {
  color: var(--muted);
}

.contract-actions {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  padding: 12px;
  background: rgba(247, 248, 244, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(17, 25, 20, 0.12);
  backdrop-filter: blur(10px);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

.site-footer strong {
  color: #fff;
}

.site-footer p {
  max-width: 560px;
  margin: 8px 0 0;
}

.site-footer nav {
  display: flex;
  align-items: start;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #fff;
  font-weight: 760;
}

.admin-body {
  display: block;
  min-height: 100svh;
  background: #eef2ed;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 34px;
  height: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px clamp(8px, 2vw, 18px);
  color: #fff;
  background: rgba(22, 32, 25, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(17, 25, 20, 0.14);
}

.admin-brand {
  flex: 0 0 auto;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
}

.admin-brand.large {
  justify-content: center;
  color: var(--ink);
  font-size: 1.1rem;
}

.admin-sidebar nav {
  display: flex;
  flex: 1 1 auto;
  gap: 3px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.admin-sidebar nav::-webkit-scrollbar {
  display: none;
}

.admin-sidebar nav a {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1.1;
  white-space: nowrap;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.admin-sidebar form {
  flex: 0 0 auto;
  margin-top: 0;
}

.admin-sidebar .button.ghost {
  width: auto;
  min-height: 24px;
  padding: 4px 7px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  font-size: 0.68rem;
  line-height: 1.1;
}

.admin-sidebar .brand-mark {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  font-size: 0.56rem;
}

.admin-main {
  min-width: 0;
  padding: clamp(14px, 2.5vw, 28px);
}

.admin-topbar {
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-topbar h1 {
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.metric,
.admin-panel {
  background: var(--surface);
  border: 1px solid rgba(20, 21, 20, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(17, 25, 20, 0.06);
}

.metric {
  min-height: 116px;
  padding: 22px;
}

.metric span {
  color: var(--muted);
  font-weight: 760;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 2.5rem;
  line-height: 1;
}

.admin-panel {
  padding: 22px;
  margin-bottom: 18px;
}

.panel-head h2 {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.table-item {
  display: flex;
  gap: 12px;
  min-width: 260px;
}

.table-item img {
  width: 78px;
  height: 58px;
  flex: 0 0 78px;
  border-radius: var(--radius);
}

.table-item span,
.block {
  display: block;
  color: var(--muted);
}

.actions-cell {
  white-space: nowrap;
}

.status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: #194d35;
  background: #dff1e7;
  font-size: 0.82rem;
  font-weight: 850;
}

.status.hidden,
.status.closed,
.status.cancelled {
  color: #5b4a12;
  background: #fff0bc;
}

.status.new {
  color: #7a2c1b;
  background: #ffe2d7;
}

.status.contacted {
  color: #244961;
  background: #e0edf5;
}

.login-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(247, 248, 244, 0.92), rgba(247, 248, 244, 0.74)),
    url("/assets/hero-rentals.png") center / cover no-repeat;
}

.login-panel {
  width: min(420px, 100%);
}

.login-panel h1 {
  margin: 0;
  text-align: center;
  font-size: 2rem;
}

.admin-form {
  display: grid;
  gap: 18px;
}

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

.form-grid .wide,
.legal-edit label {
  grid-column: 1 / -1;
}

.check-card {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-card input {
  width: 18px;
  min-height: 18px;
}

.media-edit {
  align-items: end;
}

.current-image {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 760;
}

.current-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: #dfe4dc;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.danger-zone {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e8c1bd;
}

.legal-edit {
  display: grid;
  gap: 18px;
}

.save-banner {
  margin-bottom: 18px;
  padding: 13px 15px;
  color: #17472f;
  background: #dff1e7;
  border: 1px solid #b6dfc6;
  border-radius: var(--radius);
  font-weight: 800;
}

.message-cell {
  max-width: 340px;
  white-space: pre-wrap;
}

@media (max-width: 980px) {
  .site-footer,
  .section-heading,
  .assurance-band,
  .item-detail,
  .inquiry-section,
  .catalog-layout,
  .account-choice,
  .tenant-layout {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: flex-end;
  }

  .intro-strip,
  .item-grid,
  .item-grid.catalog,
  .metric-grid,
  .availability-grid {
    grid-template-columns: 1fr;
  }

  .calendar-filter {
    grid-template-columns: 1fr;
  }

  .booking-row {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .booking-row em,
  .booking-row small,
  .booking-row span:not(.booking-dot) {
    grid-column: 2;
  }

  .tenant-record {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .admin-body {
    display: block;
  }

  .admin-sidebar {
    position: sticky;
    height: auto;
  }

  .admin-sidebar nav {
    display: flex;
    grid-template-columns: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 5px;
    padding: 3px 7px;
  }

  .brand {
    width: auto;
  }

  .brand span:last-child {
    min-width: 0;
  }

  .brand strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    font-size: 0.56rem;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-end;
  }

  .site-nav a {
    min-height: 23px;
    padding: 3px 6px;
    font-size: 0.64rem;
    text-align: center;
  }

  .site-nav .nav-icon {
    width: 24px;
    margin-left: auto;
  }

  .nav-icon svg {
    width: 13px;
    height: 13px;
  }

  .site-header.is-condensed {
    gap: 4px;
    padding: 1px 6px;
  }

  .site-header.is-condensed .site-nav a {
    min-height: 19px;
    padding: 1px 5px;
    font-size: 0.58rem;
  }

  .site-header.is-condensed .site-nav .nav-icon {
    width: 20px;
  }

  .hero {
    min-height: 540px;
  }

  .hero-bg {
    background:
      linear-gradient(0deg, rgba(6, 9, 7, 0.88) 0%, rgba(6, 9, 7, 0.64) 58%, rgba(6, 9, 7, 0.18) 100%),
      url("/assets/hero-rentals.png") center / cover no-repeat;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 11vw, 3.35rem);
  }

  .hero-content {
    padding: 30px 14px 38px;
  }

  .hero p:not(.eyebrow),
  .page-hero p:not(.eyebrow) {
    margin-top: 16px;
    font-size: 1rem;
  }

  .section {
    width: min(100% - 20px, 1180px);
    padding: 36px 0;
  }

  .intro-strip {
    width: min(100% - 20px, 1180px);
    margin-top: -28px;
  }

  .intro-strip div,
  .item-card-body,
  .filter-panel,
  .inquiry-form,
  .login-panel,
  .admin-panel {
    padding: 16px;
  }

  .page-hero {
    padding: 34px 14px;
  }

  .page-hero.compact {
    min-height: 280px;
  }

  .detail-copy h1,
  .legal-page h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

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

  .admin-topbar {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .admin-topbar .button {
    width: auto;
  }

  .button {
    width: 100%;
  }

  .form-row,
  .detail-stats,
  .detail-lists,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    gap: 4px;
    padding: 3px 6px;
  }

  .admin-sidebar nav {
    grid-template-columns: none;
  }

  .admin-sidebar nav a {
    min-height: 21px;
    padding: 3px 6px;
    font-size: 0.62rem;
  }

  .admin-sidebar .button.ghost {
    width: auto;
    min-height: 21px;
    padding: 3px 6px;
    font-size: 0.62rem;
  }

  .admin-sidebar .admin-brand span:last-child {
    display: none;
  }

  .admin-sidebar .brand-mark {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
    font-size: 0.52rem;
  }

  .calendar-card {
    padding: 14px;
  }

  .calendar-day {
    min-height: 30px;
    font-size: 0.78rem;
  }

  .admin-day {
    min-height: 86px;
    padding: 5px;
  }

  .day-booking {
    padding: 3px 4px;
    font-size: 0.6rem;
  }

  .site-footer {
    flex-direction: column;
  }
}
