/* HCH listing mobile redesign (hch-listing-mobile v1.0.0)
   Presentation only. Never changes booking/checkout/Stripe/quote/calendar
   wiring: no IDs renamed, no inputs moved out of #booking_form_request,
   no handlers replaced. Kill switch: see mu-plugin header.
   Brand: navy #0f2f4d / blue #1a5a96 (same tokens as listing v2). One font
   (the theme Open Sans), no script fonts, no violet link colour. */
body.hchlm2-on{
  --l2-navy:#0f2f4d;--l2-blue:#1a5a96;--l2-blue-d:#134a7d;--l2-ink:#1d2733;
  --l2-muted:#4d5567;--l2-line:#dfe4ea;--l2-soft:#f4f6f9;--l2-soft2:#eef3f8;
  --l2-ok:#2f6b3a;--l2-okbg:#ecf6ee;--l2-r:16px;--l2-shadow:0 10px 30px rgba(15,47,77,.10);
}

/* ---------- shared: benefit rows (replace lime + mint promo boxes) ---------- */
.hchlm2-old{display:none!important}
.hchlm2-benefits{list-style:none;margin:0 0 14px;padding:12px 14px;background:var(--l2-okbg);border:1px solid #cfe6d4;border-radius:14px;display:grid;gap:8px}
.hchlm2-benefits li{display:flex;align-items:flex-start;gap:10px;margin:0;padding:0;font-size:14.5px;line-height:1.4;color:var(--l2-ink);font-weight:600;font-family:inherit}
.hchlm2-benefits li small{display:block;font-weight:400;color:var(--l2-muted);font-size:13px}
.hchlm2-ic{flex:0 0 22px;width:22px;height:22px;border-radius:50%;background:#fff;color:var(--l2-ok);display:inline-flex;align-items:center;justify-content:center;box-shadow:0 0 0 1px #cfe6d4}
.hchlm2-ic svg{width:14px;height:14px}

/* phone link: brand navy, number text unchanged */
body.hchlm2-on .hch_contact_phone{float:none;width:auto;padding:0;margin:10px 0 0;text-align:center}
body.hchlm2-on .hch_contact_phone p{margin:0;font-size:14px;color:var(--l2-muted)}
body.hchlm2-on .hch_contact_phone a{color:var(--l2-navy)!important;font-weight:700;text-decoration:none;border-bottom:1px solid rgba(15,47,77,.25)}
body.hchlm2-on .hch_contact_phone a:hover{border-bottom-color:var(--l2-navy)}
body.hchlm2-on .hch_contact_phone .fa-phone{color:var(--l2-blue)}
.hchlm2-qlabel{display:block;font-size:12.5px;color:var(--l2-muted);font-weight:600;letter-spacing:.02em;margin-bottom:2px}

/* ======================= classic template (community pages) ======================= */
body.hchlm2-classic{font-family:"Open Sans",system-ui,-apple-system,"Segoe UI",sans-serif}
body.hchlm2-classic .listing-content{display:flex;flex-direction:column}
body.hchlm2-classic .listing-content>*{order:20}
body.hchlm2-classic .listing-content>h1.entry-title{order:1}
body.hchlm2-classic .listing-content>.listing_main_image_location{order:2}
body.hchlm2-classic .listing-content>.panel-wrapper.imagebody_wrapper{order:3}
body.hchlm2-classic .listing-content>.hchlm2-details{order:4}
body.hchlm2-classic .listing-content>.booking_form_mobile{order:5}
body.hchlm2-classic .listing-content>#listing_description{order:6}
body.hchlm2-classic .listing-content>#view_more_desc{order:7}
body.hchlm2-classic .listing-content>.features_wrapper{order:8}
body.hchlm2-classic .listing-content>.hchgtk-wrap{order:9}
body.hchlm2-classic .listing-content>.panel-wrapper:not(.features_wrapper):not(.imagebody_wrapper){order:10}

/* title + location */
body.hchlm2-classic h1.entry-title.entry-prop{font-family:inherit!important;font-size:26px!important;line-height:1.25!important;font-weight:700!important;color:var(--l2-navy)!important;margin:18px 0 6px!important;letter-spacing:-.01em}
body.hchlm2-classic .listing-content>.listing_main_image_location{font-size:14px;color:var(--l2-muted);margin:0 0 14px}
body.hchlm2-classic .listing-content>.listing_main_image_location a{color:var(--l2-muted)!important}
body.hchlm2-classic .imagebody_wrapper{border-radius:var(--l2-r);overflow:hidden;margin:0 0 16px}

/* ---------- apartment details block ---------- */
.hchlm2-details{background:#fff;border:1px solid var(--l2-line);border-radius:var(--l2-r);box-shadow:var(--l2-shadow);padding:18px 16px 16px;margin:0 0 18px}
.hchlm2-details h2{font-family:inherit!important;font-size:19px!important;line-height:1.3;font-weight:700!important;color:var(--l2-navy)!important;margin:0 0 12px!important}
.hchlm2-facts{list-style:none;margin:0 0 14px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.hchlm2-facts li{display:flex;align-items:center;gap:10px;margin:0;padding:10px 12px;background:var(--l2-soft);border-radius:12px;font-size:14.5px;font-weight:700;color:var(--l2-ink);min-height:44px}
.hchlm2-facts li span{font-weight:400;color:var(--l2-muted);font-size:12.5px;display:block}
.hchlm2-facts svg,.hchlm2-incl svg{flex:0 0 20px;width:20px;height:20px;color:var(--l2-blue)}
.hchlm2-sub{font-size:13px!important;font-weight:700!important;letter-spacing:.04em;text-transform:uppercase;color:var(--l2-muted)!important;margin:4px 0 8px!important}
.hchlm2-incl{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.hchlm2-incl li{display:inline-flex;align-items:center;gap:7px;margin:0;padding:8px 12px;border:1px solid var(--l2-line);border-radius:999px;font-size:13.5px;color:var(--l2-ink);background:#fff;line-height:1.2}
.hchlm2-incl svg{width:16px;height:16px;flex-basis:16px}
.hchlm2-more{display:inline-block;margin-top:12px;font-size:14px;font-weight:700;color:var(--l2-blue)!important;text-decoration:none}

/* ---------- one booking card ---------- */
body.hchlm2-classic .booking_form_mobile{background:#fff;border:1px solid var(--l2-line);border-radius:20px;box-shadow:var(--l2-shadow);padding:18px 16px 16px;margin:0 0 22px;scroll-margin-top:80px}
body.hchlm2-classic .booking_form_mobile #listing_main_image_price_id{background:transparent!important;border-radius:0!important;margin:0 0 10px!important;padding:0!important;color:var(--l2-navy)!important;box-shadow:none!important;width:auto!important;height:auto!important;text-align:left!important}
body.hchlm2-classic .booking_form_mobile #listing_main_image_price_id>div{padding:0!important;font-size:21px!important;font-weight:700!important;color:var(--l2-navy)!important;line-height:1.3}
body.hchlm2-classic .booking_form_mobile #listing_main_image_price_id *{color:var(--l2-navy)}
.hchlm2-cardsub{margin:-4px 0 12px;font-size:13.5px;color:var(--l2-muted)}
body.hchlm2-classic #booking_form_request{padding:0!important;margin:0!important;background:transparent!important;width:auto!important;max-width:none!important}
body.hchlm2-classic #booking_form_request .hchbe-card{border-radius:14px}
body.hchlm2-classic #booking_form_request>.hchlm2-err{padding:0!important}
body.hchlm2-classic #booking_form_request .booking_form_textarea_inst{font-size:13.5px!important;font-weight:400!important;color:var(--l2-muted)!important;line-height:1.45;margin:14px 0 6px!important;padding:0!important}
body.hchlm2-classic #booking_form_request .booking_form_textarea{width:100%!important;min-height:84px!important;height:84px;border:1px solid var(--l2-line)!important;border-radius:12px!important;padding:10px 12px!important;font-size:16px!important;font-family:inherit!important;box-shadow:none!important;resize:vertical}
body.hchlm2-classic #booking_form_request .booking_form_textarea:focus{border-color:var(--l2-blue)!important;outline:3px solid rgba(26,90,150,.18)}
body.hchlm2-classic #submit_booking_front{display:block!important;width:100%!important;height:auto!important;min-height:52px;margin:14px 0 6px!important;padding:14px 16px!important;border:0!important;border-radius:14px!important;background:var(--l2-blue)!important;color:#fff!important;font-size:17px!important;font-weight:800!important;letter-spacing:.01em;box-shadow:0 6px 16px rgba(26,90,150,.25)!important;text-shadow:none!important;cursor:pointer;font-family:inherit!important}
body.hchlm2-classic #submit_booking_front:hover{background:var(--l2-blue-d)!important}
body.hchlm2-classic #submit_booking_front:focus-visible{outline:3px solid var(--l2-navy);outline-offset:2px}
body.hchlm2-classic .hchlm2-nocharge{font-size:13px!important;color:var(--l2-muted);text-align:center;margin:0 0 4px}
body.hchlm2-classic .hchlm2-nocharge svg{width:13px;height:13px;vertical-align:-2px;margin-right:4px;color:var(--l2-ok)}

/* Request Quotes (classic #contact_host; same look as hch-quote-btn) and the
   ~150px leftover gap (empty .third-form-wrapper / .prop_social). The
   wrapper keeps #contact_host and the hidden #get_quote_form_back overlay. */
body.hchlm2-classic #booking_form_request .submit_booking_front_wrapper{height:auto!important;margin:10px 0 0!important;padding:0!important;float:none!important;width:100%!important}
body.hchlm2-classic #booking_form_request .third-form-wrapper,
body.hchlm2-classic #booking_form_request .prop_social{display:none!important}
body.hchlm2-classic #booking_form_request #contact_host{display:block!important;width:100%!important;box-sizing:border-box;margin:0!important;padding:12px 16px!important;min-height:48px;text-align:center;background:#fff!important;border:1.5px solid var(--l2-navy)!important;color:var(--l2-navy)!important;border-radius:14px!important;font-weight:700!important;font-size:15px!important;line-height:1.4!important;cursor:pointer;box-shadow:none!important;float:none!important;height:auto!important}
body.hchlm2-classic #booking_form_request #contact_host:hover{background:var(--l2-soft2)!important}

/* ---------- bottom half ---------- */
body.hchlm2-classic .listing-content>#listing_description,
body.hchlm2-classic .listing-content>.panel-wrapper:not(.imagebody_wrapper),
body.hchlm2-classic .listing-content>.hchgtk-wrap{background:#fff;border:1px solid var(--l2-line);border-radius:var(--l2-r);padding:16px!important;margin:0 0 14px!important;box-shadow:none}
body.hchlm2-classic .listing-content>#view_more_desc{margin:-8px 0 14px;padding:0 16px}
body.hchlm2-classic .listing-content>#view_more_desc,body.hchlm2-classic .listing-content>#view_more_desc *{color:var(--l2-blue)!important;font-weight:700}
body.hchlm2-classic #listing_description .panel-title-description,
body.hchlm2-classic .listing-content>.panel-wrapper>.panel-title,
body.hchlm2-classic .hchgtk-wrap>h3,
body.hchlm2-classic .property_page_container>.panel-title{font-family:inherit!important;font-size:19px!important;font-weight:700!important;color:var(--l2-navy)!important;margin:0 0 10px!important;text-transform:none!important;letter-spacing:0!important}
body.hchlm2-classic .listing-content>.panel-wrapper>.panel-title .fa,
body.hchlm2-classic .listing-content>.panel-wrapper>.panel-title .fas,
body.hchlm2-classic .listing-content>.panel-wrapper>.panel-title .panel-title-arrow{display:none!important}
body.hchlm2-classic #listing_description .panel-body{font-size:15px;line-height:1.6;color:var(--l2-ink);padding:0!important}
body.hchlm2-classic .listing-content .panel-body.panel-body-border{border:0!important;padding:0!important}
body.hchlm2-classic .listing-content .listing_detail{font-size:14.5px;color:var(--l2-ink);padding:6px 0!important}
body.hchlm2-classic .listing-content .listing_detail .item_head{color:var(--l2-muted);font-weight:600}
body.hchlm2-classic .features_wrapper .panel-body{display:flex;flex-wrap:wrap;align-items:flex-start}
body.hchlm2-classic .features_wrapper .panel-body>:not(.listing_detail):not(.hchlm2-showall){display:none}
body.hchlm2-classic .features_wrapper .panel-body::before,body.hchlm2-classic .features_wrapper .panel-body::after{display:none!important;content:none!important}
body.hchlm2-classic .features_wrapper .listing_detail{width:50%!important;float:none!important;display:flex;align-items:flex-start;gap:8px;padding:6px 8px 6px 0!important;box-sizing:border-box;line-height:1.35}
body.hchlm2-classic .features_wrapper .listing_detail .checkon{margin:2px 0 0!important;position:static!important}
body.hchlm2-classic .features_wrapper .listing_detail .checkon{color:var(--l2-ok)!important}
body.hchlm2-classic .features_wrapper.hchlm2-fold .listing_detail:nth-child(n+13){display:none}
.hchlm2-showall{margin-top:10px;background:#fff;border:1.5px solid var(--l2-navy);color:var(--l2-navy);border-radius:12px;padding:10px 16px;font-weight:700;font-size:14px;cursor:pointer;min-height:44px;font-family:inherit}
body.hchlm2-classic .hchgtk-wrap a,body.hchlm2-classic #listing_description a{color:var(--l2-blue)!important}
body.hchlm2-classic .hchgtk-wrap details>summary{min-height:44px;display:flex;align-items:center}
body.hchlm2-classic .property_page_container.google_map_type1{margin:0 0 18px;border-radius:var(--l2-r);overflow:hidden}
body.hchlm2-classic .google_map_on_list_wrapper{border-radius:var(--l2-r);overflow:hidden}
.hchlm2-hide{display:none!important}
body.hchlm2-classic.hchlm2-sb-empty #primary.listingsidebar2{min-height:0!important;height:auto!important;padding:0!important;margin:0!important}

/* more apartments (Vantage first) */
.hchlm2-more-apts{margin:8px 0 22px}
.hchlm2-more-apts h2{font-family:inherit!important;font-size:21px!important;font-weight:700!important;color:var(--l2-navy)!important;margin:0 0 4px!important}
.hchlm2-more-apts>p{margin:0 0 12px;color:var(--l2-muted);font-size:14px}
.hchlm2-apt-row{display:grid;grid-auto-flow:column;grid-auto-columns:78%;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 2px 10px;-webkit-overflow-scrolling:touch}
.hchlm2-apt{scroll-snap-align:start;background:#fff;border:1px solid var(--l2-line);border-radius:var(--l2-r);overflow:hidden;display:flex;flex-direction:column;text-decoration:none!important;color:var(--l2-ink)!important}
.hchlm2-apt img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;background:var(--l2-soft)}
.hchlm2-apt .b{padding:12px 14px 14px;display:flex;flex-direction:column;gap:3px;flex:1}
.hchlm2-apt .a{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--l2-blue)}
.hchlm2-apt .t{font-size:16.5px;font-weight:700;color:var(--l2-navy)}
.hchlm2-apt .m{font-size:13.5px;color:var(--l2-muted)}
.hchlm2-apt .c{margin-top:auto;padding-top:8px;font-size:14px;font-weight:700;color:var(--l2-blue)}
.hchlm2-apt .tag{display:inline-block;align-self:flex-start;font-size:11.5px;font-weight:700;color:var(--l2-ok);background:var(--l2-okbg);border-radius:999px;padding:3px 9px;margin-bottom:2px}

/* help strip */
.hchlm2-help{display:flex;flex-direction:column;gap:10px;background:var(--l2-navy);color:#fff;border-radius:var(--l2-r);padding:18px 16px;margin:0 0 22px}
.hchlm2-help strong{font-size:17px}
.hchlm2-help p{margin:0;color:#d6e2ee;font-size:14px;line-height:1.45}
.hchlm2-help .row{display:flex;gap:10px;flex-wrap:wrap}
.hchlm2-help a,.hchlm2-help button{flex:1 1 140px;min-height:46px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;font-weight:700;font-size:15px;text-decoration:none!important;cursor:pointer;font-family:inherit}
.hchlm2-help a{background:#fff;color:var(--l2-navy)!important;border:0}
.hchlm2-help button{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.7)}

/* sticky bottom bar (scroll only; does not submit anything) */
.hchlm2-bar{position:fixed;left:0;right:0;bottom:0;z-index:999;display:none;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--l2-line);box-shadow:0 -6px 18px rgba(15,47,77,.08)}
.hchlm2-bar .t{font-size:14.5px;font-weight:700;color:var(--l2-navy);line-height:1.25}
.hchlm2-bar .t small{display:block;font-weight:400;color:var(--l2-muted);font-size:12.5px}
.hchlm2-bar button{min-height:46px;padding:0 20px;border:0;border-radius:12px;background:var(--l2-blue);color:#fff;font-weight:800;font-size:15px;font-family:inherit;cursor:pointer}
@media (max-width:991px){
  body.hchlm2-classic .hchlm2-bar.on{display:flex}
  body.hchlm2-classic.hchlm2-bar-pad{padding-bottom:76px}
}

/* ---------- desktop: two columns, booking card on the right ---------- */
@media (min-width:992px){
  body.hchlm2-classic.hchlm2-sb-empty .content-fixed-listing>.col-md-8{width:100%!important;max-width:1180px;float:none;margin:0 auto}
  body.hchlm2-classic.hchlm2-sb-empty #primary.listingsidebar2{display:none!important}
  body.hchlm2-classic.hchlm2-sb-empty .listing-content{display:grid;grid-template-columns:minmax(0,1fr) 380px;column-gap:36px;align-items:start}
  body.hchlm2-classic.hchlm2-sb-empty .listing-content>*{grid-column:1}
  body.hchlm2-classic.hchlm2-sb-empty .listing-content>.booking_form_mobile{grid-column:2;grid-row:1/span 40;margin-top:18px}
  body.hchlm2-classic.hchlm2-sb-empty .property_page_container,
  body.hchlm2-classic.hchlm2-sb-empty .hchlm2-more-apts,
  body.hchlm2-classic.hchlm2-sb-empty .hchlm2-help{max-width:calc(100% - 416px)}
  body.hchlm2-classic h1.entry-title.entry-prop{font-size:32px!important}
  .hchlm2-facts{grid-template-columns:repeat(4,minmax(0,1fr))}
  .hchlm2-apt-row{grid-auto-flow:row;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-columns:auto;overflow:visible}
  .hchlm2-help{flex-direction:row;align-items:center;justify-content:space-between}
  .hchlm2-help .row{flex:0 0 auto}
}
@media (min-width:992px) and (min-height:860px){
  body.hchlm2-classic.hchlm2-sb-empty .listing-content>.booking_form_mobile{position:sticky;top:84px}
}

/* ======================= listing v2 (light touch) ======================= */
body.hchlm2-on.hchx-v2 .hchx-book>.hchlm2-benefits{order:2}
body.hchlm2-on.hchx-v2 .hchx-book>.hchlm2-benefits{margin:0 0 14px!important}
