/* CSS Document */                 /* CSS Document */                                  /* 🔲 Layout Container */
#hfai-search-layout {
  display: flex;
  flex-wrap: nowrap;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* 📋 Sidebar: Filters */
#hfai-filter-panel {
  flex: 0 0 270px;
  border-right: 1px solid #ccc;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 0;
  height: 100vh;
  box-sizing: border-box;
}

.hfai-filter-heading {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 20px;
  margin-top: 0;
  padding-bottom: 5px;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hfai-filter-heading img {
  width: 20px;
  height: 20px;
}

#hfai-filter-panel select,
#hfai-filter-panel input[type="number"] {
  width: 100%;
  max-width: 220px;
  display: block;
  margin-top: 5px;
  margin-bottom: 15px;
  padding: 5px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

#hfai-filter-guests::-webkit-outer-spin-button,
#hfai-filter-guests::-webkit-inner-spin-button {
  opacity: 1;
  appearance: auto;
  margin: 0;
}

label[for="hfai-filter-guests"] {
  display: block;
  margin-bottom: 2px;
  font-weight: normal;
}

/* 📦 Results Layout */
#hfai-results-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#hfai-results-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  flex: 1;
  padding: 20px;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 0;
}

/* 🏠 Property Tiles: 2 Columns */
@media (min-width: 769px) {
  /* 🧱 Full-width content area (not limited!) */
  .hfai-results-wrapper {
    width: 100%;
    padding: 30px 0;
    box-sizing: border-box;
  }

  /* 🔲 Flex tile layout inside */
  #hfai-results-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* ⬅️ Centers tile rows in available space */
  }

  /* 📦 Each tile with spacing */
  .hfai-property-tile.horizontal {
    width: 700px;
    margin: 0 25px 50px; /* 50px gutter between tiles, 50px vertical */
    box-sizing: border-box;
  }
}


/* 📱 Mobile: 1 Column */
@media (max-width: 767px) {
  #hfai-results-panel .hfai-property-tile {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* 🧭 Crumb Bar: Container */
#hfai-crumb-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e4e4e4;
  padding: 12px 20px;
  font-size: 16px;
  border: 1px solid #ccc;
  margin: 20px 24px;
  flex-wrap: wrap;
}

/* 🔹 Left Side of Crumb Bar (filters summary + reset) */
.crumb-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* 🔸 Right Side of Crumb Bar (Reset + Results) */
.crumb-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}


#hfai-reset-filters {
  vertical-align: middle;
  margin-right: 10px;
}

#hfai-filter-results {
  font-weight: bold;
  vertical-align: middle;
}




/* 🔘 Reset button */
#hfai-reset-filters {
  padding: 6px 12px;
  font-size: 14px;
  background: #eee;
  border: 1px solid #aaa;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#hfai-reset-filters:hover {
  background: #ddd;
}

/* 📊 Results message */
#hfai-filter-results {
  font-weight: 600;
  font-size: 16px;
  color: #111;
  white-space: nowrap;
}

#hfai-launch-search {
  padding: 6px 12px;
  background-color: #f2f2f2;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  margin-right: 8px;
  transition: background-color 0.2s ease;
}

#hfai-launch-search:hover {
  background-color: #e6e6e6;
}

#hfai-reset-filters {
  display: none;
}

/* 🔒 Dim non-matching tiles */
.hfai-disabled {
  opacity: 0.55;
  filter: grayscale(100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* =============================
   🧱 Lock Left Sidebar + Crumb Bar, Scroll Right Panel Only
   ============================= */

/* 🧭 Ensure results wrapper stretches full height */
#hfai-results-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* 🔳 Scroll only this area */
#hfai-results-panel {
  overflow-y: auto;
  flex: 1;
  position: relative;
}

/* 📌 Crumb bar fixed inside right panel */
#hfai-crumb-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #e4e4e4; /* Ensure background when pinned */
}

/* 📋 Sidebar remains pinned */
#hfai-filter-panel {
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  overflow-y: auto;
}

.hfai-amenities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin-bottom: 12px;
}

.hfai-amenities-grid label {
  display: flex;
  align-items: center;
  font-size: 14px;
  cursor: pointer;
}

.hfai-amenities-grid input[type="checkbox"] {
  margin-right: 6px;
}

.hfai-price-subtext {
  font-size: 12px;
  color: #555;
  margin: -10px 0 10px 0;
}

/* 💲 Price Range Section */
#hfai-filter-price-container {
  margin-top: 20px;
}

#hfai-filter-price-container label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}

.hfai-price-row {
  display: flex;
  gap: 12px;
}

.hfai-price-row input[type="number"] {
  flex: 1;
  padding: 5px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

  /* 📱 Scoped to Mobile Search Layout */
  #hfai-search-layout-mobile {
    padding: 12px;
    background: #fff;
  }

  /* 🔍 Filter Heading */
  #hfai-filter-panel-mobile .hfai-filter-heading {
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 20px;
  }

  /* 🧾 Flex Row: Label + Input */
  #hfai-filter-panel-mobile .hfai-filter-row {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
  }

  #hfai-filter-panel-mobile .hfai-filter-row label {
    white-space: nowrap;
    margin-right: 10px;
    font-weight: 500;
    font-size: 1em;
  }

  #hfai-filter-panel-mobile .hfai-filter-row select,
  #hfai-filter-panel-mobile .hfai-filter-row input[type="number"],
  #hfai-filter-panel-mobile .hfai-filter-row input[type="text"] {
    flex: 1;
    width: 100%;
    padding: 8px;
    font-size: 1em;
    box-sizing: border-box;
  }

  /* 💲 Price Inputs: Side-by-Side */
  #hfai-filter-panel-mobile .hfai-price-block {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
  }

  #hfai-filter-panel-mobile .hfai-price-block input {
    flex: 1;
    margin-right: 10px;
  }

  #hfai-filter-panel-mobile .hfai-price-block input:last-child {
    margin-right: 0;
  }

  /* 🧩 Amenities: 3-Column Grid */
  #hfai-filter-panel-mobile fieldset {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: none;
    padding: 0;
    margin: 15px 0;
    row-gap: 6px;
  }

  #hfai-filter-panel-mobile fieldset legend {
    margin-bottom: 8px;
  }

  /* 📌 Crumb Bar Separation */
@media (max-width: 768px) {
  #hfai-results-wrapper-mobile #hfai-crumb-bar {
    display: flex !important;
    flex-direction: column;
    background: #f8f8f8;
    padding: 10px;
    margin-top: 12px;
    border-radius: 6px;
    font-size: 0.95em;
  }

  #hfai-crumb-bar > *:not(:last-child) {
    margin-bottom: 6px; /* ⬅️ Simulates vertical gap */
  }
}



  #hfai-crumb-bar button {
    margin-left: 10px;
    padding: 6px 12px;
    font-size: 0.95em;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: white;
  }

  /* 🧱 Tile Padding */
  #hfai-results-panel-mobile {
    margin-top: 15px;
  }

/* 📌 True Sticky at Top of Viewport */
#hfai-filter-toggle-bar {
  position: sticky;
  top: 0; /* Stick to top of screen */
  z-index: 999;
  background: #f8f8f8;
  padding: 12px;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  border-bottom: 1px solid #ccc;
  font-size: 1.05em;
}


/* 🔽 Collapsible Wrapper */
#hfai-filter-panel-mobile-wrapper {
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* ✅ Collapsed (default state) */
#hfai-filter-panel-mobile-wrapper.collapsed {
  max-height: 0;
}

/* ✅ Expanded (open state) */
#hfai-filter-panel-mobile-wrapper.open {
  max-height: 1200px; /* Enough room for filters; adjustable */
}

body, html {
  overflow: visible !important;
}

.tve-content-box, .tcb-col {
  overflow: visible !important;
}

#hfai-filter-toggle-bar {
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  #hfai-results-wrapper-mobile {
    position: sticky;
    top: 52px; /* or match your actual toggle bar height */
    z-index: 1;
    background: white;
  }
}

@media (max-width: 768px) {
  #hfai-crumb-bar {
    position: sticky;
    top: 60px; /* Match the height of the sticky toggle bar */
    z-index: 998;
    background: #f3f3f3;
  }
}

@media (max-width: 768px) {
  .hfai-inline-row {
    display: flex;
    justify-content: space-between;
    gap: 10px; /* slight space between fields */
    margin-bottom: 14px;
  }

  .hfai-inline-row .hfai-filter-row {
    flex: 1 1 33%;
  }

  .hfai-inline-row label {
    font-size: 0.85em;
    white-space: nowrap;
  }

  .hfai-inline-row select,
  .hfai-inline-row input[type="number"] {
    width: 100%;
    padding: 6px;
    font-size: 0.95em;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .hfai-price-block {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
  }

  .hfai-price-block input[type="number"] {
    flex: 1 1 0;
    min-width: 0; /* prevents overflow */
    padding: 4px;
    font-size: 0.95em;
    box-sizing: border-box;
  }

  .hfai-filter-subheading {
    font-weight: bold;
    margin: 12px 0 6px;
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  /* ✅ Full-width container with padding */
	
	/* ✅ Match crumb bar width & alignment to tile container */
#hfai-results-wrapper-mobile .hfai-crumb-bar {
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto; /* ensures centered if container has max-width */
  padding: 12px 0; /* vertical padding only */
  border: 1px solid #ccc;
  border-radius: 6px;
}

	
 .hfai-crumb-bar {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-size: 0.95em;
    overflow-x: hidden;
  }

  /* ✅ Row with location, guests, date (keep icon + label together) */
  .hfai-crumb-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 10px;
  }

  .crumb-item {
    display: inline-flex;
    align-items: center;
    margin-right: 16px;
    margin-bottom: 6px;
    white-space: nowrap;
  }

  .crumb-item img {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    vertical-align: middle;
  }

  /* ✅ Row for Reveal button and results count */
  .hfai-crumb-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .hfai-reveal-btn {
    padding: 6px 14px;
    font-size: 0.9em;
    flex-shrink: 0;
  }

  .hfai-results-count {
    font-weight: bold;
    font-size: 0.95em;
  }
}


/* ============================
   📱 MOBILE: Native Input Style (<=767px)
   ============================ */
@media (max-width: 767px) {
  .hfai-mobile-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 1em;
  }

  .hfai-date-container {
    width: 120px !important;
    margin-right: 6px;
    flex-shrink: 0;
  }

  .hfai-mobile-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
  }

  /* ✅ Direct styling of native input */
  .hfai-date-input {
    width: 100%;
    height: 36px;
    padding: 6px 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #fff;
    color: #000;
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
  }

  /* 🔒 Hide fake wrapper and icon on mobile */
  .hfai-date-field,
  .hfai-date-trigger {
    display: none !important;
  }
}

/* ======================================
   🖥️ DESKTOP Date Input Styles (≥768px)
   ====================================== */
@media (min-width: 768px) {
  .hfai-date-container {
    margin-bottom: 1em;
    width: 100%;
    max-width: 220px;
  }

  .hfai-date-field {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 4px;
    padding: 0 6px;
    width: 100%;
    max-width: 220px;
    box-sizing: border-box;
    position: relative;
    transition: border-color 0.2s ease;
  }

.hfai-date-input {
  flex: 1;
  min-width: 0; /* ✅ CRITICAL: allow shrinking inside flex */
  height: 100%;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #000;
  outline: none;
  box-shadow: none;
  padding: 0;
  box-sizing: border-box;
  cursor: text;
}


.hfai-date-trigger {
  width: 25px;
  height: 25px;
  margin-left: -40px;
  padding: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  z-index: 1;
}


  .hfai-date-trigger img,
  .hfai-date-trigger svg {
    width: 20px;
    height: 20px;
  }

  .hfai-date-field:hover {
    border-color: #888;
  }

  .hfai-date-input:focus {
    border-color: #888;
  }

  .hfai-date-container,
  .hfai-date-field {
    width: 204px !important;
    max-width: 204px !important;
    min-width: 204px !important;
    box-sizing: border-box;
  }
  
  .hfai-date-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  position: relative;
  overflow: visible;
  box-sizing: border-box;
}

  .hfai-date-field,
  .hfai-date-input {
    flex-shrink: 1;
    min-width: 0;
  }
  
  .hfai-date-trigger img,
.hfai-date-trigger svg {
  width: 20px;
  height: 20px;
  display: block;
}
}

/* 📱 Mobile: Checkin / Checkout / Guests — Fixed Layout V3.0 */
@media (max-width: 768px) {

  /* 🔲 Row container */
  #hfai-mobile-dates-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    max-width: 350px;
    margin: 0 auto 15px;
    box-sizing: border-box;
  }

  /* 🧱 Column container: label + input vertical */
  #hfai-mobile-dates-row .hfai-input-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
  }

  /* 🧱 Set widths and spacing manually */
  #hfai-mobile-dates-row .hfai-input-col:nth-child(1) {
    width: 120px;
    margin-right: 12px;
  }
  #hfai-mobile-dates-row .hfai-input-col:nth-child(2) {
    width: 120px;
    margin-right: 12px;
  }
  #hfai-mobile-dates-row .hfai-input-col:nth-child(3) {
    width: 80px;
  }

  /* ✍️ Label styling */
  #hfai-mobile-dates-row .hfai-input-col label {
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: normal;
  }

  /* 🖋️ Input styling (optional override for spacing) */
  #hfai-mobile-dates-row input {
    padding: 6px 8px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
  }

}

/* style Unicode emoji consistently */
#hfai-search-layout .emoji {
  font-size: 1em;
  line-height: 1;
  vertical-align: -0.2em;
}