:root {
  --ink: #151619;
  --ash: #40444b;
  --cloud: #f1f3f5;
  --sand: #eef4fb;
  --sun: #1f6feb;
  --sea: #0b4dbb;
  --foam: #dbe7ff;
  --rose: #4b7bd8;
  --shadow: 0 24px 60px rgba(15, 20, 24, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #f5f7fb;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  opacity: 0.6;
  z-index: -1;
}

body::before {
  width: 520px;
  height: 520px;
  left: -160px;
  top: -220px;
  background: radial-gradient(circle, #e5efff 0%, rgba(229, 239, 255, 0.2) 60%, rgba(229, 239, 255, 0) 75%);
}

body::after {
  width: 420px;
  height: 420px;
  right: -140px;
  bottom: -200px;
  background: radial-gradient(circle, #d6e2ff 0%, rgba(214, 226, 255, 0.25) 60%, rgba(214, 226, 255, 0) 75%);
}

@media (hover: hover) and (pointer: fine) {
  a[href],
  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  [role="button"] {
    cursor: pointer;
  }
  button:disabled,
  input:disabled,
  [aria-disabled="true"] {
    cursor: not-allowed;
  }
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 40px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 16px;
  z-index: 10;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  backdrop-filter: blur(12px);
}

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

.brand__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand__name {
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.nav__actions {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--solid {
  background: var(--sea);
  color: #fff;
  box-shadow: 0 10px 18px rgba(11, 77, 187, 0.2);
}

.btn--solid:hover {
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: rgba(21, 22, 25, 0.2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
  padding: 60px 0 40px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--ash);
  margin: 0 0 12px;
}

.hero h1,
.section h2 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.05;
  margin: 0 0 16px;
}

.lead,
.section__lead {
  font-size: 18px;
  color: var(--ash);
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
  color: var(--ash);
  font-size: 14px;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.hero-card__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.hero-card__title {
  font-weight: 600;
  margin: 0 0 6px;
}

.hero-card__location {
  color: var(--ash);
  margin: 0;
}

.hero-card__price {
  background: var(--sand);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  height: fit-content;
}

.hero-card__media {
  display: grid;
  gap: 12px;
}

.hero-card__image {
  height: 200px;
  border-radius: 18px;
  background: linear-gradient(120deg, #dbe7ff, #f3f7ff);
}

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

.hero-card__gallery span {
  height: 56px;
  border-radius: 12px;
  background: rgba(11, 77, 187, 0.08);
}

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

.hero-card__label {
  margin: 0 0 4px;
  color: var(--ash);
  font-size: 13px;
}

.hero-card__value {
  margin: 0;
  font-weight: 600;
}

.hero-card__button {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--sun);
  color: #fff;
  font-weight: 600;
}

.listing {
  padding: 60px 0 30px;
}

.listing__intro {
  max-width: 720px;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.property-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(15, 20, 24, 0.08);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.property-card__media {
  display: block;
  position: relative;
  overflow: hidden;
  height: 200px;
  background: #f0f3f2;
}

.property-card__media img,
.property-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.property-card__body {
  padding: 18px;
  display: grid;
  gap: 10px;
}

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

.property-card__headline h3 {
  margin: 0;
  font-size: 18px;
}

.property-card__price {
  background: var(--sand);
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.property-card__location {
  margin: 0;
  color: var(--ash);
  font-size: 14px;
}

.property-card__desc {
  margin: 0;
  color: var(--ash);
  font-size: 14px;
  line-height: 1.5;
}

.property-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--ash);
}

.section {
  padding: 60px 0 20px;
}

.section--split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
}

.feature-grid {
  display: grid;
  gap: 16px;
}

.feature-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 14px 28px rgba(15, 20, 24, 0.08);
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.section--cta .cta {
  background: linear-gradient(120deg, #0b4dbb, #0a3f93);
  color: #fff;
  padding: 32px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.section--cta .btn--solid {
  background: #fff;
  color: #0b4dbb;
}

.footer {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(15, 20, 24, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--ash);
}

.footer--links-only {
  justify-content: flex-end;
}

.footer--links-only .footer__links {
  margin-left: auto;
}

.footer__links {
  display: flex;
  gap: 16px;
}

.footer__links a {
  color: var(--ash);
  text-decoration: none;
}

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

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .nav {
    position: static;
  }
}

@media (max-width: 720px) {
  .listing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 20px 18px 30px;
  }

  .nav__actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .hero__cta,
  .footer__links {
    width: 100%;
    justify-content: flex-start;
  }

  .section--cta .cta {
    padding: 24px;
  }
}

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

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

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

.property-hero__location {
  margin: 0;
  color: var(--ash);
  font-size: 16px;
}

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

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

.property-gallery {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.property-gallery__main {
  position: relative;
}

.property-gallery__main,
.property-gallery__grid img {
  border-radius: 20px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-gallery__main img {
  height: 360px;
}

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

.property-gallery__grid img {
  height: 174px;
}

.gallery-item {
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  width: 100%;
  height: 100%;
  display: block;
}

.gallery-item img {
  display: block;
}

.gallery-all {
  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);
}

.property-gallery__placeholder {
  height: 360px;
  border-radius: 20px;
  background: linear-gradient(120deg, #dbe7ff, #f3f7ff);
}

.property-gallery__grid .property-gallery__placeholder {
  height: 174px;
}

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

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

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

.property-section h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 22px;
}

.info-card {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #f2f6ff;
}

.muted {
  color: var(--ash);
}

.small {
  font-size: 12px;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-list span {
  background: #f1f5ff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.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;
}

.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: 6px;
  font-size: 12px;
  color: var(--ash);
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

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

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

.booking-box {
  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 rgba(11, 77, 187, 0.08);
}

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

.booking-box__header h3 {
  margin: 0;
}

.badge {
  background: var(--foam);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.booking-box__fields {
  display: grid;
  gap: 12px;
}

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

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

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

.price-summary {
  font-weight: 600;
}

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

.booking-box__cta {
  width: 100%;
}

.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: 30;
}

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

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

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

.calendar-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.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: 8px 0;
  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: #e2edff;
  cursor: pointer;
}

.calendar-day--disabled {
  background: #f0f0f0;
  color: #a1a1a1;
}

.calendar-day--range {
  background: #c7dcff;
}

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

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

.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: 40;
}

.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);
}

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

  .booking-box {
    position: static;
  }
}

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

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

@media (max-width: 640px) {
  .unit-grid {
    grid-template-columns: 1fr;
  }

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

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

  .calendar-sheet {
    border-radius: 18px 18px 0 0;
    width: 100%;
    max-height: 85vh;
  }
}
