@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Roboto:wght@400;500;700&display=swap');
:root {
  --brand: #2398b6;
  --brand-dark: #2398b6;
  --newhom: #2398b6;
  --newhom-dark: #2398b6;
  --text-primary: #222222;
  --text-secondary: #717171;
  --border: #DDDDDD;
  --border-light: #EBEBEB;
  --bg-subtle: #F7F7F7;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.12);
  --transition: 0.2s ease;
}

/* ─── Base ───────────────────────────────────────────────── */
/* ─── Base ───────────────────────────────────────────────── */
body {
  font-family: 'Inter', 'Roboto', sans-serif;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea,
select {
  font-family: 'Inter', 'Roboto', sans-serif;
}

h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.section-heading {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}

/* ─── Brand Buttons ──────────────────────────────────────── */
.btn-brand {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 800;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(56, 149, 255, 0.3);
  transition: filter var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-brand:hover:not(:disabled) {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56, 149, 255, 0.4);
}

.btn-brand:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* ─── Save / Fav Button ──────────────────────────────────── */
#fav-button {
  background: none;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--text-primary);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

#fav-button:hover {
  background: var(--bg-subtle);
}

/* ─── Header Details ─────────────────────────────────────── */
.header-details {
  gap: 0;
  font-size: 0.9rem;
}

.header-details .fa-star {
  color: var(--brand);
  font-size: 0.85rem;
}

#numreviews {
  cursor: pointer;
  text-underline-offset: 2px;
  font-weight: 600;
}

#numreviews:hover {
  color: var(--brand);
}

/* ─── Photo Grid ─────────────────────────────────────────── */
.photo-grid-wrapper {
  position: relative;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
}

.photo-grid .photo-item {
  overflow: hidden;
  cursor: pointer;
  background: var(--border-light);
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-grid .photo-item:hover img {
  transform: scale(1.05);
}

.photo-grid .main-photo {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  border-radius: 0 0 0 10px !important;
}

/* selective outer corner rounding */
.photo-grid .photo-item:nth-child(3) {
  border-radius: 0 var(--radius-md) 0 0;
}

.photo-grid .photo-item:nth-child(5) {
  border-radius: 0 0 var(--radius-md) 0;
}

#show-all-photos {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 10;
  background: #fff;
  border: 1.5px solid var(--text-primary);
  color: var(--text-primary);
  
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: background var(--transition), transform var(--transition);
}

#show-all-photos:hover {
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

/* ─── Host Photo ─────────────────────────────────────────── */
.host-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

/* ─── Bed Cards ──────────────────────────────────────────── */
.bed-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.bed-card:hover {
  border-color: var(--text-secondary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.bed-card i {
  font-size: 1.75rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.bed-card .bedroom-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.bed-card .bed-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* ─── Amenities ──────────────────────────────────────────── */
.amenity-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0 !important;
  font-size: 0.93rem;
}

.amenity-item i {
  width: 1.4rem;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--text-primary);
}

/* ─── Outline Buttons (show more) ────────────────────────── */
#show-all-amenities,
#show-all-reviews,
#contacthost {
  
  font-weight: 700;
  font-size: 0.9rem;
  border: 1.5px solid var(--text-primary) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.6rem 1.2rem;
  color: var(--text-primary) !important;
  background: transparent;
  transition: background var(--transition), color var(--transition);
}

#show-all-amenities:hover,
#show-all-reviews:hover,
#contacthost:hover {
  background: var(--text-primary) !important;
  color: #fff !important;
}

/* ─── Calendar Section ───────────────────────────────────── */
#clear-dates-btn {
  
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: none;
  padding: 0;
  color: var(--text-primary);
  cursor: pointer;
}

#clear-dates-btn:hover {
  color: var(--brand);
}

/* ── Flatpickr overrides ─────────────────────────────────── */
.flatpickr-calendar.inline {
  box-shadow: none !important;
  width: 100% !important;
}

.flatpickr-calendar {
  border: none !important;
  border-radius: var(--radius-md) !important;
}

.flatpickr-current-month {
  font-weight: 700 !important;
  font-size: 1rem !important;
}

.flatpickr-weekday {
  font-weight: 700 !important;
  font-size: 0.76rem !important;
  color: var(--text-secondary) !important;
}

.flatpickr-day {
  border-radius: 50% !important;
  font-size: 0.88rem;
  transition: background var(--transition) !important;
}

.flatpickr-day:hover:not(.disabled) {
  background: var(--bg-subtle) !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--text-primary) !important;
  border-color: var(--text-primary) !important;
  color: #fff !important;
  font-weight: 700;
}

.flatpickr-day.inRange {
  background: #efefef !important;
  border-color: transparent !important;
  box-shadow: -5px 0 0 #efefef, 5px 0 0 #efefef !important;
  color: var(--text-primary) !important;
}

.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
  color: #ccc !important;
  text-decoration: line-through;
}

/* Calendar day tooltip (price/action) */
.day-tooltip {
  position: absolute;
  bottom: 108%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  display: block;
}

.flatpickr-day:hover .day-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.day-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #fff;
}

/* ─── Progress Bars (Reviews) ────────────────────────────── */
.progress {
  height: 4px;
  background: var(--border-light);
  border-radius: 99px;
}

.progress-bar {
  background: var(--text-primary);
  border-radius: 99px;
  transition: width 0.7s ease;
}

.review-score {
  font-weight: 700;
  font-size: 0.88rem;
  min-width: 2.4rem;
  text-align: right;
}

.review-item .reviewer-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.review-item .review-date {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.review-item p {
  font-size: 0.93rem;
  line-height: 1.7;
}

/* ─── Booking Card ───────────────────────────────────────── */
.booking-card-sticky {
  position: sticky;
  top: 90px;
}

.booking-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}



#booking-price strong {
  font-size: 1.45rem;
  font-weight: 800;
}

#booking-price .fw-normal {
  font-size: 0.95rem;
}

.booking-card .fa-star {
  color: var(--brand);
  font-size: 0.78rem;
}

/* Date/guest trigger boxes */
.date-picker-trigger {
  cursor: pointer;
  transition: border-color var(--transition) !important;
}

.date-picker-trigger:hover {
  border-color: var(--text-primary) !important;
}

.date-picker-trigger .form-label,
.booking-card .p-2 .form-label {
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 2px;
}

#checkin-date-display,
#checkout-date-display,
#guest-count-display {
  font-size: 0.88rem;
  font-weight: 600;
}

.short-guest-wrapper {
  position: relative;
}

.short-guest-wrapper .str-guest-picker {
  position: relative;
}

.short-guest-wrapper .str-guest-btn {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 600;
  padding: 0;
}

.short-guest-wrapper .str-guest-dropdown {
  position: absolute;
  left: -9px;
  right: -9px;
  top: calc(100% + 10px);
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
  padding: 14px;
  z-index: 50;
  display: none;
}

.short-guest-wrapper .str-guest-dropdown.show {
  display: block;
}

.short-guest-wrapper .str-guest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.short-guest-wrapper .str-guest-row:not(:last-child) {
  border-bottom: 1px solid var(--border-light);
}

.short-guest-wrapper .str-guest-label {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.short-guest-wrapper .str-guest-label small {
  display: block;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
}

.short-guest-wrapper .str-guest-counter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.short-guest-wrapper .str-guest-counter button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  line-height: 1;
  font-size: 18px;
  padding: 0;
}

.short-guest-wrapper .str-guest-counter button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.short-guest-wrapper .str-guest-counter span {
  min-width: 14px;
  text-align: center;
  font-weight: 700;
}

/* Price breakdown */
#price-breakdown {
  font-size: 0.93rem;
  line-height: 2.1;
}

#price-breakdown hr {
  color: var(--border-light) !important;
  opacity: 1;
}

/* ─── Map ────────────────────────────────────────────────── */
#map {
  height: 460px;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

/* ─── Things to Know ─────────────────────────────────────── */
#house-rules-list li,
#safetylist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
  padding: 0.3rem 0;
  line-height: 1.5;
}

#house-rules-list li i,
#safetylist li i {
  width: 1rem;
  font-size: 0.85rem;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--text-primary);
}

/* ─── Lightbox ───────────────────────────────────────────── */
.custom-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  animation: fadeInLb 0.25s ease;
}

@keyframes fadeInLb {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 960px;
  margin: auto;
  height: calc(100vh - 80px);
  padding-top: 60px;
}

.lightbox-image {
  max-width: 86%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 10020;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: auto;
  touch-action: manipulation;
  transition: color var(--transition), transform var(--transition);
}

.lightbox-close:hover {
  color: #fff;
  transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  transition: background var(--transition), transform var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.07);
}

.lightbox-prev {
  left: 0;
}

.lightbox-next {
  right: 0;
}

.lightbox-caption {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  margin-top: 12px;
}

/* ─── Modals ─────────────────────────────────────────────── */
.modal-content {
  border-radius: var(--radius-lg) !important;
}

.modal-title {
  font-weight: 800;
}

/* Keep Bootstrap modals above fixed header (header.css uses z-index: 9999). */
.modal {
  z-index: 11000 !important;
}

.modal-backdrop {
  z-index: 10990 !important;
}

#amenitiesModal .modal-dialog {
  width: calc(100% - 2rem);
  max-width: 680px !important;
  margin-right: auto;
  margin-left: auto;
}

#amenitiesModal .modal-content {
  max-height: 86vh;
  overflow: hidden;
}

#amenitiesModal .modal-body {
  overflow-y: auto;
}

#allAmenitiesList .amenity-item {
  border-bottom: 1px solid #f1f5f9;
  padding: 10px 8px !important;
  align-items: flex-start;
  min-height: 48px;
}

#allAmenitiesList .amenity-item i {
  margin-top: 3px;
}

#allAmenitiesList .amenity-item span {
  display: block;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ─── HR dividers ────────────────────────────────────────── */
hr {
  color: var(--border-light) !important;
  opacity: 1 !important;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .booking-card-sticky {
    position: static;
    top: auto;
  }
}

@media (max-width: 767.98px) {
  h1 {
    font-size: 1.65rem;
  }

  .section-heading {
    font-size: 1.2rem;
  }

  .photo-grid {
    display: block;
    height: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  .photo-grid .photo-item {
    width: 100%;
    height: 260px;
    margin-bottom: 6px;
    border-radius: 0 !important;
  }

  .photo-grid .photo-item:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
  }

  .photo-grid .photo-item:nth-child(2) {
    display: none;
  }

  .photo-grid .photo-item:nth-child(3) {
    display: none;
  }

  .photo-grid .photo-item:nth-child(4) {
    display: none;
  }

  .photo-grid .photo-item:nth-child(5) {
    display: none;
  }

  .lightbox-content {
    padding-top: 20px;
    height: 95vh;
  }

  .lightbox-image {
    max-width: 94%;
    max-height: 88vh;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
  }

  .lightbox-close {
    font-size: 1.6rem;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  #allAmenitiesList .amenity-item {
    min-height: 44px;
    padding: 9px 6px !important;
  }

  #amenitiesModal .modal-dialog {
    width: calc(100% - 1rem);
    max-width: 680px !important;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 479.98px) {
  .header-details {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 4px;
  }

  #fav-button {
    width: 100%;
    text-align: center;
  }

  .booking-card {
    padding: 1.1rem;
  }
}
