/* Rails integration layer for the Nivaas marketplace theme. */

:root {
  --surface: var(--nv-paper);
  --text-main: var(--nv-ink);
  --text-soft: var(--nv-muted);
  --line: var(--nv-border);
  --accent: var(--nv-terracotta);
  --accent-soft: #f6e4dd;
  --app-shell-background: var(--nv-sand);
  --action-dark-gradient: var(--nv-forest);
  --action-dark-shadow: none;
}

.transaction-page .tx-traveller-details,
.transaction-page .tx-checkout-consents {
  margin: 0 0 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--nv-border);
  border-radius: 16px;
  background: var(--nv-paper);
}

.transaction-page .tx-traveller-details legend,
.transaction-page .tx-checkout-consents legend {
  float: none;
  width: auto;
  margin: 0 0 0.35rem;
  color: var(--nv-ink);
  font-size: 1rem;
  font-weight: 750;
}

.transaction-page .tx-traveller-details > p {
  margin-bottom: 1rem;
  color: var(--nv-muted);
  font-size: 0.875rem;
}

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

.transaction-page .tx-field-grid > div:first-child {
  grid-column: 1 / -1;
}

.transaction-page .tx-field-grid .tx-field-wide {
  grid-column: 1 / -1;
}

.transaction-page .tx-field-grid label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--nv-ink);
  font-size: 0.8125rem;
  font-weight: 700;
}

.transaction-page .tx-field-grid small {
  display: block;
  margin-top: 0.35rem;
  color: var(--nv-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.tx-summary-heading {
  margin-bottom: 1rem;
}

.tx-summary-heading span {
  color: var(--nv-terracotta);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tx-summary-heading h2 {
  margin: 0.15rem 0 0;
  color: var(--nv-ink);
  font-family: var(--nv-display);
  font-size: 1.45rem;
}

.tx-summary-dates {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--tx-border);
}

.tx-summary-dates div,
.tx-summary-dates small,
.tx-summary-dates strong {
  display: block;
}

.tx-summary-dates div:last-child {
  text-align: right;
}

.tx-summary-dates small {
  color: var(--nv-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.tx-summary-dates i {
  color: var(--nv-terracotta);
}

.tx-price-lines .is-discount {
  color: var(--nv-green);
}

.tx-summary-policy {
  margin-top: 1rem;
  border-radius: 12px;
  background: var(--nv-sand);
  padding: 0.8rem;
}

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

.tx-summary-policy span {
  margin-bottom: 0.25rem;
  color: var(--nv-muted);
  font-size: 0.72rem;
}

.tx-summary-policy strong {
  color: var(--nv-ink);
  font-size: 0.82rem;
  line-height: 1.4;
}

.tx-summary-terms {
  margin: 0.75rem 0 0;
  color: var(--nv-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.tx-summary-card .tx-price-note {
  margin: 0.65rem 0 0;
}

.transaction-page .tx-checkout-consents {
  display: grid;
  gap: 0.85rem;
}

.transaction-page .tx-payment-form {
  display: grid;
  gap: 1rem;
}

.transaction-page .tx-consent-row {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  color: var(--nv-ink-soft);
  font-size: 0.875rem;
  line-height: 1.5;
}

.transaction-page .tx-consent-row label {
  cursor: pointer;
}

.transaction-page .tx-checkout-consents input,
.transaction-page .tx-consent-row input {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.15rem;
  accent-color: var(--nv-terracotta);
}

.info-page .legal-copy .tx-policy-list summary {
  width: 100%;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
}

.info-page .legal-copy .tx-policy-list summary > span {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  column-gap: 0.75rem;
}

.info-page .legal-copy .tx-policy-list summary::-webkit-details-marker {
  display: none;
}

.info-page .legal-copy .tx-policy-list details[open] summary > i {
  transform: rotate(45deg);
}

.info-page .legal-copy .tx-policy-list details p {
  margin-top: 0;
  padding-left: 1.75rem;
}

@media (max-width: 575.98px) {
  .transaction-page .tx-field-grid {
    grid-template-columns: 1fr;
  }

  .transaction-page .tx-field-grid > div:first-child {
    grid-column: auto;
  }

  .transaction-page .tx-field-grid .tx-field-wide {
    grid-column: auto;
  }
}

body {
  background: var(--nv-paper);
}

.marketplace-layout {
  min-height: 100vh;
}

.site-header.portal-header {
  display: block;
  min-height: 0;
  padding: 0;
  border-bottom: 1px solid rgba(24, 35, 31, 0.08);
  background: rgba(255, 253, 249, 0.94);
}

.site-header.portal-header .navbar {
  width: 100%;
}

.marketplace-layout > main,
.guest-layout > main {
  min-height: 50vh;
}

.brand-mark > .brand-mark__logo {
  width: 2.25rem;
  height: 2.55rem;
  object-fit: contain;
}

.brand-mark__word {
  color: var(--nv-forest);
  font-family: var(--nv-font-display);
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.brand-mark--inverse .brand-mark__logo {
  filter: brightness(0) invert(1);
}

.brand-mark--inverse .brand-mark__word {
  color: var(--nv-white);
}

.marketplace-footer .brand-mark--footer {
  padding: 0;
  background: transparent;
}

.marketplace-footer .brand-mark--footer:hover {
  background: transparent;
}

.brand-mark--footer .brand-mark__logo {
  filter: brightness(0) invert(1);
}

.brand-mark--footer .brand-mark__word {
  color: var(--nv-white);
}

.auth-header .auth-brand,
.portal-header .portal-brand {
  gap: 0.6rem;
}

.offcanvas-title .brand-mark {
  font-weight: 400;
}

.host-workspace-brand.brand-mark {
  min-height: 5rem;
  gap: 0.65rem;
  color: var(--nv-white);
}

.host-workspace-brand.brand-mark > .brand-mark__logo {
  width: 2rem;
  height: 2.35rem;
}

.host-workspace-brand .brand-mark__word {
  color: var(--nv-white);
  font-size: 1.35rem;
}

.host-workspace-brand .auth-portal-name {
  padding: 0.25rem 0.45rem;
  border-color: rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #d9c8bb;
  font-family: var(--nv-font-body);
  font-size: 0.58rem;
}

.marketplace-footer .brand-mark--footer:hover .brand-mark__word {
  color: #f2c9bc;
}

.marketplace-logout-button,
.marketplace-mobile-logout {
  width: 100%;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
}

.marketplace-logout-button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.marketplace-logout-button:hover,
.marketplace-logout-button:focus-visible {
  color: var(--nv-terracotta-dark);
  background: var(--nv-sand);
}

.marketplace-mobile-account {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.85rem;
  border-radius: var(--nv-radius-md);
  background: var(--nv-sand);
}

.marketplace-mobile-account strong,
.marketplace-mobile-account small {
  display: block;
}

.marketplace-mobile-account small {
  overflow: hidden;
  color: var(--nv-muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
}

.marketplace-mobile-logout {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem;
  border-radius: 12px;
  font-weight: 700;
}

.marketplace-footer {
  padding: clamp(3rem, 7vw, 5.5rem) 0 1.5rem;
  color: rgba(255, 255, 255, 0.76);
  background: var(--nv-ink);
}

.marketplace-footer .brand-mark {
  color: var(--nv-white);
}

.marketplace-footer .brand-mark:hover {
  color: var(--nv-sage);
}

.marketplace-footer__grid {
  display: grid;
  grid-template-columns: minmax(16rem, 1.7fr) repeat(3, minmax(8rem, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
}

.marketplace-footer__grid > div p {
  max-width: 28rem;
  margin: 1.25rem 0 0;
}

.marketplace-footer__grid nav {
  display: grid;
  align-content: start;
  gap: 0.6rem;
}

.marketplace-footer__grid nav strong {
  margin-bottom: 0.35rem;
  color: var(--nv-white);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketplace-footer__grid a {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.84rem;
  text-decoration: none;
}

.marketplace-footer__grid a:hover,
.marketplace-footer__grid a:focus-visible {
  color: var(--nv-white);
  text-decoration: underline;
}

.marketplace-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.75rem;
}

/* Rails flash messages sit above the sticky marketplace header. */
.flash-banner {
  z-index: 1100;
  border-radius: 999px;
  box-shadow: var(--nv-shadow-md);
}

.flash-banner.is-notice {
  border-color: #8fb2a2;
  color: var(--nv-forest-dark);
  background: #eef7f2;
}

.flash-banner.is-alert {
  border-color: #d5a198;
  color: #74271e;
  background: #fff4f1;
}

/* Theme-compatible validation and Rails form helpers. */
.auth-page .auth-input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--nv-border-strong);
  border-radius: 14px;
  color: var(--nv-ink);
  background: var(--nv-white);
}

.auth-page .auth-header {
  display: block;
  min-height: 0;
  padding: 0;
}

.auth-page .auth-header__inner {
  width: 100%;
}

.auth-page .auth-stage.auth-main {
  display: block;
  min-height: calc(100dvh - 75px);
  padding: 0;
  overflow: visible;
}

.auth-page .auth-card.auth-content {
  position: static;
  z-index: auto;
  display: flex;
  width: auto;
  max-width: none;
  min-width: 0;
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.auth-page .auth-card-body.auth-panel {
  padding: 0;
}

.auth-page .auth-social-grid--single,
.auth-page .auth-social-grid--single form {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr;
}

.auth-panel__heading h1 {
  margin: 0;
  font-family: var(--nv-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.auth-story .auth-story__title {
  max-width: 10ch;
  margin: 0;
  font-family: var(--nv-font-display);
  font-size: clamp(3rem, 5vw, 5.3rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

@media (max-width: 1199.98px) {
  .auth-story .auth-story__title {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
  }
}

@media (max-width: 991.98px) {
  .auth-page .auth-card.auth-content {
    min-height: calc(100dvh - 69px);
    align-items: flex-start;
  }

  .auth-page .auth-card-body.auth-panel {
    width: min(100%, 35rem);
    padding: clamp(1.5rem, 5vw, 2.5rem);
  }
}

@media (max-width: 575.98px) {
  .auth-page .auth-card-body.auth-panel {
    padding: 0;
  }

  .auth-panel__heading h1 {
    font-size: clamp(2.35rem, 12vw, 2.9rem);
  }

  .auth-page .auth-security-note {
    max-width: none;
    justify-content: flex-start;
    padding-left: 0;
    text-align: left;
  }
}

.auth-page .auth-input {
  min-height: 56px;
  padding: 0.72rem 0.9rem;
}

.auth-page .auth-control--with-icon .auth-input {
  padding-left: 2.85rem;
}

.auth-page .auth-control--password .auth-input {
  padding-right: 3.4rem;
}

.auth-page .auth-input:focus {
  border-color: var(--nv-forest);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(29, 79, 70, 0.14);
}

.auth-primary-button,
.guest-search-submit {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 1.35rem;
  border: 1px solid var(--nv-terracotta);
  border-radius: 999px;
  color: var(--nv-white);
  background: var(--nv-terracotta);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.auth-primary-button:hover,
.auth-primary-button:focus-visible,
.guest-search-submit:hover,
.guest-search-submit:focus-visible {
  border-color: var(--nv-terracotta-dark);
  color: var(--nv-white);
  background: var(--nv-terracotta-dark);
}

.auth-page .auth-error-card,
.guest-search-errors {
  border: 1px solid #d5a198;
  border-radius: var(--nv-radius-sm);
  color: #74271e;
  background: #fff4f1;
}

.auth-page .social-button {
  min-height: 52px;
  border-color: var(--nv-border-strong);
  border-radius: 14px;
  background: var(--nv-white);
  box-shadow: none;
}

.auth-page .social-actions,
.auth-page .social-actions form {
  width: 100%;
}

.auth-page .auth-inline-link,
.auth-page .auth-legal-link {
  color: var(--nv-forest);
}

.auth-page .auth-switch-copy {
  color: var(--nv-muted);
}

/* Search/result compatibility while dynamic Rails data uses template cards. */
.dp-page .guest-search-page,
.dp-page .guest-property-page {
  width: 100%;
  max-width: none;
}

.dp-page .guest-search-intro h1 {
  font-family: var(--nv-font-display);
  font-weight: 400;
}

.dp-page .guest-search-results,
.dp-page .guest-search-assurance,
.dp-page .guest-property-detail-grid,
.dp-page .guest-property-heading,
.dp-page .guest-property-page > .guest-back-link {
  width: min(1320px, calc(100% - 2rem));
  margin-inline: auto;
}

.dp-page .guest-property-card-link {
  color: inherit;
  text-decoration: none;
}

.dp-page .guest-property-photo img,
.dp-page .guest-property-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dp-page .guest-property-photo-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 13rem;
  place-items: center;
  color: var(--nv-white);
  background: var(--nv-forest);
  font-family: var(--nv-font-display);
  font-size: 2rem;
}

.dp-property-page .dp-gallery.is-single {
  grid-template-columns: 1fr;
  grid-template-rows: clamp(360px, 62vw, 720px);
  min-height: 0;
}

.dp-property-page .dp-gallery.is-single .dp-gallery-button:first-child {
  grid-row: auto;
}

.dp-page .guest-empty-results {
  border-color: var(--nv-border);
  background: var(--nv-sand);
}

.guest-checkout-button {
  margin-top: 1rem;
}

.guest-checkout-note {
  display: block;
  margin-top: 0.55rem;
  color: var(--nv-muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.guest-booking-mode,
.tx-booking-mode {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid rgba(31, 91, 79, 0.2);
  border-radius: 14px;
  background: rgba(31, 91, 79, 0.07);
  color: var(--nv-ink, #18251f);
  padding: 0.8rem 0.9rem;
}

.guest-booking-mode {
  margin: 0.85rem 0;
  font-size: 0.88rem;
}

.tx-booking-mode {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.15rem;
}

.guest-booking-mode.is-request,
.tx-booking-mode.is-request {
  border-color: rgba(173, 83, 48, 0.24);
  background: rgba(173, 83, 48, 0.08);
}

.guest-booking-mode i,
.tx-booking-mode i {
  flex: 0 0 auto;
  color: var(--nv-green, #1f5b4f);
  font-size: 1.1rem;
  line-height: 1.35;
}

.guest-booking-mode.is-request i,
.tx-booking-mode.is-request i {
  color: var(--nv-terracotta, #ad5330);
}

.guest-booking-mode span,
.guest-booking-mode strong,
.tx-booking-mode span,
.tx-booking-mode strong {
  display: block;
}

.guest-booking-mode strong,
.tx-booking-mode strong {
  margin-bottom: 0.15rem;
}

.guest-verification-page .verification-channel-heading h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.verification-choice-note {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 1rem 0 0;
  border-radius: 12px;
  background: rgba(31, 91, 79, 0.07);
  color: var(--nv-muted);
  padding: 0.8rem 0.9rem;
  font-size: 0.82rem;
  line-height: 1.5;
}

.verification-choice-note i {
  color: var(--nv-green);
  font-size: 1rem;
}

.tx-account-summary {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.tx-account-summary > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--tx-border);
}

.tx-account-summary dt {
  color: var(--nv-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.tx-account-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.82rem;
  font-weight: 750;
}

.booking-status-timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.booking-status-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: .8rem;
  padding: 0 0 1.2rem;
}

.booking-status-timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: .7rem;
  bottom: -.15rem;
  left: .35rem;
  width: 1px;
  background: var(--border, #ded8cf);
}

.booking-status-timeline__marker {
  position: relative;
  z-index: 1;
  width: .75rem;
  height: .75rem;
  margin-top: .32rem;
  border: 2px solid var(--brand-green, #1f5b4f);
  border-radius: 999px;
  background: var(--paper, #fffdf9);
}

.booking-status-timeline strong { color: var(--ink, #17231f); }
.booking-status-timeline p { margin: .15rem 0 0; color: var(--muted, #66706c); }

.refund-update-heading {
  margin: 1.5rem 0 1rem;
  color: var(--ink, #17231f);
  font-family: var(--nv-display, "DM Serif Display", serif);
  font-size: 1.35rem;
}

.refund-update-timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.refund-update-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: .85rem;
  padding: 0 0 1.25rem;
}

.refund-update-timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 1.65rem;
  bottom: .15rem;
  left: .95rem;
  width: 1px;
  background: var(--border, #ded8cf);
}

.refund-update-timeline__marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  background: var(--tx-surface-muted, #f4f0e9);
  color: var(--nv-forest, #14594f);
}

.refund-update-timeline strong { color: var(--ink, #17231f); }
.refund-update-timeline p { margin: .15rem 0 0; color: var(--muted, #66706c); font-size: .88rem; }

.tx-payment-boundary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--tx-border);
  border-radius: 14px;
  background: var(--tx-surface-muted);
}

.tx-payment-boundary > i {
  color: var(--nv-forest);
  font-size: 1.35rem;
}

.tx-payment-boundary strong,
.tx-payment-boundary p {
  display: block;
}

.tx-payment-methods {
  border: 0;
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0;
}

.tx-payment-methods legend {
  color: var(--ink, #173f36);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.tx-payment-method {
  align-items: center;
  border: 1px solid rgba(23, 63, 54, 0.2);
  border-radius: 0.9rem;
  cursor: pointer;
  display: flex;
  gap: 0.85rem;
  padding: 1rem;
}

.tx-payment-method:has(input:checked) {
  background: rgba(23, 63, 54, 0.06);
  border-color: var(--ink, #173f36);
  box-shadow: 0 0 0 2px rgba(23, 63, 54, 0.08);
}

.tx-payment-method input {
  accent-color: var(--ink, #173f36);
  height: 1.15rem;
  width: 1.15rem;
}

.tx-payment-method span {
  display: grid;
  gap: 0.15rem;
}

.tx-payment-method small {
  color: var(--muted, #6f7773);
}

.transaction-page .tx-submit-note {
  margin: 0.75rem 0 0;
  line-height: 1.5;
}

.tx-payment-boundary p {
  margin: 0.25rem 0 0;
  color: var(--nv-muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

/* Account view bridges the existing persisted profile to the account family. */
.account-page .portal-card {
  border-color: var(--nv-border);
  border-radius: var(--nv-radius-lg);
  background: var(--nv-white);
  box-shadow: var(--nv-shadow-sm);
}

.account-page .account-eyebrow {
  color: var(--nv-terracotta);
}

.account-page .portal-card.settings-section {
  width: min(56rem, 100%);
}

.account-page .account-summary {
  text-align: left;
}

.account-page .settings-profile-summary .avatar {
  display: grid;
  color: var(--nv-white);
  font-size: 0.78rem;
}

.account-page .preference-row dt {
  font-size: 0.83rem;
  font-weight: 800;
}

.account-page .preference-row dd {
  margin: 0.2rem 0 0;
  color: var(--nv-muted);
  font-size: 0.8125rem;
}

.account-page .settings-form-actions .auth-primary-button {
  gap: 0.5rem;
}

/* Existing host workflows inherit the new system without changing behavior. */
.host-workspace-layout,
.host-layout {
  --host-surface: var(--nv-paper);
  --host-text: var(--nv-ink);
  --host-muted: var(--nv-muted);
  --host-accent: var(--nv-terracotta);
}

.host-workspace-main,
.host-workspace-content {
  background: var(--nv-sand);
}

.host-cms-button,
.host-dashboard-primary-action,
.host-wizard-submit {
  border-radius: 999px;
}

/* UC-02 search filters and safe alternative-result states. */
.dp-page .guest-filter-help {
  margin: 0.75rem 0 0;
  color: var(--nv-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.dp-page .guest-filter-help[data-state="error"] {
  color: #9f2f21;
  font-weight: 700;
}

.dp-page .guest-filter-help[data-state="success"] {
  color: var(--nv-forest);
  font-weight: 700;
}

.dp-page .guest-property-facts .bi-star-fill {
  color: #b16b22;
}

.dp-page .guest-alternative-results {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--nv-border);
}

.dp-page .guest-search-assurance article {
  grid-template-columns: 1.5rem minmax(0, 1fr);
  padding: 1rem 0;
  border-top: 1px solid var(--nv-border);
  border-left: 0;
  border-radius: 0;
  background: transparent;
}

.dp-page .guest-search-assurance .dp-highlight > i {
  display: inline-block;
  width: auto;
  height: auto;
  border-radius: 0;
  color: var(--nv-forest);
  background: transparent;
}

/* UC-03 policies, review state, and detailed room pricing. */
.dp-property-page .guest-policy-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.dp-property-page .guest-policy-list li,
.dp-property-page .guest-policy-callout,
.dp-property-page .guest-review-empty {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.dp-property-page .guest-policy-list i,
.dp-property-page .guest-policy-callout > i,
.dp-property-page .guest-review-empty > i {
  color: var(--nv-forest);
  font-size: 1.1rem;
}

.dp-property-page .guest-policy-callout,
.dp-property-page .guest-review-empty {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius-md);
  background: var(--nv-paper);
}

.dp-property-page .guest-policy-callout p,
.dp-property-page .guest-review-empty p {
  margin: 0.25rem 0 0;
  color: var(--nv-muted);
}

.dp-property-page .guest-policy-callout.is-caution {
  border-color: #d8b875;
  background: #fff9e9;
}

.dp-property-page .guest-rating-summary {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin: 1rem 0 0.5rem;
  font-size: 1.05rem;
}

.dp-property-page .guest-rating-summary i,
.dp-property-page .dp-price-row.is-discount strong {
  color: #a45c1a;
}

.dp-property-page .guest-unit-amenities {
  color: var(--nv-muted);
  font-size: 0.8125rem;
}

.dp-property-page .guest-mobile-unit-jump {
  display: none;
}

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

@media (max-width: 575.98px) {
  .dp-property-page .guest-mobile-unit-jump {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 4rem;
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius-md);
    color: var(--nv-ink);
    background: var(--nv-white);
    box-shadow: var(--nv-shadow-sm);
    text-decoration: none;
  }

  .dp-property-page .guest-mobile-unit-jump span:first-child {
    display: grid;
    gap: 0.15rem;
  }

  .dp-property-page .guest-mobile-unit-jump small {
    color: var(--nv-muted);
  }

  .dp-property-page .guest-mobile-unit-jump span:last-child {
    color: var(--nv-terracotta);
    font-weight: 800;
    white-space: nowrap;
  }

  .marketplace-page .property-card__media {
    aspect-ratio: 4 / 3;
  }

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

  .dp-property-page .dp-gallery {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(235px, 68vw);
    min-height: 0;
    margin-bottom: 1.5rem;
  }

  .dp-property-page .dp-gallery-button {
    display: none;
  }

  .dp-property-page .dp-gallery-button:first-child {
    display: block;
    grid-row: auto;
  }

  .dp-property-page .dp-property-sidebar {
    display: block;
    margin-top: 1.5rem;
  }

  .dp-property-page .dp-booking-card {
    position: static;
  }

  .marketplace-footer__bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marketplace-layout *,
  .auth-page *,
  .dp-page * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* UC-08 verified guest review submission and display. */
.review-main { padding: clamp(3rem, 7vw, 6.5rem) 1rem; background: var(--nv-canvas, #f7f4ee); }
.review-shell { width: min(820px, 100%); margin: 0 auto; }
.review-heading { margin-bottom: 2rem; }
.review-heading h1 {
  max-width: 12ch; margin: .45rem 0 .6rem; color: var(--nv-ink, #16231f);
  font-family: var(--nv-display, "DM Serif Display", serif); font-size: clamp(2.7rem, 7vw, 5rem); line-height: .96;
}
.review-heading p, .review-field-hint, .review-comment-field small { color: var(--nv-muted, #65706b); }
.review-card {
  padding: clamp(1.35rem, 4vw, 3rem); border: 1px solid rgba(22, 35, 31, .12); border-radius: 28px;
  background: #fffefa; box-shadow: 0 20px 55px rgba(24, 35, 31, .08);
}
.review-stay-summary { padding-bottom: 1.5rem; margin-bottom: 2rem; border-bottom: 1px solid rgba(22, 35, 31, .12); }
.review-stay-summary span {
  color: var(--nv-green, #14594f); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.review-stay-summary h2 {
  margin: .4rem 0; font-family: var(--nv-display, "DM Serif Display", serif); font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.review-rating { padding: 0; margin: 0 0 2rem; border: 0; }
.review-rating legend, .review-comment-field label { font-size: 1.05rem; font-weight: 800; }
.review-field-hint { margin: .35rem 0 .9rem; }
.review-rating__choices { display: grid; grid-template-columns: repeat(5, 1fr); gap: .65rem; }
.review-rating__choices label { position: relative; }
.review-rating__choices input { position: absolute; opacity: 0; }
.review-rating__choices span {
  display: flex; min-height: 54px; align-items: center; justify-content: center; gap: .35rem;
  border: 1px solid #bdc5c0; border-radius: 14px; cursor: pointer; font-weight: 800;
}
.review-rating__choices input:checked + span { border-color: var(--nv-green, #14594f); background: #e3eee9; color: var(--nv-green, #14594f); }
.review-rating__choices input:focus-visible + span { outline: 3px solid rgba(20, 89, 79, .25); outline-offset: 2px; }
.review-comment-field textarea { width: 100%; padding: 1rem; border: 1px solid #bdc5c0; border-radius: 14px; resize: vertical; }
.review-comment-field small { display: block; margin-top: .55rem; }
.review-form__actions { display: flex; gap: .75rem; margin-top: 2rem; }
.guest-review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.guest-review-card { padding: 1.25rem; border: 1px solid rgba(22, 35, 31, .12); border-radius: 16px; background: #fffefa; }
.guest-review-card > div { display: flex; justify-content: space-between; gap: 1rem; color: var(--nv-green, #14594f); }
.guest-review-card p { margin: .85rem 0; }

@media (max-width: 575.98px) {
  .review-main { padding: 2.25rem .9rem 4rem; }
  .review-card { border-radius: 20px; }
  .review-rating__choices { gap: .35rem; }
  .review-rating__choices span { min-height: 48px; font-size: .9rem; }
  .review-rating__choices i { display: none; }
  .review-form__actions { flex-direction: column; }
  .guest-review-list { grid-template-columns: 1fr; }
}
