:root {
  --forest: #183c34;
  --forest-soft: #27594f;
  --sea: #5f9ea6;
  --sand: #f3eadc;
  --sand-light: #fff8ee;
  --muted: #6d7a77;
}

body.public-body {
  background:
    radial-gradient(circle at top left, rgba(95, 158, 166, .24), transparent 34rem),
    linear-gradient(135deg, var(--sand-light), var(--sand));
  color: #23312f;
}

body.admin-body {
  background: #f4f6f5;
}

.brand-text, .text-forest { color: var(--forest) !important; }
.bg-forest { background: var(--forest) !important; }
.btn-forest { background: var(--forest); color: #fff; border-color: var(--forest); }
.btn-forest:hover { background: #102a24; color: #fff; border-color: #102a24; }
.btn-sea { background: var(--sea); color: #fff; border-color: var(--sea); }
.btn-sea:hover { background: #4b8991; color: #fff; border-color: #4b8991; }

.hero-panel {
  border-radius: 2rem;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(24,60,52,.12);
  box-shadow: 0 24px 70px rgba(24, 60, 52, .16);
}

.hero-title {
  color: var(--forest);
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: .92;
  letter-spacing: -.08em;
}

.search-card, .property-card, .booking-card, .admin-card {
  border-radius: 1.4rem;
  border: 1px solid rgba(24,60,52,.10);
  box-shadow: 0 14px 44px rgba(24,60,52,.08);
  overflow: hidden;
}

.property-img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #d4e6df 0%, #8ebac0 45%, #2f6f78 100%);
}

.placeholder-img {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  background:
    radial-gradient(circle at 70% 22%, rgba(255,255,255,.8) 0 48px, transparent 50px),
    linear-gradient(135deg, #d4e6df 0%, #8ebac0 45%, #2f6f78 100%);
}

.amenity-badge {
  background: rgba(95, 158, 166, .13);
  color: var(--forest);
  border: 1px solid rgba(95, 158, 166, .20);
}

.status-dot {
  width: .78rem;
  height: .78rem;
  display: inline-block;
  border-radius: 999px;
  margin-right: .35rem;
}
.status-available { background: #2e7d63; }
.status-pending { background: #f2c94c; }
.status-confirmed { background: #c44536; }
.status-blocked { background: #9aa0a6; }
.status-unavailable { background: #c44536; }
.status-search_required { background: #9aa0a6; }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .45rem;
}
.calendar-cell {
  min-height: 78px;
  border-radius: .9rem;
  padding: .55rem;
  font-size: .88rem;
  background: #e8f5ee;
  border: 1px solid rgba(24,60,52,.10);
}
.calendar-cell.pending { background: #fff3c4; }
.calendar-cell.confirmed { background: #ffd4ce; }
.calendar-cell.blocked { background: #e1e4e8; }
.calendar-cell.muted { opacity: .35; }

.admin-nav { background: var(--forest); }
.admin-shell { max-width: 1440px; margin: 0 auto; }
.table td, .table th { vertical-align: middle; }
.form-help { font-size: .875rem; color: var(--muted); }
.gallery-thumb { width: 120px; height: 85px; object-fit: cover; border-radius: .75rem; }

@media (max-width: 767px) {
  .hero-title { font-size: 3.1rem; }
  .calendar-cell { min-height: 54px; font-size: .75rem; padding: .35rem; border-radius: .65rem; }
}


/* Calendar range selection on public property page */
.status-selected { background: #183c34; }
.calendar-cell.selectable {
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.calendar-cell.selectable:hover,
.calendar-cell.selectable:focus {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(24,60,52,.14);
  border-color: rgba(24,60,52,.28);
}
.calendar-cell.selected-start,
.calendar-cell.selected-end {
  background: #183c34 !important;
  color: #fff;
  border-color: #183c34;
}
.calendar-cell.selected-range {
  background: rgba(24,60,52,.18) !important;
  border-color: rgba(24,60,52,.25);
}
.calendar-cell.pending.selected-range,
.calendar-cell.confirmed.selected-range,
.calendar-cell.blocked.selected-range {
  outline: 2px dashed rgba(184,74,58,.55);
}


/* Simpler public calendar booking selection */
.selected-dates-box {
  border: 1px solid rgba(24,60,52,.12);
  background: rgba(24,60,52,.04);
  border-radius: 1rem;
  padding: .9rem 1rem;
  min-height: 58px;
}

.calendar-cell.selectable {
  cursor: pointer;
  user-select: none;
}

.calendar-cell.selected-start,
.calendar-cell.selected-end {
  background: #183c34 !important;
  color: #fff;
  border-color: #183c34;
}

.calendar-cell.selected-range {
  background: rgba(24,60,52,.20) !important;
  border-color: rgba(24,60,52,.28);
}

.calendar-cell.pending.selected-range,
.calendar-cell.confirmed.selected-range,
.calendar-cell.blocked.selected-range {
  outline: 2px dashed rgba(184,74,58,.55);
}


/* Clear simple booking selection: all selected days are dark green */
.calendar-cell.selected-start,
.calendar-cell.selected-range,
.calendar-cell.selected-end {
  background: #183c34 !important;
  color: #ffffff !important;
  border-color: #183c34 !important;
  opacity: 1 !important;
}

.calendar-cell.selected-start *,
.calendar-cell.selected-range *,
.calendar-cell.selected-end * {
  color: #ffffff !important;
}

.calendar-cell.muted.selected-start,
.calendar-cell.muted.selected-range,
.calendar-cell.muted.selected-end {
  opacity: 1 !important;
}

.calendar-cell.pending.selected-range,
.calendar-cell.confirmed.selected-range,
.calendar-cell.blocked.selected-range {
  outline: none !important;
}


/* Simple guest +/- selector */
.guest-stepper-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.guest-stepper {
  display: grid;
  grid-template-columns: 1fr 42px 54px 42px;
  align-items: center;
  gap: .35rem;
  border: 1px solid rgba(24,60,52,.14);
  border-radius: .9rem;
  background: #fff;
  padding: .55rem .65rem;
}

.guest-stepper-label {
  font-weight: 700;
  color: #2f3f3b;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .02em;
}

.guest-stepper-btn {
  width: 42px;
  height: 38px;
  border-radius: .7rem;
  border: 1px solid rgba(24,60,52,.16);
  background: rgba(24,60,52,.06);
  color: #183c34;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
}

.guest-stepper-btn:hover:not(:disabled) {
  background: #183c34;
  color: #fff;
}

.guest-stepper-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.guest-stepper-input {
  width: 54px;
  height: 38px;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 800;
  color: #183c34;
  appearance: textfield;
}

.guest-stepper-input::-webkit-outer-spin-button,
.guest-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@media (max-width: 575px) {
  .guest-stepper-grid {
    grid-template-columns: 1fr;
  }
}


/* Cleaner compact guest selector */
.guest-stepper-grid {
  margin-top: .25rem;
}

.guest-stepper {
  min-height: 58px;
}

.guest-stepper-label {
  white-space: nowrap;
}

.guest-stepper-input {
  font-size: 1rem;
}

.guest-stepper-btn {
  display: inline-grid;
  place-items: center;
}


/* Do not repeat next/previous month dates inside current month calendar */
.calendar-cell.calendar-empty {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  pointer-events: none;
}
.calendar-month-title {
  scroll-margin-top: 90px;
}


/* Past dates are inactive */
.calendar-cell.past {
  background: #eef0f1 !important;
  border-color: rgba(24,60,52,.08) !important;
  color: #a7adb0 !important;
  cursor: not-allowed !important;
  opacity: .65;
}

.calendar-cell.past * {
  color: #a7adb0 !important;
}

.calendar-cell.past:hover,
.calendar-cell.past:focus {
  transform: none !important;
  box-shadow: none !important;
}


/* Improved simple index object selection */
.index-objects-section {
  min-height: calc(100vh - 76px);
  background:
    radial-gradient(circle at 10% 0%, rgba(95, 158, 166, .20), transparent 28rem),
    linear-gradient(135deg, #fff8ee 0%, #f3eadc 100%);
}

.index-head {
  max-width: 780px;
}

.index-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: .8rem;
  color: #2f6f78;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.index-title {
  margin: 0;
  color: #183c34;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  line-height: .95;
  letter-spacing: -.06em;
  font-weight: 850;
}

.index-subtitle {
  max-width: 690px;
  margin: 1rem 0 0;
  color: #6d7a77;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.55;
}

.index-object-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: 1.7rem;
  overflow: hidden;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(24, 60, 52, .10);
  box-shadow: 0 18px 55px rgba(24, 60, 52, .13);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.index-object-card:hover {
  color: inherit;
  transform: translateY(-5px);
  border-color: rgba(24, 60, 52, .20);
  box-shadow: 0 26px 70px rgba(24, 60, 52, .18);
}

.index-object-image-wrap {
  position: relative;
  aspect-ratio: 1.18 / .82;
  overflow: hidden;
  background: #dbe9e4;
}

.index-object-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.index-object-card:hover .index-object-image {
  transform: scale(1.045);
}

.index-object-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #d4e6df 0%, #5f9ea6 100%);
  color: #fff;
  font-weight: 850;
}

.index-object-image-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.34));
  pointer-events: none;
}

.index-object-top-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: calc(100% - 2rem);
  padding: .48rem .78rem;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: #183c34;
  font-weight: 850;
  font-size: .82rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
}

.index-object-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
}

.index-object-title {
  margin: 0;
  color: #183c34;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -.035em;
  font-weight: 850;
}

.index-object-description {
  margin: .55rem 0 1rem;
  color: #6d7a77;
  line-height: 1.45;
  min-height: 3.95em;
}

.index-object-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1.25rem;
}

.index-object-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .25rem .65rem;
  border-radius: 999px;
  background: rgba(95, 158, 166, .13);
  border: 1px solid rgba(24, 60, 52, .10);
  color: #183c34;
  font-size: .78rem;
  font-weight: 760;
}

.index-object-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.index-object-note {
  color: #6d7a77;
  font-size: .86rem;
  line-height: 1.25;
}

.index-object-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.05rem;
  border-radius: 999px;
  background: #183c34;
  color: #fff;
  font-weight: 850;
  white-space: nowrap;
}

@media (max-width: 575px) {
  .index-object-body {
    padding: 1rem;
  }

  .index-object-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .index-object-button {
    width: 100%;
  }

  .index-object-description {
    min-height: auto;
  }
}


/* Elegant homepage title */
.index-title-elegant {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 500;
  color: #183c34;
}

.index-title-elegant::after {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  margin-top: 1rem;
  background: linear-gradient(90deg, rgba(24,60,52,.9), rgba(95,158,166,.55));
  border-radius: 999px;
}

.index-head {
  max-width: 860px;
}

.index-subtitle {
  margin-top: 1.15rem;
}


/* Homepage title second line */
.index-title-secondary {
  margin-top: .35rem;
  color: #2f6f78;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
}


/* Elegant brand in header */
.brand-text-elegant {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1;
  letter-spacing: -.03em;
  font-weight: 600;
  color: #183c34 !important;
}

/* Homepage: keep only reservation word */
.index-title-reservation-only {
  margin: 0 0 1rem;
  color: #2f6f78;
  font-size: clamp(1.25rem, 2.3vw, 1.95rem);
  line-height: 1.05;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 700;
}

.index-title-reservation-only::after {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  margin-top: .9rem;
  background: linear-gradient(90deg, rgba(24,60,52,.9), rgba(95,158,166,.55));
  border-radius: 999px;
}
