/*
Theme Name:  Listeo ChildTheme
Theme URI: http://listeo.pro
Author: Purethemes
Author URI: http://themeforest.net/user/purethemes
Description: Directory WordPress Theme by Purethemes
Version: 1.2
License: ThemeForest
License URI: http://themeforest.net/licenses/
/* Hero typewriter headline (2026-11-30). Thin white blinking caret after the
   rotating word, matching the listeo.pro demo. The rotating word stays white
   like the rest of the headline; the word itself is set by JS in functions.php.
   With JS off, the Elementor heading still reads "Find Nearby Apartments". */
.rentals401-typed-word {
  white-space: nowrap;
}
.rentals401-typewriter-caret {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  margin-left: 3px;
  background: #fff;
  vertical-align: -0.05em;
  animation: rentals401-caret-blink 1.06s step-end infinite;
}
@keyframes rentals401-caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Listing cards: remove the duplicated full location line (2026-11-30).
   Cards already show the address in the title (h3). The line below it — the
   span with the map-marker icon, e.g. "60, Maplewood Avenue, Cranston, ...
   United States" — is hidden on card layouts only (.listing-item, used by
   the homepage compact carousel and the /listings/ archive). The title,
   price pill and bd/ba/sq ft pills are not touched. Single listing pages
   do not use .listing-item, so their full address/location section stays. */

/* Hero typewriter headline (2026-11-30, live copy). Thin white blinking
   caret after the rotating word, matching the listeo.pro demo. */
.rentals401-typed-word {
  white-space: nowrap;
}
.rentals401-typewriter-caret {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  margin-left: 3px;
  background: #fff;
  vertical-align: -0.05em;
  animation: rentals401-caret-blink 1.06s step-end infinite;
}
@keyframes rentals401-caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Listing cards: remove the duplicated full location line (2026-11-30, live copy).
   Cards already show the address in the title (h3). The span with the
   map-marker icon below it is hidden on card layouts only (.listing-item,
   homepage compact carousel and /listings/ archive). Title, price pill and
   bd/ba/sq ft pills are not touched. Single listing pages do not use
   .listing-item, so their full address/location section stays. */

Text Domain: listeo
Domain Path: /languages/
Tags: light, responsive-layout, post-formats, theme-options, translation-ready, two-columns
Template: listeo
*/

/* Hide the single-listing sticky booking bar (2026-11-27).
   The bar is the fixed bottom strip on listing pages showing
   "Starting from <price>" and a blue "Book Now" link to
   #booking-widget-anchor. It is a div whose direct child div
/* MOBILE POLISH 2026-11-30 - mobile only (max-width 767px). Desktop unchanged. */
@media only screen and (max-width: 767px) {
  .home h1, .elementor-54 h1, .main-search-container h1 { font-size: 28px !important; line-height: 1.2 !important; white-space: normal !important; overflow-wrap: break-word !important; max-width: 100% !important; text-align: center !important; }
  .rentals401-typed-word { white-space: normal !important; overflow-wrap: break-word !important; display: inline !important; max-width: 100% !important; }
  .elementor-54 .elementor-element-98ac19e, .main-search-container { padding-top: 36px !important; padding-bottom: 30px !important; min-height: 0 !important; }
  .elementor-54 .elementor-element-98ac19e .elementor-column, .elementor-54 .elementor-element-98ac19e .elementor-widget-wrap, .elementor-54 .elementor-element-98ac19e .elementor-widget-container { width: 100% !important; max-width: 100% !important; }
  .main-search-input { display: block !important; background: #fff !important; border-radius: 14px !important; box-shadow: 0 10px 30px rgba(0,0,0,0.18) !important; overflow: hidden !important; padding: 0 !important; margin: 0 !important; width: 100% !important; max-width: 100% !important; }
  .main-search-input .main-search-input-item { display: block !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; background: #fff !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
  .main-search-input .main-search-input-item + .main-search-input-item { border-top: 1px solid #e5e7eb !important; }
  .main-search-input .main-search-input-item input, .main-search-input .main-search-input-item select { background: #fff !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; width: 100% !important; height: 52px !important; padding: 0 16px !important; }
  .main-search-input button { width: 100% !important; margin: 0 !important; border: 0 !important; border-radius: 0 0 14px 14px !important; box-shadow: none !important; height: 52px !important; display: block !important; }
  .main-search-input .button { width: 100% !important; margin: 0 !important; border: 0 !important; border-radius: 0 0 14px 14px !important; box-shadow: none !important; height: 52px !important; display: block !important; }
/* MOBILE POLISH 2 - ID specificity for search button, mobile only */
@media only screen and (max-width: 767px) {
  #wrapper .main-search-input button, #wrapper .main-search-input .button { width: 100% !important; border-radius: 0 0 14px 14px !important; margin: 0 !important; padding: 0 !important; }
  #wrapper .main-search-input { padding: 0 !important; }
}

}
/* 
   contains that link; the sticky top nav CTA (.listing-nav-cta,
   "Check Availability") and the green $X/mo price pill are
   separate elements and are not touched by this rule. Verified
/* MOBILE POLISH 4 - ID specificity for container/sibling button, mobile only */
@media only screen and (max-width: 767px) {
  #wrapper .main-search-container button, #wrapper .main-search-container .button, #wrapper .main-search-input + button, #wrapper form button.button { width: 100% !important; border-radius: 0 0 14px 14px !important; margin: 0 !important; padding: 0 !important; }
  #wrapper .main-search-container { padding: 0 !important; }
}

/* MOBILE POLISH 3 - button as sibling/container child, mobile only */
@media only screen and (max-width: 767px) {
  .main-search-container button, .main-search-container .button, .main-search-input + button, .main-search-input ~ button, form button.button { width: 100% !important; border-radius: 0 0 14px 14px !important; margin: 0 !important; padding: 0 !important; display: block !important; }
  .main-search-container, .main-search-container form { padding: 0 !important; margin: 0 !important; }
}
/* 
   in the Customizer mobile preview: this rule alone removes
   the whole bar while the price pill stays visible. */
div:has(> div > a[href="#booking-widget-anchor"]) {
  display: none !important;
}
/* Listing cards: hide any formatted address line left in cards (backstop, 2026-11-30).
   Card templates no longer print the_listing_address(). If a plugin update restores
   it, these rules hide it on every card style, including Slick clones. The
   :not([class]) guard matters: the bd/ba pills are classed spans right after the
   card <h3>, so a bare "h3 + span" rule would hide a pill. */
.listing-item .listing-item-content h3 + span:not([class]),
.listing-item .listing-item-content h3 > span,
.listing-item .listing-item-inner h3 + span:not([class]),
.listing-item .listing-item-inner h3 > span,
.listing-item .listing-address-nl {
    display: none !important;
}
/* probe */
/* Rentals401 header menu hover fix (2026-12-01). Legacy flip scripts in functions.php set menu link colors inline, which beats plain :hover rules. These !important rules own the state colors and the hover color (#006AFF) in both header states, so hover works at rest (white) and scrolled (dark). Desktop only; mobile menu untouched. */
@media (min-width:783px) {
/* ============================================================
   HEADER NAV PILLS (v1.2, 2026-12-04) -- single home for all
   header pill CSS. Replaces the Additional CSS header blocks
   (blanket neutralisation, homepage current-item block, v2 Local
   Deals block, duplicate hover rules), which are now removed.
   The colour-only hover blocks above stay and are compatible;
   this block adds the pill backgrounds.
   Behaviour: homepage at rest, Home (current item) wears the
   solid #006AFF pill, white text; other items plain (white on the
   transparent header, #333 on the scrolled white bar). Hover on
   ANY item = white text on a solid #006AFF pill, transparent or
   scrolled, before/after click, visited. On inner pages the
   current item wears the pill, white text -- so the Local Deals
   page's menu item is active natively, no anchor hacks.
   The pill is painted on the <a> and on its inner .lhb-mi-hit /
   span, so the word can never be white on a transparent
   background. The header is matched several equivalent ways
   (.lhb-nav, #navigation, nav[aria-label="Primary menu"],
   .lhb-frontend-header nav, #header-container nav) and the
   scrolled state both ways (body.rentals401-scrolled and
   .lhb-is-scrolled), because both spellings appear in this file.
   ============================================================ */

/* Pill shape on every header nav link and its inner span. */
#navigation a,
nav[aria-label="Primary menu"] a,
.lhb-frontend-header nav a,
#header-container nav a,
.lhb-nav > li > a,
#navigation a .lhb-mi-hit,
nav[aria-label="Primary menu"] a .lhb-mi-hit,
.lhb-nav > li > a .lhb-mi-hit {
  border-radius: 999px !important;
}

/* Homepage at rest, transparent header: plain items white, no pill. */
body.home .lhb-hp-header:not(.lhb-is-scrolled) .lhb-nav > li:not(.current-menu-item) > a,
body.home:not(.rentals401-scrolled) .lhb-frontend-header nav a,
body.home:not(.rentals401-scrolled) #header-container nav a,
body.home:not(.rentals401-scrolled) nav[aria-label="Primary menu"] a,
body.home:not(.rentals401-scrolled) #navigation a {
  color: #ffffff !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}
body.home .lhb-hp-header:not(.lhb-is-scrolled) .lhb-nav > li:not(.current-menu-item) > a .lhb-mi-hit,
body.home:not(.rentals401-scrolled) nav[aria-label="Primary menu"] a span,
body.home:not(.rentals401-scrolled) #navigation a span {
  color: #ffffff !important;
  background: transparent !important;
  background-color: transparent !important;
}

/* Homepage at rest, scrolled white bar: plain items #333, no pill. */
body.home .lhb-is-scrolled .lhb-nav > li:not(.current-menu-item) > a,
body.home .lhb-hp-header.lhb-is-scrolled .lhb-nav > li:not(.current-menu-item) > a,
body.home.rentals401-scrolled .lhb-frontend-header nav a,
body.home.rentals401-scrolled #header-container nav a,
body.home.rentals401-scrolled nav[aria-label="Primary menu"] a,
body.home.rentals401-scrolled #navigation a {
  color: #333333 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}
body.home .lhb-is-scrolled .lhb-nav > li:not(.current-menu-item) > a .lhb-mi-hit,
body.home.rentals401-scrolled nav[aria-label="Primary menu"] a span,
body.home.rentals401-scrolled #navigation a span {
  color: #333333 !important;
  background: transparent !important;
  background-color: transparent !important;
}

/* Current item = solid blue pill, white text (homepage Home at rest
   and inner pages, e.g. Local Deals on /local-deals/). These
   selectors mirror the colour-only blocks above, so on equal
   specificity this later block wins for the background. */
body.home .lhb-hp-header:not(.lhb-is-scrolled) .lhb-nav > li.current-menu-item > a,
body.home .lhb-is-scrolled .lhb-nav > li.current-menu-item > a,
.lhb-frontend-header nav li.current-menu-item > a,
#header-container nav li.current-menu-item > a,
nav[aria-label="Primary menu"] li.current-menu-item > a,
#navigation li.current-menu-item > a,
.lhb-nav > li.current-menu-item > a,
.lhb-nav > li.current_page_item > a {
  color: #ffffff !important;
  background: #006AFF !important;
  background-color: #006AFF !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}
.lhb-nav > li.current-menu-item > a .lhb-mi-hit,
nav[aria-label="Primary menu"] li.current-menu-item > a span,
#navigation li.current-menu-item > a span {
  color: #ffffff !important;
  background: transparent !important;
  background-color: transparent !important;
}

/* HOVER on any item = white text on a solid blue pill, every state:
   transparent header, scrolled bar, before/after click, visited. */
body.home .lhb-hp-header:not(.lhb-is-scrolled) .lhb-nav > li:hover > a,
body.home .lhb-hp-header:not(.lhb-is-scrolled) .lhb-nav > li > a:hover,
body.home .lhb-hp-header:not(.lhb-is-scrolled) .lhb-nav > li.current-menu-item:hover > a,
body.home .lhb-is-scrolled .lhb-nav > li:hover > a,
body.home .lhb-is-scrolled .lhb-nav > li > a:hover,
body.home .lhb-is-scrolled .lhb-nav > li.current-menu-item:hover > a,
.lhb-frontend-header nav a:hover,
.lhb-frontend-header .lhb-hp-header nav a:hover,
#header-container nav a:hover,
nav[aria-label="Primary menu"] a:hover,
#navigation a:hover,
.lhb-nav > li:hover > a,
.lhb-nav > li > a:hover,
.lhb-nav > li > a:visited:hover {
  color: #ffffff !important;
  background: #006AFF !important;
  background-color: #006AFF !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}
.lhb-nav > li:hover > a .lhb-mi-hit,
.lhb-nav > li > a:hover .lhb-mi-hit,
.lhb-nav > li:hover > a span,
.lhb-nav > li > a:hover span,
nav[aria-label="Primary menu"] a:hover span,
#navigation a:hover span,
.lhb-frontend-header nav a:hover span {
  color: #ffffff !important;
  background: #006AFF !important;
  background-color: #006AFF !important;
  border-radius: 999px !important;
}

/* Visited links keep the plain-state colour (never a stray tint). */
body.home .lhb-hp-header:not(.lhb-is-scrolled) .lhb-nav > li:not(.current-menu-item) > a:visited {
  color: #ffffff !important;
}
body.home .lhb-is-scrolled .lhb-nav > li:not(.current-menu-item) > a:visited,
body.home.rentals401-scrolled .lhb-nav > li:not(.current-menu-item) > a:visited {
  color: #333333 !important;
}
.lhb-nav > li.current-menu-item > a:visited {
  color: #ffffff !important;
}

body.home .lhb-frontend-header nav a, body.transparent-header .lhb-frontend-header nav a, body.home #header-container nav a, body.home nav[aria-label="Primary menu"] a, body.home #navigation a { color:#ffffff !important; }
.lhb-frontend-header.lhb-is-scrolled nav a, body.rentals401-scrolled .lhb-frontend-header nav a, body.rentals401-scrolled #header-container nav a, body.rentals401-scrolled nav[aria-label="Primary menu"] a, body.rentals401-scrolled #navigation a { color:#333333 !important; }
body:not(.home) .lhb-frontend-header nav a, body:not(.home) #header-container nav a, body:not(.home) nav[aria-label="Primary menu"] a, body:not(.home) #navigation a { color:#333333 !important; }
.lhb-frontend-header nav a:hover, .lhb-frontend-header .lhb-stage header.lhb-hp-header nav a:hover, #header-container nav a:hover, nav[aria-label="Primary menu"] a:hover, #navigation a:hover { color:#ffffff !important; }
.lhb-frontend-header nav li.current-menu-item > a, #header-container nav li.current-menu-item > a, nav[aria-label="Primary menu"] li.current-menu-item > a, #navigation li.current-menu-item > a { color:#ffffff !important; }
}

/* Hover fix, part 2: the flip scripts also set inline colors on the spans inside menu links, so the link text must inherit the link color, including on hover. */
@media (min-width:783px) {
.lhb-frontend-header nav a span, #header-container nav a span, nav[aria-label="Primary menu"] a span, #navigation a span { color:inherit !important; }
.lhb-frontend-header nav a:hover span, #header-container nav a:hover span, nav[aria-label="Primary menu"] a:hover span, #navigation a:hover span, .lhb-frontend-header nav a:hover *, #navigation a:hover * { color:#ffffff !important; }
}

