:root {
  --ink: #101827;
  --muted: #64748b;
  --primary: #0a192f;
  --primary-soft: #d6e3ff;
  --primary-mid: #344761;
  --secondary: #ff6b35;
  --secondary-soft: #ffdbd0;
  --paper: #f7f9fb;
  --line: #e2e8f0;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(10, 25, 47, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
}

img,
video {
  max-width: 100%;
}

button {
  cursor: pointer;
}

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

.app-shell {
  min-height: 100vh;
}

.is-hidden {
  display: none !important;
}

.topbar {
  align-items: center;
  background: rgba(248, 249, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(191, 200, 198, 0.55);
  display: flex;
  gap: 24px;
  height: 76px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(20px, 5vw, 64px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  color: var(--primary);
  display: flex;
  font-family: Montserrat, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  gap: 10px;
}

.brand-mark {
  background: var(--primary);
  border-radius: 8px;
  color: var(--primary-soft);
  display: grid;
  font-size: 0.85rem;
  height: 34px;
  place-items: center;
  text-transform: uppercase;
  width: 34px;
}

.desktop-nav {
  display: flex;
  gap: 24px;
}

.desktop-nav a {
  color: var(--muted);
  font-weight: 700;
}

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

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

.primary-button,
.owner-button,
.ghost-button,
.search-panel button,
.admin-login button {
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  min-height: 44px;
  padding: 0 18px;
}

.primary-button,
.search-panel button,
.admin-login button {
  background: var(--secondary);
  color: var(--white);
}

.owner-button {
  background: var(--primary);
  border: 1px solid rgba(181, 237, 231, 0.45);
  color: var(--primary-soft);
}

.owner-button:hover {
  background: #00504c;
  color: #ffffff;
}

.ghost-button {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--primary);
}

.full {
  width: 100%;
}

.hero {
  align-items: center;
  display: flex;
  min-height: 820px;
  overflow: hidden;
  padding: 140px clamp(20px, 5vw, 64px) 120px;
  position: relative;
}

.hero-bg,
.hero-overlay {
  inset: 0;
  position: absolute;
}

.hero-bg {
  background-image: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 219, 208, 0.34), transparent 28%),
    linear-gradient(105deg, rgba(0, 54, 51, 0.92), rgba(0, 54, 51, 0.62) 48%, rgba(18, 28, 42, 0.32));
}

.hero-content {
  color: var(--white);
  max-width: 1000px;
  position: relative;
  width: 100%;
  z-index: 2;
}

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

.hero .eyebrow {
  color: var(--primary-soft);
}

h1,
h2,
h3 {
  font-family: Montserrat, sans-serif;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 7.6rem);
  line-height: 0.95;
}

h2 {
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

h3 {
  color: var(--primary);
  font-size: 1.25rem;
}

.hero-copy {
  color: #eaf1ff;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1.6;
  max-width: 720px;
}

.search-panel {
  align-items: stretch;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  margin-top: 38px;
  max-width: 1050px;
  padding: 12px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.86rem;
  font-weight: 800;
  gap: 8px;
}

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

textarea {
  resize: vertical;
}

.search-panel input,
.search-panel select {
  border: 0;
  padding-left: 0;
}

.hero-strip {
  align-items: center;
  background: var(--primary);
  bottom: 0;
  color: var(--primary-soft);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  left: 0;
  position: absolute;
  right: 0;
  z-index: 3;
}

.hero-strip span {
  background: rgba(255, 255, 255, 0.05);
  display: block;
  padding: 24px clamp(20px, 5vw, 64px);
}

.hero-strip strong {
  color: var(--white);
  display: block;
  font-size: 1.6rem;
}

.category-rail {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 20px clamp(20px, 5vw, 64px);
}

.category-rail button,
.view-switch button {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary);
  flex: 0 0 auto;
  font-weight: 800;
  min-height: 42px;
  padding: 0 18px;
}

.category-rail button:hover,
.view-switch button.active {
  background: var(--primary);
  color: var(--white);
}

.market-section,
.split-section,
.owner-section,
.payment-section,
.contact-section,
.admin-section {
  padding: 86px clamp(20px, 5vw, 64px);
}

.city-carousel-section {
  background: #eef7f5;
  padding: 86px clamp(20px, 5vw, 64px);
}

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

.view-switch {
  display: flex;
  gap: 10px;
}

.city-carousel-copy {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
  margin: -16px 0 28px;
  max-width: 720px;
}

.city-carousel-shell {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.city-carousel {
  display: grid;
  gap: 18px;
  grid-auto-columns: minmax(260px, 360px);
  grid-auto-flow: column;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.city-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 54, 51, 0.12);
  cursor: pointer;
  min-height: 420px;
  overflow: hidden;
  scroll-snap-align: start;
}

.city-card.active,
.city-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.city-card-image {
  aspect-ratio: 1.25;
  background-color: #dce7e6;
  background-position: center;
  background-size: cover;
}

.city-card-copy {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.city-card-copy span {
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.city-card-copy p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.city-card-copy strong {
  color: var(--primary);
}

.carousel-arrow {
  background: var(--primary);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
  height: 48px;
  line-height: 1;
  width: 48px;
}

.market-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: 290px 1fr;
}

.filters {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 22px;
  padding: 20px;
  position: sticky;
  top: 96px;
}

.filter-title {
  color: var(--muted);
  display: block;
  font-size: 0.86rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.check {
  align-items: center;
  display: flex;
  font-weight: 700;
  grid-template-columns: auto 1fr;
  min-height: 32px;
}

.check input {
  min-height: auto;
  width: auto;
}

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

.property-card {
  background: var(--white);
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(18, 28, 42, 0.08);
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.property-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.property-image {
  aspect-ratio: 1.25;
  background-position: center;
  background-size: cover;
  position: relative;
}

.badge-row {
  display: flex;
  gap: 8px;
  left: 14px;
  position: absolute;
  top: 14px;
}

.badge {
  background: rgba(0, 54, 51, 0.92);
  border-radius: 999px;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 7px 10px;
}

.badge.secondary {
  background: rgba(172, 52, 0, 0.92);
}

.badge.featured {
  background: rgba(0, 54, 51, 0.96);
  color: var(--primary-soft);
}

.property-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.property-meta,
.amenities {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  gap: 8px;
}

.price {
  color: var(--secondary);
  font-size: 1.25rem;
  font-weight: 900;
}

.currency-conversion {
  color: var(--primary-mid);
  display: block;
  font-weight: 800;
  margin-top: 4px;
}

.card-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.card-actions button {
  border-radius: 8px;
  font-weight: 800;
  min-height: 42px;
}

.outline-button {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--primary);
}

.danger-button {
  background: #fff1ee;
  border: 1px solid #f2b3a3;
  border-radius: 8px;
  color: #9f2600;
  font-weight: 900;
  min-height: 42px;
  padding: 0 14px;
}

.danger-button:hover {
  background: #9f2600;
  color: #ffffff;
}

.split-section {
  background: var(--primary);
  color: var(--white);
  display: grid;
  gap: 42px;
  grid-template-columns: 0.9fr 1.1fr;
}

.owner-section {
  background: #fff8f5;
  display: grid;
  gap: 42px;
  grid-template-columns: 0.8fr 1.2fr;
}

.owner-intro {
  align-content: start;
  display: grid;
  gap: 16px;
}

.owner-intro p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0;
}

.owner-page {
  background:
    radial-gradient(circle at top right, rgba(172, 52, 0, 0.13), transparent 32rem),
    linear-gradient(135deg, #f7faf7 0%, #f4f0ea 44%, #eef7f4 100%);
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  min-height: 100vh;
  padding-top: 76px;
}

.owner-sidebar {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-right: 1px solid var(--line);
  display: grid;
  gap: 22px;
  align-content: start;
  padding: 32px 22px;
}

.owner-profile-card {
  align-items: center;
  display: grid;
  gap: 7px;
}

.owner-avatar {
  background-color: var(--primary);
  background-position: center;
  background-size: cover;
  border-radius: 20px;
  box-shadow: 0 16px 38px rgba(0, 54, 51, 0.24);
  color: var(--primary-soft);
  display: grid;
  font-weight: 900;
  height: 72px;
  place-items: center;
  width: 72px;
}

.owner-sidebar nav {
  display: grid;
  gap: 10px;
}

.owner-sidebar nav button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--ink);
  font-weight: 900;
  min-height: 48px;
  text-align: left;
  padding: 0 14px;
}

.owner-sidebar nav button.active,
.owner-sidebar nav button:hover {
  background: #003633;
  border-color: #003633;
  color: #ffffff;
}

.owner-workspace {
  display: grid;
  gap: 28px;
  align-content: start;
  min-width: 0;
  padding: 28px clamp(16px, 3vw, 42px) 80px;
}

.owner-topline {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: end;
}

.owner-auth-grid {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(300px, 0.82fr) minmax(480px, 1.18fr);
}

.owner-auth-story {
  background:
    linear-gradient(135deg, rgba(0, 54, 51, 0.94), rgba(0, 80, 76, 0.9)),
    url("https://images.unsplash.com/photo-1600607688969-a5bfcd646154?auto=format&fit=crop&w=1200&q=80") center/cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
  color: #ffffff;
  display: grid;
  gap: 18px;
  grid-row: span 2;
  min-height: 520px;
  padding: clamp(22px, 2.6vw, 34px);
}

.owner-auth-story h1 {
  color: #ffffff;
  font-size: clamp(2.15rem, 3.35vw, 3.75rem);
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  overflow-wrap: anywhere;
}

.owner-auth-story p:not(.eyebrow) {
  color: #d9eeea;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 48ch;
}

.owner-journey-cards {
  align-self: end;
  display: grid;
  gap: 12px;
}

.owner-journey-cards article {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  display: grid;
  gap: 5px;
  padding: 16px;
}

.owner-journey-cards span {
  color: #ffb08e;
  font-weight: 950;
}

.owner-journey-cards small {
  color: #cae5e1;
}

.owner-auth-card,
.owner-dashboard,
.owner-property-form,
.owner-table {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(18, 28, 42, 0.07);
  display: grid;
  gap: 16px;
  padding: 24px;
}

.owner-auth-card h2,
.owner-property-form h2,
.owner-dashboard h2 {
  font-size: clamp(1.7rem, 2.1vw, 2.35rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.owner-auth-card.compact {
  align-content: start;
  grid-column: 2;
}

.owner-type-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.owner-type-grid label {
  align-items: center;
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  font-size: 0.98rem;
  font-weight: 900;
  gap: 10px;
  min-height: 70px;
  padding: 14px;
}

.owner-type-grid label:has(input:checked),
.option-tile:has(input:checked) {
  background: #003633;
  border-color: #003633;
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(0, 54, 51, 0.22);
}

.owner-type-grid input {
  accent-color: var(--secondary);
}

.option-builder {
  display: grid;
  gap: 24px;
}

.option-builder section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding-top: 18px;
}

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

.option-heading h3 {
  margin: 0;
}

.option-tile-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.option-tile {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 42px 1fr;
  min-height: 76px;
  padding: 14px;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.option-tile:hover {
  border-color: rgba(172, 52, 0, 0.42);
  transform: translateY(-1px);
}

.option-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-icon {
  background: #fff0e9;
  border: 1px solid rgba(172, 52, 0, 0.2);
  border-radius: 14px;
  color: var(--secondary);
  display: grid;
  font-size: 0.82rem;
  font-weight: 950;
  height: 42px;
  place-items: center;
  width: 42px;
}

.option-tile:has(input:checked) .option-icon {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.primary-button:disabled,
.owner-button:disabled,
.outline-button:disabled,
.danger-button:disabled,
button.is-processing {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.58;
}

.owner-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.owner-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 16px;
  grid-template-columns: 90px 1fr auto auto auto;
  padding: 14px;
}

.owner-row-image {
  aspect-ratio: 1.25;
  background-color: #dce7e6;
  background-position: center;
  background-size: cover;
  border-radius: 8px;
}

.owner-status {
  background: #fff1d9;
  border-radius: 999px;
  color: #a65000;
  font-weight: 900;
  padding: 8px 12px;
}

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

.owner-review-grid > div,
.owner-review-block {
  background: #f7fbfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.owner-review-grid span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.owner-review-block p {
  margin: 0;
  white-space: pre-line;
}

.owner-review-gallery {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.owner-review-gallery span {
  aspect-ratio: 4 / 3;
  background-position: center;
  background-size: cover;
  border-radius: 8px;
}

.split-section h2,
.split-section h3 {
  color: var(--white);
}

.story-panel p {
  color: #dce9e7;
  font-size: 1.08rem;
  line-height: 1.7;
}

.steps {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.steps span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 16px;
}

.booking-card,
.contact-form,
.owner-property-form,
.admin-dashboard {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  display: grid;
  gap: 16px;
  padding: 24px;
}

.booking-property-preview {
  background: #f6f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(180px, 0.62fr) 1fr;
  min-height: 214px;
  overflow: hidden;
  padding: 12px;
}

.booking-preview-image {
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  min-height: 190px;
}

.booking-preview-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.booking-preview-kicker {
  color: var(--secondary);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.booking-preview-copy h4 {
  color: var(--primary);
  font-family: Montserrat, sans-serif;
  font-size: 1.2rem;
  line-height: 1.2;
  margin: 0;
}

.booking-preview-copy p {
  color: var(--muted);
  font-weight: 800;
  margin: 4px 0 0;
}

.booking-preview-meta,
.booking-preview-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-preview-meta span,
.booking-preview-amenities span {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 7px 10px;
}

.booking-preview-amenities span {
  color: var(--muted);
}

.booking-preview-thumbs {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
}

.booking-preview-thumbs span {
  aspect-ratio: 1.7;
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  border: 1px solid rgba(0, 54, 51, 0.12);
  display: block;
}

.two-cols {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.payment-section {
  display: grid;
  gap: 34px;
}

.payment-grid,
.metric-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.payment-grid article,
.metric-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 22px;
}

.payment-grid strong,
.metric-card strong {
  color: var(--primary);
  font-size: 1.1rem;
}

.payment-grid span,
.metric-card span {
  color: var(--muted);
  line-height: 1.5;
}

.contact-section {
  display: grid;
  gap: 32px;
  grid-template-columns: 0.8fr 1.2fr;
}

.admin-login {
  align-items: center;
  display: flex;
  gap: 10px;
  max-width: 760px;
  width: 100%;
}

.notification-pill {
  align-items: center;
  background: #ecf7f6;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  white-space: nowrap;
}

.notification-pill.has-alert {
  background: #ffe1d8;
  border-color: #f6a58e;
  color: var(--accent);
}

.admin-dashboard.locked {
  filter: grayscale(1);
  opacity: 0.42;
  pointer-events: none;
}

.admin-columns {
  display: grid;
  gap: 22px;
  grid-template-columns: 1.2fr 0.8fr;
}

.site-settings-manager,
.admin-property-manager,
.owner-submission-manager,
.city-tile-manager {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 0.85fr 1.15fr;
  margin: 26px 0;
  padding: 26px 0;
}

.admin-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  max-height: 620px;
  overflow: auto;
}

.admin-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.admin-item header {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.admin-item small {
  color: var(--muted);
}

.admin-controls {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.property-admin-list {
  max-height: 760px;
}

.property-admin-media {
  aspect-ratio: 16 / 9;
  background-color: #dce7e6;
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  min-height: 150px;
}

.site-settings-form,
.property-admin-form,
.owner-property-form,
.city-tile-form {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.form-title-row {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.site-settings-form textarea,
.property-admin-form textarea,
.owner-property-form textarea,
.city-tile-form textarea {
  resize: vertical;
}

.site-settings-form input[type="file"],
.property-admin-form input[type="file"],
.owner-property-form input[type="file"],
.city-tile-form input[type="file"] {
  background: #f7fbfb;
  border-style: dashed;
  cursor: pointer;
}

.image-admin-preview {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.image-admin-preview span {
  aspect-ratio: 4 / 3;
  background-color: #dce7e6;
  background-position: center;
  background-size: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.image-admin-preview small {
  color: var(--muted);
}

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

.detail-page,
.admin-page {
  padding-top: 76px;
}

.booking-detail {
  background:
    linear-gradient(180deg, #f7faf7 0, #ffffff 340px),
    #ffffff;
  color: var(--ink);
  min-height: 100vh;
  padding: 28px clamp(16px, 5vw, 64px) 96px;
}

.detail-top-search {
  align-items: end;
  background: var(--primary);
  border: 1px solid rgba(181, 237, 231, 0.28);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 54, 51, 0.16);
  display: grid;
  gap: 10px;
  grid-template-columns: 1.15fr 1fr 1fr 1.05fr auto;
  margin: 0 auto 24px;
  max-width: 1320px;
  padding: 12px;
}

.detail-top-search label {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(216, 226, 223, 0.8);
  border-radius: 12px;
  gap: 4px;
  min-height: 74px;
  padding: 10px 12px;
}

.detail-top-search input,
.detail-top-search select {
  border: 0;
  min-height: 32px;
  padding: 0;
}

.detail-top-search button {
  background: var(--secondary);
  border-radius: 12px;
  min-height: 74px;
}

.detail-tabs {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(18, 28, 42, 0.06);
  display: flex;
  gap: 10px;
  margin: 0 auto 24px;
  max-width: 1320px;
  overflow-x: auto;
  padding: 8px;
}

.detail-tabs button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  flex: 1 0 auto;
  font-weight: 700;
  min-height: 42px;
  padding: 12px 18px;
  text-align: center;
}

.detail-tabs button:hover {
  background: #ecf7f6;
  color: var(--primary);
}

.detail-title-row {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr auto;
  margin: 0 auto 24px;
  max-width: 1320px;
}

.detail-title-row h1 {
  color: var(--primary);
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  line-height: 1.12;
}

.breadcrumbs,
.location-line {
  color: var(--muted);
  font-weight: 700;
  margin: 6px 0;
}

.breadcrumbs button {
  background: transparent;
  border: 0;
  color: var(--primary);
  font-weight: 900;
  padding: 0;
}

.stars {
  background: #fff1ee;
  border: 1px solid #f2b3a3;
  border-radius: 999px;
  color: var(--secondary);
  display: inline-flex;
  font-weight: 900;
  margin-bottom: 8px;
  padding: 7px 12px;
}

.detail-actions {
  display: flex;
  gap: 10px;
  justify-content: end;
}

.detail-actions .primary-button,
.reserve-side .primary-button,
.availability .primary-button {
  background: var(--secondary);
}

.detail-gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: 2fr 1fr 0.95fr;
  grid-template-rows: 210px 210px 128px;
  margin: 0 auto 28px;
  max-width: 1320px;
}

.gallery-main,
.gallery-stack button,
.gallery-thumbs button {
  border: 0;
  background-position: center;
  background-size: cover;
  border-radius: 16px;
  min-height: 0;
}

.gallery-stack button,
.gallery-thumbs button {
  aspect-ratio: 16 / 10;
}

.gallery-zoom {
  cursor: zoom-in;
  display: block;
  position: relative;
}

.gallery-zoom::after {
  background: rgba(0, 54, 51, 0.68);
  border-radius: 999px;
  bottom: 12px;
  color: #ffffff;
  content: "Agrandir";
  font-size: 0.78rem;
  font-weight: 900;
  opacity: 0;
  padding: 7px 10px;
  position: absolute;
  right: 12px;
  transition: 160ms ease;
}

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

.gallery-main {
  grid-row: 1 / 3;
}

.gallery-stack {
  display: grid;
  gap: 10px;
  grid-row: 1 / 3;
}

.score-card {
  background:
    linear-gradient(160deg, rgba(0, 54, 51, 0.96), rgba(49, 103, 99, 0.94)),
    var(--primary);
  border: 1px solid rgba(181, 237, 231, 0.25);
  border-radius: 16px;
  color: #ffffff;
  display: grid;
  gap: 14px;
  grid-row: 1 / 4;
  padding: 18px;
}

.score-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.score-head span {
  font-size: 1.1rem;
  font-weight: 900;
}

.score-head strong,
.review-score strong {
  background: var(--secondary);
  border-radius: 999px;
  color: #ffffff;
  display: inline-grid;
  font-size: 1.2rem;
  height: 42px;
  place-items: center;
  width: 48px;
}

.mini-map {
  align-items: center;
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 219, 208, 0.32), transparent 30%),
    linear-gradient(135deg, rgba(181, 237, 231, 0.18), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: #ffffff;
  display: grid;
  font-weight: 900;
  min-height: 220px;
  padding: 18px;
  text-align: center;
}

.mini-map span {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  color: var(--primary);
  margin: 8px auto 0;
  padding: 8px 12px;
}

.gallery-thumbs {
  display: grid;
  gap: 10px;
  grid-column: 1 / 3;
  grid-template-columns: repeat(3, 1fr);
}

.gallery-thumbs button {
  align-items: end;
  display: flex;
  justify-content: end;
  padding: 12px;
}

.gallery-thumbs span {
  background: rgba(0, 54, 51, 0.74);
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  padding: 8px 10px;
}

.feature-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto 36px;
  max-width: 1320px;
}

.feature-grid article {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary-mid);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(18, 28, 42, 0.05);
  font-weight: 800;
  min-height: 74px;
  padding: 22px;
}

.detail-content-grid {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr 380px;
  margin: 0 auto 40px;
  max-width: 1320px;
}

.long-copy {
  display: grid;
  gap: 18px;
}

.long-copy h2,
.availability h2,
.rules-reviews h2 {
  color: var(--primary);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
}

.long-copy p,
.rules-reviews p {
  font-size: 1.04rem;
  line-height: 1.7;
}

.rule-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 18px;
}

.rule-list li {
  line-height: 1.55;
}

.amenity-line {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
}

.amenity-line span {
  color: var(--primary-mid);
  font-weight: 800;
}

.reserve-side {
  background: #fff8f5;
  border: 1px solid #f5cabc;
  border-radius: 16px;
  display: grid;
  gap: 14px;
  padding: 22px;
  position: sticky;
  top: 96px;
}

.reserve-side > div {
  display: flex;
  justify-content: space-between;
}

.reserve-price {
  color: var(--primary);
  font-size: 1.7rem;
  font-weight: 900;
}

.reserve-price span {
  color: #53605f;
  font-size: 0.95rem;
}

.availability,
.rules-reviews {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 20px;
  margin: 0 auto 42px;
  max-width: 1320px;
  padding-top: 28px;
}

.notice {
  color: var(--secondary);
  font-weight: 800;
}

.availability-search {
  background: var(--primary);
  border-radius: 16px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr 1fr auto;
  padding: 10px;
}

.availability-search input,
.availability-search select {
  border: 0;
}

.availability-search button {
  background: var(--secondary);
  border-radius: 12px;
}

.rate-table {
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1.8fr 0.7fr 0.8fr;
  overflow: hidden;
}

.rate-table > div {
  border-right: 1px solid var(--line);
  padding: 16px;
}

.rate-table > div:nth-child(3n) {
  border-right: 0;
}

.rate-head {
  background: var(--primary);
  color: #ffffff;
  font-weight: 900;
}

.review-score {
  align-items: center;
  display: flex;
  gap: 14px;
}

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

.review-bars p {
  border-bottom: 8px solid var(--primary-mid);
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding-bottom: 10px;
}

.modal,
.receipt-modal,
.image-lightbox {
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 980px;
  padding: 0;
  width: min(94vw, 980px);
}

.image-lightbox {
  background: #071514;
  color: #ffffff;
  max-width: 1120px;
}

.image-lightbox::backdrop,
.receipt-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.image-lightbox img {
  display: block;
  max-height: 78vh;
  object-fit: contain;
  width: 100%;
}

.image-lightbox p {
  margin: 0;
  padding: 14px 18px 18px;
}

.modal::backdrop,
.receipt-modal::backdrop {
  background: rgba(18, 28, 42, 0.56);
}

.modal-close {
  background: var(--primary);
  border: 0;
  border-radius: 999px;
  color: var(--white);
  height: 34px;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  z-index: 5;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.detail-image {
  background-position: center;
  background-size: cover;
  min-height: 520px;
}

.detail-copy,
#receiptContent {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.receipt-document {
  background: #ffffff;
  border-radius: 8px;
  color: #121c2a;
  display: grid;
  gap: 20px;
  overflow: hidden;
}

.receipt-header {
  align-items: center;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  padding: 24px;
}

.receipt-header > div:first-child {
  display: grid;
  gap: 4px;
}

.receipt-logo {
  background: var(--primary-soft);
  border-radius: 8px;
  color: var(--primary);
  display: inline-grid;
  font-weight: 900;
  height: 38px;
  margin-bottom: 8px;
  place-items: center;
  text-transform: uppercase;
  width: 38px;
}

.receipt-status {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.receipt-status span {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-weight: 900;
  padding: 8px 12px;
}

.receipt-hero,
.receipt-grid,
.receipt-lines,
.receipt-footer {
  margin-left: 24px;
  margin-right: 24px;
}

.receipt-hero {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr auto;
  padding-bottom: 20px;
}

.receipt-hero h2 {
  color: var(--primary);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.receipt-ref {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-width: 220px;
  padding: 16px;
}

.receipt-ref span,
.receipt-ref small,
.receipt-footer small {
  color: var(--muted);
  font-weight: 800;
}

.receipt-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

.receipt-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 16px;
}

.receipt-grid h3 {
  font-size: 1rem;
}

.receipt-grid p {
  margin: 0;
}

.receipt-lines {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.receipt-lines > div {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr auto;
  padding: 13px 16px;
}

.receipt-lines > div + div {
  border-top: 1px solid var(--line);
}

.receipt-table-head {
  background: var(--primary);
  color: #ffffff;
  font-weight: 900;
}

.receipt-total {
  background: var(--secondary-soft);
  color: #5d1900;
  font-size: 1.2rem;
  font-weight: 900;
}

.receipt-footer {
  background: #f5f7fb;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 18px 24px 24px;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
}

.receipt-actions {
  background: #ffffff;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  padding: 16px 28px 24px;
}

.receipt-actions button {
  min-height: 46px;
}

.toast {
  background: var(--primary);
  border-radius: 8px;
  bottom: 24px;
  box-shadow: var(--shadow);
  color: var(--white);
  left: 50%;
  opacity: 0;
  padding: 14px 18px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 20px);
  transition: 180ms ease;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

  .property-grid,
  .payment-grid,
  .metric-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-top-search,
  .detail-content-grid,
  .detail-title-row {
    grid-template-columns: 1fr;
  }

  .detail-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 360px 190px auto auto;
  }

  .score-card,
  .gallery-thumbs {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .reserve-side {
    position: static;
  }
}

@media (max-width: 820px) {
  .topbar {
    height: auto;
    min-height: 76px;
  }

  .top-actions .ghost-button {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .search-panel,
  .market-layout,
  .split-section,
  .contact-section,
  .admin-columns,
  .admin-property-manager,
  .city-tile-manager,
  .detail-layout,
  .detail-tabs,
  .availability-search,
  .rate-table,
  .review-bars {
    grid-template-columns: 1fr;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 320px auto auto auto;
  }

  .gallery-main,
  .gallery-stack,
  .score-card,
  .gallery-thumbs {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-stack,
  .gallery-thumbs {
    grid-template-columns: 1fr;
  }

  .detail-actions {
    justify-content: stretch;
    flex-direction: column;
  }

  .filters {
    position: static;
  }

  .section-heading,
  .admin-heading {
    align-items: start;
    flex-direction: column;
  }

  .admin-login {
    align-items: stretch;
    flex-direction: column;
    max-width: 100%;
  }

  .hero-strip {
    grid-template-columns: 1fr;
    position: relative;
  }

  .receipt-hero,
  .receipt-grid,
  .receipt-actions,
  .booking-property-preview {
    grid-template-columns: 1fr;
  }

  .receipt-status {
    justify-items: start;
  }
}

@media (max-width: 620px) {
  .brand span:last-child {
    display: none;
  }

  .top-actions {
    width: auto;
  }

  .hero {
    padding-top: 110px;
  }

  .city-carousel-shell {
    grid-template-columns: 1fr;
  }

  .carousel-arrow {
    display: none;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3rem);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .property-grid,
  .payment-grid,
  .metric-grid,
  .two-cols,
  .form-grid,
  .image-admin-preview,
  .admin-controls {
    grid-template-columns: 1fr;
  }

  .market-section,
  .split-section,
  .payment-section,
  .contact-section,
  .admin-section,
  .booking-detail {
    padding-left: 16px;
    padding-right: 16px;
  }

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

@media (max-width: 1180px) {
  .hero {
    min-height: 720px;
  }

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

  .search-panel button {
    grid-column: 1 / -1;
  }

  .market-layout,
  .contact-section,
  .split-section,
  .owner-page,
  .owner-section {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

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

  .site-settings-manager,
  .admin-property-manager,
  .owner-submission-manager,
  .city-tile-manager {
    grid-template-columns: 1fr;
  }

  .detail-top-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-top-search button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .owner-sidebar {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    padding: 20px;
  }

  .owner-sidebar nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .owner-workspace {
    padding-top: 22px;
  }

  .owner-auth-grid,
  .owner-review-grid,
  .owner-row {
    grid-template-columns: 1fr;
  }

  .owner-auth-card.compact {
    grid-column: auto;
  }

  .owner-row {
    align-items: start;
  }

  .topbar {
    gap: 14px;
    padding: 12px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .primary-button,
  .owner-button,
  .ghost-button,
  .search-panel button,
  .admin-login button {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero {
    align-items: end;
    min-height: auto;
    padding-bottom: 0;
  }

  .hero-content {
    padding-bottom: 34px;
  }

  .hero-strip {
    margin-left: calc(clamp(20px, 5vw, 64px) * -1);
    margin-right: calc(clamp(20px, 5vw, 64px) * -1);
    position: relative;
  }

  .hero-strip span {
    padding: 18px clamp(20px, 5vw, 64px);
  }

  .category-rail {
    padding-bottom: 14px;
    padding-top: 14px;
  }

  .section-heading,
  .admin-heading,
  .form-title-row {
    align-items: start;
    flex-direction: column;
  }

  .city-carousel {
    grid-auto-columns: minmax(250px, 82vw);
  }

  .city-card {
    min-height: auto;
  }

  .booking-property-preview {
    grid-template-columns: 1fr;
  }

  .booking-preview-image {
    min-height: 230px;
  }

  .admin-columns,
  .admin-login,
  .detail-content-grid,
  .detail-title-row {
    grid-template-columns: 1fr;
  }

  .admin-login {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-login input,
  .admin-login button {
    width: 100%;
  }

  .detail-actions {
    justify-content: start;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(300px, 54vw) auto auto auto;
  }

  .gallery-main,
  .gallery-stack,
  .score-card,
  .gallery-thumbs {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-stack,
  .gallery-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-stack button,
  .gallery-thumbs button {
    min-height: 180px;
  }

  .mini-map {
    min-height: 160px;
  }

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

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

  .availability-search button {
    grid-column: 1 / -1;
  }

  .rate-table {
    grid-template-columns: 1fr;
  }

  .rate-table > div {
    border-right: 0;
  }

  .rate-table > div:not(:last-child) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .owner-auth-grid {
    grid-template-columns: 1fr 1fr;
  }

  .owner-auth-story {
    grid-column: 1 / -1;
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .topbar {
    min-height: 66px;
  }

  .top-actions .primary-button {
    min-height: 40px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .top-actions .owner-button {
    min-height: 40px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero {
    padding-top: 96px;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .search-panel,
  .detail-top-search,
  .availability-search,
  .property-grid,
  .payment-grid,
  .metric-grid,
  .feature-grid,
  .review-bars,
  .two-cols,
  .form-grid,
  .admin-controls,
  .image-admin-preview,
  .receipt-grid,
  .receipt-actions {
    grid-template-columns: 1fr;
  }

  .search-panel button,
  .detail-top-search button,
  .availability-search button {
    grid-column: auto;
    width: 100%;
  }

  .market-section,
  .city-carousel-section,
  .split-section,
  .owner-section,
  .payment-section,
  .contact-section,
  .admin-section {
    padding-bottom: 56px;
    padding-top: 56px;
  }

  .city-carousel-shell {
    grid-template-columns: 1fr;
  }

  .carousel-arrow {
    display: none;
  }

  .property-card {
    min-width: 0;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .booking-card,
  .contact-form,
  .owner-property-form,
  .owner-auth-card,
  .owner-dashboard,
  .owner-table,
  .admin-dashboard,
  .site-settings-form,
  .property-admin-form,
  .city-tile-form {
    padding: 18px;
  }

  .booking-preview-thumbs,
  .gallery-stack,
  .gallery-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-stack button,
  .gallery-thumbs button {
    min-height: 150px;
  }

  .booking-detail {
    padding-bottom: 60px;
    padding-top: 18px;
  }

  .detail-tabs {
    border-radius: 14px;
    margin-left: 0;
    margin-right: 0;
  }

  .detail-tabs button {
    min-width: max-content;
    padding-left: 14px;
    padding-right: 14px;
  }

  .detail-gallery {
    grid-template-rows: minmax(260px, 62vw) auto auto auto;
  }

  .gallery-main,
  .gallery-stack button,
  .gallery-thumbs button {
    border-radius: 12px;
  }

  .detail-actions {
    flex-direction: column;
  }

  .reserve-side > div,
  .receipt-line {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .detail-actions button,
  .reserve-side .primary-button {
    width: 100%;
  }

  .receipt-line,
  .receipt-lines > div,
  .receipt-hero {
    grid-template-columns: 1fr;
  }

  .receipt-hero,
  .receipt-grid,
  .receipt-lines,
  .receipt-footer {
    margin-left: 16px;
    margin-right: 16px;
  }

  .receipt-header,
  .receipt-actions {
    padding-left: 16px;
    padding-right: 16px;
  }

  .receipt-status {
    justify-items: start;
  }

  .modal,
  .receipt-modal,
  .image-lightbox {
    width: min(96vw, 980px);
  }

  .image-lightbox img {
    max-height: 68vh;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand-mark {
    height: 32px;
    width: 32px;
  }

  .hero,
  .market-section,
  .city-carousel-section,
  .split-section,
  .owner-section,
  .owner-workspace,
  .payment-section,
  .contact-section,
  .admin-section,
  .booking-detail {
    padding-left: 12px;
    padding-right: 12px;
  }

  .search-panel {
    border-radius: 10px;
    margin-top: 26px;
  }

  .hero-strip {
    margin-left: -12px;
    margin-right: -12px;
  }

  .category-rail {
    padding-left: 12px;
    padding-right: 12px;
  }

  .city-carousel {
    grid-auto-columns: minmax(220px, 88vw);
  }

  .property-body,
  .booking-card,
  .contact-form,
  .owner-property-form,
  .admin-dashboard,
  .site-settings-form,
  .property-admin-form,
  .city-tile-form,
  .reserve-side,
  .score-card {
    padding: 16px;
  }

  .booking-preview-image {
    min-height: 190px;
  }

  .booking-preview-meta span,
  .booking-preview-amenities span,
  .badge {
    font-size: 0.76rem;
  }

  .admin-item header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .detail-top-search,
  .availability-search {
    border-radius: 12px;
    margin-bottom: 18px;
  }

  .detail-title-row h1 {
    font-size: 1.75rem;
  }

  .detail-gallery {
    gap: 8px;
    grid-template-rows: minmax(220px, 68vw) auto auto auto;
  }

  .gallery-stack,
  .gallery-thumbs {
    grid-template-columns: 1fr;
  }

  .gallery-stack button,
  .gallery-thumbs button {
    aspect-ratio: 16 / 9;
    min-height: 180px;
  }

  .review-score {
    align-items: start;
    flex-direction: column;
  }

  .toast {
    bottom: 14px;
    left: 12px;
    right: 12px;
    text-align: center;
    transform: translateY(20px);
  }

  .toast.show {
    transform: translateY(0);
  }
}

/* Stitch premium redesign layer */
.topbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 30px rgba(10, 25, 47, 0.06);
  height: 80px;
}

.brand {
  color: var(--primary);
  font-size: 1.22rem;
  letter-spacing: 0;
}

.brand-mark {
  background: var(--primary);
  border-radius: 10px;
  color: #ffffff;
  height: 44px;
  text-transform: uppercase;
  width: 44px;
}

.desktop-nav a {
  color: #536173;
  font-size: 0.94rem;
  font-weight: 800;
  padding: 8px 0;
}

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

.primary-button,
.search-panel button,
.admin-login button {
  background: var(--secondary);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(255, 107, 53, 0.22);
}

.owner-button {
  background: var(--primary);
  border-radius: 8px;
  color: #ffffff;
}

.outline-button {
  border-color: #cbd5e1;
  border-radius: 8px;
  color: var(--primary);
}

.hero {
  min-height: 760px;
  padding-bottom: 110px;
  padding-top: 144px;
}

.hero-bg {
  filter: saturate(0.98) contrast(1.02);
  transform: scale(1.04);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 25, 47, 0.88) 0%, rgba(10, 25, 47, 0.68) 40%, rgba(10, 25, 47, 0.12) 100%),
    linear-gradient(0deg, rgba(10, 25, 47, 0.5), rgba(10, 25, 47, 0.04));
}

.hero-content {
  max-width: 1280px;
}

.hero .eyebrow {
  background: var(--secondary);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  padding: 8px 14px;
}

.hero h1 {
  font-size: clamp(3rem, 6.2vw, 5.9rem);
  line-height: 0.98;
  max-width: 760px;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.28);
}

.hero-copy {
  color: #e5ecf5;
  font-size: clamp(1.05rem, 1.65vw, 1.28rem);
  max-width: 620px;
}

.search-panel {
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.93);
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(10, 25, 47, 0.32);
  gap: 0;
  grid-template-columns: 1fr 1fr 1fr auto;
  max-width: 900px;
  overflow: hidden;
  padding: 10px;
}

.search-panel label {
  border-right: 1px solid var(--line);
  padding: 12px 18px;
}

.search-panel label span,
.filters span,
.booking-card label,
.contact-form label {
  color: var(--muted);
}

.search-panel input,
.search-panel select {
  color: var(--primary);
  font-weight: 850;
}

.search-panel button {
  min-height: 64px;
  padding-left: 28px;
  padding-right: 28px;
}

.hero-strip {
  background: rgba(10, 25, 47, 0.92);
  color: #cbd5e1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-strip strong {
  color: #ffffff;
}

.category-rail {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  justify-content: center;
}

.category-rail button,
.view-switch button,
.amenities span,
.amenity-line span {
  border-radius: 999px;
}

.category-rail button:hover,
.view-switch button.active {
  background: var(--primary);
}

.city-carousel-section,
.market-section,
.payment-section,
.contact-section {
  background: #ffffff;
}

.city-carousel-section .section-heading,
.market-section .section-heading,
.payment-section > div:first-child,
.contact-section > div:first-child {
  max-width: 1280px;
}

.city-carousel-copy {
  color: var(--muted);
  max-width: 720px;
}

.city-carousel {
  gap: 24px;
}

.city-card {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(10, 25, 47, 0.12);
  min-width: 300px;
  overflow: hidden;
  position: relative;
}

.city-card::after {
  background: linear-gradient(180deg, transparent 24%, rgba(10, 25, 47, 0.86));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.city-card-image {
  aspect-ratio: 0.96;
  transition: transform 600ms ease;
}

.city-card:hover .city-card-image {
  transform: scale(1.06);
}

.city-card-copy {
  bottom: 0;
  color: #ffffff;
  left: 0;
  padding: 22px;
  position: absolute;
  right: 0;
  z-index: 1;
}

.city-card-copy h3,
.city-card-copy strong {
  color: #ffffff;
}

.city-card-copy p {
  color: #dce6ef;
}

.city-card-copy span {
  background: var(--secondary);
  border-radius: 999px;
  color: #ffffff;
  justify-self: start;
  padding: 5px 9px;
}

.market-section {
  background: #f3f6f9;
}

.market-layout {
  align-items: start;
}

.filters,
.booking-card,
.contact-form,
.payment-grid article,
.property-card {
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(10, 25, 47, 0.08);
}

.filters,
.booking-card,
.contact-form {
  border-radius: 16px;
}

.property-card {
  border-color: transparent;
  border-radius: 14px;
  overflow: hidden;
}

.property-card:hover {
  box-shadow: 0 28px 70px rgba(10, 25, 47, 0.16);
}

.property-image {
  aspect-ratio: 1.45;
}

.badge {
  background: var(--secondary);
  border-radius: 999px;
  color: #ffffff;
}

.badge.secondary {
  background: rgba(10, 25, 47, 0.92);
  color: #ffffff;
}

.property-body h3 {
  color: var(--primary);
  font-size: 1.06rem;
}

.property-meta {
  color: var(--muted);
  gap: 8px 12px;
}

.property-meta span {
  background: #f1f5f9;
  border-radius: 999px;
  padding: 5px 8px;
}

.price,
.reserve-price {
  color: var(--secondary);
}

.card-actions {
  gap: 10px;
}

.split-section {
  background: var(--primary);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.82fr);
}

.steps span {
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.payment-grid article {
  border-radius: 14px;
}

.booking-detail {
  background: #f7f9fb;
}

.detail-top-search {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(10, 25, 47, 0.08);
}

.detail-title-row {
  max-width: 1280px;
}

.detail-title-row h1 {
  color: var(--primary);
  font-size: clamp(2.25rem, 4.5vw, 4rem);
}

.detail-gallery {
  border-radius: 0;
  gap: 8px;
  grid-template-columns: 2fr 1fr 0.9fr;
  max-width: none;
}

.gallery-main,
.gallery-stack button,
.gallery-thumbs button {
  border-radius: 0;
}

.score-card {
  background: rgba(10, 25, 47, 0.94);
  border: 0;
  color: #ffffff;
}

.score-card p,
.score-card .mini-map {
  color: #d8e4f0;
}

.feature-grid article {
  border-left-color: var(--secondary);
  border-radius: 12px;
}

.reserve-side {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(10, 25, 47, 0.15);
}

.availability,
.rules-reviews,
.long-copy {
  border-color: var(--line);
}

.owner-page {
  background: #f7f9fb;
}

.owner-sidebar,
.owner-auth-card,
.owner-dashboard,
.owner-property-form,
.owner-table,
.admin-dashboard {
  border-color: var(--line);
  box-shadow: 0 18px 48px rgba(10, 25, 47, 0.08);
}

.owner-sidebar nav button.active,
.owner-sidebar nav button:hover,
.owner-type-grid label:has(input:checked),
.option-tile:has(input:checked) {
  background: var(--primary);
  border-color: var(--primary);
}

.owner-auth-story {
  background:
    linear-gradient(135deg, rgba(10, 25, 47, 0.92), rgba(10, 25, 47, 0.72)),
    url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=1400&q=80") center/cover;
}

.admin-heading,
.admin-dashboard {
  border-radius: 16px;
}

@media (max-width: 1180px) {
  .search-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-panel label:nth-child(2) {
    border-right: 0;
  }

  .search-panel button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .search-panel label {
    border-right: 0;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 13vw, 4.2rem);
  }

  .city-card {
    min-width: 260px;
  }

  .split-section {
    grid-template-columns: 1fr;
  }
}

.city-carousel-section {
  overflow: hidden;
}

.city-carousel-shell {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.city-carousel {
  gap: 28px;
  grid-auto-columns: clamp(300px, 30vw, 380px);
  padding: 12px 8px 34px;
}

.city-card {
  min-width: 0;
  min-height: 430px;
}

.city-card-copy {
  gap: 8px;
  overflow: hidden;
}

.city-card-copy span {
  font-size: 0.72rem;
  line-height: 1.1;
  max-width: 100%;
  white-space: normal;
}

.city-card-copy h3 {
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.04;
}

.city-card-copy p,
.city-card-copy strong {
  font-size: clamp(0.98rem, 1.45vw, 1.15rem);
  line-height: 1.35;
}

.detail-gallery {
  grid-template-rows: minmax(230px, 28vw) minmax(230px, 28vw) minmax(150px, 13vw);
  margin-bottom: 48px;
  overflow: visible;
}

.gallery-main,
.gallery-stack button,
.gallery-thumbs button {
  min-height: 100%;
}

.gallery-thumbs {
  align-items: stretch;
}

.gallery-thumbs button {
  aspect-ratio: auto;
}

.feature-grid {
  position: relative;
  z-index: 1;
}

@media (max-width: 1180px) {
  .city-carousel {
    grid-auto-columns: clamp(290px, 42vw, 360px);
  }

  .detail-gallery {
    grid-template-rows: minmax(320px, 36vw) minmax(180px, 22vw) auto auto;
  }
}

@media (max-width: 820px) {
  .city-carousel {
    grid-auto-columns: minmax(260px, 82vw);
  }

  .detail-gallery {
    margin-bottom: 34px;
  }

  .gallery-thumbs button {
    aspect-ratio: 16 / 10;
    min-height: 160px;
  }
}

.owner-support-note,
.owner-form-help,
.owner-help-line,
.public-support-note {
  color: #d9eeea;
  font-weight: 800;
  line-height: 1.45;
}

.owner-form-help,
.owner-help-line,
.public-support-note {
  color: var(--primary-mid);
}

.owner-support-note a,
.owner-form-help a,
.owner-help-line a,
.public-support-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 820px) {
  .detail-gallery {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
    margin-bottom: 22px;
    max-width: 100%;
    overflow: visible;
  }

  .gallery-main,
  .gallery-stack,
  .score-card,
  .gallery-thumbs {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }

  .gallery-main {
    aspect-ratio: 4 / 3;
    min-height: 0 !important;
  }

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

  .gallery-stack button {
    aspect-ratio: 4 / 3;
    min-height: 0 !important;
  }

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

  .gallery-thumbs button {
    aspect-ratio: 1 / 1;
    min-height: 0 !important;
  }

  .score-card {
    gap: 12px;
    padding: 16px;
  }

  .mini-map {
    min-height: 150px;
  }

  .feature-grid {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-bottom: 26px;
  }

  .feature-grid article {
    align-items: center;
    border-left-width: 3px;
    display: flex;
    font-size: 0.92rem;
    line-height: 1.25;
    min-height: 56px;
    padding: 14px 13px;
  }

  .feature-grid article:nth-child(-n + 2) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .gallery-stack,
  .gallery-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .feature-grid article {
    font-size: 0.88rem;
    min-height: 52px;
    padding: 13px 12px;
  }
}

@media print {
  @page {
    margin: 12mm;
    size: A4;
  }

  html,
  body {
    background: #ffffff;
    overflow: visible;
  }

  body * {
    visibility: hidden;
  }

  #receiptContent,
  #receiptContent * {
    visibility: visible;
  }

  #receiptContent {
    left: 0;
    padding: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }

  .receipt-modal,
  .receipt-document {
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    width: 100%;
  }

  .receipt-actions,
  .modal-close {
    display: none !important;
  }

  .receipt-header,
  .receipt-table-head {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
