:root {
  --sea: #4fb5d1;
  --foam: #e2f6fb;
  --sea-ring: rgba(79, 181, 209, 0.35);
  --sea-weak: rgba(79, 181, 209, 0.08);
}

.page--detail {
  max-width: 1280px;
}

body.booking-locked {
  overflow: hidden;
}

.nav--public {
  margin-bottom: 24px;
}

.property-hero {
  display: grid;
  gap: 24px;
  padding: 32px 0 16px;
}

.property-hero__title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.property-hero__location {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  color: var(--ash);
  font-size: 15px;
}

.property-hero__actions {
  display: flex;
  gap: 10px;
}

.share-button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(21, 22, 25, 0.15);
  background: #fff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.share-button i {
  font-size: 1.05rem;
}

.share-button:hover {
  border-color: rgba(21, 22, 25, 0.3);
}

.share-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--sea-ring);
}

.ghost-chip {
  border: 1px solid rgba(21, 22, 25, 0.15);
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  font-weight: 500;
  cursor: pointer;
}

.share-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  background: #ffffff;
  color: #111827;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
}

.share-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hero-gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 190px));
  gap: 12px;
}

.hero-gallery__item {
  border: none;
  padding: 0;
  background: transparent;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
}

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

.hero-gallery__item--main {
  grid-column: span 2;
  grid-row: span 2;
}

.hero-gallery__placeholder {
  background: linear-gradient(120deg, #dbe7ff, #f3f7ff);
  border-radius: 22px;
}

.hero-gallery__cta {
  position: absolute;
  right: 16px;
  bottom: 16px;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(10, 40, 90, 0.15);
  cursor: pointer;
}

.property-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
  padding: 10px 0 60px;
}

.property-main {
  display: grid;
  gap: 24px;
}

.property-section {
  background: #fff;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(15, 20, 24, 0.08);
  display: grid;
  gap: 16px;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.pill--outline {
  border: 1px solid rgba(21, 22, 25, 0.15);
  color: var(--ash);
}

.pill--solid {
  background: var(--foam);
  color: var(--sea);
}

.btn--small {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 999px;
}

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

.fact-item {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f4f7ff;
  font-weight: 600;
}

.text-collapse {
  display: grid;
  gap: 10px;
}

.text-collapse__content {
  position: relative;
  max-height: 192px;
  overflow: hidden;
  line-height: 1.6;
}

.text-collapse__content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 70%);
}

.text-collapse.is-open .text-collapse__content {
  max-height: none;
}

.text-collapse.is-open .text-collapse__content::after {
  display: none;
}

.link-btn {
  border: none;
  background: none;
  color: var(--sea);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.info-card {
  padding: 14px;
  border-radius: 14px;
  background: #f2f6ff;
  display: grid;
  gap: 6px;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 10px;
  min-width: 0;
}

.amenities-grid > * {
  min-width: 0;
}

.amenities-category {
  margin-top: 16px;
}

.amenities-category:first-child {
  margin-top: 0;
}

.amenities-category__title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  font-weight: 700;
  margin: 4px 0 8px;
}

.amenity-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  background: transparent;
  min-width: 0;
}

.amenity-item i {
  flex: 0 0 auto;
  margin-top: 2px;
}

.amenity-item span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.amenities-more {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.property-section--amenities {
  padding: 18px;
  gap: 12px;
}

.property-section--cancellation {
  padding: 18px;
  gap: 10px;
}

.property-section--location {
  padding: 18px;
  gap: 10px;
}

.property-section--location .map {
  height: 220px;
  margin: 8px 0;
}

.property-section--reviews {
  margin-top: 8px;
}

.reviews-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f4f7ff;
}

.reviews-summary__rating strong {
  font-weight: 700;
}

.reviews-summary__rating {
  display: grid;
  gap: 4px;
}

.reviews-summary__rating-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.reviews-summary__label {
  color: var(--ash);
  font-size: 13px;
}

.reviews-summary__count {
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  background: rgba(79, 181, 209, 0.16);
  color: #1d5f72;
  font-weight: 700;
}

.reviews-list {
  display: grid;
  gap: 12px;
}

.reviews-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.reviews-sort label {
  font-size: 13px;
  color: var(--ash);
  font-weight: 600;
}

.reviews-sort select {
  border: 1px solid rgba(21, 22, 25, 0.15);
  border-radius: 10px;
  padding: 7px 10px;
  background: #fff;
  min-width: 180px;
}

.reviews-pagination {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.reviews-pagination__status {
  font-weight: 700;
  color: #1f2937;
  min-width: 60px;
  text-align: center;
}

.review-card {
  border: 1px solid rgba(21, 22, 25, 0.1);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  display: grid;
  gap: 10px;
}

.review-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.review-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.review-card__rating-value {
  font-size: 16px;
  font-weight: 700;
}

.review-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--ash);
  font-size: 13px;
}

.review-card__meta span + span::before {
  content: "•";
  margin-right: 6px;
}

.review-card__comment {
  margin: 0;
  line-height: 1.5;
}

.review-card__reply {
  border-radius: 12px;
  background: #f8fafc;
  padding: 10px 12px;
}

.review-card__reply-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ash);
  margin-bottom: 4px;
}

.review-stars {
  --rating: 0;
  --star-size: 19px;
  --star-gap: 2px;
  --star-active: #f59e0b;
  --star-inactive: #d1d5db;
  position: relative;
  display: inline-block;
  font-size: var(--star-size);
  letter-spacing: var(--star-gap);
  line-height: 1;
  color: var(--star-inactive);
}

.review-stars::before {
  content: "★★★★★";
}

.review-stars::after {
  content: "★★★★★";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc((var(--rating) / 5) * 100%);
  color: var(--star-active);
  overflow: hidden;
  white-space: nowrap;
}

.review-stars--sm {
  --star-size: 16px;
  --star-gap: 1.5px;
}

.property-section--reviews-page {
  margin-top: 0;
}

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

.unit-card {
  border-radius: 18px;
  overflow: hidden;
  background: #f9fafb;
  display: grid;
  align-content: start;
}

.unit-card img,
.unit-card__placeholder {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.unit-card__placeholder {
  background: linear-gradient(120deg, #dbe7ff, #f3f7ff);
}

.unit-card__body {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.unit-card__body h3 {
  margin: 0;
}

.unit-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-size: 12px;
  color: var(--ash);
}

.unit-card__features span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.unit-card__features span::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(21, 22, 25, 0.25);
  margin: 0 6px;
  transform: translateY(-1px);
}

.unit-card__features span:last-child::after {
  display: none;
}

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

.rule-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: transparent;
}

.rule-item i {
  font-size: 18px;
  color: var(--sea);
}

.rule-item strong {
  font-weight: 400;
}

.rule-label {
  display: block;
  font-size: 12px;
  color: var(--ash);
}

.map {
  position: relative;
  z-index: 1;
  height: 280px;
  border-radius: 18px;
  overflow: hidden;
  margin: 12px 0;
  border: 1px solid rgba(21, 22, 25, 0.1);
}

.host-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  align-items: start;
}

.host-card__avatar img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: cover;
}

.host-card__placeholder {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: #eef2ff;
  display: grid;
  place-items: center;
  color: var(--sea);
  font-size: 28px;
}

.host-card__body {
  display: grid;
  gap: 8px;
}

.host-card__body--with-links {
  grid-template-columns: minmax(0, 1fr) minmax(0, 230px);
  align-items: start;
  gap: 16px;
}

.host-card__main {
  display: grid;
  gap: 8px;
}

.host-card__platforms {
  display: grid;
  gap: 8px;
  align-content: start;
}

.host-card__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--ash);
  font-weight: 600;
}

.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(21, 22, 25, 0.12);
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  text-decoration: none;
}

.platform-chip i {
  font-size: 12px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(21, 22, 25, 0.12);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}

.contact-chip--whatsapp {
  border-color: rgba(37, 211, 102, 0.35);
  color: #1b7a4a;
}

.contact-chip--telegram {
  border-color: rgba(0, 136, 204, 0.35);
  color: #0b6a99;
}

.contact-chip i {
  font-size: 14px;
}

.booking-card {
  position: sticky;
  top: 24px;
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 20px 40px rgba(15, 20, 24, 0.12);
  display: grid;
  gap: 16px;
  border: 1px solid var(--sea-weak);
  z-index: 15;
}

.booking-form {
  display: grid;
  gap: 16px;
}

.booking-step.is-hidden {
  display: none;
}

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

.booking-card__close {
  display: none;
  justify-self: end;
}

.booking-card__header h3 {
  margin: 0;
  font-size: 24px;
}

.booking-card__header h3 span {
  font-size: 13px;
  color: var(--ash);
  font-weight: 500;
}

.booking-card__type {
  display: grid;
  gap: 6px;
}

.booking-card__fields,
.booking-card__guest {
  display: grid;
  gap: 12px;
}

.booking-inputs {
  border: 1px solid rgba(21, 22, 25, 0.14);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

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

.booking-input {
  position: relative;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  min-height: 64px;
  min-width: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.booking-input--left,
.booking-input--right {
  border-bottom: 1px solid rgba(21, 22, 25, 0.12);
}

.booking-input--left {
  border-right: 1px solid rgba(21, 22, 25, 0.12);
}

.booking-input__label {
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ash);
  font-weight: 600;
}

.booking-input:focus-within {
  background: #f6f9ff;
  box-shadow: inset 0 0 0 1px var(--sea-ring);
}

.booking-card__fields label,
.booking-card__guest label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--ash);
}

.booking-card__fields input,
.booking-card__fields select,
.booking-card__guest input,
.booking-card__guest textarea {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(21, 22, 25, 0.12);
  font-size: 14px;
  font-family: inherit;
}

.booking-inputs input,
.booking-inputs select {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  width: 100%;
  display: block;
}

.booking-inputs input[readonly] {
  cursor: pointer;
}

.booking-inputs select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ash) 50%),
    linear-gradient(135deg, var(--ash) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 26px;
}

.booking-card__guest textarea {
  resize: vertical;
}

.btc-toggle {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--ash);
  background: #f7f9ff;
  border-radius: 12px;
  padding: 10px 12px;
}

.btc-toggle input {
  accent-color: var(--sea);
}

.price-summary {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.price-breakdown {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.price-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.price-line--muted {
  color: var(--ash);
  font-weight: 500;
}

.price-line--total {
  border-top: 1px solid rgba(21, 22, 25, 0.1);
  padding-top: 10px;
  font-size: 16px;
}

.booking-message {
  display: none;
  font-size: 13px;
  color: #8a3d2a;
}

.booking-card__cta {
  width: 100%;
}

.booking-card__cta.is-disabled {
  background: var(--cloud);
  color: var(--ash);
  border: 1px solid rgba(21, 22, 25, 0.12);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.booking-card__cta.is-disabled:hover {
  transform: none;
}

.booking-card__hint {
  font-size: 13px;
  color: var(--ash);
  margin-top: 4px;
}

.booking-card--disabled .booking-inputs {
  background: var(--cloud);
  border-color: rgba(21, 22, 25, 0.08);
}

.booking-card--disabled .booking-input {
  background: var(--cloud);
}

.booking-card--disabled .booking-inputs input,
.booking-card--disabled .booking-inputs select {
  color: var(--ash);
  cursor: not-allowed;
}

.booking-card--disabled .booking-inputs input[readonly] {
  cursor: not-allowed;
}

.booking-mobile-bar .btn.is-disabled {
  background: var(--cloud);
  color: var(--ash);
  border: 1px solid rgba(21, 22, 25, 0.12);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.booking-card__cta.is-hidden {
  display: none;
}

.booking-card__contacts {
  margin-top: 8px;
}

.booking-card__contacts--pre {
  margin-top: 6px;
}

.booking-details {
  padding: 20px 0 60px;
}

.booking-details__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.booking-details__main {
  display: grid;
  gap: 18px;
}

.booking-details__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ash);
  font-weight: 600;
}

.booking-details__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.booking-details__card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(15, 20, 24, 0.08);
  display: grid;
  gap: 12px;
}

.booking-details__form {
  display: grid;
  gap: 16px;
}

.booking-details__summary {
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 16px;
}

.booking-details__image {
  width: 120px;
  height: 96px;
  border-radius: 16px;
  object-fit: cover;
  background: #eef2ff;
}

.booking-details__image--placeholder {
  background: linear-gradient(120deg, #dbe7ff, #f3f7ff);
}

.booking-details__summary-body h2 {
  margin: 0;
  font-size: 18px;
}

.booking-details__summary-body {
  display: grid;
  gap: 6px;
}

.booking-details__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.booking-details__meta-label {
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ash);
  display: block;
}

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

.form-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--ash);
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field input,
.booking-details__card textarea {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(21, 22, 25, 0.12);
  font-size: 14px;
  font-family: inherit;
}

.booking-details__card textarea {
  resize: vertical;
  min-height: 110px;
}

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

.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(21, 22, 25, 0.12);
  cursor: pointer;
  background: #fff;
}

.payment-option input {
  accent-color: var(--sea);
}

.payment-option__label {
  font-weight: 600;
  color: var(--ink);
}

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

.booking-details__price {
  position: sticky;
  top: 24px;
}

.booking-alert {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #f2c6c6;
  background: #fff4f4;
  color: #8a3d2a;
  font-size: 14px;
}

.booking-alert ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.booking-success {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: 40px 0;
}

.booking-success__card {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 32px rgba(15, 20, 24, 0.1);
  text-align: center;
  display: grid;
  gap: 12px;
  max-width: 480px;
}

.booking-success__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--foam);
  color: var(--sea);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.booking-mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(21, 22, 25, 0.1);
  z-index: 25;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.booking-mobile-bar.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.booking-mobile-bar__price {
  font-weight: 700;
}

.booking-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 24, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}

.booking-sheet-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 24, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 45;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  width: min(760px, 100%);
  max-height: 80vh;
  overflow: auto;
  display: grid;
  gap: 16px;
}

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

.calendar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 24, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 70;
}

.calendar-overlay.is-open {
  display: flex;
}

.calendar-sheet {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  width: min(860px, 100%);
  max-height: 92vh;
  overflow: auto;
  display: grid;
  gap: 16px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  padding-right: 42px;
}

.calendar-header h3 {
  margin: 0;
  line-height: 1.2;
}

.calendar-nav {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 2px;
}

.calendar-nav .ghost-chip {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.calendar-nav .ghost-chip i {
  font-size: 16px;
}

.calendar-close {
  position: absolute;
  top: 0;
  right: 0;
}

.calendar-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.calendar-month__header {
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: capitalize;
}

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

.calendar-day {
  border: none;
  background: #f4f6f7;
  padding: 10px 0;
  min-height: 44px;
  border-radius: 10px;
  font-size: 13px;
}

.calendar-day--label {
  background: transparent;
  font-weight: 600;
  color: var(--ash);
}

.calendar-day--empty {
  background: transparent;
}

.calendar-day--available {
  background: #e8f7ee;
  cursor: pointer;
}

.calendar-day--available:hover,
.calendar-day--available:focus-visible {
  box-shadow: inset 0 0 0 2px var(--sea-ring);
}

.calendar-day--blocked {
  background: #eceff3;
  color: #9aa0a6;
  cursor: not-allowed;
}

.calendar-day--booked {
  background: #e3e6eb;
  color: #7a8089;
}

.calendar-day--rule {
  background: #fdecec;
  color: #b86b6b;
  cursor: not-allowed;
}

.calendar-day--range {
  background: var(--sea);
  color: #fff;
}

.calendar-day--start,
.calendar-day--end {
  background: var(--sea);
  color: #fff;
}

.calendar-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 8px;
  color: var(--ash);
  margin-bottom: 6px;
}

.calendar-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calendar-legend__dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: #e8f7ee;
  border: 1px solid rgba(21, 22, 25, 0.1);
}

.calendar-legend__dot--selected {
  background: var(--sea);
  border-color: var(--sea-ring);
}

.calendar-legend__dot--blocked {
  background: #eceff3;
}

.calendar-legend__dot--rule {
  background: #fdecec;
}

.calendar-legend__meta {
  font-size: 12px;
  color: var(--ash);
  margin-top: -2px;
}

.calendar-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.photos-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  display: none;
  flex-direction: column;
  z-index: 65;
  overflow: hidden;
}

.photos-overlay.is-open {
  display: flex;
}

.photos-overlay__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 20px 12px;
  padding-right: 72px;
  border-bottom: 1px solid rgba(21, 22, 25, 0.08);
  background: #fff;
  flex: 0 0 auto;
}

.photos-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.photos-chip {
  border: 1px solid rgba(21, 22, 25, 0.12);
  background: #fff;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.photos-chip.is-active {
  border-color: var(--sea-ring);
  background: var(--foam);
  color: var(--sea);
}

.photos-overlay__close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(21, 22, 25, 0.15);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}

.photos-overlay.is-viewer-open .photos-overlay__close {
  display: none;
}

.photos-overlay__close i {
  font-size: 18px;
  line-height: 1;
}

.photos-overlay__content {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 20px calc(28px + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}

.photos-section {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  scroll-margin-top: 110px;
}

.photos-section__header h3 {
  margin: 0;
  font-size: 18px;
}

.photos-section__amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
}

.photos-amenity {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 11px;
  color: var(--ink);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.photos-amenity::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(21, 22, 25, 0.25);
  margin: 0 7px;
  transform: translateY(-1px);
}

.photos-amenity:last-child::after {
  display: none;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 320px));
  gap: 12px;
  justify-content: start;
}

.photo-tile {
  border: none;
  background: #f4f6f7;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  display: grid;
  text-align: left;
}

.photo-tile__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f4f6f7;
}

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

.photo-tile__meta {
  display: grid;
  gap: 2px;
  padding: 8px 10px 10px;
  font-size: 11px;
  color: var(--ash);
}

.photo-tile__title {
  font-weight: 600;
  color: var(--ink);
  font-size: 12px;
}

.photo-tile__desc {
  font-size: 11px;
  line-height: 1.3;
}

.photos-viewer {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 40, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: calc(20px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
  z-index: 2;
}

.photos-viewer__close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
}

.photos-viewer__close i {
  font-size: 18px;
  line-height: 1;
}

.photos-viewer.is-open {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.photos-viewer__frame {
  width: min(1200px, 88vw);
  justify-self: center;
}

.photos-viewer__frame img {
  width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  display: block;
  border-radius: 18px;
  background: #0f1420;
}

.photos-viewer__nav {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.photos-viewer__nav i {
  font-size: 20px;
}

.photos-viewer__counter {
  position: absolute;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 20, 40, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 60;
}

.lightbox-overlay.is-open {
  display: flex;
}

.lightbox {
  background: #fff;
  border-radius: 24px;
  padding: 20px;
  width: min(980px, 100%);
  max-height: 90vh;
  display: grid;
  gap: 16px;
  overflow: hidden;
}

.lightbox__close {
  justify-self: end;
}

.lightbox__main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.lightbox__image {
  display: grid;
  gap: 12px;
}

.lightbox__image img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 18px;
}

.lightbox__caption h4 {
  margin: 0 0 6px;
}

.lightbox__caption p {
  margin: 0;
  color: var(--ash);
}

.lightbox__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
}

.lightbox__thumb {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.lightbox__thumb img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid transparent;
}

.lightbox__thumb.is-active img {
  border-color: var(--sea);
}

.confirm-page {
  max-width: 840px;
  margin: 0 auto;
  padding: 40px 0 80px;
  display: grid;
  gap: 24px;
}

.confirm-card {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 32px rgba(15, 20, 24, 0.1);
  display: grid;
  gap: 14px;
}

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

.confirm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--sea);
  font-weight: 600;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .property-layout {
    grid-template-columns: 1fr;
  }

  .page--detail {
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }

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

  .booking-details__price {
    position: static;
  }

  .booking-card {
    display: none;
  }

  .booking-card.is-open {
    display: grid;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 22px 22px 0 0;
    z-index: 55;
  }

  .booking-mobile-bar {
    display: flex;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 860px) {
  .hero-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 150px));
  }

  .hero-gallery__item--main {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (max-width: 720px) {
  .property-hero {
    position: relative;
  }

  .property-hero {
    gap: 18px;
    padding: 22px 0 12px;
  }

  .property-hero__title {
    display: block;
    position: relative;
    padding-right: 52px;
  }

  .property-hero__title > div:first-child { min-width: 0; }

  .property-hero__title h1 {
    font-size: 1.6em;
    margin: 4px 0 6px;
  }

  .property-hero__actions {
    position: absolute;
    top: 0;
    right: 0;
    margin-left: 0;
    padding-top: 0;
  }

  .share-button {
    width: 34px;
    height: 34px;
  }

  .share-button i {
    font-size: 0.95rem;
  }

  .property-hero__location {
    font-size: 14px;
  }

  .hero-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    position: relative;
  }

  .hero-gallery__item,
  .hero-gallery__item--main {
    flex: 0 0 85%;
    height: 240px;
    scroll-snap-align: start;
  }

  .hero-gallery__cta {
    position: sticky;
    right: 12px;
    bottom: 12px;
    margin-left: auto;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    flex: 0 0 auto;
    height: auto;
    white-space: nowrap;
  }

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

  .amenities-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  }

  .photos-overlay__header {
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
    padding-right: 60px;
  }

  .photos-overlay__close {
    top: calc(10px + env(safe-area-inset-top));
    right: 16px;
  }

  .photos-overlay__content {
    padding: 14px 16px calc(24px + env(safe-area-inset-bottom));
  }

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

  .photo-tile {
    border-radius: 16px;
  }

  .photo-tile__media {
    aspect-ratio: 4 / 3;
  }

  .photos-viewer {
    grid-template-columns: minmax(0, 1fr);
  }

  .photos-viewer__nav {
    display: none;
  }

  .photos-viewer__frame {
    width: min(100%, 96vw);
  }

  .host-card__body--with-links {
    grid-template-columns: 1fr;
  }

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

  .rule-item {
    padding: 8px 10px;
    gap: 8px;
  }

  .rule-item i {
    font-size: 16px;
  }

  .rule-label {
    font-size: 11px;
  }

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

  .fact-item {
    padding: 8px 10px;
    font-size: 13px;
  }

  .calendar-overlay {
    align-items: flex-end;
  }

  .calendar-sheet {
    border-radius: 18px 18px 0 0;
    width: 100%;
    max-height: calc(100vh - env(safe-area-inset-bottom) - 8px);
    max-height: calc(100svh - env(safe-area-inset-bottom) - 8px);
    height: calc(100vh - env(safe-area-inset-bottom) - 8px);
    height: calc(100svh - env(safe-area-inset-bottom) - 8px);
    padding: calc(16px + env(safe-area-inset-top)) 16px 16px;
    gap: 12px;
  }

  .calendar-header {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 36px;
  }

  .calendar-nav {
    width: 100%;
    margin-top: 0;
  }

  .calendar-nav .ghost-chip {
    width: 32px;
    height: 32px;
  }

  .calendar-body {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .calendar-grid {
    gap: 4px;
  }

  .calendar-day {
    min-height: 34px;
    padding: 6px 0;
    font-size: 12px;
  }

  .calendar-month__header {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .calendar-legend {
    gap: 8px;
  }

  .calendar-legend__meta {
    font-size: 11px;
  }

  .booking-card {
    display: none;
  }

  .booking-card.is-open {
    top: auto;
    bottom: 0;
    height: 75vh;
    height: 75svh;
    max-height: 75vh;
    max-height: 75svh;
    overflow-x: hidden;
    padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
    gap: 10px;
  }

  .booking-form {
    position: relative;
    gap: 10px;
  }

  .booking-card__header {
    padding-right: 44px;
  }

  .booking-card__header p {
    margin: 0;
  }

  .booking-card__close {
    display: inline-flex;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(21, 22, 25, 0.15);
    background: #fff;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 1;
    position: absolute;
    top: 0;
    right: 0;
  }

  .booking-card__close::before {
    content: "×";
    font-size: 20px;
    color: var(--ink);
  }

  .booking-mobile-bar {
    display: flex;
  }

  .booking-card__header h3 {
    font-size: 22px;
  }

  .booking-card__fields,
  .booking-card__guest {
    gap: 10px;
  }

  .booking-card__fields label,
  .booking-card__guest label {
    gap: 4px;
  }

  .booking-card__summary {
    padding: 10px 12px;
    border-radius: 14px;
    background: #f7f9ff;
  }

  .booking-card__cta {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .booking-card__contacts {
    gap: 10px;
  }

  .booking-card__contacts .contact-chip {
    width: 100%;
    justify-content: center;
  }

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

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

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

  .booking-card__fields input,
  .booking-card__fields select,
  .booking-card__guest input,
  .booking-card__guest textarea {
    font-size: 16px;
  }
}

@media (min-width: 1100px) {
  .photos-overlay__header {
    padding-left: 48px;
    padding-right: 96px;
  }

  .photos-overlay__close {
    right: 48px;
  }

  .photos-overlay__content {
    padding-left: 48px;
    padding-right: 48px;
  }
}

@media (max-width: 560px) {
  .property-section {
    padding: 20px;
  }

  .booking-card__header {
    flex-direction: column;
    align-items: flex-start;
  }
}
.photos-viewer__close {
  top: calc(10px + env(safe-area-inset-top));
  right: 16px;
}

@media (max-width: 768px) {
  input,
  select,
  textarea,
  .form-control,
  .form-select,
  .form-control-sm,
  .form-select-sm {
    font-size: 16px !important;
  }
}
