/* ============================================================
   KOH LANTA RENTALS — BOOKING CALENDAR STYLES
   ============================================================ */

.booking-calendars-section {
  background: var(--off-white);
  padding: 4rem 0 2rem;
}

#propertyCalendars {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
}

/* ── PROPERTY SELECTOR CARDS ── */
.prop-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.prop-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.prop-option:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.prop-option.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}
.prop-option-img {
  width: 84px;
  height: 64px;
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  flex-shrink: 0;
}
.prop-option-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prop-option-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.prop-option-name {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}
.prop-option-meta {
  font-size: 0.78rem;
  color: var(--text-mid);
}

@media (max-width: 700px) {
  .prop-selector {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .prop-option-img {
    width: 72px;
    height: 56px;
  }
}

/* ── CARD ── */
.cal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* ── HEADER ── */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem 0;
}
.cal-prop-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
}
.cal-prop-meta {
  font-size: 0.78rem;
  color: var(--text-mid);
  display: block;
  margin-top: 0.15rem;
}
.cal-legend {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.cal-leg-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-mid);
}
.cal-leg-dot {
  width: 12px; height: 12px;
  border-radius: 3px;
  display: inline-block;
}
.cal-leg-avail  { background: #e8f9f2; border: 1.5px solid #1a9e6e; }
.cal-leg-booked { background: #f0f0f0; border: 1.5px solid #c0c0c0; }
.cal-leg-sel    { background: var(--navy); }

/* ── PRICE BAR ── */
.cal-price-bar {
  margin: 0.75rem 1.5rem 0;
  background: linear-gradient(135deg, #f8f5ec, #fdf9f0);
  border: 1px solid #e8d9a0;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  color: var(--text-dark);
}
.cal-price-bar i { color: var(--gold); margin-right: 0.3rem; }
.cal-price-bar strong { color: var(--navy); }

/* ── NAV ── */
.cal-nav {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1rem 1rem 0;
}
.cal-nav-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  width: 36px; height: 36px;
  font-size: 1.3rem;
  color: var(--navy);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 32px;
  transition: all 0.2s;
}
.cal-nav-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.cal-months-wrap {
  display: flex;
  flex: 1;
  gap: 1rem;
  overflow: hidden;
}

/* ── MONTH ── */
.cal-month {
  flex: 1;
  min-width: 0;
}
.cal-month-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.75rem;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── GRID ── */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-dow {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-light);
  padding: 0.25rem 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cal-day {
  border-radius: 6px;
  padding: 0.25rem 0;
  text-align: center;
  position: relative;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 0.82rem;
  transition: background 0.15s;
}
.cal-empty { background: none !important; }

/* Available */
.cal-avail {
  cursor: pointer;
  background: #f0fdf8;
  border: 1px solid transparent;
}
.cal-avail:hover {
  background: #c9a84c22;
  border-color: var(--gold);
}

/* Blocked / booked */
.cal-blocked {
  background: #f2f2f2;
  color: #bbb;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: line-through;
}
.cal-blocked .cal-day-price { display: none; }

/* Today */
.cal-today { font-weight: 700; }
.cal-today .cal-day-num {
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
}

/* Check-in */
.cal-checkin {
  background: var(--navy) !important;
  color: var(--white) !important;
  border-radius: 6px 0 0 6px;
}
.cal-checkin .cal-day-num { color: var(--white); }
.cal-checkin .cal-day-price { color: var(--gold-light); }

/* Check-out */
.cal-checkout {
  background: var(--navy) !important;
  color: var(--white) !important;
  border-radius: 0 6px 6px 0;
}
.cal-checkout .cal-day-price { color: var(--gold-light); }

/* In range */
.cal-inrange {
  background: rgba(10,22,40,0.08) !important;
  border-radius: 0;
}

/* Day label + price */
.cal-day-num  { font-size: 0.82rem; line-height: 1; }
.cal-day-price {
  font-size: 0.6rem;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
  margin-top: 1px;
  letter-spacing: -0.01em;
}

/* ── SELECTION BAR ── */
.cal-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  background: #fafbfd;
}
.cal-sel-dates {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.cal-sel-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white);
  min-width: 150px;
}
.cal-sel-item i { color: var(--gold); font-size: 0.9rem; }
.cal-sel-label { font-size: 0.68rem; color: var(--text-light); display: block; text-transform: uppercase; letter-spacing: 0.05em; }
.cal-sel-val   { font-size: 0.85rem; font-weight: 600; color: var(--navy); display: block; }
.cal-sel-arrow { color: var(--text-light); font-size: 1.1rem; }
.cal-sel-nights {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  background: var(--navy-pale);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
}
.cal-sel-nights i { color: var(--navy); font-size: 0.75rem; }

.cal-enquire-btn {
  white-space: nowrap;
}
.cal-enquire-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── CLEAR BUTTON ── */
.cal-clear-btn {
  white-space: nowrap;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.cal-clear-btn:hover {
  background: #fff0f0;
  border-color: #fcc;
  color: #b00;
}

/* ── ACTIVE CHECK-IN ITEM (waiting for check-out) ── */
.cal-sel-item.cal-sel-active {
  border-color: var(--gold);
  background: #fffbf0;
}

/* ── TOUCH HINT ── */
.cal-touch-hint {
  width: 100%;
  font-size: 0.82rem;
  color: var(--navy);
  background: #f0f6ff;
  border: 1px solid #c8daf5;
  border-radius: 7px;
  padding: 0.55rem 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: fadeIn 0.25s ease;
}
.cal-touch-hint i { color: var(--gold); }

/* ── RANGE ERROR ── */
.cal-range-error {
  width: 100%;
  padding: 0.6rem 0.9rem;
  background: #fff0f0;
  border: 1px solid #fcc;
  border-radius: 7px;
  font-size: 0.82rem;
  color: #b00;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── FORM SUCCESS ── */
.form-success {
  text-align: center;
  padding: 2.5rem 1rem;
}
.form-success i { font-size: 2.5rem; color: #1a9e6e; margin-bottom: 0.75rem; display: block; }
.form-success h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 0.5rem; }
.form-success p { color: var(--text-mid); font-size: 0.9rem; }

/* ── ENQUIRY FORM WRAPPER ── */
.enquiry-section {
  background: var(--white);
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}
.enquiry-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.enquiry-info h2 { font-family: var(--font-serif); font-size: 1.6rem; color: var(--navy); margin-bottom: 0.75rem; }
.enquiry-info p  { color: var(--text-mid); font-size: 0.92rem; line-height: 1.7; margin-bottom: 1.25rem; }
.enquiry-tips { list-style: none; padding: 0; }
.enquiry-tips li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.85rem; color: var(--text-mid); margin-bottom: 0.6rem;
}
.enquiry-tips li i { color: var(--gold); margin-top: 0.2rem; flex-shrink: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .enquiry-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 700px) {
  .cal-months-wrap { flex-direction: column; }
  .cal-header { flex-direction: column; align-items: flex-start; }
  .cal-selection { flex-direction: column; align-items: stretch; }
  .cal-sel-dates { flex-direction: column; }
  .cal-sel-item { min-width: 0; }
  .cal-day-price { display: none; }
  .cal-nav { padding: 0.75rem 0.5rem 0; }
}
@media (max-width: 420px) {
  .cal-day { min-height: 38px; font-size: 0.75rem; }
  .cal-dow  { font-size: 0.6rem; }
}
