@font-face {
  font-family: 'IRANYekanXVF';
  src: url('/fonts/IRANYekanXVF.woff2') format('woff2');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #0f766e;
  --primary-dark: #0b5f59;
  --primary-soft: #ecfdf5;
  --success: #16a34a;
  --text: #17212b;
  --muted: #667085;
  --line: #e4e7ec;
  --surface: #ffffff;
  --background: #f5f7f8;
  --disabled: #f2f4f7;
  --danger: #dc2626;
  --shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
  font-family: 'IRANYekanXVF', Tahoma, Arial, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--background);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-size: 17px;
  line-height: 1.7;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(15, 118, 110, 0.08), transparent 28rem),
    radial-gradient(circle at 92% 88%, rgba(15, 118, 110, 0.06), transparent 25rem),
    var(--background);
}

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

button {
  -webkit-tap-highlight-color: transparent;
}

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

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.2);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.page-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px 0 36px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, var(--primary), #159c8e);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
  font-size: 26px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 19px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
}

.secure-badge svg,
.text-button svg,
.pricing-note svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.booking-card {
  padding: 36px;
  border: 1px solid rgba(228, 231, 236, 0.9);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
}

.intro {
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.intro h1 {
  margin: 0;
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.45;
}

.intro > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 30px 0 34px;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  min-width: 74px;
  justify-items: center;
  gap: 7px;
  color: #98a2b3;
}

.step span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #d0d5dd;
  border-radius: 50%;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}

.step strong {
  font-size: 14px;
  white-space: nowrap;
}

.step.active,
.step.completed {
  color: var(--success);
}

.step.active span {
  border-color: var(--success);
  color: #fff;
  background: var(--success);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.22);
}

.step.completed span {
  border-color: var(--success);
  color: #fff;
  background: var(--success);
}

.step-line {
  width: 58px;
  height: 2px;
  margin-top: 16px;
  background: #d0d5dd;
  transition: background 0.2s;
}

.step-line.completed {
  background: var(--success);
}

.field-group {
  margin-bottom: 22px;
}

.field-group > label,
.section-heading h2 {
  display: block;
  margin: 0 0 9px;
  font-size: 15px;
  font-weight: 800;
}

.select-wrap,
.input-wrap {
  position: relative;
}

.select-wrap select,
.input-wrap input {
  width: 100%;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.select-wrap select {
  padding: 0 16px 0 48px;
  appearance: none;
  cursor: pointer;
}

.select-wrap > svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 22px;
  height: 22px;
  pointer-events: none;
  transform: translateY(-50%);
  fill: #667085;
}

.input-wrap input {
  padding: 0 48px 0 15px;
}

.input-wrap[dir="ltr"] input {
  padding: 0 15px 0 48px;
  direction: ltr;
  text-align: left;
}

.input-wrap > svg {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 21px;
  height: 21px;
  transform: translateY(-50%);
  fill: #98a2b3;
}

.input-wrap[dir="ltr"] > svg {
  right: auto;
  left: 16px;
}

.select-wrap select:focus,
.input-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.08);
  outline: none;
}

.input-wrap.invalid input {
  border-color: var(--danger);
}

.field-error {
  display: block;
  min-height: 19px;
  margin-top: 5px;
  color: var(--danger);
  font-size: 14px;
}

.calendar-field {
  position: relative;
}

.date-trigger {
  display: flex;
  width: 100%;
  min-height: 66px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: #fff;
  text-align: right;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.date-trigger:hover,
.date-trigger[aria-expanded="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.07);
}

.date-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px;
  color: var(--primary);
  background: var(--primary-soft);
}

.date-icon svg,
.date-trigger .chevron {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.date-copy {
  flex: 1;
}

.date-copy small,
.date-copy strong {
  display: block;
}

.date-copy small {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 14px;
}

.date-copy strong {
  font-size: 15px;
}

.date-trigger .chevron {
  color: #98a2b3;
  transition: transform 0.2s;
}

.date-trigger[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.calendar {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: min(100%, 380px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.16);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.calendar-header strong {
  font-size: 16px;
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.icon-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: #475467;
}

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

.weekdays {
  margin-bottom: 7px;
  color: #98a2b3;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.calendar-days button,
.calendar-placeholder {
  aspect-ratio: 1;
}

.calendar-days button {
  border: 0;
  border-radius: 10px;
  color: #344054;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
}

.calendar-days button:hover:not(:disabled) {
  background: var(--primary-soft);
}

.calendar-days button.today {
  box-shadow: inset 0 0 0 1px var(--primary);
  color: var(--primary);
  font-weight: 800;
}

.calendar-days button.selected {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.22);
}

.calendar-days button:disabled {
  color: #d0d5dd;
  cursor: not-allowed;
}

.calendar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f1f3;
  color: var(--muted);
  font-size: 14px;
}

.calendar-footer button {
  border: 0;
  color: var(--primary);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

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

.calendar-legend i {
  width: 9px;
  height: 9px;
  border: 1px solid var(--primary);
  border-radius: 3px;
}

.slots-section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin-bottom: 5px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border: 0;
  color: var(--primary);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.availability-loading {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
}

.spinner,
.button-spinner {
  display: inline-block;
  border: 2px solid rgba(15, 118, 110, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.spinner {
  width: 20px;
  height: 20px;
}

.button-spinner {
  width: 17px;
  height: 17px;
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}

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

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

.slot-button {
  position: relative;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: #fff;
  text-align: right;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.slot-button:hover:not(:disabled):not(.unavailable) {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.slot-button.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.slot-button:disabled,
.slot-button.unavailable {
  border-color: #eaecf0;
  color: #98a2b3;
  background: var(--disabled);
  cursor: not-allowed;
}

.slot-copy strong,
.slot-copy small {
  display: block;
}

.slot-copy strong {
  margin-bottom: 5px;
  font-size: 14px;
}

.slot-copy small {
  color: var(--muted);
  font-size: 14px;
}

.slot-button:disabled .slot-copy small,
.slot-button.unavailable .slot-copy small {
  color: #b3b8c1;
}

.slot-check {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #d0d5dd;
  border-radius: 50%;
}

.slot-check svg {
  display: none;
  width: 14px;
  height: 14px;
  fill: #fff;
}

.slot-button.selected .slot-check {
  border-color: var(--primary);
  background: var(--primary);
}

.slot-button.selected .slot-check svg {
  display: block;
}

.slot-button:disabled .slot-check,
.slot-button.unavailable .slot-check {
  width: auto;
  height: auto;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  color: #98a2b3;
  background: #e4e7ec;
  font-size: 14px;
  white-space: nowrap;
}


.slot-warning {
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  line-height: 1.65;
}

.slot-warning.required {
  color: #9a3412;
  background: #fff7ed;
}

.slot-warning.recommended {
  color: #854d0e;
  background: #fefce8;
}

.slot-button.unavailable:focus-visible {
  outline: 2px solid #98a2b3;
  outline-offset: 2px;
}

.slot-button.night {
  grid-column: 1 / -1;
}

#slots-section > .section-heading {
  display: none;
}

.reservation-availability-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.reservation-availability-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.reservation-availability-legend i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.reservation-availability-legend i.available {
  background: #d1fae5;
  border: 1px solid #34d399;
}

.reservation-availability-legend i.current {
  background: #ffedd5;
  border: 1px solid #fb923c;
}

.reservation-availability-legend i.booked {
  background: #fee2e2;
  border: 1px solid #f87171;
}

.reservation-availability-legend i.blocked {
  background: #e2e8f0;
  border: 1px solid #94a3b8;
}

.time-selection-card {
  direction: rtl;
  grid-column: 1 / -1;
  width: 100%;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(222, 226, 230, 0.92);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
  font-family: inherit;
  font-size: 17px;
  line-height: 1.7;
}

.time-range-controls,
.time-selection-header {
  display: grid;
  direction: ltr;
  grid-template-columns: minmax(220px, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(18px, 4vw, 54px);
  align-items: start;
  margin-bottom: clamp(30px, 5vw, 60px);
}

.time-selection-summary {
  display: grid;
  direction: rtl;
  justify-self: start;
  max-width: 360px;
  gap: 8px;
  color: #202020;
  text-align: right;
}

.time-selection-summary strong {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.time-selection-summary span {
  color: #71717a;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8;
}

.time-selection-fields {
  display: grid;
  direction: rtl;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-self: stretch;
}

.time-selection-field {
  position: relative;
  display: grid;
  min-height: 88px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 0;
  border: 1px solid #a8a8a8;
  color: #161616;
  background: #fff;
  cursor: pointer;
}

.time-selection-field:first-child {
  border-radius: 0 18px 18px 0;
}

.time-selection-field:last-child {
  margin-right: -1px;
  border-radius: 18px 0 0 18px;
}

.time-selection-field.active,
.time-selection-field:focus-within {
  z-index: 1;
  border-color: #111;
  box-shadow: inset 0 0 0 2px #111;
}

.time-selection-field.disabled {
  color: #8a8a8a;
  background: #fafafa;
  cursor: not-allowed;
}

.time-selection-field::after {
  position: absolute;
  bottom: 17px;
  left: 18px;
  color: #52525b;
  content: "⌄";
  font-size: 19px;
  line-height: 1;
  pointer-events: none;
}

.time-selection-field.disabled::after {
  color: #a1a1aa;
}

.time-selection-field-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 13px 18px;
}

.time-selection-field-copy small {
  color: #242424;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.time-selection-field-copy select {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 0 0 0 30px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: #111;
  background: transparent;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  cursor: pointer;
  appearance: none;
  outline: none;
}

.time-selection-field-copy select:disabled {
  color: #8a8a8a;
  cursor: not-allowed;
}


.time-selection-calendar-shell {
  position: relative;
  padding-inline: clamp(0px, 2vw, 20px);
}

.hour-calendar,
.time-selection-calendar {
  display: grid;
  grid-column: 1 / -1;
  direction: rtl;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(34px, 7vw, 82px);
}

.hour-calendar-group {
  display: grid;
  gap: 28px;
}

.hour-calendar-heading {
  margin: 0;
  color: #1d1d1f;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.hour-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(44px, 1fr));
  gap: clamp(8px, 1.1vw, 13px);
  align-items: center;
}

.hour-button {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: auto;
  aspect-ratio: 1 / 1;
  place-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #dedede;
  border-radius: 8px;
  color: #161616;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s, background 0.15s, color 0.15s;
}

.hour-button:hover:not(.unavailable) {
  border-color: #111;
  transform: translateY(-1px);
}

.hour-button.available:not(.unavailable):not(.selected):not(.range-preview):not(.range-preview-end):not(.range-start):not(.range-end) {
  border-color: #6ee7b7;
  color: #047857;
  background: #ecfdf5;
}

.hour-button.current:not(.unavailable):not(.selected):not(.range-preview):not(.range-preview-end):not(.range-start):not(.range-end) {
  border-color: #fb923c;
  color: #c2410c;
  background: #fff7ed;
}

.hour-button .slot-copy {
  display: grid;
  place-items: center;
}

.hour-button .hour-cell-number {
  margin: 0;
  color: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.hour-button .slot-price,
.hour-button .slot-check {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hour-button.selected:not(.range-start):not(.range-end) {
  border-color: #6b7280;
  color: #111;
  background: #d1d5db;
  box-shadow: inset 0 0 0 2px rgba(17, 17, 17, 0.24), 0 8px 18px rgba(17, 17, 17, 0.12);
}

.hour-button.range-preview:not(.range-start):not(.range-end) {
  border-color: #555;
  color: #111;
  background: #e5e7eb;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.18), inset 0 0 0 2px rgba(17, 17, 17, 0.16);
  transform: translateY(-1px);
}

.hour-button.range-preview-end:not(.range-start):not(.range-end) {
  width: min(100%, 72px);
  border-color: #111;
  border-radius: 999px;
  color: #111;
  background: #fff;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px #111, 0 10px 24px rgba(17, 17, 17, 0.16);
  justify-self: center;
}

.hour-button.range-start,
.hour-button.range-end,
.hour-button.range-end:not(.selected) {
  width: min(100%, 72px);
  border-color: #111;
  border-radius: 999px;
  color: #fff;
  background: #191919;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px #111;
  justify-self: center;
}

.hour-button.range-start .hour-cell-number,
.hour-button.range-end .hour-cell-number {
  color: #fff;
  font-weight: 800;
}

.hour-button.unavailable:not(.booked):not(.range-start):not(.range-end) {
  border-color: #cbd5e1;
  color: #94a3b8;
  background: #f1f5f9;
  cursor: not-allowed;
  box-shadow: none;
}

.hour-button.unavailable.booked:not(.range-start):not(.range-end) {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fef2f2;
  cursor: not-allowed;
  box-shadow: none;
}

.hour-button.booked:not(.range-start):not(.range-end) .hour-cell-number {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: currentColor;
}

.hour-button.past:not(.range-start):not(.range-end) {
  border-color: #cbd5e1;
  color: #94a3b8;
  background: #f1f5f9;
}

.time-selection-nav {
  position: absolute;
  top: 4px;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #111;
  background: transparent;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.time-selection-nav.previous {
  left: -8px;
}

.time-selection-nav.next {
  right: -8px;
}


@media (max-width: 980px) {
  .time-range-controls,
  .time-selection-header {
    grid-template-columns: 1fr;
  }

  .time-selection-summary {
    justify-self: stretch;
  }

  .hour-calendar,
  .time-selection-calendar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .time-selection-card {
    padding: 18px;
    border-radius: 22px;
  }

  .time-selection-fields {
    grid-template-columns: 1fr;
  }

  .time-selection-field,
  .time-selection-field:first-child,
  .time-selection-field:last-child {
    margin-right: 0;
    border-radius: 16px;
  }

  .hour-grid {
    grid-template-columns: repeat(5, minmax(42px, 1fr));
  }
}

.pricing-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 15px 0 0;
  padding: 11px 12px;
  border-radius: 11px;
  color: #44615e;
  background: #f2fbf8;
  font-size: 14px;
  line-height: 1.8;
}

.pricing-note p {
  margin: 0;
}

.selection-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid #ccebe4;
  border-radius: 14px;
  background: #f7fffc;
}

.selection-summary span,
.selection-summary strong {
  display: block;
}

.selection-summary > div > span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
}

.selection-summary strong {
  color: var(--primary-dark);
  font-size: 28px;
  line-height: 1.5;
}

.selected-count {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.primary-button {
  width: 100%;
  margin-top: 18px;
  border: 0;
  color: #fff;
  background: var(--success);
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.18);
}

.primary-button:hover:not(:disabled) {
  background: #15803d;
  transform: translateY(-1px);
}

.primary-button:disabled {
  color: #98a2b3;
  background: #e4e7ec;
  box-shadow: none;
  cursor: not-allowed;
}

.primary-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.secondary-button {
  min-width: 120px;
  border: 1px solid var(--line);
  color: #475467;
  background: #fff;
}

.secondary-button:hover {
  background: #f9fafb;
}

.compact-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafbfb;
}

.compact-summary div {
  min-width: 0;
}

.compact-summary small,
.compact-summary strong {
  display: block;
}

.compact-summary small {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 14px;
}

.compact-summary strong {
  font-size: 14px;
  line-height: 1.8;
}

.compact-summary-total {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  grid-column: 1 / -1;
}

.compact-summary-total strong {
  color: var(--primary-dark);
  font-size: 19px;
}

.form-error {
  margin-top: -4px;
  padding: 11px 13px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #b91c1c;
  background: #fef2f2;
  font-size: 14px;
  line-height: 1.8;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  margin-top: 8px;
}

.form-actions .primary-button {
  margin-top: 0;
}

.success-step {
  text-align: center;
}

.success-step h2 {
  margin: 0;
  font-size: 26px;
}

.success-step > p:not(.eyebrow) {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.reference-box {
  margin: 24px auto 20px;
  padding: 15px;
  border: 1px dashed #8ed8c9;
  border-radius: 14px;
  background: #f6fffc;
}

.reference-box small,
.reference-box strong {
  display: block;
}

.reference-box small {
  color: var(--muted);
  font-size: 14px;
}

.reference-box strong {
  margin: 7px 0;
  color: var(--primary-dark);
  font-family: inherit;
  font-size: 22px;
  letter-spacing: 1px;
}

.reference-box button {
  border: 0;
  color: var(--primary);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.success-details {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  text-align: right;
  overflow: hidden;
}

.success-details div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px;
  border-bottom: 1px solid #f0f1f3;
}

.success-details div:last-child {
  border-bottom: 0;
}

.success-details dt {
  color: var(--muted);
  font-size: 14px;
}

.success-details dd {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.wide {
  width: 100%;
  margin-top: 18px;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 50%;
  bottom: 24px;
  max-width: min(90vw, 420px);
  padding: 12px 16px;
  border-radius: 11px;
  color: #fff;
  background: #17212b;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
  font-size: 14px;
  line-height: 1.7;
  transform: translateX(50%);
}

.site-footer {
  display: block;
  margin-top: 32px;
  padding: 42px clamp(20px, 5vw, 72px) 22px;
  color: #d7efeb;
  background: #073f3a;
  font-size: 14px;
  text-align: right;
}

.site-footer p {
  margin: 0;
}

.site-footer-main {
  display: grid;
  grid-template-columns: minmax(210px, .9fr) minmax(360px, 1.65fr) minmax(190px, .65fr);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
}

.site-footer h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.7;
}

.site-footer-eyebrow {
  margin-bottom: 8px !important;
  color: #7ee2d5;
  font-size: 16px;
  font-weight: 900;
}

.site-footer-intro > p:last-child,
.site-footer-trust > p {
  margin-top: 10px;
  color: #b9d8d3;
  line-height: 1.9;
}

.site-footer-navigation > h2,
.site-footer-trust > h2 {
  margin-bottom: 14px;
}

.site-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-links > li {
  min-width: 0;
}

.site-footer-links a,
.site-footer-links summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #e8f8f5;
  font-weight: 800;
  line-height: 1.7;
  text-decoration: none;
  cursor: pointer;
}

.site-footer-links a:hover,
.site-footer-links summary:hover,
.site-footer-links a:focus-visible,
.site-footer-links summary:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  outline: none;
}

.site-footer-links details summary {
  list-style: none;
}

.site-footer-links details summary::-webkit-details-marker {
  display: none;
}

.site-footer-links details summary::after {
  flex: 0 0 auto;
  color: #7ee2d5;
  content: "+";
  font-size: 20px;
  font-weight: 500;
  transition: transform 160ms ease;
}

.site-footer-links details[open] summary::after {
  transform: rotate(45deg);
}

.site-footer-links details p,
.site-footer-links details ol {
  margin: 4px 10px 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #c8e3df;
  background: rgba(0, 0, 0, .13);
  line-height: 1.9;
}

.site-footer-links details ol {
  padding-inline-start: 34px;
}

.site-footer-trust {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .07);
}

.enamad-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 12px;
  background: #fff;
  outline: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.enamad-link:hover {
  transform: translateY(-2px);
}

.enamad-link:focus-visible {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.22);
}

.enamad-link img {
  display: block;
  width: 100px;
  max-width: 100%;
  height: auto;
}

.site-footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  color: #9ec7c1;
  text-align: center;
}

@media (max-width: 900px) {
  .site-footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  }

  .site-footer-trust {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .site-footer {
    margin-top: 24px;
    padding: 32px 18px 20px;
  }

  .site-footer-main,
  .site-footer-links {
    grid-template-columns: 1fr;
  }

  .site-footer-main {
    gap: 30px;
  }

  .site-footer-links a,
  .site-footer-links summary {
    min-height: 48px;
    padding-inline: 12px;
  }

  .site-footer-trust {
    grid-column: auto;
  }

  .site-footer-bottom {
    margin-top: 24px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: 100%;
    max-width: none;
    padding-top: 15px;
  }

  .booking-card {
    padding: 24px 17px;
    border-radius: 21px;
  }

  .secure-badge {
    display: none;
  }

  .steps {
    margin: 25px 0 29px;
  }

  .step {
    min-width: 62px;
  }

  .step strong {
    font-size: 14px;
  }

  .step-line {
    width: 34px;
  }

  .calendar {
    position: fixed;
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100vh - 20px);
    overflow: auto;
  }

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

  .slot-button.night {
    grid-column: auto;
  }

  .selection-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .compact-summary {
    grid-template-columns: 1fr;
  }

  .compact-summary-total {
    grid-column: auto;
  }
}

/* Identity verification and payment flow */
.steps-four .step {
  min-width: 66px;
}

.steps-four .step-line {
  width: 42px;
}

.otp-step {
  text-align: center;
}

.otp-step h2 {
  margin: 0;
  font-size: 25px;
}

.otp-step > p:not(.eyebrow) {
  margin: 9px 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.otp-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 18px;
  color: var(--primary);
  background: var(--primary-soft);
}

.otp-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.otp-field {
  max-width: 360px;
  margin-right: auto;
  margin-left: auto;
  text-align: right;
}

.otp-field input {
  width: 100%;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: #fff;
  font-family: inherit;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: 12px;
  text-align: center;
  direction: ltr;
}

.otp-field input.invalid {
  border-color: #fca5a5;
  background: #fffafa;
}

.otp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 360px;
  margin: 8px auto 18px;
  color: var(--muted);
  font-size: 14px;
}

.otp-meta .text-button {
  border: 0;
  background: transparent;
}

.otp-meta .text-button:disabled {
  color: #98a2b3;
  cursor: not-allowed;
}

.payment-amount {
  margin: 22px 0 16px;
  padding: 16px;
  border: 1px solid #bbf7d0;
  border-radius: 15px;
  background: #f0fdf4;
}

.payment-amount small,
.payment-amount strong {
  display: block;
}

.payment-amount small {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}

.payment-amount strong {
  color: #166534;
  font-size: 25px;
}

.bank-card {
  position: relative;
  max-width: 470px;
  margin: 0 auto 18px;
  padding: 24px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,0.19), transparent 7rem),
    linear-gradient(135deg, #0f766e, #0b4f49);
  box-shadow: 0 18px 36px rgba(15, 118, 110, 0.22);
  overflow: hidden;
}

.bank-card::after {
  content: '';
  position: absolute;
  width: 190px;
  height: 190px;
  left: -70px;
  bottom: -110px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
}

.bank-card-top,
.bank-card-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.bank-card > strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 28px 0 26px;
  font-family: inherit;
  font-size: clamp(22px, 5vw, 30px);
  letter-spacing: 2px;
  white-space: nowrap;
}

.bank-card-bottom {
  align-items: flex-end;
}

.bank-card-bottom span,
.bank-card-bottom strong {
  display: block;
}

.bank-card-bottom strong {
  font-family: inherit;
  font-size: 15px;
}

.bank-card button {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 9px;
  color: #fff;
  background: rgba(255,255,255,0.12);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.payment-warning {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  color: #92400e;
  background: #fffbeb;
  font-size: 14px;
  line-height: 1.9;
  text-align: right;
}

@media (max-width: 620px) {
  .steps-four .step {
    min-width: 48px;
  }

  .steps-four .step-line {
    width: 18px;
  }

  .steps-four .step strong {
    max-width: 54px;
    line-height: 1.5;
    text-align: center;
  }

  .otp-field input {
    letter-spacing: 8px;
  }

  .bank-card {
    padding: 20px 16px;
  }

  .bank-card > strong {
    font-size: 21px;
    letter-spacing: 1px;
  }
}

/* Customer login, account dashboard, and guided booking flow */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-login-button {
  min-height: 38px;
  padding: 7px 17px;
  border: 1px solid var(--primary);
  border-radius: 11px;
  color: var(--primary-dark);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.header-login-button:hover {
  color: #fff;
  background: var(--primary);
}

.account-new-booking-button {
  display: none;
}

html[data-route="account"] #login-button {
  display: none;
}

html[data-route="account"] .account-new-booking-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.otp-meta .text-button:not(:disabled),
.resend-action:not(:disabled) {
  font-size: 17px;
  font-weight: 900;
}

.success-step > .payment-instruction {
  font-size: 19px;
  font-weight: 800;
  line-height: 2;
}

.payment-warning {
  padding: 17px 18px;
  font-size: 18px;
  font-weight: 800;
  line-height: 2;
}

.support-contact {
  margin: 18px 0 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}

.support-contact a {
  color: var(--primary-dark);
  text-decoration: none;
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
}

.login-modal {
  position: relative;
  width: min(100%, 500px);
  max-height: calc(100vh - 36px);
  padding: 30px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
  overflow: auto;
}

.login-modal h2 {
  margin: 0 0 24px;
  font-size: 24px;
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  color: #667085;
  background: #f2f4f7;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.customer-dashboard h2 {
  margin: 0;
  font-size: 26px;
}

.dashboard-heading,
.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-heading {
  margin-bottom: 22px;
}

.danger-text {
  color: var(--danger);
}

.orders-list {
  display: grid;
  gap: 18px;
}

.empty-orders {
  margin: 0;
  padding: 28px 18px;
  border: 1px dashed #d0d5dd;
  border-radius: 15px;
  color: var(--muted);
  text-align: center;
}

.order-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.order-card-header {
  margin-bottom: 14px;
}

.order-card-header > strong {
  font-family: inherit;
  font-size: 16px;
}

.order-status {
  padding: 6px 10px;
  border-radius: 999px;
  color: #475467;
  background: #f2f4f7;
  font-size: 14px;
  font-weight: 800;
}

.order-confirmed .order-status {
  color: #166534;
  background: #dcfce7;
}

.order-rejected .order-status,
.order-cancelled .order-status {
  color: #991b1b;
  background: #fee2e2;
}

.confirmed-order-details {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.success-details a {
  color: var(--primary-dark);
  font-weight: 800;
}

.residence-map {
  display: block;
  width: 100%;
  height: 290px;
  margin-top: 16px;
  border: 0;
  border-radius: 15px;
  background: #f2f4f7;
}

.keyless-explanation {
  margin: 16px 0 0;
  padding: 17px 18px;
  border: 1px solid #ccebe4;
  border-radius: 13px;
  color: #134e4a;
  background: #f0fdfa;
  font-size: 18px;
  font-weight: 800;
  line-height: 2;
}

.access-countdown {
  margin-top: 16px;
  padding: 18px;
  border-radius: 14px;
  text-align: center;
}

.access-countdown-before {
  border: 1px solid #86efac;
  color: #166534;
  background: #f0fdf4;
}

.access-countdown-active {
  border: 1px solid #fca5a5;
  color: #b91c1c;
  background: #fef2f2;
}

.access-countdown strong,
.access-countdown span {
  display: block;
}

.access-countdown strong {
  font-size: 19px;
  line-height: 1.9;
}

.access-countdown span {
  margin-top: 10px;
  font-family: inherit;
  font-size: clamp(26px, 6vw, 37px);
  font-weight: 900;
  direction: ltr;
}

@media (max-width: 620px) {
  .header-actions {
    gap: 8px;
  }

  .header-login-button {
    padding: 6px 12px;
    font-size: 14px;
  }

  .login-modal {
    padding: 26px 17px 20px;
  }

  .success-step > .payment-instruction,
  .payment-warning,
  .keyless-explanation,
  .access-countdown strong {
    font-size: 16px;
  }

  .residence-map {
    height: 240px;
  }

  .order-card {
    padding: 14px;
  }
}

/* Mobile readability improvements */
@media (max-width: 620px) {
  body {
    font-size: 17px;
    line-height: 1.8;
  }

  button,
  input,
  select,
  textarea {
    font-size: 17px;
  }

  .brand strong {
    font-size: 21px;
  }

  .brand small,
  .secure-badge,
  .step strong,
  .field-error,
  .calendar-weekdays,
  .calendar-footer button,
  .pricing-note,
  .otp-meta,
  .order-status {
    font-size: 14px;
  }

  .eyebrow,
  .intro > p:last-child,
  .section-heading p,
  .otp-step > p:not(.eyebrow),
  .success-step > p,
  .empty-orders {
    font-size: 16px;
  }

  .field-group > label,
  .section-heading h2,
  .slot-copy strong,
  .date-copy strong,
  .selection-summary strong {
    font-size: 17px;
  }

  .select-wrap select,
  .input-wrap input {
    min-height: 58px;
    font-size: 18px;
  }

  .primary-button,
  .secondary-button,
  .text-button,
  .header-login-button {
    font-size: 16px;
  }

  .slot-copy small,
  .date-copy small,
  .compact-summary small {
    font-size: 14px;
  }

  .success-step > .payment-instruction,
  .payment-warning,
  .keyless-explanation,
  .access-countdown strong {
    font-size: 17px;
  }
}

/* Release 1.9.3: customer cancellation, slot promotion, and public site information */
.slot-selection-help {
  font-size: 14px;
}

.pricing-note.first-page-emphasis {
  font-size: 18px;
}

.slot-price {
  font-size: 14px;
}

.selection-summary .payable-label {
  font-size: 18px;
  font-weight: 700;
}

.payment-step h2,
.payment-step > .payment-instruction {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.7;
}

.payment-step .payment-warning {
  max-width: 470px;
  margin: 18px auto;
  text-align: right;
}

@media (max-width: 620px) {
  .slot-selection-help {
    font-size: 17px;
  }

  .slot-price {
    font-size: 14px;
  }

  .pricing-note.first-page-emphasis,
  .selection-summary .payable-label,
  .selection-summary .selected-count {
    font-size: 17px;
  }

  .selection-summary strong {
    font-size: 24px;
  }

  .payment-step h2,
  .payment-step > .payment-instruction {
    font-size: 23px;
  }

}

/* Release 1.9.3: cancellation policies, customer cancellation, and slot upsell pricing */
.slot-price.discounted {
  color: #166534;
  font-weight: 900;
}

.cancellation-policy-card {
  max-width: 620px;
  margin: 24px auto 0;
  padding: 20px 22px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #fffaf5;
  text-align: right;
}

.cancellation-policy-card h3 {
  margin: 0 0 14px;
  color: #9a3412;
  font-size: 20px;
}

.cancellation-policy-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 20px 0 0;
  color: #7c2d12;
  line-height: 1.9;
}

.cancellation-policy-list li::marker {
  color: #ea580c;
}

.cancellation-policy-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.9;
}

.danger-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: #dc2626;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.danger-button:hover:not(:disabled) {
  background: #b91c1c;
  transform: translateY(-1px);
}

.danger-button:disabled {
  background: #fca5a5;
  cursor: not-allowed;
  transform: none;
}

.order-cancel-button {
  width: 100%;
  margin-top: 16px;
}

.checkout-cancel-button {
  width: 100%;
  margin-top: 18px;
}

.checkout-support-contact {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.cancelled-refund-summary {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  border-radius: 13px;
  color: #991b1b;
  background: #fef2f2;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.9;
}

.cancellation-modal {
  width: min(100%, 620px);
}

.danger-eyebrow {
  color: #b91c1c;
}

.cancellation-order-reference {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: inherit;
  font-size: 15px;
  text-align: right;
}

.warning-policy-card {
  margin-top: 18px;
}

.cancellation-refund-preview {
  margin-top: 18px;
  padding: 17px;
  border: 1px solid #fecaca;
  border-radius: 14px;
  color: #991b1b;
  background: #fef2f2;
  text-align: center;
}

.cancellation-refund-preview span,
.cancellation-refund-preview strong {
  display: block;
}

.cancellation-refund-preview span {
  font-size: 14px;
  font-weight: 700;
}

.cancellation-refund-preview strong {
  margin-top: 8px;
  font-size: 23px;
}

.cancellation-policy-acceptance {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  border-radius: 13px;
  color: #7f1d1d;
  background: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.8;
  cursor: pointer;
}

.cancellation-policy-acceptance input {
  width: 20px;
  height: 20px;
  margin: 4px 0 0;
  flex: 0 0 auto;
  accent-color: #dc2626;
}

.cancellation-policy-acceptance:focus-within {
  outline: 3px solid rgb(220 38 38 / 20%);
  outline-offset: 2px;
}

.cancellation-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.cancellation-modal-actions .secondary-button {
  width: 100%;
}

@media (max-width: 620px) {
  .cancellation-policy-card {
    padding: 17px 16px;
  }

  .cancellation-policy-card h3 {
    font-size: 19px;
  }

  .cancellation-policy-list,
  .cancellation-policy-note,
  .cancelled-refund-summary {
    font-size: 16px;
  }

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

  .danger-button {
    font-size: 16px;
  }
}

/* Accommodation album */
.residence-gallery {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #f8fafc;
}

.gallery-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.gallery-heading h2 {
  margin: 0;
  font-size: 19px;
}

.gallery-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.gallery-map-link {
  flex: 0 0 auto;
  text-decoration: none;
}

.gallery-main {
  width: 100%;
  height: 430px;
  margin: 0;
  overflow: hidden;
  border-radius: 15px;
  background: #e2e8f0;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumbnail {
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 11px;
  background: #e2e8f0;
  cursor: pointer;
}

.gallery-thumbnail.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgb(15 118 110 / 15%);
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-empty {
  padding: 28px 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 620px) {
  .residence-gallery {
    margin: 18px 0;
    padding: 14px;
  }

  .gallery-heading {
    display: block;
  }

  .gallery-map-link {
    display: inline-flex;
    margin-top: 8px;
  }

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

/* Eqamati marketplace v2 */
.page-shell {
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
  padding-bottom: 72px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 72px;
  margin-bottom: 0;
  padding: 12px 0;
  background: rgba(245, 247, 248, 0.92);
  backdrop-filter: blur(18px);
}

.desktop-navigation {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-inline-start: auto;
  margin-inline-end: 28px;
}

.desktop-navigation a {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

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

.marketplace-hero {
  position: relative;
  margin: 20px 0 52px;
  padding: clamp(34px, 6vw, 72px);
  overflow: visible;
  border-radius: 34px;
  background:
    linear-gradient(125deg, rgba(8, 59, 55, 0.98), rgba(15, 118, 110, 0.92)),
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 25rem);
  box-shadow: 0 30px 70px rgba(15, 118, 110, 0.2);
}

.hero-content {
  width: min(100%, 720px);
  color: #fff;
}

.hero-content .eyebrow {
  color: #ccfbf1;
}

.hero-content h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(31px, 5vw, 55px);
  line-height: 1.35;
}

.hero-content > p:last-child {
  max-width: 660px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  line-height: 2;
}

.marketplace-search {
  display: grid;
  grid-template-columns: 1.7fr 1.1fr 0.8fr 0.9fr auto;
  align-items: end;
  gap: 0;
  margin: 36px 0 -98px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.marketplace-search label {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 8px 18px;
  border-inline-end: 1px solid var(--line);
}

.marketplace-search label:first-child {
  border-inline-end: 0;
}

.marketplace-search label span,
.marketplace-sort {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.marketplace-search input,
.marketplace-search select {
  width: 100%;
  min-height: 34px;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  outline: none;
}

.marketplace-search-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border: 0;
  border-radius: 17px;
  color: #fff;
  background: var(--primary);
  font-weight: 800;
  cursor: pointer;
}

.marketplace-search-button svg {
  width: 20px;
  fill: currentColor;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 74px;
}

.category-chips button {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.category-chips button:hover,
.category-chips button.active {
  color: var(--primary-dark);
  background: #fff;
}

.marketplace-results {
  scroll-margin-top: 90px;
  margin: 82px 0 56px;
}

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

.marketplace-section-heading h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 35px);
}

.marketplace-section-heading p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
}

.marketplace-sort {
  display: grid;
  gap: 7px;
}

.marketplace-sort select {
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

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

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

.marketplace-card {
  position: relative;
  min-width: 0;
}

.marketplace-card-main {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.marketplace-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.2), rgba(15, 118, 110, 0.04)),
    #e5e7eb;
}

.marketplace-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.marketplace-card:hover .marketplace-card-media img {
  transform: none;
}

.marketplace-card-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--primary-dark);
  font-size: 43px;
  font-weight: 900;
}

.card-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-badge,
.listing-badges span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #134e4a;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
  font-size: 14px;
  font-weight: 800;
}

.marketplace-favorite {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 23, 42, 0.34);
  font-size: 24px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.marketplace-favorite.active {
  color: #fff;
  background: var(--primary);
}

.marketplace-card-copy {
  padding: 13px 3px 0;
}

.marketplace-card-title-row,
.marketplace-card-meta,
.marketplace-card-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.marketplace-card-title-row h3 {
  margin: 0;
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketplace-card-rating {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
}

.marketplace-card-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.marketplace-card-price {
  margin-top: 11px;
  justify-content: flex-start;
  font-size: 14px;
}

.marketplace-card-price strong {
  font-size: 16px;
}

.marketplace-card-availability {
  margin: 9px 0 0;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
}

.marketplace-map {
  position: sticky;
  top: 92px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
}

.map-surface {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background:
    linear-gradient(35deg, transparent 48%, rgba(15, 118, 110, 0.09) 49%, rgba(15, 118, 110, 0.09) 51%, transparent 52%) 0 0 / 54px 54px,
    linear-gradient(-35deg, transparent 48%, rgba(15, 118, 110, 0.08) 49%, rgba(15, 118, 110, 0.08) 51%, transparent 52%) 0 0 / 54px 54px,
    #ecfdf5;
}

.map-surface > p {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  margin: 0;
  padding: 8px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 800;
}

.map-markers {
  position: absolute;
  inset: 0;
}

.map-marker {
  position: absolute;
  transform: translate(50%, -50%);
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--primary-dark);
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.22);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.marketplace-map > small {
  display: block;
  padding: 13px 15px;
  color: var(--muted);
  line-height: 1.8;
}

.marketplace-loading {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.marketplace-load-more {
  display: block;
  width: min(100%, 260px);
  margin: 26px auto 0;
}

.listing-detail {
  scroll-margin-top: 92px;
  margin: 44px 0 48px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.listing-heading,
.listing-summary-section,
.reviews-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.listing-heading h2 {
  margin: 8px 0 4px;
  font-size: clamp(26px, 4vw, 39px);
}

.listing-heading p {
  margin: 0;
  color: var(--muted);
}

.listing-location-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.listing-map-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid #99f6e4;
  border-radius: 12px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-weight: 800;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.listing-map-button:hover {
  border-color: var(--primary);
  background: #ccfbf1;
  transform: translateY(-1px);
}

.listing-map-button:focus-visible {
  outline: 3px solid rgb(20 184 166 / 24%);
  outline-offset: 2px;
}

.listing-map-button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: currentColor;
}

.listing-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.listing-badges span {
  color: var(--primary-dark);
  background: var(--primary-soft);
  box-shadow: none;
}

.listing-favorite-button {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.listing-favorite-button.active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.listing-photo-mosaic {
  display: grid;
  width: 100%;
  height: 430px;
  min-height: 0;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 22px;
  background: #e5e7eb;
}

.listing-photo-mosaic figure {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.listing-photo-mosaic figure:first-child {
  grid-row: 1 / -1;
}

.listing-photo-mosaic img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.listing-photo-mosaic .listing-photo-placeholder {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  place-items: center;
  color: var(--primary-dark);
  background: linear-gradient(135deg, #ccfbf1, #f0fdfa);
  font-size: 65px;
  font-weight: 900;
}

.listing-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 46px;
  margin-top: 28px;
}

.listing-section {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.listing-section h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.listing-section p {
  margin: 0;
  color: #475467;
  line-height: 2;
}

.host-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 25px;
  font-weight: 900;
}

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

.amenity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 15px;
}

.amenity-item span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: var(--primary-soft);
}

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

.rules-grid article {
  padding: 17px;
  border-radius: 15px;
  background: #f8fafc;
}

.rules-grid article p {
  margin-top: 10px;
  font-size: 14px;
}

.listing-quick-card {
  position: sticky;
  top: 96px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.1);
}

.listing-quick-card > strong,
.listing-quick-card > span {
  display: block;
}

.listing-quick-card > strong {
  font-size: 23px;
}

.listing-quick-card > span,
.listing-quick-card > p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.listing-quick-card .primary-button {
  margin-top: 18px;
}

.rating-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
}

.rating-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 14px;
}

.listing-reviews,
.customer-reviews-list,
.review-eligible-list {
  display: grid;
  gap: 14px;
}

.review-card,
.review-eligible-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-card p {
  margin-top: 12px;
  color: #475467;
  line-height: 1.9;
}

.verified-stay {
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
}

.host-response {
  margin-top: 14px;
  padding: 13px;
  border-radius: 12px;
  background: var(--primary-soft);
  font-size: 14px;
}

.booking-card {
  width: 100%;
  max-width: none;
  scroll-margin-top: 92px;
  margin: 48px 0;
}

.selection-summary {
  display: block;
}

.selection-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.price-breakdown {
  display: grid;
  gap: 9px;
  margin: 17px 0 0;
  padding-top: 15px;
  border-top: 1px dashed var(--line);
}

.price-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.price-breakdown-total {
  color: var(--primary-dark) !important;
  font-weight: 800;
}

@media (max-width: 620px) {
  .price-breakdown > div {
    font-size: 17px;
  }
}

.price-breakdown dd,
.price-breakdown dt {
  margin: 0;
}

.dashboard-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0;
  padding: 5px;
  overflow-x: auto;
  border-radius: 14px;
  background: #f2f4f7;
}

.dashboard-tab {
  flex: 1 0 auto;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.dashboard-tab.active {
  color: var(--text);
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.dashboard-panel.active {
  display: block;
}

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

.profile-form {
  display: grid;
  max-width: 520px;
  gap: 18px;
}

.profile-form label:not(.profile-switch) {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

.profile-form input[type="text"],
.profile-form input:not([type]) {
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.profile-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
}

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

.review-ratings-grid label,
.review-form > label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 800;
}

.review-ratings-grid select,
.review-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.mobile-bottom-navigation {
  display: none;
}

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

  .marketplace-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: -140px;
  }

  .marketplace-search label {
    border: 0;
    border-radius: 14px;
    background: #f8fafc;
  }

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

  .category-chips {
    margin-top: 118px;
  }

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

  .marketplace-map {
    position: static;
    order: -1;
  }

  .map-surface {
    min-height: 280px;
  }

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

  .listing-content-grid {
    grid-template-columns: 1fr;
  }

  .listing-quick-card {
    position: static;
    order: -1;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
    padding-top: 10px;
    padding-bottom: 104px;
  }

  .site-header {
    min-height: 62px;
  }

  .brand small,
  .secure-badge {
    display: none;
  }

  .marketplace-hero {
    margin-top: 8px;
    padding: 30px 20px;
    border-radius: 24px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .marketplace-search {
    grid-template-columns: 1fr;
    margin: 28px 0 -188px;
    border-radius: 20px;
  }

  .marketplace-search label {
    padding: 9px 13px;
  }

  .category-chips {
    margin-top: 168px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .category-chips button {
    flex: 0 0 auto;
  }

  .marketplace-results {
    margin-top: 104px;
  }

  .marketplace-section-heading {
    display: block;
  }

  .marketplace-sort {
    margin-top: 16px;
  }

  .marketplace-sort select {
    width: 100%;
  }

  .marketplace-grid,
  .dashboard-marketplace-grid {
    grid-template-columns: 1fr;
  }

  .marketplace-map {
    display: none;
  }

  .listing-detail {
    padding: 16px;
    border-radius: 22px;
  }

  .listing-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .listing-location-row {
    align-items: flex-start;
  }

  .listing-favorite-button {
    padding: 9px 10px;
    white-space: nowrap;
  }

  .listing-photo-mosaic {
    height: 285px;
    min-height: 0;
    grid-template-columns: 1fr 1fr;
  }

  .listing-photo-mosaic figure:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .listing-photo-mosaic figure:nth-child(n + 4) {
    display: none;
  }

  .listing-content-grid {
    gap: 18px;
  }

  .amenities-grid,
  .rules-grid,
  .rating-breakdown,
  .review-ratings-grid {
    grid-template-columns: 1fr;
  }

  .booking-card {
    margin: 28px 0;
    padding: 22px 16px;
    border-radius: 22px;
  }

  .selection-total-row {
    align-items: flex-start;
  }

  .mobile-bottom-navigation {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
  }

  .mobile-bottom-navigation a,
  .mobile-bottom-navigation button {
    display: grid;
    min-height: 48px;
    place-items: center;
    gap: 2px;
    border: 0;
    color: var(--muted);
    background: transparent;
    font-size: 14px;
    text-decoration: none;
  }

  .mobile-bottom-navigation span {
    font-size: 21px;
    line-height: 1;
  }
}

.time-selection-card,
.time-selection-calendar-shell,
.hour-calendar,
.hour-calendar-group,
.hour-grid {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 340px) {
  .time-selection-card {
    padding: 16px 14px;
  }

  .hour-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }
}

/* Eqamati v2.0.1 marketplace search and booking refinements */
.booking-duplicate-context {
  display: none !important;
}

.marketplace-search-v201 {
  grid-template-columns: minmax(180px, 1.35fr) minmax(155px, 1fr) minmax(210px, 1.2fr) minmax(145px, .8fr) auto;
  align-items: stretch;
  overflow: visible;
}

.marketplace-search-field {
  position: relative;
  min-width: 0;
  border-inline-end: 1px solid var(--line);
}

.marketplace-search-field:first-of-type {
  border-inline-end: 0;
}

.marketplace-field-trigger {
  display: grid;
  width: 100%;
  min-height: 64px;
  align-content: center;
  gap: 4px;
  padding: 8px 18px;
  border: 0;
  border-radius: 16px;
  color: var(--text);
  background: transparent;
  text-align: right;
  cursor: pointer;
}

.marketplace-field-trigger:hover,
.marketplace-field-trigger[aria-expanded="true"] {
  background: #f8fafc;
}

.marketplace-field-label,
.marketplace-field-trigger small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.marketplace-field-trigger strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketplace-destination-control {
  cursor: text;
}

.marketplace-destination-input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--text);
  background: transparent;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.6;
  outline: 0;
}

.marketplace-destination-input::placeholder {
  color: var(--text);
  opacity: 1;
}

.marketplace-destination-input:focus {
  box-shadow: none;
}

.marketplace-field-trigger small {
  color: var(--primary);
}

.marketplace-popover {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 120;
  width: min(380px, calc(100vw - 40px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .2);
}

.marketplace-popover::before {
  position: absolute;
  top: -7px;
  right: 28px;
  width: 13px;
  height: 13px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #fff;
  content: "";
  transform: rotate(-45deg);
}

.marketplace-popover h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.destination-list {
  display: grid;
  gap: 6px;
  max-height: 340px;
  overflow-y: auto;
}

.destination-option {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  color: var(--text);
  background: transparent;
  text-align: right;
  cursor: pointer;
}

.destination-option:hover,
.destination-option.active {
  background: #f0fdfa;
}

.destination-option-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  color: var(--primary-dark);
  background: #ccfbf1;
  font-size: 21px;
}

.destination-option strong,
.destination-option small {
  display: block;
}

.destination-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.marketplace-popover-message {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 14px;
  line-height: 1.8;
}

.search-calendar {
  width: min(360px, calc(100vw - 40px));
}

.search-calendar .calendar-days {
  min-height: 252px;
}

.time-popover {
  width: min(440px, calc(100vw - 40px));
}

.time-range-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.time-range-grid label {
  display: grid;
  gap: 7px;
  padding: 0;
  border: 0;
}

.time-range-grid label span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.time-range-grid select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: #fff;
  font-weight: 800;
}

.time-popover .primary-button {
  width: 100%;
}

.guests-popover {
  right: auto;
  left: 0;
  width: min(330px, calc(100vw - 40px));
}

.guests-popover::before {
  right: auto;
  left: 28px;
}

.guest-counter,
.guest-counter-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guest-counter small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.guest-counter-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--primary-dark);
  background: #fff;
  font-size: 22px;
  cursor: pointer;
}

.guest-counter-controls button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.guest-counter-controls output {
  min-width: 30px;
  text-align: center;
  font-weight: 900;
}


.booking-card-v201 {
  scroll-margin-top: 92px;
}

@media (max-width: 1020px) {
  .marketplace-search-v201 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: -185px;
  }

  .marketplace-search-field {
    border: 0;
    border-radius: 14px;
    background: #f8fafc;
  }

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

  .marketplace-results {
    margin-top: 128px;
  }
}

@media (max-width: 680px) {
  .marketplace-search-v201 {
    grid-template-columns: 1fr;
    margin-bottom: -380px;
  }

  .marketplace-field-trigger {
    min-height: 58px;
    padding: 8px 13px;
  }

  .marketplace-popover {
    position: fixed;
    top: 50%;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: min(76vh, 620px);
    overflow-y: auto;
    transform: translateY(-50%);
  }

  .marketplace-popover::before {
    display: none;
  }

  .time-range-grid {
    grid-template-columns: 1fr 1fr;
  }

  .marketplace-results {
    margin-top: 322px;
  }
}
.destination-option .destination-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  color: var(--primary-dark);
  background: #ccfbf1;
  font-size: 21px;
}

.booking-card.authenticated-booking .step[data-step-indicator="2"],
.booking-card.authenticated-booking .step[data-step-indicator="3"],
.booking-card.authenticated-booking .step-line {
  display: none;
}

.booking-card.authenticated-booking .steps {
  gap: 54px;
}

/* Dedicated account route */
html[data-route="account"] .marketplace-hero,
html[data-route="account"] #marketplace-results,
html[data-route="account"] #listing-detail,
html[data-route="account"] .site-footer,
html[data-route="account"] .mobile-bottom-navigation {
  display: none !important;
}

html[data-route="account"] .desktop-navigation {
  visibility: hidden;
}

html[data-route="account"] .page-shell {
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
  padding-bottom: 42px;
}

.account-dashboard-card {
  margin: 24px 0 0;
  padding: clamp(22px, 3vw, 36px);
}

.account-dashboard-card .customer-dashboard {
  min-height: calc(100vh - 170px);
}

/* Account dashboard v2.0.2 */
.login-terms-note {
  margin: 4px 0 16px;
  color: #667085;
  font-size: 14px;
  line-height: 1.9;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  direction: rtl;
}

.dashboard-menu.dashboard-tabs {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
}

.dashboard-menu .dashboard-tab {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  padding: 12px 14px;
  text-align: right;
}

.dashboard-menu-toggle {
  display: none;
}

.dashboard-content {
  min-width: 0;
}

.dashboard-panel[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.dashboard-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-section-heading h3,
.account-placeholder-card h3 {
  margin: 0;
  font-size: 19px;
}

.dashboard-section-heading p,
.account-placeholder-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.previous-reservations-heading {
  margin-top: 28px;
}

.profile-form {
  display: grid;
  max-width: 620px;
  gap: 18px;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.profile-form label:not(.profile-switch),
.profile-about-field {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.profile-form input,
.profile-form select,
.profile-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-weight: 700;
}

.profile-form textarea {
  min-height: 120px;
  padding-top: 12px;
  resize: vertical;
  line-height: 1.8;
}

.profile-form input[readonly] {
  color: #475467;
  background: #f8fafc;
  cursor: not-allowed;
}

.profile-about-field {
  grid-column: auto;
}

.reservation-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px;
  border-radius: 14px;
  background: #f2f4f7;
}

.reservation-tab {
  flex: 1 1 180px;
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.reservation-tab.active {
  color: var(--text);
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.reservation-view[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.transactions-list {
  display: grid;
  gap: 14px;
}

.transaction-card,
.account-placeholder-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.transaction-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.transaction-card-header strong {
  font-family: inherit;
}

.transaction-card-header span {
  color: var(--primary-dark);
  font-weight: 900;
}

.transaction-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.transaction-card .transaction-refund {
  color: var(--success);
  font-weight: 800;
}

.dashboard-link-button {
  display: inline-flex;
  width: auto;
  margin-top: 16px;
  text-decoration: none;
}

.account-logout-action {
  display: flex;
  max-width: 620px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.account-logout-button {
  min-width: 190px;
  padding-inline: 22px;
}

@media (max-width: 680px) {
  html[data-route="account"] .page-shell {
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
    padding-bottom: 28px;
  }

  .account-dashboard-card {
    margin-top: 12px;
  }

  .account-logout-button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Eqamati v2.0.82 fixed mobile customer account navigation */
  .dashboard-menu-toggle {
    position: fixed;
    top: 66px;
    right: 14px;
    left: 14px;
    z-index: 290;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    min-height: 52px;
    gap: 11px;
    padding: 11px 14px;
    border: 1px solid #99f6e4;
    border-radius: 14px;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(10px);
    font-weight: 900;
    text-align: right;
    cursor: pointer;
  }

  .account-menu-toggle-icon {
    display: grid;
    flex: 0 0 22px;
    gap: 4px;
    width: 22px;
  }

  .account-menu-toggle-icon > span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .dashboard-menu.dashboard-tabs {
    position: fixed;
    top: 126px;
    right: 14px;
    left: 14px;
    z-index: 289;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
    max-height: calc(100dvh - 140px);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(12px);
  }

  .dashboard-shell[data-mobile-menu-open="false"] .dashboard-menu.dashboard-tabs {
    display: none;
  }

  html[data-route="account"] .account-dashboard-card .customer-dashboard {
    padding-top: 66px;
  }

  .dashboard-menu .dashboard-tab {
    flex: none;
    min-height: 48px;
    justify-content: flex-start;
    padding: 11px 14px;
    border: 1px solid var(--line);
    white-space: normal;
    line-height: 1.7;
    background: #fff;
    box-shadow: none;
  }

  .dashboard-menu .dashboard-tab.active {
    border-color: #99f6e4;
    color: var(--primary-dark);
    background: #f0fdfa;
    box-shadow: inset -4px 0 0 var(--primary);
  }

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

  .dashboard-section-heading {
    display: grid;
  }
}

/* Eqamati v2.0.7 search autocomplete and filters */
.marketplace-results-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.marketplace-clear-filters {
  min-height: 40px;
  padding: 8px 14px;
  white-space: nowrap;
}

.destination-empty-state {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 760px) {
  .marketplace-results-actions {
    justify-content: stretch;
    width: 100%;
  }

  .marketplace-clear-filters,
  .marketplace-sort {
    width: 100%;
  }
}


/* Eqamati v2.0.13 header and homepage shape refinements */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-inline: clamp(18px, 4vw, 48px);
}

.marketplace-hero {
  border-radius: 0 !important;
}

@media (max-width: 680px) {
  .site-header {
    padding-inline: 16px;
  }

  .marketplace-hero {
    border-radius: 0 !important;
  }
}

/* Eqamati v2.0.11 marketplace sorting, fixed header, detail pages and checkout */
.page-shell {
  padding-top: 96px !important;
  padding-right: clamp(16px, 4vw, 48px) !important;
  padding-left: clamp(16px, 4vw, 48px) !important;
}

.site-header {
  position: fixed !important;
  top: 0;
  right: 0;
  left: 0;
  z-index: 300;
  min-height: 74px;
  margin: 0 !important;
  padding: 12px clamp(18px, 4vw, 56px) !important;
  border-bottom: 1px solid rgba(228, 231, 236, 0.92);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.marketplace-section-heading {
  align-items: flex-end;
}

.marketplace-results-actions {
  align-items: flex-end !important;
  gap: 12px;
}

.marketplace-clear-filters {
  min-height: 43px;
  margin: 0 0 0;
  align-self: end;
}

.marketplace-sort {
  margin: 0 !important;
}

.marketplace-sort select {
  min-height: 43px;
}

.marketplace-card-gallery .marketplace-card-main-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.marketplace-card-thumbnails {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  pointer-events: none;
}

.marketplace-card-thumbnails img {
  width: 100%;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
}

.marketplace-card-gallery-count {
  position: absolute;
  left: 11px;
  bottom: 11px;
  z-index: 3;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.62);
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

html[data-route="stay"] .marketplace-hero,
html[data-route="stay"] #marketplace-results,
html[data-route="checkout"] .marketplace-hero,
html[data-route="checkout"] #marketplace-results,
html[data-route="checkout"] #listing-detail,
html[data-route="checkout"] .site-footer,
html[data-route="checkout"] .mobile-bottom-navigation {
  display: none !important;
}

html[data-route="stay"] #listing-detail {
  display: block;
}

html[data-route="stay"] #booking-panel.detail-booking-card {
  margin-top: 20px;
  padding: clamp(20px, 3vw, 30px);
}

.detail-booking-card .intro {
  margin-bottom: 18px;
}

.detail-booking-card .intro h1 {
  font-size: clamp(22px, 3vw, 28px);
}

.detail-booking-card .steps {
  margin: 18px 0 22px;
}

.detail-booking-card .slots-grid {
  gap: 10px;
}

.checkout-status-card {
  display: grid;
  gap: 4px;
  margin: 14px auto 18px;
  padding: 14px 16px;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  color: #14532d;
  background: #f0fdf4;
  text-align: center;
}

.checkout-status-card span,
.checkout-status-card small {
  color: #166534;
}

.checkout-status-card strong {
  font-size: 20px;
}

.checkout-status-card[data-status="confirmed"] {
  border-color: #86efac;
  background: #dcfce7;
}

.checkout-status-card[data-status="rejected"],
.checkout-status-card[data-status="cancelled"] {
  border-color: #fecaca;
  color: #991b1b;
  background: #fef2f2;
}

.checkout-status-card[data-status="rejected"] span,
.checkout-status-card[data-status="rejected"] small,
.checkout-status-card[data-status="cancelled"] span,
.checkout-status-card[data-status="cancelled"] small {
  color: #991b1b;
}

@media (max-width: 760px) {
  .page-shell {
    padding-top: 82px !important;
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  .site-header {
    min-height: 64px;
    padding-inline: 14px !important;
  }

  .marketplace-section-heading {
    display: grid;
    gap: 14px;
  }

  .marketplace-results-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .marketplace-clear-filters,
  .marketplace-sort,
  .marketplace-sort select {
    width: 100%;
  }

  .marketplace-card-thumbnails img {
    height: 38px;
  }
}

/* Eqamati v2.0.11 homepage card slideshow, selected map pins, and fullscreen galleries */
.marketplace-card-main {
  cursor: pointer;
  outline: none;
}

.marketplace-card.selected {
  box-shadow: 0 18px 50px rgb(220 38 38 / 18%);
}

.marketplace-card-main:focus-visible {
  outline: 3px solid rgb(15 118 110 / 42%);
  outline-offset: 4px;
  border-radius: 24px;
}

.marketplace-card-media.marketplace-card-gallery {
  position: relative;
  overflow: hidden;
}

.card-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 92%);
  color: #111827;
  font-size: 0;
  line-height: 1;
  box-shadow: 0 12px 28px rgb(15 23 42 / 22%);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
}

.card-gallery-arrow.previous {
  right: 12px;
}

.card-gallery-arrow.next {
  left: 12px;
}

.gallery-arrow-icon {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
}

.gallery-arrow-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.gallery-arrow-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.marketplace-card:hover .card-gallery-arrow,
.marketplace-card:focus-within .card-gallery-arrow {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%);
}

.card-gallery-arrow:hover,
.card-gallery-arrow:focus-visible {
  background: #fff;
  transform: translateY(-50%) scale(1.04);
}

.marketplace-card-thumbnails,
.marketplace-card-gallery-count {
  display: none !important;
}

.map-marker {
  background: #6b7280 !important;
  border-color: #fff !important;
  color: #fff !important;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.map-marker.selected {
  z-index: 8;
  background: #dc2626 !important;
  box-shadow: 0 16px 36px rgb(220 38 38 / 36%) !important;
  transform: translate(50%, -50%) scale(1.08) !important;
}

.listing-photo-mosaic figure {
  position: relative;
}

.listing-photo-button {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: inherit;
}

.listing-photo-button img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.listing-photo-fullscreen,
.gallery-main-fullscreen {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 16px;
  background: rgb(255 255 255 / 94%);
  color: #111827;
  font-weight: 900;
  box-shadow: 0 12px 28px rgb(15 23 42 / 18%);
}

.gallery-main img {
  cursor: zoom-in;
}

.gallery-main-fullscreen {
  border: 0;
  cursor: pointer;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 42px);
  background: rgb(2 6 23 / 88%);
}

.gallery-lightbox-dialog {
  position: relative;
  width: min(1120px, 100%);
  height: min(760px, 88vh);
  max-height: calc(100dvh - clamp(32px, 6vw, 84px));
  display: grid;
  place-items: center;
}

.gallery-lightbox-figure {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  overflow: hidden;
}

.gallery-lightbox-image-frame {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
}

.gallery-lightbox-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.gallery-lightbox-figure figcaption {
  color: #fff;
  text-align: center;
  font-weight: 800;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  z-index: 6;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 94%);
  color: #111827;
  box-shadow: 0 16px 34px rgb(0 0 0 / 24%);
  cursor: pointer;
}

.gallery-lightbox-close {
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  font-size: 32px;
  font-weight: 900;
}

.gallery-lightbox-nav {
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 0;
  line-height: 1;
  transform: translateY(-50%);
}

.gallery-lightbox-nav .gallery-arrow-icon {
  width: 22px;
  height: 22px;
}

.gallery-lightbox-nav.previous {
  right: -18px;
}

.gallery-lightbox-nav.next {
  left: -18px;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .gallery-lightbox-nav.previous {
    right: 10px;
  }

  .gallery-lightbox-nav.next {
    left: 10px;
  }

  .gallery-lightbox-dialog {
    height: 82dvh;
  }
}

@media (max-width: 620px) {
  .gallery-main {
    height: 285px;
  }
}

/* Eqamati v2.0.13 homepage full-width hero only */
html[data-route="home"] .marketplace-hero {
  width: 100vw;
  margin-right: calc(50% - 50vw) !important;
  margin-left: calc(50% - 50vw) !important;
  padding-right: clamp(28px, 6vw, 96px);
  padding-left: clamp(28px, 6vw, 96px);
}

@media (max-width: 680px) {
  html[data-route="home"] .marketplace-hero {
    padding-right: 20px;
    padding-left: 20px;
  }
}

/* Eqamati v2.0.16 Google Maps marketplace map, expanded map layout, draggable synchronized pins, and zoom-aware clusters */
.marketplace-map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
}

.marketplace-map-heading h3 {
  margin: 0;
}

.map-action-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--primary-dark);
  background: #fff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.map-action-button:hover,
.map-action-button:focus-visible {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgb(15 118 110 / 15%);
}

.google-map-surface {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  padding: 0;
  background: #e5e7eb;
}

.google-map-surface .map-tile-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transform: translateZ(0);
  will-change: transform;
}

.google-map-surface .map-tile-layer img {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none;
  border: 0;
  user-select: none;
  pointer-events: none;
}

.google-map-surface .map-attribution {
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 7;
  padding: 3px 7px;
  border-radius: 8px;
  background: rgb(255 255 255 / 86%);
  color: #475569;
  font-size: 14px;
  direction: ltr;
}

.google-map-surface .map-markers {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.google-map-surface .map-marker {
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.map-drag-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  cursor: grab;
  background: transparent;
  touch-action: none;
}

.map-drag-layer.dragging {
  cursor: grabbing;
}

.marketplace-map-dragging {
  user-select: none;
}

.map-zoom-controls {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 8;
  display: grid;
  gap: 8px;
}

.map-zoom-controls button {
  width: 38px;
  height: 38px;
  border: 1px solid rgb(15 23 42 / 12%);
  border-radius: 12px;
  color: #111827;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 10px 22px rgb(15 23 42 / 16%);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.map-zoom-controls button:hover,
.map-zoom-controls button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgb(15 118 110 / 18%), 0 10px 22px rgb(15 23 42 / 16%);
}

.map-marker.map-marker-dot,
.map-marker.map-marker-count {
  z-index: 5;
  display: inline-grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 2px solid #fff !important;
  color: #fff !important;
  background: #111827 !important;
  box-shadow: 0 10px 24px rgb(15 23 42 / 28%);
}

.map-marker.map-marker-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  font-size: 0;
}

.map-marker.map-marker-count {
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 15px;
  font-weight: 950;
}

.map-marker-tooltip {
  position: absolute;
  right: 50%;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: max-content;
  max-width: 220px;
  padding: 8px 10px;
  border-radius: 12px;
  color: #111827;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 14px 32px rgb(15 23 42 / 20%);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.7;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 5px);
  transition: opacity .16s ease, transform .16s ease;
}

.map-marker:hover .map-marker-tooltip,
.map-marker:focus-visible .map-marker-tooltip {
  opacity: 1;
  transform: translate(50%, 0);
}

.map-marker.selected.map-marker-dot,
.map-marker.selected.map-marker-count {
  z-index: 10;
  background: #dc2626 !important;
}

.google-map-surface .map-marker.selected {
  transform: translate(-50%, -50%) scale(1.08) !important;
}

body.marketplace-map-open {
  overflow: hidden;
}

.marketplace-layout.map-expanded {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 18px;
  background: #f8fafc;
  direction: ltr;
}

.marketplace-layout.map-expanded .marketplace-map,
.marketplace-layout.map-expanded .marketplace-map-selection,
.marketplace-layout.map-expanded .marketplace-results-list {
  direction: rtl;
}

.marketplace-layout.map-expanded .marketplace-map {
  position: relative;
  top: auto;
  grid-column: 1 / span 3;
  grid-row: 1 / span 2;
  min-height: 0;
  height: 100%;
  border-radius: 28px;
}

.marketplace-layout.map-expanded .google-map-surface {
  min-height: 0;
  height: calc(100% - 66px);
}

.marketplace-layout.map-expanded .marketplace-map-selection {
  display: block;
  grid-column: 4;
  grid-row: 1;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
}

.marketplace-map-selection h3 {
  margin: 0 0 12px;
}

.marketplace-layout.map-expanded .marketplace-results-list {
  grid-column: 4;
  grid-row: 2;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 14px;
  background: #fff;
}

.marketplace-layout.map-expanded .marketplace-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

.marketplace-layout.map-expanded .marketplace-load-more {
  width: 100%;
}

.map-selected-card .marketplace-card-copy {
  padding-bottom: 4px;
}

@media (min-width: 1021px) {
  .marketplace-map {
    position: sticky;
    top: 92px;
    align-self: start;
    max-height: calc(100vh - 112px);
  }

  .marketplace-map .google-map-surface {
    min-height: min(520px, calc(100vh - 190px));
  }
}

@media (max-width: 1020px) {
  .marketplace-map-heading {
    padding: 14px 14px 10px;
  }

  .map-action-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
  }

  .google-map-surface {
    min-height: 280px;
  }

  .map-drag-layer {
    display: block;
  }

  .google-map-surface .map-tile-layer {
    pointer-events: none;
  }
}

/* Eqamati v2.0.16 Airbnb-style map search, price pins, and advanced accommodation filters */
.marketplace-filter-panel {
  display: grid;
  gap: 16px;
  margin: -8px 0 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgb(15 23 42 / 6%);
}

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

.filter-control {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.filter-control input,
.filter-control select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px 12px;
  color: var(--text);
  background: #f8fafc;
  outline: none;
}

.filter-control input:focus,
.filter-control select:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgb(15 118 110 / 14%);
}

.amenity-filter-group {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.amenity-filter-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.amenity-filter-group legend {
  width: 100%;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.amenity-filter-group label {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: #f8fafc;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.amenity-filter-group label:has(input:checked) {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: #ecfdf5;
  box-shadow: 0 0 0 3px rgb(15 118 110 / 8%);
}

.amenity-filter-group input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.instant-filter {
  border-color: #fed7aa !important;
  background: #fff7ed !important;
}

.marketplace-filter-submit {
  min-height: 43px;
  color: #fff;
  background: var(--primary);
}

.marketplace-filter-submit:hover,
.marketplace-filter-submit:focus-visible {
  background: var(--primary-dark);
}

.marketplace-filter-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.marketplace-filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.marketplace-active-filters {
  margin: 0;
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--primary-dark);
  background: #ecfdf5;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.8;
}

.map-area-controls {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 9;
  display: grid;
  max-width: min(310px, calc(100% - 84px));
  gap: 7px;
  pointer-events: none;
}

.map-area-controls button,
.map-area-controls output {
  pointer-events: auto;
}

.map-area-controls button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: #111827;
  box-shadow: 0 12px 30px rgb(15 23 42 / 22%);
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}

.map-area-controls button.attention {
  background: #dc2626;
  animation: mapAreaPulse 1.5s ease-in-out infinite;
}

.map-area-controls button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.map-area-controls output {
  border-radius: 14px;
  padding: 7px 10px;
  color: #111827;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 10px 24px rgb(15 23 42 / 12%);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.6;
}

@keyframes mapAreaPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.map-marker.map-marker-price,
.map-marker.map-marker-mini,
.map-marker.map-marker-count {
  border: 2px solid #fff !important;
  box-shadow: 0 12px 26px rgb(15 23 42 / 26%);
}

.map-marker.map-marker-price {
  z-index: 7;
  min-width: 54px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #111827 !important;
  background: #fff !important;
  font-size: 14px;
  font-weight: 950;
  line-height: 30px;
}

.map-marker.map-marker-mini {
  z-index: 4;
  width: 14px;
  height: 14px;
  padding: 0;
  border-radius: 999px;
  background: #111827 !important;
}

.map-marker.map-marker-price.selected,
.map-marker.map-marker-mini.selected,
.map-marker.selected.map-marker-count {
  z-index: 12;
  color: #fff !important;
  background: #dc2626 !important;
  transform: translate(-50%, -50%) scale(1.08) !important;
}

.map-marker.map-marker-price:hover,
.map-marker.map-marker-price:focus-visible {
  transform: translate(-50%, -50%) scale(1.08);
}

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

  .map-area-controls {
    max-width: min(280px, calc(100% - 76px));
  }
}

@media (max-width: 680px) {
  .marketplace-filter-panel {
    gap: 10px;
    margin-right: 14px;
    margin-left: 14px;
    padding: 12px;
  }

  .filter-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .filter-control {
    grid-template-columns: minmax(104px, 0.78fr) minmax(0, 1.45fr);
    align-items: center;
    gap: 8px;
  }

  .filter-control > span {
    line-height: 1.55;
  }

  .filter-control input,
  .filter-control select {
    min-height: 42px;
    padding: 7px 10px;
  }

  .amenity-filter-group {
    min-width: 0;
    gap: 6px;
  }

  .amenity-filter-options {
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .amenity-filter-options label {
    flex: 0 0 auto;
    min-height: 36px;
    justify-content: center;
    padding: 6px 10px;
  }

  .marketplace-filter-actions {
    display: flex;
    gap: 8px;
  }

  .marketplace-filter-actions .marketplace-filter-submit,
  .marketplace-filter-actions .marketplace-clear-filters {
    flex: 1 1 0;
    width: 100%;
    min-height: 42px;
  }

  .marketplace-map {
    display: block;
    margin-right: 14px;
    margin-left: 14px;
  }

  .map-area-controls {
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .map-area-controls output {
    display: none;
  }

  .map-marker.map-marker-price {
    min-width: 48px;
    height: 32px;
    padding: 0 10px;
    font-size: 14px;
  }
}

/* Eqamati v2.0.17 robust map-link coordinate extraction and Null Island guard */


/* Eqamati v2.0.20 left scoped sticky homepage map */
@media (min-width: 1021px) {
  .marketplace-layout:not(.map-expanded) {
    grid-template-columns: 340px minmax(0, 1fr);
    align-items: start;
  }

  .marketplace-layout:not(.map-expanded) .marketplace-results-list {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .marketplace-layout:not(.map-expanded) .marketplace-map {
    position: sticky;
    top: 92px;
    right: auto;
    left: auto;
    grid-column: 1;
    grid-row: 1;
    width: 340px;
    max-width: 100%;
    max-height: calc(100vh - 112px);
    z-index: 25;
    align-self: start;
  }

  .marketplace-layout:not(.map-expanded) .marketplace-map .google-map-surface {
    min-height: min(520px, calc(100vh - 190px));
  }
}


/* Eqamati v2.0.21 scoped two-row listings/map grid, fullscreen map popup, and automatic map-area search */
@media (min-width: 1021px) {
  .marketplace-layout:not(.map-expanded) {
    direction: ltr;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 24px;
    height: clamp(620px, calc(100vh - 112px), 780px);
    min-height: 620px;
    align-items: stretch;
  }

  .marketplace-layout:not(.map-expanded) .marketplace-results-list,
  .marketplace-layout:not(.map-expanded) .marketplace-map {
    direction: rtl;
  }

  .marketplace-layout:not(.map-expanded) .marketplace-results-list {
    grid-column: 2 / 5;
    grid-row: 1 / 3;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-left: 8px;
    overscroll-behavior-y: auto;
    scrollbar-gutter: stable;
  }

  .marketplace-layout:not(.map-expanded) .marketplace-map {
    position: relative;
    top: auto;
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    width: auto;
    height: 100%;
    max-height: none;
    align-self: stretch;
    z-index: 2;
  }

  .marketplace-layout:not(.map-expanded) .marketplace-map .google-map-surface {
    min-height: 0;
    height: calc(100% - 66px);
  }
}

.marketplace-layout.map-expanded {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 18px;
  background: #f8fafc;
  direction: ltr;
}

.marketplace-layout.map-expanded .marketplace-map {
  position: relative;
  top: auto;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  width: auto;
  height: 100%;
  min-height: 0;
  max-height: none;
  border-radius: 28px;
  direction: rtl;
}

.marketplace-layout.map-expanded .google-map-surface {
  min-height: 0;
  height: calc(100% - 66px);
}

.marketplace-layout.map-expanded .marketplace-results-list,
.marketplace-layout.map-expanded .marketplace-map-selection {
  display: none !important;
}

.map-area-controls {
  max-width: min(360px, calc(100% - 84px));
}

.map-area-controls output {
  pointer-events: none;
}

.map-marker.map-marker-price {
  border-radius: 13px;
}

.marketplace-layout.map-expanded .map-marker.map-marker-price {
  min-width: 58px;
  height: 36px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 32px;
}

.marketplace-layout.map-expanded .map-marker-tooltip {
  display: none;
}

.map-accommodation-popup {
  position: absolute;
  z-index: 30;
  width: calc(var(--popup-image-width) + 22px);
  padding: 10px;
  border: 0;
  border-radius: 22px;
  background: rgb(255 255 255 / 98%);
  box-shadow: 0 24px 70px rgb(15 23 42 / 28%);
  transform: translate(-50%, -100%);
  pointer-events: auto;
  direction: rtl;
  text-align: right;
}

.marketplace-layout:not(.map-expanded) .map-accommodation-popup {
  display: none;
}

.map-accommodation-popup.below-marker {
  transform: translate(-50%, 0);
}

.map-popup-media {
  position: relative;
  width: var(--popup-image-width);
  height: var(--popup-image-height);
}

.map-popup-image-link {
  display: block;
  width: var(--popup-image-width);
  height: var(--popup-image-height);
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  padding: 0;
  background: #e5e7eb;
  cursor: pointer;
}

.map-popup-image-link img,
.map-popup-image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-popup-image-placeholder {
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.2), rgba(15, 118, 110, 0.04));
  font-size: 44px;
  font-weight: 950;
}

.map-popup-gallery-arrow,
.map-popup-close {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  color: #111827;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 8px 20px rgb(15 23 42 / 18%);
  cursor: pointer;
}

.map-popup-gallery-arrow {
  top: 50%;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 30px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .16s ease;
}

.map-accommodation-popup:hover .map-popup-gallery-arrow,
.map-accommodation-popup:focus-within .map-popup-gallery-arrow {
  opacity: 1;
}

.map-popup-gallery-arrow.previous {
  right: 10px;
}

.map-popup-gallery-arrow.next {
  left: 10px;
}

.map-popup-close {
  top: 16px;
  left: 16px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 900;
}

.map-popup-copy {
  display: grid;
  gap: 4px;
  padding: 10px 4px 2px;
}

.map-popup-type-row {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.map-popup-type-row > strong,
.map-popup-listing-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-popup-type-row > strong {
  font-size: 15px;
}

.map-popup-rating {
  flex: 0 0 auto;
  color: var(--text) !important;
  font-weight: 900 !important;
  direction: ltr;
}

.map-popup-listing-title {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 750;
}

.map-popup-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 2px;
}

.map-popup-price strong {
  color: var(--text);
  font-size: 14px;
}

.map-popup-price span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

@media (max-width: 1020px) {
  .marketplace-layout.map-expanded {
    padding: 10px;
  }

  .marketplace-layout.map-expanded .marketplace-map {
    border-radius: 22px;
  }

  .map-accommodation-popup {
    width: min(calc(100vw - 44px), calc(var(--popup-image-width) + 22px));
  }
}

/* Eqamati mobile touch map and edge-to-edge fullscreen mode */
@media (max-width: 680px) {
  body.marketplace-map-open {
    overscroll-behavior: none;
  }

  .map-drag-layer:not(.mobile-drag-enabled) {
    cursor: pointer;
    touch-action: pan-y pinch-zoom;
  }

  .map-drag-layer:not(.mobile-drag-enabled)::after {
    content: "برای جابه‌جایی نقشه ضربه بزنید";
    position: absolute;
    right: 50%;
    bottom: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgb(15 23 42 / 78%);
    box-shadow: 0 8px 18px rgb(15 23 42 / 18%);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.5;
    white-space: nowrap;
    pointer-events: none;
    transform: translateX(50%);
  }

  .map-drag-layer.mobile-drag-enabled {
    touch-action: none;
  }

  .marketplace-layout.map-expanded {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding: 0;
  }

  .marketplace-layout.map-expanded .marketplace-map {
    display: flex;
    flex-direction: column;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .marketplace-layout.map-expanded .marketplace-map-heading {
    flex: 0 0 auto;
    min-height: 60px;
    padding: max(12px, env(safe-area-inset-top)) 14px 10px;
    background: #fff;
  }

  .marketplace-layout.map-expanded .marketplace-map-heading h3 {
    font-size: 16px;
    line-height: 1.45;
  }

  .marketplace-layout.map-expanded .map-action-button {
    flex: 0 0 auto;
    min-height: 42px;
    padding-inline: 14px;
  }

  .marketplace-layout.map-expanded .google-map-surface {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .marketplace-layout.map-expanded .map-attribution {
    bottom: max(6px, env(safe-area-inset-bottom));
  }
}


/* Eqamati v2.0.27 hidden map-bounds UI and stable tile-map panning */
.map-area-controls,
#marketplace-map-bounds-summary {
  display: none !important;
}

.google-map-surface .map-tile-layer {
  will-change: transform;
  transform-origin: center center;
}

/* Eqamati v2.0.41 destination-based homepage discovery rows */
html[data-route="home"] #marketplace-results,
html:not([data-route="home"]) #marketplace-discovery {
  display: none !important;
}

.marketplace-discovery {
  scroll-margin-top: 90px;
  margin: 82px 0 64px;
}

.marketplace-discovery-rows {
  display: grid;
  gap: clamp(38px, 4vw, 58px);
}

.marketplace-discovery-loading {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.marketplace-discovery-row {
  min-width: 0;
}

.marketplace-discovery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.marketplace-discovery-title-link {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
}

.marketplace-discovery-title-link h2 {
  margin: 0;
  font-size: clamp(23px, 2.1vw, 30px);
  line-height: 1.35;
}

.marketplace-discovery-title-link > span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: #f2f4f7;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
  transition: background 160ms ease, transform 160ms ease;
}

.marketplace-discovery-title-link:hover > span,
.marketplace-discovery-title-link:focus-visible > span {
  background: #e4e7ec;
  transform: translateX(-2px);
}

.marketplace-discovery-controls {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  direction: rtl;
}

.marketplace-discovery-arrow {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  color: #101828;
  background: #fff;
  font-size: 29px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.marketplace-discovery-arrow:hover:not(:disabled),
.marketplace-discovery-arrow:focus-visible:not(:disabled) {
  border-color: #98a2b3;
  background: #f9fafb;
  transform: scale(1.04);
}

.marketplace-discovery-arrow:disabled {
  border-color: #eaecf0;
  color: #d0d5dd;
  background: #f9fafb;
  cursor: default;
}

.marketplace-discovery-track {
  display: flex;
  direction: rtl;
  gap: 16px;
  width: 100%;
  padding: 0 1px 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-padding-inline: 1px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.marketplace-discovery-track::-webkit-scrollbar {
  display: none;
}

.marketplace-discovery-track:focus-visible {
  border-radius: 20px;
  outline: 3px solid rgba(15, 118, 110, 0.2);
  outline-offset: 4px;
}

.marketplace-discovery-track .marketplace-card {
  flex: 0 0 clamp(210px, 15vw, 260px);
  direction: rtl;
  scroll-snap-align: start;
}

.marketplace-discovery-track .marketplace-card-copy {
  padding-top: 11px;
}

.marketplace-discovery-track .marketplace-card-title-row h3 {
  font-size: 16px;
}

@media (max-width: 1020px) {
  .marketplace-discovery {
    margin-top: 128px;
  }

  .marketplace-discovery-track .marketplace-card {
    flex-basis: clamp(220px, 32vw, 280px);
  }
}

@media (max-width: 680px) {
  .marketplace-discovery {
    margin-top: 322px;
    margin-bottom: 46px;
  }

  .marketplace-discovery-rows {
    gap: 36px;
  }

  .marketplace-discovery-heading {
    margin-bottom: 14px;
  }

  .marketplace-discovery-title-link h2 {
    font-size: 21px;
  }

  .marketplace-discovery-title-link > span {
    width: 29px;
    height: 29px;
    font-size: 24px;
  }

  .marketplace-discovery-arrow {
    width: 36px;
    height: 36px;
    font-size: 26px;
  }

  .marketplace-discovery-track {
    gap: 12px;
  }

  .marketplace-discovery-track .marketplace-card {
    flex-basis: min(78vw, 292px);
  }
}

/* Eqamati v2.0.50 mobile overflow hardening */
:where(
  .listing-heading,
  .listing-summary-section,
  .reviews-heading,
  .marketplace-card-title-row,
  .marketplace-card-meta,
  .marketplace-card-price,
  .marketplace-section-heading,
  .marketplace-discovery-heading,
  .selection-total-row,
  .price-breakdown > div,
  .time-selection-field-copy
) > * {
  min-width: 0;
}

:where(
  .listing-detail,
  .booking-card,
  .modal-card
) :where(h1, h2, h3, h4, p, li, dt, dd, strong, small, label) {
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  .time-selection-nav.previous {
    left: 0;
  }

  .time-selection-nav.next {
    right: 0;
  }

  .site-header .header-inner,
  .listing-heading,
  .marketplace-section-heading,
  .marketplace-discovery-heading,
  .marketplace-discovery-title-link {
    min-width: 0;
  }

  .marketplace-discovery-title-link {
    flex: 1 1 auto;
  }

  .marketplace-discovery-title-link h2 {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .mobile-bottom-navigation a,
  .mobile-bottom-navigation button {
    min-width: 0;
    max-width: 100%;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-align: center;
  }
}

/* Eqamati v2.0.51 progressive mobile marketplace search */
.marketplace-mobile-search-progress,
.marketplace-mobile-search-close,
.marketplace-mobile-step-action,
.marketplace-mobile-final-search {
  display: none;
}

@media (max-width: 680px) {
  html.marketplace-mobile-search-open {
    overflow: hidden;
  }

  .marketplace-search-v201[data-mobile-step] {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin: 28px 0 -72px;
    padding: 8px;
  }

  .marketplace-search-v201[data-mobile-step]:not([data-mobile-step="idle"]) {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    align-content: start;
    margin: 0;
    padding: max(18px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .marketplace-search-v201[data-mobile-step]:not([data-mobile-step="idle"]) .marketplace-mobile-search-close {
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    left: 16px;
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text);
    background: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }

  .marketplace-search-v201[data-mobile-step]:not([data-mobile-step="idle"]) .marketplace-mobile-search-progress {
    min-height: 42px;
    padding-left: 54px;
  }

  .marketplace-search-v201[data-mobile-step] .marketplace-search-field {
    display: none;
    border: 0;
  }

  .marketplace-search-v201[data-mobile-step] .destination-search-field,
  .marketplace-search-v201[data-mobile-step="date"] .checkin-search-field,
  .marketplace-search-v201[data-mobile-step="time"] .checkin-search-field,
  .marketplace-search-v201[data-mobile-step="time"] .time-search-field,
  .marketplace-search-v201[data-mobile-step="guests"] .marketplace-search-field {
    display: block;
  }

  .marketplace-search-v201[data-mobile-step="idle"] .marketplace-field-label {
    display: none;
  }

  .marketplace-search-v201[data-mobile-step="idle"] .marketplace-destination-control {
    min-height: 54px;
  }

  .marketplace-search-v201[data-mobile-step]:not([data-mobile-step="idle"]) .marketplace-destination-input {
    font-size: 16px;
  }

  .marketplace-search-v201[data-mobile-step]:not([data-mobile-step="idle"]) .marketplace-popover {
    position: static;
    width: 100%;
    max-height: none;
    margin-top: 8px;
    overflow: visible;
    transform: none;
    box-shadow: none;
  }

  .marketplace-search-v201[data-mobile-step] > .marketplace-search-button {
    display: none;
  }

  .marketplace-mobile-search-progress:not([hidden]) {
    display: block;
    margin: 2px 6px 0;
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.6;
  }

  .marketplace-mobile-step-action,
  .marketplace-mobile-final-search {
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
  }

  .marketplace-mobile-step-action:not([disabled]),
  .marketplace-mobile-final-search {
    display: inline-flex;
  }

  .marketplace-mobile-step-action:disabled {
    display: inline-flex;
    opacity: .48;
    cursor: not-allowed;
  }

  .marketplace-discovery,
  .marketplace-results {
    margin-top: 48px;
  }
}
