/* ============================================================
   LEVAL — inner pages (units, projects, services, about,
   contact, legal). Ivory / sage / sand, RTL-first.
   ============================================================ */

.pageicon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

/* ---------- Page header ---------- */

.page-head {
  position: relative;
  padding-block: clamp(3rem, 8vh, 5.5rem) clamp(2rem, 5vh, 3rem);
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}

.page-head__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--sage);
}

.breadcrumb .sep {
  opacity: 0.45;
}

.page-title {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--sage-deep);
}

.page-lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 2;
}

.section {
  padding-block: clamp(2.5rem, 6vh, 4rem);
}

.section--tight {
  padding-block: clamp(1.5rem, 3vh, 2.25rem);
}

/* ---------- Filter bar ---------- */

.filterbar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
}

.filterbar__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filterbar__field label {
  font-size: 0.75rem;
  color: var(--muted);
}

.filterbar select,
.filterbar input {
  font: inherit;
  font-size: 0.9rem;
  color: var(--sage-deep);
  background-color: #fff;
  border: 1px solid var(--hairline-strong);
  padding: 0.7rem 0.85rem;
  width: 100%;
  transition: border-color 0.18s ease;
}

.filterbar select:focus,
.filterbar input:focus {
  outline: none;
  border-color: var(--sage);
}

.filterbar__submit {
  align-self: end;
}

.filterbar__submit .btn {
  width: 100%;
  padding-block: 0.78rem;
}

/* ---------- Listing toolbar ---------- */

.listbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.listbar__count {
  font-size: 0.9rem;
  color: var(--muted);
}

.listbar__count b {
  color: var(--sage-deep);
  font-weight: 600;
}

.listbar__tools {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.listbar select {
  font: inherit;
  font-size: 0.88rem;
  color: var(--sage-deep);
  background-color: #fff;
  border: 1px solid var(--hairline-strong);
  padding: 0.6rem 0.85rem;
}

.listbar select:focus {
  outline: none;
  border-color: var(--sage);
}

/* ---------- Unit cards ---------- */

.prop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.prop {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--hairline);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.prop:hover {
  border-color: var(--sand);
  transform: translateY(-4px);
  box-shadow: 0 22px 45px -30px rgba(25, 40, 33, 0.5);
}

.prop__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--sand-light);
}

.prop__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.prop:hover .prop__media img {
  transform: scale(1.05);
}

.prop__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(64, 88, 76, 0.3);
}

.prop__ph svg {
  width: 2.6rem;
  height: 2.6rem;
}

.prop__badge {
  position: absolute;
  inset-inline-start: 0.75rem;
  top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.prop__badge--available {
  color: var(--ivory);
  background: var(--sage);
}

.prop__badge--reserved {
  color: var(--sage-deep);
  background: var(--sand);
}

.prop__fav {
  position: absolute;
  inset-inline-end: 0.75rem;
  top: 0.75rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: rgba(251, 249, 244, 0.85);
  color: var(--sage-deep);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.prop__fav svg {
  width: 17px;
  height: 17px;
}

.prop__fav:hover {
  background: var(--ivory);
  color: var(--sage);
}

.prop__fav.is-active {
  color: var(--sage);
}

.prop__fav.is-active svg {
  fill: var(--sage);
}

.prop__tag {
  position: absolute;
  inset-inline-end: 0.75rem;
  bottom: 0.75rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--sage-deep);
  background: var(--sand);
}

.prop__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.2rem 1.25rem 1.35rem;
}

.prop__title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--sage-deep);
}

.prop__loc {
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.prop__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--hairline);
}

.prop__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: var(--sage-deep);
}

.prop__meta svg {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--sage-soft);
}

.prop__foot {
  margin-top: auto;
  padding-top: 1rem;
}

.prop__price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--sage);
}

.prop__price span {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
}

.prop__cta {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.prop__cta .btn {
  width: 100%;
  padding-block: 0.78rem;
}

.loadmore-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.25rem;
}

.no-results {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.no-results.is-visible {
  display: block;
}

/* ---------- Discover strip ---------- */

.discover {
  border-top: 1px solid var(--hairline);
}

.discover__title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  color: var(--sage-deep);
  margin-bottom: 1.8rem;
}

.discover__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.discover__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.6rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.discover__card:hover {
  border-color: var(--sand);
  transform: translateY(-3px);
}

.discover__icon {
  color: var(--sage);
}

.discover__icon svg {
  width: 32px;
  height: 32px;
}

.discover__card h3 {
  margin-top: 0.35rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--sage-deep);
}

.discover__card p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Projects ---------- */

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.proj {
  background: var(--paper);
  border: 1px solid var(--hairline);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.proj:hover {
  border-color: var(--sand);
  transform: translateY(-4px);
  box-shadow: 0 22px 45px -30px rgba(25, 40, 33, 0.5);
}

.proj__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sand-light);
}

.proj__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.proj:hover .proj__media img {
  transform: scale(1.05);
}

.proj__count {
  position: absolute;
  inset-inline-start: 0.85rem;
  top: 0.85rem;
  padding: 0.32rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sage-deep);
  background: var(--sand);
}

.proj__body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.proj__name {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--sage-deep);
}

.proj__loc {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.proj__loc svg {
  width: 1rem;
  height: 1rem;
  color: var(--sage-soft);
}

.proj__stats {
  display: flex;
  gap: 1.8rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--hairline);
}

.proj__stat b {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--sage);
}

.proj__stat span {
  font-size: 0.8rem;
  color: var(--muted);
}

.proj__cta {
  margin-top: 1.3rem;
}

.proj__cta .btn {
  width: 100%;
}

/* ---------- Unit detail ---------- */

.detail {
  padding-block: clamp(2rem, 5vh, 3rem) clamp(3rem, 7vh, 5rem);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.25rem;
  align-items: start;
}

.gallery__main {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--sand-light);
}

.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(64, 88, 76, 0.3);
}

.gallery__ph svg {
  width: 3.2rem;
  height: 3.2rem;
}

.gallery__thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.7rem;
  flex-wrap: wrap;
}

.gallery__thumb {
  width: 92px;
  height: 66px;
  overflow: hidden;
  padding: 0;
  border: 1.5px solid var(--hairline);
  cursor: pointer;
  background: var(--sand-light);
}

.gallery__thumb.is-active {
  border-color: var(--sage);
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-card {
  position: sticky;
  top: 1.5rem;
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
}

.detail-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.detail-card__badge--available {
  color: var(--ivory);
  background: var(--sage);
}

.detail-card__badge--reserved {
  color: var(--sage-deep);
  background: var(--sand);
}

.detail-card__title {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--sage-deep);
}

.detail-card__loc {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-card__price {
  margin-top: 1rem;
  font-size: 2rem;
  font-weight: 600;
  color: var(--sage);
}

.detail-card__price span {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--muted);
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin: 1.3rem 0;
  padding: 1.3rem 0;
  border-block: 1px solid var(--hairline);
}

.detail-specs li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--sage-deep);
}

.detail-specs svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--sage-soft);
}

.detail-book {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.detail-book__label {
  font-size: 0.78rem;
  color: var(--muted);
}

.book-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  font-weight: 500;
  font-size: 0.92rem;
  border: 1px solid var(--hairline-strong);
  color: var(--sage-deep);
  background: #fff;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.book-btn svg {
  width: 1.2rem;
  height: 1.2rem;
}

.book-btn:hover {
  transform: translateY(-2px);
}

.book-btn--whatsapp {
  border-color: #25d366;
}

.book-btn--whatsapp svg {
  color: #25d366;
}

.book-btn--whatsapp:hover {
  background: rgba(37, 211, 102, 0.1);
}

.book-btn--booking:hover {
  background: rgba(0, 59, 149, 0.08);
  border-color: #003b95;
}

.book-btn--airbnb svg {
  color: #ff385c;
}

.book-btn--airbnb:hover {
  background: rgba(255, 56, 92, 0.08);
  border-color: #ff385c;
}

.book-btn--off {
  opacity: 0.4;
  cursor: not-allowed;
}

.book-btn--off:hover {
  transform: none;
}

.detail-desc {
  margin-top: 1.75rem;
}

.detail-desc h2 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--sage-deep);
  margin-bottom: 0.6rem;
}

.detail-desc p {
  color: var(--muted);
  line-height: 2;
}

/* ---------- Prose (about / legal) ---------- */

.prose {
  max-width: 74ch;
}

.prose h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 500;
  color: var(--sage-deep);
  margin-top: 2.25rem;
  margin-bottom: 0.8rem;
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sage);
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.prose p {
  color: var(--muted);
  line-height: 2.1;
  margin-bottom: 1rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.prose ul li {
  position: relative;
  padding-inline-start: 1.4rem;
  color: var(--muted);
  line-height: 1.9;
}

.prose ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sand);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.value-card {
  padding: 1.75rem 1.6rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
}

.value-card__icon {
  color: var(--sage);
  margin-bottom: 0.8rem;
}

.value-card__icon svg {
  width: 32px;
  height: 32px;
}

.value-card h3 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--sage-deep);
}

.value-card p {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.9;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: 2.25rem;
}

.stat-strip__item {
  text-align: center;
  padding: 1.6rem 1rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
}

.stat-strip__num {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--sage);
  line-height: 1;
}

.stat-strip__label {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Services page ---------- */

.services-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  border-inline-start: 1px solid var(--hairline);
}

.services-page-grid article {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 2.2rem 2rem;
  background: var(--paper);
  border-inline-end: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.25s ease;
}

.services-page-grid article:hover {
  background: #fff;
}

.services-page-grid article > span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--hairline-strong);
  color: var(--sage);
}

.services-page-grid article > span svg {
  width: 30px;
  height: 30px;
}

.services-page-grid h2 {
  margin: 2.2rem 0 0.7rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--sage-deep);
}

.services-page-grid p {
  font-size: 0.88rem;
  line-height: 1.95;
  color: var(--muted);
}

.services-note {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2.5rem;
  margin-top: 3rem;
  padding: 2.5rem 2.75rem;
  color: var(--ivory);
  background: var(--sage-deep);
}

.services-note h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
}

.services-note p {
  margin-top: 0.5rem;
  color: rgba(244, 240, 231, 0.65);
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2.25rem;
  align-items: start;
}

.form-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--hairline);
}

.form-card__title {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--sage-deep);
  margin-bottom: 0.4rem;
}

.form-card__lead {
  margin-bottom: 1.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.05rem;
}

.form-field span {
  font-size: 0.84rem;
  color: var(--muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  font: inherit;
  font-size: 0.95rem;
  color: var(--sage-deep);
  background: #fff;
  border: 1px solid var(--hairline-strong);
  padding: 0.8rem 0.9rem;
  width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(64, 88, 76, 0.1);
}

.form-hint {
  display: none;
  font-size: 0.76rem;
  font-style: normal;
  color: #a4544a;
}

.form-field.is-invalid .form-hint {
  display: block;
}

.form-field.is-invalid input,
.form-field.is-invalid textarea {
  border-color: #c2786d;
}

.form-card .btn {
  width: 100%;
  margin-top: 0.4rem;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-tile {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

a.contact-tile:hover {
  border-color: var(--sand);
  transform: translateY(-2px);
}

.contact-tile__icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline-strong);
  color: var(--sage);
}

.contact-tile__icon svg {
  width: 24px;
  height: 24px;
}

.contact-tile h3 {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--sage-deep);
}

.contact-tile p,
.contact-tile a {
  font-size: 0.88rem;
  color: var(--muted);
}

.contact-tile__value {
  display: block;
  margin-top: 0.15rem;
  color: var(--sage);
  font-size: 0.9rem;
}

.contact-tile--whatsapp .contact-tile__icon {
  border-color: #25d366;
  color: #25d366;
}

.flash {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.4rem;
  font-size: 0.9rem;
}

.flash svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.flash--ok {
  color: #2f5d43;
  background: rgba(64, 88, 76, 0.1);
  border: 1px solid rgba(64, 88, 76, 0.35);
}

.flash--err {
  color: #8f4438;
  background: rgba(194, 120, 109, 0.12);
  border: 1px solid rgba(194, 120, 109, 0.45);
}

/* ---------- Empty / 404 ---------- */

.notfound {
  display: grid;
  place-items: center;
  gap: 1rem;
  text-align: center;
  padding-block: clamp(4rem, 12vh, 8rem);
}

.notfound__code {
  font-family: Georgia, serif;
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1;
  color: var(--sand);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .prop-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .filterbar {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .detail-card {
    position: static;
  }

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

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

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-note {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 680px) {
  .prop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

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

  .services-page-grid {
    grid-template-columns: 1fr;
  }

  .services-page-grid article {
    min-height: 0;
  }
}

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