/* Rental Booking Form v7.0 */

/* ══════════════════════════════════════════
   OVERLAY — position:fixed, covers full screen
   Never affects page layout or hero height
══════════════════════════════════════════ */
.rbf-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0,0,0,0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}
.rbf-overlay--open { display: flex; }

/* ══════════════════════════════════════════
   CALENDAR POPUP
══════════════════════════════════════════ */
.rbf-cal-popup {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  width: 320px;
  max-width: calc(100vw - 32px);
  position: relative;
  font-family: 'DM Sans',-apple-system,BlinkMacSystemFont,sans-serif;
}

.rbf-cal-hdr {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  gap: 4px;
}
.rbf-cal-month-label {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a18;
}
.rbf-cal-nav {
  background: none;
  border: 0.5px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  width: 28px; height: 28px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #1a1a18;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.1s;
  flex-shrink: 0;
}
.rbf-cal-nav:hover { background: #f4f4f2; }
.rbf-cal-close {
  background: none; border: none;
  font-size: 17px; cursor: pointer; color: #9e9e8e;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; flex-shrink: 0;
  transition: background 0.1s, color 0.1s;
}
.rbf-cal-close:hover { background: #f4f4f2; color: #1a1a18; }

.rbf-cal-hint {
  font-size: 11px; color: #9e9e8e;
  text-align: center; margin-bottom: 10px;
  letter-spacing: 0.02em;
}

/* 7-col grid */
.rbf-cal-grid {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 2px;
}
.rbf-day-hdr {
  font-size: 10px; font-weight: 500; color: #bbb;
  text-align: center; padding: 2px 0 6px;
  letter-spacing: 0.04em;
}
.rbf-cell {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; border-radius: 6px; color: #1a1a18;
  transition: background 0.1s;
  position: relative;
}
.rbf-cell--empty   { visibility: hidden; }

/* Past / before checkin */
.rbf-cell--past    { color: #d8d6d0; cursor: not-allowed; }

/* BOOKED — greyed, strikethrough, physically not clickable */
.rbf-cell--booked {
  background: #f0efec;
  color: #c5c3bb;
  text-decoration: line-through;
  text-decoration-color: #c5c3bb;
  cursor: not-allowed;
}

/* Blocked range (available date but can't be picked because booked date in between) */
.rbf-cell--blocked-range {
  color: #d8d6d0;
  cursor: not-allowed;
}

/* Available */
.rbf-cell--avail   { cursor: pointer; }
.rbf-cell--avail:hover { background: #f0f0ee; }

/* Check-in selected */
.rbf-cell--start {
  background: #1a1a18 !important;
  color: #fff !important;
  border-radius: 6px 0 0 6px;
}
/* Check-out selected */
.rbf-cell--end {
  background: #1a1a18 !important;
  color: #fff !important;
  border-radius: 0 6px 6px 0;
}
/* In-range */
.rbf-cell--range {
  background: #e8e8e4;
  border-radius: 0;
}
.rbf-cell--start.rbf-cell--end { border-radius: 6px; }

/* Legend */
.rbf-cal-legend {
  display: flex; gap: 14px;
  margin-top: 12px; padding-top: 10px;
  border-top: 0.5px solid rgba(0,0,0,0.06);
  font-size: 11px; color: #9e9e8e;
}
.rbf-cal-legend span { display: flex; align-items: center; gap: 5px; }
.rbf-leg { display:inline-block; width:11px; height:11px; border-radius:3px; flex-shrink:0; }
.rbf-leg--booked { background:#f0efec; border:1px solid #ddd; }
.rbf-leg--sel    { background:#1a1a18; }
.rbf-leg--range  { background:#e8e8e4; }

/* ══════════════════════════════════════════
   BOOKING CARD — fixed size always
══════════════════════════════════════════ */
.rbf-wrap {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  padding-top: 18px;
  font-family: 'DM Sans',-apple-system,BlinkMacSystemFont,sans-serif;
}
.rbf-badge {
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  background: #1a1a18; color: #faf9f6;
  font-size: 11px; letter-spacing: 0.08em;
  padding: 5px 16px; border-radius: 999px;
  white-space: nowrap; z-index: 2;
}
.rbf-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  padding: 1.75rem 1.5rem 1.5rem;
}
.rbf-location {
  display: block; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: #9e9e8e; margin-bottom: 4px;
}
.rbf-title {
  font-size: 15px; font-weight: 500; color: #1a1a18; margin: 0 0 1.1rem;
}
.rbf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.rbf-field { display: flex; flex-direction: column; gap: 4px; }
.rbf-lbl { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #9e9e8e; font-weight: 500; }

/* Date trigger button */
.rbf-datebtn {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 12px;
  background: #faf9f6;
  border: 0.5px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  cursor: pointer; font-size: 13px; color: #aaa;
  font-family: inherit; text-align: left;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
}
.rbf-datebtn svg { opacity: 0.4; flex-shrink: 0; }
.rbf-datebtn:hover { border-color: rgba(0,0,0,0.3); }
.rbf-datebtn--active { border-color: #1a1a18 !important; background: #fff !important; }
.rbf-datebtn--filled { color: #1a1a18; font-weight: 500; }
.rbf-datebtn--filled svg { opacity: 0.7; }

/* Guests select */
.rbf-select {
  width: 100%; padding: 10px 12px;
  font-size: 14px; color: #1a1a18;
  background: #faf9f6;
  border: 0.5px solid rgba(0,0,0,0.15);
  border-radius: 8px; outline: none; font-family: inherit;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239e9e8e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  background-color: #faf9f6; padding-right: 32px; cursor: pointer;
  transition: border-color 0.15s;
}
.rbf-select:focus { border-color: rgba(0,0,0,0.35); background-color: #fff; }

/* Status */
.rbf-status { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #666; margin-top: 8px; }
.rbf-dot { width:7px; height:7px; border-radius:50%; background:#b4b2a9; flex-shrink:0; transition:background 0.3s; }
.rbf-dot--pulse { animation: rbf-pulse 1.2s infinite; }
.rbf-dot--ok    { background: #639922; }
@keyframes rbf-pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* Price */






/* Error */
.rbf-error {
  font-size: 12px; color: #a32d2d; background: #fcebeb;
  border: 0.5px solid #f09595; border-radius: 6px;
  padding: 8px 12px; margin-top: 8px; line-height: 1.5;
}

/* Submit */
.rbf-submit {
  width: 100%; padding: 13px;
  background: #1a1a18; color: #faf9f6;
  border: none; border-radius: 8px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.03em;
  cursor: pointer; font-family: inherit;
  transition: opacity 0.15s, transform 0.1s; margin-top: 10px;
}
.rbf-submit:hover  { opacity: 0.85; }
.rbf-submit:active { transform: scale(0.98); }
.rbf-note { font-size: 11px; color: #b4b2a9; text-align: center; margin: 6px 0 0; }

/* Mobile */
@media (max-width: 480px) {
  .rbf-row2    { grid-template-columns: 1fr; }
  .rbf-card    { padding: 1.5rem 1.25rem; }
  .rbf-cal-popup { padding: 16px; }
  .rbf-cell    { font-size: 12px; }
  .rbf-cal-legend { flex-wrap: wrap; gap: 8px; }
}