/*
 * custom-responsive.css
 * Additional responsive overrides loaded after bootstrap and theme media queries.
 */

/* ── Fullscreen map: move controls bar to bottom of screen ──────────────── */
#gmap-controls-wrapper.fullscreenon {
  top: auto;
  bottom: 20px;
  z-index: 99999;
}

/* ── Host self-booking disabled notice ──────────────────────────────────── */
.wprentals-self-booking-notice {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  border-radius: 4px;
  padding: 10px 14px;
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.5;
}

/* ── Mobile Calendar Pricing: Fix overlapping prices and currency codes ──────── */
.wprentals_front_calendar_price {
  font-size: 11px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  padding: 1px 2px;
  line-height: 1.2;
}

.booking-calendar-set table.booking-calendar td {
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .wprentals_front_calendar_price {
    font-size: 10px !important;
    padding: 1px;
  }
  
  .booking-calendar-set table.booking-calendar {
    font-size: 12px;
  }
  
  .booking-calendar-set table.booking-calendar td {
    padding: 4px 2px;
    height: auto;
    min-height: 35px;
  }
}

@media (max-width: 480px) {
  .wprentals_front_calendar_price {
    font-size: 9px !important;
    padding: 0.5px;
  }
  
  .booking-calendar-set table.booking-calendar {
    font-size: 11px;
  }
  
  .booking-calendar-set table.booking-calendar td {
    padding: 3px 1px;
    height: auto;
    min-height: 32px;
  }
}

/* ── Mobile Advanced Search: Fix field label/placeholder overlap ──────────── */
.adv-search-mobile .form-control,
.adv-search-mobile input.form-control,
.adv-search-mobile input.regular_input {
  width: 100% !important;
  padding: 8px 10px 8px 35px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  min-height: 38px;
  box-sizing: border-box;
}

.adv-search-mobile label,
.adv-search-mobile .control-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  word-wrap: break-word;
  overflow-wrap: break-word;
  clear: both;
}

.adv-search-mobile .form-group {
  margin-bottom: 14px;
  position: relative;
}

.adv-search-mobile i.icon,
.adv-search-mobile i[class*="icon-"],
.adv-search-mobile .fa {
  left: 8px;
  top: 32px;
  width: 18px;
  height: 18px;
  z-index: 2;
  color: #666;
  pointer-events: none;
}

@media (max-width: 600px) {
  .adv-search-mobile .form-control,
  .adv-search-mobile input.form-control,
  .adv-search-mobile input.regular_input {
    font-size: 14px !important;
    padding: 8px 10px 8px 36px !important;
    min-height: 36px;
    display: flex !important;
    align-items: center !important;
  }
  
  .adv-search-mobile i.icon,
  .adv-search-mobile i[class*="icon-"],
  .adv-search-mobile .fa   {
    left: 6px;
    top: 30px;
  }
  
  .adv-search-mobile .dropdown {
    width: 100% !important;
  }
  
  .adv-search-mobile .filter_menu_trigger {
    padding: 8px 10px 8px 8px !important;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 12px;
    }
}

/* ── Mobile Amenities: Responsive layout with auto-wrapping ──────────── */
.amenity-card {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px 8px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  background: #f9f9f9;
  font-size: 12px;
  min-height: 28px;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.amenity-icon,
.amenity-icon-svg {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.amenity-icon svg,
.amenity-icon-svg svg {
  max-width: 100%;
  max-height: 100%;
}

.amenity-name {
  flex: 1;
  min-width: 60px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.dashboard_amenities .amenity-card-wrapper {
  display: inline-block;
  width: calc(50% - 4px);
  margin: 2px;
  padding: 0;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .dashboard_amenities .amenity-card-wrapper {
    width: calc(50% - 3px);
    margin: 1.5px;
  }
  
  .amenity-card {
    padding: 5px 6px;
    font-size: 11px;
    min-height: 26px;
    gap: 4px;
  }
  
  
}

@media (max-width: 480px) {
  .dashboard_amenities .amenity-card-wrapper {
    width: calc(33.333% - 2.67px);
  }
  
  .amenity-card {
    padding: 4px 5px;
    font-size: 10px;
    min-height: 24px;
    gap: 3px;
  }
  
  
}
@media only screen and (max-width: 430px) {
    .listing_detail.col-md-3 {
        width: 50% !important;
        float: left !important;
        padding-left: 6px;
        padding-right: 6px;
        box-sizing: border-box;
    }

    .amenity-display-card {
        display: flex;
        align-items: center;
        padding: 8px 10px;
        min-height: 45px;
        height: auto !important;
    }

    .amenity-display-card .amenity-name {
        font-size: 11px !important;
        line-height: 1.2;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
        min-width: 0;
        flex: 1;
    }
}
/* ── Mobile Menu: Fix vertical scrolling ──────────────────────────────── */
.mobilewrapper,
.mobilewrapper-user {
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.snap-drawer {
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobilex-menu,
.mobile-menu-items {
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobilewrapper .snap-drawer .mobilemenu-close,
.mobilewrapper-user .snap-drawer .mobilemenu-close-user {
  position: sticky;
  top: 0;
  z-index: 10;
  background: white;
  padding: 10px 15px;
  border-bottom: 1px solid #e0e0e0;
}

/* ── Additional Mobile Responsive Fixes ──────────────────────────────── */

/* Fix dropdown height on mobile */
.dropdown .filter_menu_trigger {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-height: 36px;
  display: flex;
  align-items: center;
}

/* Mobile Advanced Search: Fix icon/field mixing and placeholder issues */
.adv-search-mobile .form-group {
  position: relative;
  margin-bottom: 14px;
}

.adv-search-mobile .form-group i,
.adv-search-mobile .form-group svg {
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  z-index: 2;
  color: #666;
}

.adv-search-mobile input[type="text"],
.adv-search-mobile input[type="email"],
.adv-search-mobile input[type="number"],
.adv-search-mobile input[type="date"],
.adv-search-mobile select {
  padding-left: 35px !important;
  font-size: 16px !important; /* Prevent zoom on iOS */
  padding: 10px 12px 10px 35px !important;
}

@media (max-width: 600px) {
  .adv-search-mobile .form-group i,
  .adv-search-mobile .form-group svg {
    width: 16px;
    height: 16px;
    left: 6px;
  }
  
  .adv-search-mobile input[type="text"],
  .adv-search-mobile input[type="email"],
  .adv-search-mobile input[type="number"],
  .adv-search-mobile input[type="date"],
  .adv-search-mobile select {
    font-size: 14px !important;
    padding: 8px 10px 8px 36px !important;
    min-height: 36px;
  }
}

/* Mobile calendar responsiveness */
@media (max-width: 480px) {
  .all-front-calendars {
    padding: 0 5px;
  }
  
  .booking-calendar-wrapper {
    margin-bottom: 15px;
  }
  
  .calendar-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 8px;
    margin-top: 10px;
    font-size: 11px;
  }
  
  .calendar-legend > div {
    flex: 0 1 auto;
  }
}

/* ── Mobile Calendar Price Formatting: Remove Currency, Use K/M Notation ── */
@media (max-width: 768px) {
  .wprentals_front_calendar_price {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px !important;
    padding: 2px 1px !important;
    height: auto;
    min-height: 16px;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  .wprentals_front_calendar_price {
    font-size: 9px !important;
    padding: 1px !important;
  }
  
  /* Hide PKR currency code on very small screens */
  .booking-calendar-set table.booking-calendar td {
    padding: 2px;
    font-size: 0.75rem;
  }
}

/* ── Hide Currency Symbols in Calendar on Mobile ──────────────────────── */
@media (max-width: 768px) {
  /* Hide "PKR" and other currency codes in calendar cells */
  .wprentals_front_calendar_price {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.05em;
  }
  
  /* Hide currency text in property detail calendars */
  .booking-calendar-wrapper .wprentals_front_calendar_price,
  .property_detail_page .wprentals_front_calendar_price {
    max-width: 100px;
  }
  
  /* Truncate price display to hide currency code */
  .wprentals_front_calendar_price::after {
    content: '';
  }
}

@media (max-width: 600px) {
  /* Further compress price display */
  .wprentals_front_calendar_price {
    overflow: hidden;
    text-overflow: clip;
    font-size: 10px !important;
  }
  
  /* Hide full currency codes - show only numbers */
  .booking-calendar-set .wprentals_front_calendar_price {
    display: block;
    text-indent: -0.3em;
  }
}

@media (max-width: 480px) {
  .wprentals_front_calendar_price {
    font-size: 9px !important;
    letter-spacing: -0.1em;
    display: flex;
    justify-content: center;
  }
  
  /* Property detail card calendar - hide currency */
  .property_unit_container .booking-calendar-wrapper .wprentals_front_calendar_price {
    font-size: 8px !important;
    padding: 0.5px !important;
  }
}

/* Calendar numeric: use abbreviated K/M everywhere in the availability block and hide full number */
.wprentals_front_avalability .wprentals_front_calendar_price .wprentals_calendar_num_short {
  display: inline !important;
}
.wprentals_front_avalability .wprentals_front_calendar_price .wprentals_calendar_num_full {
  display: none !important;
}

/* Hide currency text in availability calendars across devices */
.wprentals_front_avalability .wprentals_front_calendar_price .wprentals_calendar_currency,
.property_page_container.wprentals_front_avalability .wprentals_front_calendar_price .wprentals_calendar_currency,
.property_unit_container.wprentals_front_avalability .wprentals_front_calendar_price .wprentals_calendar_currency,
.wprentals_front_avalability .wprentals_front_calendar_price .wprentals_calendar_currency {
  display: none !important;
}
  /* Hide currency text inside availability calendars on mobile */
  .wprentals_front_avalability .wprentals_front_calendar_price .wprentals_calendar_currency,
  .property_page_container.wprentals_front_avalability .wprentals_front_calendar_price .wprentals_calendar_currency,
  .property_unit_container.wprentals_front_avalability .wprentals_front_calendar_price .wprentals_calendar_currency {
    display: none !important;
  }


/* ── Mobile Amenities: Restore original styling and fix text overflow ──────── */
.amenity-card {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px 8px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  background: #f9f9f9;
  font-size: 12px;
  min-height: 28px;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}


.dashboard_amenities .amenity-card-wrapper {
  display: inline-block;
  width: calc(50% - 4px);
  margin: 2px;
  padding: 0;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .dashboard_amenities .amenity-card-wrapper {
    width: calc(50% - 3px);
    margin: 1.5px;
  }
  
  .amenity-card {
    padding: 5px 6px;
    font-size: 11px;
    min-height: 26px;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .dashboard_amenities .amenity-card-wrapper {
    width: calc(33.333% - 2.67px);
  }
  
  .amenity-card {
    padding: 4px 5px;
    font-size: 10px;
    min-height: 24px;
    gap: 3px;
  }

}



