:root {
  --bg: #fefefe;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-tint: #f2fbf8;
  --surface-sand: #fcf8e7;
  --ink: #143534;
  --ink-soft: #4a6662;
  --teal: #18b8a6;
  --teal-deep: #0f8075;
  --sand: #d7cd81;
  --sand-deep: #bdae55;
  --line: rgba(24, 184, 166, 0.18);
  --line-strong: rgba(24, 184, 166, 0.34);
  --danger: #b75151;
  --success: #0f8075;
  --warning: #936d1f;
  --shadow: 0 24px 70px rgba(20, 53, 52, 0.1);
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 12%, rgba(24, 184, 166, 0.12), transparent 26%),
    radial-gradient(circle at 90% 14%, rgba(215, 205, 129, 0.2), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fffd 32%, #fffef8 100%);
  overflow-x: hidden;
}

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

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

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

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.92rem 1rem;
  border: 1px solid rgba(20, 53, 52, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(24, 184, 166, 0.12);
}

textarea {
  resize: vertical;
}

p,
ul,
h1,
h2,
h3 {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.glow,
.mesh {
  position: absolute;
  border-radius: 999px;
}

.glow-a {
  top: -8rem;
  left: -5rem;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(24, 184, 166, 0.18) 0%, rgba(24, 184, 166, 0) 72%);
}

.glow-b {
  top: 20rem;
  right: -8rem;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(215, 205, 129, 0.26) 0%, rgba(215, 205, 129, 0) 72%);
}

.glow-c {
  bottom: -8rem;
  left: 22%;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(24, 184, 166, 0.14) 0%, rgba(24, 184, 166, 0) 72%);
}

.mesh {
  top: 8rem;
  right: 8%;
  width: 28rem;
  height: 28rem;
  opacity: 0.3;
  background:
    linear-gradient(rgba(24, 184, 166, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 184, 166, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle, black 30%, transparent 72%);
  transform: rotate(15deg);
}

.site-shell {
  padding: 1rem 0 2rem;
}

.site-header,
.section,
.site-footer,
.flash-stack {
  width: min(1220px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(24, 184, 166, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(20, 53, 52, 0.08);
}

.header-bar,
.header-menu {
  display: contents;
}

.brand {
  display: inline-flex;
  align-items: center;
  max-width: 220px;
}

.brand img {
  width: 100%;
  height: auto;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgba(24, 184, 166, 0.14);
  border-radius: 999px;
  background: rgba(24, 184, 166, 0.08);
  box-shadow: 0 10px 24px rgba(20, 53, 52, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(20, 53, 52, 0.12);
}

.menu-toggle-line {
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: var(--teal-deep);
  transition: transform 180ms ease, opacity 180ms ease;
}

.topnav,
.header-actions,
.hero-actions,
.promo-tags,
.footer-links,
.listing-meta,
.listing-actions,
.amenities-row,
.form-actions,
.manager-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topnav {
  justify-content: center;
}

.topnav a,
.footer-links a {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: background-color 180ms ease, color 180ms ease;
}

.topnav a:hover,
.topnav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
  background: rgba(24, 184, 166, 0.08);
}

.header-actions {
  justify-content: flex-end;
  align-items: center;
}

.header-actions form,
.manager-card-actions form {
  margin: 0;
}

.session-chip,
.eyebrow,
.listing-badge,
.manager-badge,
.detail-list li::before {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.session-chip,
.listing-badge,
.manager-badge,
.promo-tags span,
.amenity {
  font-size: 0.76rem;
  font-weight: 700;
}

.session-chip {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(24, 184, 166, 0.08);
  color: var(--teal-deep);
}

.session-chip.role-owner {
  background: rgba(215, 205, 129, 0.26);
  color: #7f6c23;
}

.session-chip.role-student {
  background: rgba(24, 184, 166, 0.1);
}

.primary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.82rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.primary-button:hover,
.primary-button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible,
.danger-button:hover,
.danger-button:focus-visible {
  transform: translateY(-1px);
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  box-shadow: 0 14px 32px rgba(24, 184, 166, 0.22);
}

.primary-button.compact {
  min-height: 2.8rem;
}

.ghost-button {
  color: var(--ink);
  background: rgba(24, 184, 166, 0.08);
}

.danger-button {
  color: #ffffff;
  background: linear-gradient(135deg, #c87070, var(--danger));
}

.panel,
.promo-card,
.step-card,
.site-footer,
.listing-card,
.manager-card,
.empty-state,
.flash-card,
.auth-card,
.detail-main,
.detail-sidebar {
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.section {
  padding: 2rem 0 4.5rem;
}

.hero,
.marketplace-grid,
.portal-grid,
.manager-grid,
.detail-grid,
.detail-columns {
  display: grid;
  gap: 1.25rem;
}

.hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  padding-top: 3rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--sand-deep);
  font-size: 0.76rem;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 1.65rem;
  height: 1px;
  background: linear-gradient(90deg, var(--sand), var(--teal));
}

h1,
h2,
h3 {
  font-family: "Syne", "Trebuchet MS", sans-serif;
  line-height: 1.05;
}

h1 {
  margin-top: 1rem;
  font-size: clamp(2.5rem, 6vw, 5.1rem);
}

h2 {
  margin-top: 0.8rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h3 {
  font-size: 1.42rem;
}

.hero-text,
.section-heading p,
.promo-card p:last-of-type,
.step-card p,
.listing-description,
.manager-line,
.detail-block p,
.side-note p,
.availability-note,
.empty-state p,
.site-footer p:last-child,
small {
  color: var(--ink-soft);
  line-height: 1.7;
}

.hero-text {
  margin-top: 1.2rem;
  max-width: 60ch;
  font-size: 1.07rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}

.hero-stats article,
.note-tile {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.hero-stats strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.5rem;
  color: var(--teal-deep);
}

.hero-side {
  display: grid;
  gap: 1rem;
}

.logo-panel,
.hero-note,
.promo-card,
.step-card,
.site-footer,
.panel,
.listing-card,
.manager-card,
.empty-state,
.auth-card,
.detail-main,
.detail-sidebar {
  padding: 1.8rem;
}

.logo-panel {
  display: grid;
  place-items: center;
  min-height: 25rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(24, 184, 166, 0.12), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(215, 205, 129, 0.24), transparent 28%),
    linear-gradient(180deg, #ffffff, #f8fffd);
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.logo-panel::before,
.logo-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(24, 184, 166, 0.14);
}

.logo-panel::before {
  width: 132%;
  height: 132%;
  animation: spin 26s linear infinite;
}

.logo-panel::after {
  width: 78%;
  height: 78%;
  border-color: rgba(215, 205, 129, 0.26);
  animation: spin-reverse 18s linear infinite;
}

.logo-panel img {
  width: min(100%, 30rem);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 18px 32px rgba(20, 53, 52, 0.16));
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.note-tile span {
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.note-tile strong {
  display: block;
  margin-top: 0.5rem;
}

.promo-strip {
  padding-top: 0;
}

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

.portal-card {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.portal-list {
  display: grid;
  gap: 0.7rem;
}

.portal-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.portal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sand), var(--teal));
}

.promo-card h2,
.section-heading h2,
.section-heading h1 {
  max-width: 16ch;
}

.promo-card p:last-of-type,
.section-heading p {
  margin-top: 1rem;
  max-width: 64ch;
}

.promo-tags {
  margin-top: 1.4rem;
}

.promo-tags span,
.listing-badge,
.manager-badge,
.amenity {
  padding: 0.68rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(24, 184, 166, 0.06);
  color: var(--teal-deep);
}

.marketplace-grid {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

.filters-form,
.listing-form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 600;
}

.listings-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

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

.listing-card {
  overflow: hidden;
  display: grid;
  gap: 0;
}

.listing-card > img,
.image-fallback {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 22px;
}

.image-fallback,
.gallery-placeholder,
.booking-cover.fallback {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 24%, rgba(24, 184, 166, 0.14), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(215, 205, 129, 0.22), transparent 28%),
    linear-gradient(180deg, #ffffff, #f8fffd);
}

.image-fallback img,
.gallery-placeholder img,
.booking-cover.fallback img {
  width: min(70%, 16rem);
}

.listing-body {
  display: grid;
  gap: 1rem;
  padding-top: 1.2rem;
}

.listing-top {
  display: grid;
  gap: 0.35rem;
}

.listing-price-row,
.manager-card-head,
.site-footer,
.booking-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.listing-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--teal-deep);
}

.listing-price.large {
  font-size: 1.7rem;
}

.availability-tag {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.availability-tag.available {
  color: var(--teal-deep);
  background: rgba(24, 184, 166, 0.12);
}

.availability-tag.sold-out {
  color: var(--danger);
  background: rgba(183, 81, 81, 0.12);
}

.availability-tag.pending,
.availability-tag.status-pending {
  color: #8a6319;
  background: rgba(215, 205, 129, 0.22);
}

.availability-tag.status-confirmed,
.availability-tag.status-checked-in,
.availability-tag.status-completed {
  color: var(--teal-deep);
  background: rgba(24, 184, 166, 0.12);
}

.availability-tag.cancelled,
.availability-tag.status-cancelled {
  color: var(--danger);
  background: rgba(183, 81, 81, 0.12);
}

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

.step-number {
  display: inline-grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sand), var(--teal));
  color: var(--ink);
  font-weight: 800;
}

.auth-section,
.form-section {
  padding-top: 3rem;
}

.wide-card {
  width: min(100%, 980px);
  margin: 0 auto;
}

.extended-stats {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.auth-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.auth-layout.single {
  grid-template-columns: 1.1fr 0.9fr;
}

.stack-form,
.side-note,
.price-card,
.host-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.side-note {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.inline-link {
  color: var(--teal-deep);
  text-decoration: underline;
}

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

.manager-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.manager-card {
  display: grid;
  gap: 0.85rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(20, 53, 52, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

.checkbox-row input {
  width: auto;
  margin: 0;
  flex: 0 0 auto;
}

.checkbox-row span {
  color: var(--ink-soft);
}

.detail-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: start;
}

.detail-main,
.detail-sidebar {
  display: grid;
  gap: 1.25rem;
}

.detail-gallery {
  display: grid;
  gap: 0.9rem;
}

.gallery-feature {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.gallery-feature img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 0.75rem;
}

.gallery-thumb {
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.gallery-thumb img {
  width: 100%;
  height: 88px;
  object-fit: cover;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible,
.gallery-thumb.active {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 24px rgba(20, 53, 52, 0.1);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 0.75rem;
}

.calendar-day {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 180ms ease, border-color 180ms ease;
}

.calendar-day strong {
  font-size: 1rem;
}

.calendar-day span,
.calendar-day small {
  color: var(--ink-soft);
}

.calendar-day.state-open {
  border-color: rgba(24, 184, 166, 0.24);
  background: rgba(24, 184, 166, 0.08);
}

.calendar-day.state-busy {
  border-color: rgba(215, 205, 129, 0.34);
  background: rgba(215, 205, 129, 0.15);
}

.calendar-day.state-full {
  border-color: rgba(183, 81, 81, 0.22);
  background: rgba(183, 81, 81, 0.09);
}

.calendar-day.is-today {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(20, 53, 52, 0.08);
}

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

.gallery-grid img,
.gallery-placeholder {
  width: 100%;
  min-height: 220px;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.detail-block {
  display: grid;
  gap: 0.9rem;
}

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

.detail-list {
  display: grid;
  gap: 0.7rem;
}

.detail-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sand), var(--teal));
}

.booking-actions {
  display: grid;
  gap: 0.8rem;
}

.compact-form {
  gap: 0.9rem;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.inline-form input {
  min-width: 0;
}

.review-form {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

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

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.existing-images {
  display: grid;
  gap: 1rem;
}

.image-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.image-check-card {
  gap: 0.8rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.image-check-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 16px;
}

.empty-state {
  display: grid;
  gap: 0.55rem;
}

.empty-state span {
  color: var(--sand-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.booking-card {
  overflow: hidden;
}

.booking-layout {
  align-items: stretch;
}

.booking-cover {
  width: 220px;
  min-width: 220px;
  height: 180px;
  object-fit: cover;
  border-radius: 22px;
}

.booking-copy {
  display: grid;
  gap: 0.85rem;
  width: 100%;
}

.flash-stack {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.flash-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
}

.flash-success {
  background: rgba(15, 128, 117, 0.09);
}

.flash-error {
  background: rgba(183, 81, 81, 0.09);
}

.flash-warning {
  background: rgba(147, 109, 31, 0.11);
}

.flash-close {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 999px;
  background: rgba(20, 53, 52, 0.08);
  color: var(--ink);
}

.site-footer {
  margin-top: 2rem;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@media (max-width: 1120px) {
  .site-header,
  .marketplace-grid,
  .portal-grid,
  .manager-grid,
  .detail-grid,
  .listing-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    border-radius: 30px;
  }

  .topnav {
    justify-content: flex-start;
  }
}

@media (max-width: 920px) {
  .hero,
  .auth-layout,
  .detail-columns,
  .hero-stats,
  .extended-stats,
  .form-grid.two,
  .form-grid.three,
  .note-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 28px;
  }

  .brand {
    max-width: 180px;
    justify-self: center;
    margin: 0 auto;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
  }

  .logo-panel {
    min-height: 18rem;
  }

  .booking-layout,
  .listings-head,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .booking-cover {
    width: 100%;
    min-width: 100%;
    height: 210px;
  }

  .topnav {
    width: 100%;
    justify-content: center;
    gap: 0.45rem;
  }

  .topnav a {
    padding: 0.45rem 0.7rem;
    font-size: 0.96rem;
  }

  .header-actions .ghost-button,
  .header-actions .primary-button,
  .header-actions .primary-button.compact {
    min-height: 2.7rem;
    padding: 0.72rem 1rem;
  }
}

@media (max-width: 720px) {
  .site-header,
  .section,
  .site-footer,
  .flash-stack {
    width: min(100%, calc(100% - 1rem));
  }

  .site-header,
  .logo-panel,
  .hero-note,
  .promo-card,
  .panel,
  .site-footer,
  .listing-card,
  .manager-card,
  .auth-card,
  .detail-main,
  .detail-sidebar {
    padding: 1.2rem;
  }

  .site-header {
    position: static;
    gap: 0.65rem;
    padding: 0.75rem 0.8rem;
  }

  .header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .header-menu {
    display: grid;
    gap: 0.75rem;
    width: 100%;
    padding-top: 0.15rem;
  }

  .site-header.menu-ready .header-menu {
    display: none;
  }

  .site-header.menu-ready.is-open .header-menu {
    display: grid;
  }

  .brand {
    max-width: 140px;
    margin: 0;
    justify-self: start;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .site-header.is-open .menu-toggle-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header.is-open .menu-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-open .menu-toggle-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .topnav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    justify-content: stretch;
  }

  .topnav a {
    text-align: left;
    padding: 0.58rem 0.72rem;
    font-size: 0.92rem;
  }

  .header-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    align-items: stretch;
    justify-content: stretch;
  }

  .header-actions > a,
  .header-actions form,
  .header-actions .session-chip {
    width: 100%;
  }

  .header-actions .session-chip {
    padding: 0.65rem 0.8rem;
    font-size: 0.7rem;
    text-align: left;
  }

  .header-actions .ghost-button,
  .header-actions .primary-button,
  .header-actions .primary-button.compact,
  .header-actions form button {
    width: 100%;
    min-height: 2.55rem;
    padding: 0.66rem 0.8rem;
    font-size: 0.94rem;
  }

  h1 {
    font-size: clamp(2.2rem, 11vw, 3.3rem);
  }

  h2 {
    font-size: clamp(1.8rem, 8vw, 2.45rem);
  }

  .listing-card > img,
  .image-fallback {
    height: 190px;
  }

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

  .gallery-feature img {
    height: 280px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
