/*
Theme Name: Homey Child
Theme URI: http://themeforest.net/user/favethemes/
Author: Favethemes
Author URI: http://themeforest.net/user/favethemes/
Description: Homey is a powerful booking platform that lets you run a residential or commercial
rental business online with no hassle
Version: 1.0.0
Tags: right-sidebar, left-sidebar, custom-colors, custom-menu, featured-images, post-formats, theme-options, translation-ready
License: GNU General Public License version 3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: homey
Template: homey
*/



.banner-search .search-calendar {
  position: absolute;
  top: calc(100% + 10px);
  /* Adjusted to add 10px gap from the input */
  left: 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  width: auto;
  min-width: 100%;
  /* Ensure it's at least as wide as the parent */
}

.calendar-arrow {
  z-index: 999999 !important;
}

.search-date-range {}

.banner-search {
  position: relative;
}

/* Ensure proper stacking for all booking elements */
.bootstrap-calendar {
  z-index: 9999 !important;
}

.main-search-calendar-wrap {
  z-index: 999999 !important;
}

/* Lower z-index for non-interactive elements */
.homey-booking-platforms {
  z-index: 1;
}

/* Calendar container specific rules */
.search-calendar-main {
  background: #fff;
  z-index: 999999 !important;
  border-radius: 4px;
}

/* Ensure mobile calendar works too */
@media (max-width: 767px) {
  .search-calendar {
    position: fixed;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 15px;
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* Fix jQuery UI Datepicker clipping on homepage
-------------------------------------- */
.top-banner-wrap.half-search .banner-caption-side-search {
  overflow: visible !important;
}

/* Ensure jQuery UI Datepicker has proper z-index */
.ui-datepicker {
  z-index: 99999 !important;
  position: absolute;
}

/* Hide Homey native mobile booking button
-------------------------------------- */
.overlay-booking-btn,
#trigger-overlay-booking-form,
#request_for_reservation_mobile,
.overlay-booking-module {
  display: none !important;
}

/* Reusable utility to prevent Elementor from clipping dropdowns
-------------------------------------- */
.allow-overflow,
.allow-overflow>.elementor-container,
.allow-overflow .elementor-column,
.allow-overflow .elementor-widget-wrap {
  overflow: visible !important;
}

/* ==========================================================================
   FontAwesome Icon Fixes
   Fix for missing arrow icons that appear as squares due to corrupted
   Unicode characters in parent theme's minified CSS (main.min.css)
   Added: 2026-01-05
   ========================================================================== */

/* Breadcrumb arrows */
.breadcrumb li:after {
  font-family: FontAwesome !important;
  content: "\f105" !important;
  padding: 0 10px 0 5px;
  font-size: 75%;
}

/* ==========================================================================
   Header & Logo Styling
   Breakpoints: Desktop ≥992px | Tablet 768-991px | Mobile <768px
   Aligned with Homey's Bootstrap 3 breakpoints
   ========================================================================== */

/* Desktop (≥992px): 65px with 8px vertical padding */
.header-comp-logo {
  padding: 8px 0 !important;
}

.header-comp-logo img {
  height: 65px !important;
  width: auto !important;
  max-width: none !important;
}

/* Hide desktop header elements on tablet/mobile to prevent double header */
/* Target only desktop nav, not the whole nav-area (which contains mobile header too) */
@media (max-width: 991px) {

  .header-nav.hidden-sm.hidden-xs,
  .header-comp-logo,
  .header-comp-nav {
    display: none !important;
  }

  /* Ensure mobile header AND navigation dropdown are always on top and clickable */
  .header-mobile-wrap,
  .mobile-nav-wrap,
  header.banner {
    position: relative;
    z-index: 1000000 !important;
  }

  /* Ensure hamburger menu button is always clickable */
  .btn-mobile-nav,
  .mobile-main-nav {
    position: relative;
    z-index: 1000001 !important;
    touch-action: manipulation;
    pointer-events: auto !important;
  }

  /* Fix: Mobile nav dropdown must be above hero/banner sections on initial load
     Before sticky header activates, the dropdown has z-index:auto and renders
     behind position:relative content. This creates a stacking context early.
     2026-01-14: Added background-color to fix transparent menu on production homepage. */
  #mobile-nav {
    position: relative;
    z-index: 1000000 !important;
    background-color: #fff !important;
  }
}

/* Tablet (768-991px): 50px with 5px vertical padding */
@media (max-width: 991px) {
  .mobile-logo {
    padding: 5px 0 !important;
  }

  .mobile-logo img {
    height: 50px !important;
    width: auto !important;
  }
}

/* Mobile (<768px): 26px, no padding */
@media (max-width: 767px) {
  .mobile-logo {
    padding: 0 !important;
  }

  .mobile-logo img {
    height: 26px !important;
    width: auto !important;
  }
}

/* ==========================================================================
   Footer Logo Styling
   ========================================================================== */

/* Desktop: Limit to reasonable size (original is 490px) */
.footer-widget img {
  height: auto !important;
  max-width: 350px !important;
}

/* Tablet: Reduce to 250px */
@media (max-width: 991px) {
  .footer-widget img {
    max-width: 250px !important;
  }
}

/* Mobile: Reduce to 200px max width */
@media (max-width: 767px) {
  .footer-widget img {
    max-width: 200px !important;
    height: auto !important;
  }
}

/* ==========================================================================
   Footer Padding & Spacing Compression
   Reduces excessive vertical spacing on mobile/tablet
   ========================================================================== */

/* Tablet: Reduce footer padding */
@media (max-width: 991px) {
  .footer-top-wrap {
    padding: 30px 0 20px !important;
  }

  .footer-widget {
    margin-bottom: 20px !important;
  }

  .footer-bottom-wrap {
    padding: 15px 0 !important;
  }
}

/* Mobile: Compress footer padding further */
@media (max-width: 767px) {
  .footer-top-wrap {
    padding: 20px 0 10px !important;
  }

  .footer-widget {
    margin-bottom: 15px !important;
  }

  .footer-widget .widget-title {
    margin-bottom: 10px !important;
  }

  .footer-bottom-wrap {
    padding: 10px 0 !important;
  }

  .footer-copyright {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }
}

/* ==========================================================================
   Sticky Booking Bar & Modal
   Mobile/Tablet only (hidden on desktop ≥992px)
   ========================================================================== */

/* Sticky Booking Bar - Fixed bottom on mobile/tablet */
@media (max-width: 991px) {
  .sticky-booking-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #e0e0e0;
    transition: transform 0.3s ease-out;
  }

  .sticky-bar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 9997;
    display: none;
  }

  .sticky-bar-backdrop.active {
    display: block;
  }

  .sticky-booking-bar.hidden {
    transform: translateY(100%);
  }

  .sticky-bar-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .sticky-bar-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  .sticky-bar-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
  }

  .sticky-bar-cta {
    background: #ffbb09;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 187, 9, 0.3);
    transition: all 0.2s;
  }

  .sticky-bar-cta:active {
    transform: translateY(1px);
  }

  /* Booking Modal Overlay */
  .booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: none;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease-out;
  }

  .booking-modal-overlay.active {
    display: flex;
    opacity: 1;
  }

  .booking-modal-content {
    background: #ffffff;
    width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
  }

  .booking-modal-overlay.active .booking-modal-content {
    transform: translateY(0);
  }

  .booking-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 10;
  }

  .booking-modal-drag-handle {
    width: 40px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
  }

  .booking-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-top: 8px;
  }

  .booking-modal-close {
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: #666;
    line-height: 1;
    padding: 0;
    transition: background 0.2s;
  }

  .booking-modal-close:hover {
    background: #e0e0e0;
  }

  .booking-modal-body {
    padding: 0 20px 20px 20px;
  }

  /* Prevent body scroll when modal is open */
  body.booking-modal-open {
    overflow: hidden;
  }

  /* Hide sidebar booking widget on mobile/tablet (sticky bar replaces it) */
  /* Scoped to sidebar context - widget shown when moved to sticky bar */
  .sidebar .book-widget.book-widget-holder {
    display: none !important;
  }

  /* Ensure widget is visible when inside sticky bar */
  .sticky-booking-bar .book-widget.book-widget-holder {
    display: block !important;
  }

  /* Expandable Sticky Bar States */
  .sticky-booking-bar {
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    max-height: 72px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  }

  .sticky-booking-bar.expanded {
    max-height: 85vh;
    padding-bottom: 16px;
    overflow: visible;
    /* Allow date picker to popup outside */
  }

  .sticky-bar-collapsed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    gap: 12px;
  }

  .sticky-bar-expanded {
    display: none;
    width: 100%;
    padding: 0 16px;
  }

  .sticky-booking-bar.expanded .sticky-bar-collapsed {
    border-bottom: 1px solid #e0e0e0;
  }

  .sticky-booking-bar.expanded .sticky-bar-expanded {
    display: block;
  }

  /* Hide custom CTA when expanded (use widget's button instead) */
  .sticky-booking-bar.expanded .sticky-bar-cta {
    display: none;
  }

  /* Style Beds24 Native Button to match theme */
  .sticky-booking-bar .b24-submit,
  .sticky-booking-bar .booking-widget-submit,
  .sticky-booking-bar input[type="submit"],
  .sticky-booking-bar .book-btn {
    background-color: #ffbb09 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    width: 100% !important;
    cursor: pointer !important;
    margin-top: 10px !important;
    text-transform: none !important;
    box-shadow: 0 2px 8px rgba(255, 187, 9, 0.3) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
  }

  .sticky-bar-expanded .booking-widget-container {
    padding: 16px 0;
    max-height: 60vh;
    overflow-y: visible;
    /* Allow overflow for date pickers */
    /* If widget has its own scroll, we might need a different approach,
       but for date pickers to pop out, we generally need visible overflow.
       If the form is long, we might need page scroll instead of inner scroll. */
  }

  /* Date inputs within expanded bar */
  .sticky-bar-date-inputs {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
  }

  .sticky-bar-date-group {
    flex: 1;
  }

  .sticky-bar-date-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
  }

  .sticky-bar-date-value {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    padding: 10px 12px;
    background: #f5f5f5;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #e0e0e0;
  }

  .sticky-bar-date-value:active {
    background: #eee;
  }

  /* CTA button states */
  .sticky-bar-cta.book-ready {
    background: #f5a623;
    box-shadow: 0 2px 8px rgba(245, 166, 35, 0.3);
  }
}

/* Desktop: Hide sticky bar and modal (sidebar layout is used) */
@media (min-width: 992px) {

  .sticky-booking-bar,
  .booking-modal-overlay {
    display: none !important;
  }
}

/* ==========================================================================
   Availability Calendar - Mobile Optimization
   Hide second month on mobile to save space, keep navigation functional
   ========================================================================== */

/* 2026-01-09: Removed CSS hiding hack.
   We now use JS to set numberOfMonths: 1 on mobile, which fixes the navigation bug.
*/

/* ==========================================================================
   Accommodations Page - Map Height Fix
   ========================================================================== */
/* Limit map height on mobile so users see property listings below */
@media (max-width: 991px) {
  .page-template-template-half-map .half-map-right-wrap {
    height: 50vh !important;
    min-height: 400px !important;
    max-height: 500px !important;
  }
}

/* ==========================================================================
   Contact Form 7 Styling
   Custom colors for success/sent messages (Green)
   ========================================================================== */
.wpcf7 form.sent .wpcf7-response-output {
  border-color: #46b450 !important;
  /* Standard green border */
  background-color: #e8f7e9 !important;
  /* Light green background */
  color: #2e7d32 !important;
  /* Darker green text */
  border-radius: 4px;
  font-weight: 500;
  padding: 15px !important;
  /* Ensure consistent spacing */
}

/* Optional: Error styling (Red) just in case */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  border-color: #dc3232 !important;
  background-color: #fbeaea !important;
  color: #a00 !important;
}