/* =========================================================
   YARDWISE – Website styles
   Brand: Navy + Gold  |  Fonts: Marcellus (headings, see royal.css) + Manrope (body)
   ========================================================= */
:root {
  --yw-navy: #0A1630;
  --yw-navy-deep: #060E20;
  --yw-navy-soft: #13244A;
  --yw-gold: #D4A72C;
  --yw-gold-light: #F0C95A;
  --yw-gold-dark: #8A6A12;
  --yw-ivory: #F7F5F0;
  --yw-silver: #E6E7EB;
  --yw-text: #1A2236;
  --yw-muted: #4B556B;
  --yw-border: #E4E0D6;
  --yw-radius: 12px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { font-family: 'Manrope', system-ui, sans-serif; color: var(--yw-text); background: #fff; overflow-x: hidden; }
h1, h2, h3, h4, h5 { font-family: 'Manrope', sans-serif; }
a { color: var(--yw-gold-dark); }
img { max-width: 100%; }
.mw-100 { max-width: 100% !important; }

.yw-section { padding: 90px 0; }
.yw-section-alt { background: var(--yw-ivory); }
.yw-section-head { margin-bottom: 44px; max-width: 720px; }
.yw-section h2, .yw-section-head h2 { font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.5rem); color: var(--yw-navy); line-height: 1.2; }
.yw-eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--yw-gold); margin-bottom: 12px; }
.yw-eyebrow-dark { color: var(--yw-gold-dark); }
.yw-lead { font-size: 1.06rem; color: var(--yw-muted); line-height: 1.75; }
.yw-link { font-weight: 700; text-decoration: none; }
.yw-link:hover { text-decoration: underline; }
.yw-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn { font-weight: 700; border-radius: 8px; padding: .7rem 1.4rem; }
.btn-lg { padding: .85rem 1.7rem; font-size: 1rem; }
.yw-btn-gold { background: var(--yw-gold); color: var(--yw-navy); border: 2px solid var(--yw-gold); }
.yw-btn-gold:hover, .yw-btn-gold:focus-visible { background: var(--yw-gold-light); border-color: var(--yw-gold-light); color: var(--yw-navy); }
.yw-btn-navy { background: var(--yw-navy); color: #fff; border: 2px solid var(--yw-navy); }
.yw-btn-navy:hover, .yw-btn-navy:focus-visible { background: var(--yw-navy-soft); border-color: var(--yw-navy-soft); color: #fff; }
.yw-btn-outline { color: #fff; border: 2px solid rgba(255,255,255,.4); }
.yw-btn-outline:hover { color: var(--yw-navy); background: #fff; border-color: #fff; }
.yw-btn-wa { background: #1E8E4E; color: #fff; border: 2px solid #1E8E4E; }
.yw-btn-wa:hover { background: #17733F; border-color: #17733F; color: #fff; }
.btn:disabled { opacity: .7; }

/* ---------- Top bar & Navbar ---------- */
.yw-topbar { background: var(--yw-navy-deep); color: #AEB5C4; font-size: .82rem; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.yw-topbar a { color: #D7DBE4; text-decoration: none; }
.yw-topbar a:hover { color: var(--yw-gold-light); }

.yw-navbar { background: var(--yw-navy); min-height: 80px; transition: box-shadow .3s ease, min-height .3s ease; }
.yw-navbar.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.25); min-height: 68px; }
.yw-logo { height: 60px; width: auto; max-width: none; flex-shrink: 0; transition: height .3s ease; }
.yw-navbar .navbar-brand { flex-shrink: 0; }
.yw-navbar.scrolled .yw-logo { height: 50px; }
.yw-navbar .nav-link { color: #D7DBE4; font-weight: 600; font-size: .94rem; padding: .5rem .85rem !important; position: relative; }
.yw-navbar .nav-link:hover, .yw-navbar .nav-link.active { color: var(--yw-gold-light); }
.yw-navbar .nav-link::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: 2px; height: 2px; background: var(--yw-gold); transform: scaleX(0); transition: transform .25s ease; }
.yw-navbar .nav-link.active::after, .yw-navbar .nav-link:hover::after { transform: scaleX(1); }
.yw-nav-cta { margin-left: .75rem; }
.yw-toggler { border: 1px solid rgba(255,255,255,.3); width: 46px; height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; }
.yw-toggler:focus { box-shadow: 0 0 0 3px rgba(212,167,44,.5); }
.yw-toggler span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }
.yw-call-mobile { margin-left: auto; margin-right: 10px; width: 44px; height: 44px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--yw-gold); color: var(--yw-navy); }
.yw-offcanvas { background: var(--yw-navy-deep); color: #fff; }
.yw-logo-offcanvas { height: 54px; }
.yw-offcanvas-contact { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); }
.yw-offcanvas-contact p { color: #AEB5C4; font-size: .85rem; }
.yw-offcanvas-contact a { color: var(--yw-gold-light); font-weight: 700; font-size: 1.15rem; text-decoration: none; }

/* ---------- Hero & search ---------- */
.yw-hero {
  background:
    linear-gradient(rgba(6,14,32,.9), rgba(6,14,32,.94)),
    repeating-linear-gradient(90deg, rgba(212,167,44,.06) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(212,167,44,.06) 0 1px, transparent 1px 80px),
    var(--yw-navy);
  color: #fff; padding: 90px 0 80px;
}
/* Home page: background photo (changeable in Dashboard → Settings) with a dark overlay for readability */
.yw-hero.yw-hero-photo {
  position: relative; isolation: isolate;
  background-color: var(--yw-navy);
  background-image: var(--yw-hero-hd, none);
  background-size: cover; background-repeat: no-repeat;
  background-position: var(--yw-hero-pos, center);
}
.yw-hero.yw-hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 62% 55% at 50% 42%, rgba(6,14,32,.55), rgba(6,14,32,0) 72%),
    linear-gradient(180deg, rgba(6,14,32,.92) 0%, rgba(6,14,32,.62) 46%, rgba(6,14,32,.9) 100%);
  opacity: var(--yw-hero-shade, .68);
}
.yw-hero-photo .yw-hero-title, .yw-hero-photo .yw-hero-text, .yw-hero-photo .yw-eyebrow { text-shadow: 0 2px 22px rgba(0,0,0,.55); }
.yw-hero-photo .yw-hero-text { color: #D9DEE8; }
.yw-hero-photo .yw-search-tabs span { background: rgba(10,22,48,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.yw-hero-photo .yw-search-tabs input:checked + span { background: #fff; }
@media (max-width: 991.98px) {
  .yw-hero.yw-hero-photo { background-image: var(--yw-hero-md, var(--yw-hero-hd, none)); }
}
/* Phones: the search box covers the lower half, so the photo sits in the top part */
@media (max-width: 575.98px) {
  .yw-hero.yw-hero-photo { background-image: none; }
  .yw-hero.yw-hero-photo::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 66%; z-index: -2; pointer-events: none;
    background: var(--yw-hero-md, var(--yw-hero-hd, none)) var(--yw-hero-x, 50%) center / cover no-repeat;
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent);
    mask-image: linear-gradient(180deg, #000 62%, transparent);
  }
}
.yw-hero-title { font-weight: 800; font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.08; letter-spacing: -.02em; color: var(--yw-silver); margin-bottom: 1.1rem; }
.yw-hero-text { font-size: 1.12rem; line-height: 1.7; color: #C3C9D6; max-width: 680px; }
.yw-hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: .92rem; color: #D7DBE4; }
.yw-hero-points li { position: relative; padding-left: 20px; }
.yw-hero-points li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 2px; background: var(--yw-gold); }

.yw-search { max-width: 1040px; margin: 40px auto 0; }
.yw-search-tabs { display: flex; gap: 4px; padding-left: 12px; }
.yw-search-tabs label { margin: 0; }
.yw-search-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.yw-search-tabs span { display: inline-block; padding: 11px 22px; border-radius: 10px 10px 0 0; background: rgba(255,255,255,.1); color: #D7DBE4; font-weight: 700; cursor: pointer; font-size: .95rem; }
.yw-search-tabs input:checked + span { background: #fff; color: var(--yw-navy); }
.yw-search-tabs input:focus-visible + span { outline: 3px solid var(--yw-gold); }
.yw-search-row { background: #fff; border-radius: 14px; padding: 12px; display: flex; gap: 8px; align-items: stretch; box-shadow: 0 30px 70px rgba(0,0,0,.35); border-top: 3px solid var(--yw-gold); }
.yw-search-field { display: flex; flex-direction: column; padding: 6px 14px; border-right: 1px solid var(--yw-border); min-width: 170px; }
.yw-search-grow { flex: 1 1 auto; }
.yw-search-field label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--yw-muted); }
.yw-search-field input, .yw-search-field select { border: 0; padding: 4px 0; font-size: 1rem; font-weight: 600; color: var(--yw-text); background: transparent; outline: none; min-height: 34px; }
.yw-search-field:focus-within { background: #FBF8F0; border-radius: 8px; }
.yw-search-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 30px; font-size: 1.02rem; }

/* ---------- Category tiles ---------- */
.yw-cat { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 26px 22px; border: 1px solid var(--yw-border); border-radius: var(--yw-radius); background: #fff; text-decoration: none; color: var(--yw-text); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.yw-cat:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(10,22,48,.1); border-color: var(--yw-gold); color: var(--yw-text); }
.yw-cat strong { font-family: 'Manrope', sans-serif; font-size: 1.08rem; color: var(--yw-navy); margin-top: 8px; }
.yw-cat small { color: var(--yw-muted); }
.yw-cat em { font-style: normal; font-weight: 700; color: var(--yw-gold-dark); font-size: .88rem; margin-top: 6px; }
.yw-icon { width: 58px; height: 58px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--yw-navy); color: var(--yw-gold); }

/* ---------- Property card ---------- */
.yw-property { height: 100%; background: #fff; border-radius: var(--yw-radius); overflow: hidden; border: 1px solid var(--yw-border); transition: box-shadow .25s ease, transform .25s ease; display: flex; flex-direction: column; }
.yw-property:hover { box-shadow: 0 20px 44px rgba(10,22,48,.12); transform: translateY(-4px); }
.yw-property-img { position: relative; display: block; aspect-ratio: 16 / 11; background: #E3DFD6; overflow: hidden; }
.yw-property-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.yw-property:hover .yw-property-img img { transform: scale(1.05); }
.yw-badge { position: absolute; top: 14px; left: 14px; background: var(--yw-navy); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 11px; border-radius: 6px; }
.yw-badge-rent { background: #1E5E8E; }
.yw-badge-featured { left: auto; right: 14px; background: var(--yw-gold); color: var(--yw-navy); }
.yw-sold { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(6,14,32,.55); color: #fff; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.5rem; letter-spacing: .1em; text-transform: uppercase; }
.yw-property-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.yw-price { font-family: 'Manrope', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--yw-navy); margin-bottom: 4px; }
.yw-price small { font-size: .8rem; font-weight: 600; color: var(--yw-muted); }
.yw-property h3 { font-size: 1.04rem; font-weight: 700; margin-bottom: 6px; line-height: 1.35; }
.yw-property h3 a { color: var(--yw-text); text-decoration: none; }
.yw-property h3 a:hover { color: var(--yw-gold-dark); }
.yw-location { color: var(--yw-muted); font-size: .9rem; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.yw-specs { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 14px; margin-top: auto; border-top: 1px solid var(--yw-border); font-size: .86rem; color: var(--yw-muted); font-weight: 600; }
.yw-empty { text-align: center; padding: 56px 24px; background: var(--yw-ivory); border: 1px dashed #CFC8B8; border-radius: var(--yw-radius); color: var(--yw-muted); }

/* ---------- Localities ---------- */
.yw-areas { background: var(--yw-navy); color: #fff; padding: 90px 0; }
.yw-areas h2 { color: #fff; font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.2; }
.yw-areas p { color: #C3C9D6; font-size: 1.04rem; line-height: 1.7; }
.yw-chips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.yw-chips a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px; border: 1px solid #2A3B63; border-radius: 10px; color: #fff; text-decoration: none; font-weight: 600; transition: border-color .2s ease, background .2s ease; }
.yw-chips a:hover { border-color: var(--yw-gold); background: rgba(212,167,44,.08); color: #fff; }
.yw-chips small { color: #AEB5C4; font-weight: 500; white-space: nowrap; }

/* ---------- About / steps / values ---------- */
.yw-about-img { border-radius: 16px; box-shadow: 0 24px 60px rgba(10,22,48,.25); }
.yw-checklist { list-style: none; padding: 0; margin: 1.5rem 0; }
.yw-checklist li { position: relative; padding-left: 34px; margin-bottom: 14px; font-weight: 600; }
.yw-checklist li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--yw-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A1630' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat; }
.yw-steps li > span { display: block; font-family: 'Manrope', sans-serif; font-size: 2.5rem; font-weight: 800; color: var(--yw-gold-dark); line-height: 1; padding-top: 22px; border-top: 3px solid var(--yw-navy); margin-bottom: 14px; }
.yw-steps h3 { font-size: 1.1rem; font-weight: 700; color: var(--yw-navy); }
.yw-steps p { color: var(--yw-muted); line-height: 1.6; }
.yw-service { height: 100%; padding: 30px 26px; border: 1px solid var(--yw-border); border-radius: var(--yw-radius); background: #fff; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.yw-service:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(10,22,48,.1); border-color: var(--yw-gold); }
.yw-service .yw-icon { margin-bottom: 18px; }
.yw-service h3, .yw-service .h3 { font-size: 1.12rem; font-weight: 700; color: var(--yw-navy); }
.yw-service p { margin: 0; color: var(--yw-muted); line-height: 1.6; }
.yw-value { height: 100%; background: #fff; border-radius: var(--yw-radius); padding: 30px; border-top: 4px solid var(--yw-gold); box-shadow: 0 10px 30px rgba(10,22,48,.06); }
.yw-value h3 { font-size: 1.15rem; font-weight: 700; color: var(--yw-navy); }
.yw-value p { color: var(--yw-muted); margin: 0; line-height: 1.65; }
.yw-cta { background: var(--yw-navy-soft); color: #fff; padding: 60px 0; }
.yw-cta h2 { color: #fff; font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.yw-cta p { color: #C3C9D6; }
.yw-prose { max-width: 820px; }
.yw-prose h2 { font-size: 1.3rem; margin-top: 1.8rem; }
.yw-prose p { color: var(--yw-muted); line-height: 1.75; }

/* ---------- Inner page header ---------- */
.yw-page-head { background: var(--yw-navy); color: #fff; padding: 48px 0 44px; }
.yw-page-head h1 { color: #fff; font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.6rem); margin-bottom: 6px; }
.yw-page-head p { color: #C3C9D6; margin: 0; }
.breadcrumb { margin-bottom: 12px; font-size: .86rem; }
.breadcrumb-item a { color: #D7DBE4; text-decoration: none; }
.breadcrumb-item a:hover { color: var(--yw-gold-light); }
.breadcrumb-item.active { color: #AEB5C4; }
.breadcrumb-item + .breadcrumb-item::before { color: #6C7792; }

/* ---------- Listing page ---------- */
.yw-listing { padding: 40px 0 90px; background: var(--yw-ivory); }
.yw-filters { background: #fff !important; border-radius: var(--yw-radius); border: 1px solid var(--yw-border); }
.yw-filters .offcanvas-body { padding: 22px; }
.yw-seg { display: flex; border: 1px solid #CDD3DE; border-radius: 8px; overflow: hidden; }
.yw-seg label { flex: 1; margin: 0; }
.yw-seg input { position: absolute; opacity: 0; pointer-events: none; }
.yw-seg span { display: block; text-align: center; padding: 9px 4px; font-weight: 700; font-size: .88rem; cursor: pointer; border-right: 1px solid #CDD3DE; }
.yw-seg label:last-child span { border-right: 0; }
.yw-seg input:checked + span { background: var(--yw-navy); color: #fff; }
.yw-seg input:focus-visible + span { outline: 3px solid var(--yw-gold); outline-offset: -3px; }
.yw-results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--yw-border); border-radius: var(--yw-radius); padding: 12px 18px; margin-bottom: 22px; }
.yw-results-bar .form-select-sm { min-height: 38px; min-width: 190px; }
.yw-pagination .page-link { color: var(--yw-navy); font-weight: 700; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.yw-pagination .page-item.active .page-link { background: var(--yw-navy); border-color: var(--yw-navy); color: #fff; }

/* ---------- Property detail ---------- */
.yw-detail-head { background: var(--yw-navy); color: #fff; padding: 36px 0 34px; }
.yw-detail-head h1 { color: #fff; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.3rem); margin-bottom: 6px; }
.yw-detail-loc { color: #C3C9D6; margin: 0; }
.yw-detail-price { font-family: 'Manrope', sans-serif; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--yw-gold-light); margin: 0; }
.yw-detail-price small { font-size: .9rem; color: #C3C9D6; font-weight: 600; }
.yw-detail-rate { color: #C3C9D6; margin: 0; font-size: .92rem; }
.yw-pill { display: inline-block; background: var(--yw-gold); color: var(--yw-navy); font-weight: 700; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 30px; }
.yw-pill-light { background: rgba(255,255,255,.12); color: #fff; }
.yw-pill-sold { background: #B42318; color: #fff; }
.yw-detail { padding: 36px 0 90px; background: var(--yw-ivory); }
.yw-gallery { border-radius: var(--yw-radius); overflow: hidden; background: #000; position: relative; }
.yw-gallery .carousel-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.yw-gallery-count { position: absolute; right: 14px; bottom: 14px; background: rgba(0,0,0,.65); color: #fff; padding: 5px 12px; border-radius: 20px; font-size: .82rem; font-weight: 600; z-index: 3; }
.yw-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 12px 0 4px; }
.yw-thumbs button { flex: 0 0 110px; height: 76px; padding: 0; border: 3px solid transparent; border-radius: 8px; overflow: hidden; background: none; opacity: .7; }
.yw-thumbs button.active, .yw-thumbs button:hover { border-color: var(--yw-gold); opacity: 1; }
.yw-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.yw-box { background: #fff; border: 1px solid var(--yw-border); border-radius: var(--yw-radius); padding: 26px 28px; margin-top: 22px; }
.yw-box h2 { font-size: 1.25rem; font-weight: 700; color: var(--yw-navy); margin-bottom: 18px; }
.yw-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 24px; margin: 0; }
.yw-facts dt { font-size: .78rem; font-weight: 600; color: var(--yw-muted); text-transform: uppercase; letter-spacing: .06em; }
.yw-facts dd { margin: 2px 0 0; font-weight: 700; }
.yw-desc { color: var(--yw-muted); line-height: 1.8; }
.yw-amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.yw-amenities li { position: relative; padding-left: 28px; font-weight: 600; }
.yw-amenities li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--yw-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A1630' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; }
.yw-enquiry { position: sticky; top: 96px; background: #fff; border: 1px solid var(--yw-border); border-top: 4px solid var(--yw-gold); border-radius: var(--yw-radius); padding: 26px; box-shadow: 0 16px 40px rgba(10,22,48,.08); }
.yw-enquiry h2 { font-size: 1.2rem; font-weight: 700; color: var(--yw-navy); }
.yw-enquiry p { color: var(--yw-muted); font-size: .94rem; }
.yw-enquiry .col-md-6 { width: 100%; }
.yw-similar { margin-top: 56px; }
.yw-similar h2 { font-weight: 700; color: var(--yw-navy); margin-bottom: 24px; font-size: 1.6rem; }

/* ---------- Forms ---------- */
.form-label { font-size: .82rem; font-weight: 700; color: var(--yw-muted); margin-bottom: .35rem; }
.form-control, .form-select { min-height: 48px; border-color: #CDD3DE; border-radius: 8px; font-size: .95rem; }
textarea.form-control { min-height: auto; }
.form-control:focus, .form-select:focus { border-color: var(--yw-gold); box-shadow: 0 0 0 .2rem rgba(212,167,44,.25); }
.input-group-text { background: var(--yw-ivory); border-color: #CDD3DE; font-weight: 700; }
.yw-form-msg { margin-top: 12px; font-weight: 600; font-size: .95rem; }
.yw-form-msg.ok { color: #1E6B3A; }
.yw-form-msg.err { color: #B42318; }
.yw-consent { font-size: .76rem; color: var(--yw-muted); margin: 12px 0 0; text-align: center; }

/* ---------- Contact ---------- */
.yw-contact { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(10,22,48,.1); }
.yw-contact-info { background: var(--yw-navy); color: #fff; padding: 46px; }
.yw-contact-info h2 { color: #fff; font-weight: 700; font-size: 1.7rem; }
.yw-contact-info p { color: #C3C9D6; }
.yw-contact-info ul { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-direction: column; gap: 18px; }
.yw-contact-info small { display: block; color: #AEB5C4; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; }
.yw-contact-info a, .yw-contact-info span { color: #fff; font-weight: 700; text-decoration: none; }
.yw-contact-info a:hover { color: var(--yw-gold-light); }
.yw-contact-form { padding: 46px; }

/* ---------- Consultation modal ---------- */
.yw-modal { border: 0; border-radius: 16px; overflow: hidden; }
.yw-modal-head { background: var(--yw-navy); color: #fff; padding: 26px 28px 22px; position: relative; text-align: center; }
.yw-modal-head .btn-close { position: absolute; top: 16px; right: 16px; }
.yw-modal-logo { height: 64px; margin-bottom: 10px; }
.yw-modal-head h2 { color: #fff; font-size: 1.35rem; font-weight: 800; margin-bottom: 4px; }
.yw-modal-head p { color: #C3C9D6; margin: 0; font-size: .92rem; }

/* ---------- Footer & floating buttons ---------- */
.yw-footer { background: var(--yw-navy-deep); color: #AEB5C4; padding: 64px 0 26px; font-size: .94rem; }
.yw-footer-logo { height: 84px; margin-bottom: 14px; }
.yw-footer h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.yw-footer ul { list-style: none; padding: 0; margin: 0; }
.yw-footer li { margin-bottom: 10px; }
.yw-footer a { color: #AEB5C4; text-decoration: none; }
.yw-footer a:hover { color: var(--yw-gold-light); }
.yw-social { display: flex; flex-wrap: wrap; gap: 14px; }
.yw-social a { font-weight: 700; color: #D7DBE4; }
.yw-footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; }
.yw-wa, .yw-top { position: fixed; right: 20px; z-index: 1030; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.yw-wa { bottom: 84px; background: #1E8E4E; color: #fff; }
.yw-wa:hover { background: #17733F; color: #fff; }
.yw-top { bottom: 20px; background: var(--yw-gold); color: var(--yw-navy); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s ease; }
.yw-top.show { opacity: 1; visibility: visible; transform: none; }
.yw-top:hover { color: var(--yw-navy); background: var(--yw-gold-light); }

/* =========================================================
   MEDIA QUERIES
   ========================================================= */
@media (max-width: 1199.98px) {
  .yw-navbar .nav-link { padding: .5rem .6rem !important; font-size: .9rem; }
  .yw-navbar .nav-link::after { left: .6rem; right: .6rem; }
  .yw-nav-cta { margin-left: .4rem; }
  .yw-nav-cta .btn { padding: .6rem 1rem; }
  .yw-facts, .yw-amenities { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991.98px) {
  .yw-navbar { min-height: 70px; }
  .yw-logo { height: 54px; }
  .yw-navbar.scrolled .yw-logo { height: 50px; }
  .yw-offcanvas { max-width: 320px; }
  .yw-offcanvas .nav-link { font-size: 1.08rem; padding: .8rem 0 !important; border-bottom: 1px solid rgba(255,255,255,.08); }
  .yw-offcanvas .nav-link::after { display: none; }
  .yw-nav-cta { margin: 1.5rem 0 0; }
  .yw-nav-cta .btn { width: 100%; }
  .yw-section, .yw-areas { padding: 70px 0; }
  .yw-hero { padding: 64px 0 60px; }
  .yw-search-row { flex-wrap: wrap; }
  .yw-search-field { flex: 1 1 45%; border-right: 0; border-bottom: 1px solid var(--yw-border); }
  .yw-search-grow { flex-basis: 100%; }
  .yw-search-btn { flex: 1 1 100%; min-height: 52px; }
  .yw-filters.offcanvas-lg { border-radius: 0; }
  .yw-enquiry { position: static; }
  .yw-contact-info, .yw-contact-form { padding: 34px; }
}

@media (max-width: 767.98px) {
  .yw-section, .yw-areas { padding: 56px 0; }
  .yw-section-head { margin-bottom: 30px; }
  .yw-hero-text { font-size: 1rem; }
  .yw-search-tabs { padding-left: 0; overflow-x: auto; }
  .yw-search-tabs span { padding: 10px 16px; font-size: .9rem; }
  .yw-search-field { flex-basis: 100%; }
  .yw-box { padding: 22px; }
  .yw-footer-bottom { flex-direction: column; }
  .yw-cta { text-align: left; }
}

@media (max-width: 575.98px) {
  .yw-logo { height: 50px; }
  .yw-navbar.scrolled .yw-logo { height: 46px; }
  .yw-hero { padding: 48px 0 50px; }
  .yw-hero-points { justify-content: flex-start; flex-direction: column; gap: 8px; }
  .yw-chips { grid-template-columns: 1fr; }
  .yw-facts { grid-template-columns: 1fr 1fr; gap: 14px; }
  .yw-amenities { grid-template-columns: 1fr; }
  .yw-cat { padding: 20px 16px; }
  .yw-cat small { display: none; }
  .yw-contact-info, .yw-contact-form { padding: 26px 20px; }
  .yw-results-bar .form-select-sm { min-width: 0; }
  .yw-thumbs button { flex-basis: 84px; height: 60px; }
  .yw-cta .btn { width: 100%; }
}

@media (max-width: 360px) {
  .yw-hero-title { font-size: 2.1rem; }
  .yw-call-mobile { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Photos: zoom + full-screen HD viewer ---------- */
.yw-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.yw-gallery .yw-gallery-count { display: inline-flex; align-items: center; gap: 6px; width: auto; border: 0; cursor: pointer; padding: 8px 14px; font-weight: 700; }
.yw-gallery .yw-gallery-count:hover { background: rgba(0,0,0,.85); }
.yw-photo-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; background: rgba(6,14,32,.75); color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 9px; border-radius: 20px; }
.yw-lightbox .modal-content { background: #05080F; color: #fff; border: 0; display: flex; flex-direction: column; }
.yw-lb-top { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.yw-lb-title { font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yw-lb-counter { font-weight: 700; color: var(--yw-gold-light); white-space: nowrap; }
.yw-lb-top .btn-close { width: 1.4em; height: 1.4em; opacity: .9; }
.yw-lb-carousel { flex: 1; min-height: 0; display: flex; outline: none; }
.yw-lb-carousel .carousel-inner { height: 100%; }
.yw-lb-carousel .carousel-item { height: 100%; }
.yw-lb-carousel .carousel-item img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 12px; }
.yw-lb-carousel .carousel-control-prev, .yw-lb-carousel .carousel-control-next { width: 8%; min-width: 56px; }
.yw-lb-carousel .carousel-control-prev-icon, .yw-lb-carousel .carousel-control-next-icon { width: 2.6rem; height: 2.6rem; background-color: rgba(255,255,255,.12); border-radius: 50%; background-size: 50%; }
.yw-lb-thumbs { display: flex; justify-content: center; gap: 8px; padding: 12px 16px 16px; overflow-x: auto; }
.yw-lb-thumbs button { flex: 0 0 84px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; opacity: .55; }
.yw-lb-thumbs button.active, .yw-lb-thumbs button:hover { border-color: var(--yw-gold); opacity: 1; }
.yw-lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 575.98px) {
  .yw-lb-carousel .carousel-item img { padding: 0; }
  .yw-lb-thumbs button { flex-basis: 64px; height: 46px; }
  .yw-lb-title { font-size: .9rem; }
}

/* =========================================================
   v2 features: navbar extras, projects, calculators, visits,
   shortlist & compare, post property
   ========================================================= */

/* Navbar extras */
.yw-nav-cta { display: flex; align-items: center; gap: 10px; }
.yw-btn-outline-gold { border: 2px solid var(--yw-gold); color: var(--yw-gold-light); background: transparent; white-space: nowrap; }
.yw-btn-outline-gold:hover, .yw-btn-outline-gold.active { background: var(--yw-gold); color: var(--yw-navy); }
.yw-free { display: inline-block; font-size: .62rem; font-weight: 800; letter-spacing: .06em; background: #1E8E4E; color: #fff; padding: 2px 5px; border-radius: 4px; margin-left: 4px; vertical-align: 2px; }
.yw-nav-cta .yw-btn-gold { white-space: nowrap; }
.yw-shortlist-link { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border-radius: 8px; color: #D7DBE4; text-decoration: none; border: 1px solid rgba(255,255,255,.18); padding: 0 10px; }
.yw-shortlist-link:hover { color: var(--yw-gold-light); border-color: var(--yw-gold); }
.yw-sl-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--yw-gold); color: var(--yw-navy); font-size: .72rem; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.yw-sl-count[hidden] { display: none; }
.yw-dropdown { border: 0; border-radius: 10px; box-shadow: 0 16px 40px rgba(6,14,32,.25); padding: 8px; }
.yw-dropdown .dropdown-item { border-radius: 6px; padding: 9px 14px; font-weight: 600; color: var(--yw-text); }
.yw-dropdown .dropdown-item:hover, .yw-dropdown .dropdown-item:focus { background: #FBF6E8; color: var(--yw-navy); }
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .yw-navbar .nav-link { padding: .5rem .55rem !important; font-size: .88rem; }
  .yw-navbar .nav-link::after { left: .55rem; right: .55rem; }
  .yw-nav-cta { gap: 6px; margin-left: .4rem; }
  .yw-nav-cta .btn { padding: .55rem .8rem; font-size: .86rem; }
  .yw-logo { height: 54px; }
}
@media (max-width: 1199.98px) {
  .yw-offcanvas { max-width: 330px; }
  .yw-offcanvas .nav-link { font-size: 1.05rem; padding: .75rem 0 !important; border-bottom: 1px solid rgba(255,255,255,.08); }
  .yw-offcanvas .nav-link::after { display: none; }
  .yw-offcanvas .yw-dropdown { background: rgba(255,255,255,.05); box-shadow: none; }
  .yw-offcanvas .yw-dropdown .dropdown-item { color: #D7DBE4; }
  .yw-offcanvas .yw-dropdown .dropdown-item:hover { background: rgba(255,255,255,.08); color: #fff; }
  .yw-nav-cta { flex-direction: column; align-items: stretch; margin: 1.5rem 0 0; }
  .yw-nav-cta .btn, .yw-shortlist-link { width: 100%; justify-content: center; }
  .yw-sl-count { position: static; margin-left: 8px; }
}

/* Cards: shortlist heart + project badge */
.yw-property-media { position: relative; }
.yw-heart { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.18); z-index: 2; transition: transform .15s ease; }
.yw-heart svg { fill: none; stroke: var(--yw-navy); stroke-width: 2; }
.yw-heart:hover { transform: scale(1.08); }
.yw-heart.is-on svg { fill: #D6336C; stroke: #D6336C; }
.yw-heart-lg { position: static; width: auto; height: 40px; border-radius: 20px; padding: 0 16px; gap: 8px; font-weight: 700; color: var(--yw-navy); margin-top: 6px; }
.yw-heart-lg span { font-size: .9rem; }
.yw-badge-featured { left: 14px; right: auto; top: 48px; }
.yw-badge-project { background: var(--yw-gold); color: var(--yw-navy); }
.yw-visit-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* Site visit modal */
.yw-dates { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.yw-dates label, .yw-slots label { margin: 0; }
.yw-dates input, .yw-slots input { position: absolute; opacity: 0; pointer-events: none; }
.yw-dates span { display: flex; flex-direction: column; align-items: center; padding: 8px 2px; border: 1px solid #CDD3DE; border-radius: 8px; cursor: pointer; line-height: 1.15; }
.yw-dates small { font-size: .68rem; color: var(--yw-muted); font-weight: 600; text-transform: uppercase; }
.yw-dates strong { font-size: 1.1rem; color: var(--yw-navy); }
.yw-slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.yw-slots span { display: block; text-align: center; padding: 10px 6px; border: 1px solid #CDD3DE; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.yw-dates input:checked + span, .yw-slots input:checked + span { background: var(--yw-navy); border-color: var(--yw-navy); }
.yw-dates input:checked + span small, .yw-dates input:checked + span strong, .yw-slots input:checked + span { color: #fff; }
.yw-dates input:focus-visible + span, .yw-slots input:focus-visible + span { outline: 3px solid var(--yw-gold); }

/* Project page */
.yw-price-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--yw-muted); background: var(--yw-ivory); }
.yw-fp-thumb { border: 1px solid var(--yw-border); border-radius: 8px; padding: 3px; background: #fff; cursor: zoom-in; }
.yw-fp-thumb img { width: 84px; height: 60px; object-fit: cover; border-radius: 5px; display: block; }
.yw-fp-thumb:hover { border-color: var(--yw-gold); }
.yw-fp-body { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: #fff; }
.yw-fp-body img { max-width: 100%; max-height: 100%; object-fit: contain; }
.yw-video { position: relative; display: block; border-radius: 10px; overflow: hidden; }
.yw-video img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.yw-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: rgba(212,167,44,.95); color: var(--yw-navy); display: flex; align-items: center; justify-content: center; }
.yw-enquiry .btn svg { vertical-align: -3px; margin-right: 4px; }

/* Calculators */
.yw-calc .yw-range { margin-bottom: 26px; }
.yw-calc output { font-weight: 800; color: var(--yw-navy); font-family: 'Manrope', sans-serif; }
.form-range::-webkit-slider-thumb { background: var(--yw-gold); }
.form-range::-moz-range-thumb { background: var(--yw-gold); }
.form-range:focus::-webkit-slider-thumb { box-shadow: 0 0 0 .25rem rgba(212,167,44,.3); }
.yw-calc-result { background: var(--yw-navy); color: #fff; border: 0; }
.yw-calc-result .yw-calc-label { color: #C3C9D6; font-weight: 600; margin: 0; }
.yw-calc-big { font-family: 'Manrope', sans-serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--yw-gold-light); margin: 0; }
.yw-calc-split { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 200px; }
.yw-calc-split div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 8px; }
.yw-calc-split dt { font-weight: 600; color: #C3C9D6; }
.yw-calc-split dt .text-muted { color: #8E97AA !important; }
.yw-calc-split dd { margin: 0; font-weight: 800; color: #fff; }
.yw-calc-result .small.text-muted { color: #AEB5C4 !important; }
.yw-donut { --p: 50; width: 140px; height: 140px; border-radius: 50%; background: conic-gradient(#E6E7EB calc(var(--p) * 1%), var(--yw-gold) 0); display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0; }
.yw-donut::before { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: var(--yw-navy); }
.yw-donut span { position: relative; font-size: .78rem; font-weight: 700; text-align: center; max-width: 80px; line-height: 1.2; }
.yw-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.yw-dot-navy { background: #E6E7EB; }
.yw-dot-gold { background: var(--yw-gold); }

/* Post property */
.yw-post-form h2 { font-size: 1.15rem; margin: 6px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--yw-border); }
.yw-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 28px 16px; border: 2px dashed #C9CED8; border-radius: 12px; background: #FAFBFC; cursor: pointer; color: var(--yw-muted); width: 100%; margin: 0; }
.yw-drop:hover, .yw-drop:focus-within { border-color: var(--yw-gold); background: #FFFBEF; }
.yw-drop svg { color: var(--yw-gold); }
.yw-drop strong { color: var(--yw-navy); }
.yw-photo-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.yw-pp { position: relative; }
.yw-pp img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 2px solid var(--yw-gold); }
.yw-pp-x { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: #B42318; color: #fff; font-size: 1.1rem; line-height: 1; }
.yw-mini-steps { padding-left: 1.2rem; margin: 0; color: var(--yw-muted); }
.yw-mini-steps li { margin-bottom: 10px; }
.yw-success-icon { width: 76px; height: 76px; border-radius: 50%; background: #E3F4EA; color: #1E6B3A; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }

/* Shortlist & compare */
.yw-sl-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 0 4px; }
.yw-sl-actions .form-check { margin: 0; display: flex; align-items: center; gap: 6px; font-weight: 700; }
.yw-compare-wrap { background: #fff; border-radius: var(--yw-radius); border: 1px solid var(--yw-border); }
.yw-compare { margin: 0; min-width: 720px; }
.yw-compare th, .yw-compare td { padding: 14px 16px; vertical-align: top; border-color: var(--yw-border); }
.yw-compare thead th { background: #fff; }
.yw-cmp-label { width: 180px; color: var(--yw-muted); font-size: .84rem; font-weight: 700; background: var(--yw-ivory) !important; }
.yw-cmp-img img { width: 100%; height: 170px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.yw-cmp-title { font-weight: 700; color: var(--yw-navy); text-decoration: none; display: block; }
.yw-compare tbody tr:first-child td { font-family: 'Manrope', sans-serif; font-weight: 800; color: var(--yw-navy); font-size: 1.1rem; }

/* Home: tools strip */
.yw-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.yw-tool { display: flex; gap: 16px; align-items: center; padding: 22px; border-radius: var(--yw-radius); background: #fff; border: 1px solid var(--yw-border); text-decoration: none; color: var(--yw-text); transition: border-color .2s ease, box-shadow .2s ease; }
.yw-tool:hover { border-color: var(--yw-gold); box-shadow: 0 14px 30px rgba(10,22,48,.08); color: var(--yw-text); }
.yw-tool strong { display: block; font-family: 'Manrope', sans-serif; color: var(--yw-navy); }
.yw-tool small { color: var(--yw-muted); }

@media (max-width: 575.98px) {
  .yw-dates { grid-template-columns: repeat(4, 1fr); }
  .yw-donut { width: 120px; height: 120px; }
  .yw-cmp-label { width: 120px; }
}

/* =========================================================
   App look on phones: bottom navigation + install banner
   ========================================================= */
.yw-appbar { display: none; }
.yw-install { position: fixed; left: 12px; right: 12px; bottom: 76px; z-index: 1040; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 16px 40px rgba(6,14,32,.35); border-top: 3px solid var(--yw-gold); max-width: 480px; margin: 0 auto; }
.yw-install[hidden] { display: none; }
.yw-install img { border-radius: 10px; }
.yw-install div { flex: 1; min-width: 0; line-height: 1.25; }
.yw-install strong { display: block; color: var(--yw-navy); font-size: .95rem; }
.yw-install span { font-size: .8rem; color: var(--yw-muted); }
.yw-install-x { border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--yw-muted); padding: 4px 6px; }

@media (max-width: 767.98px) {
  .yw-appbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035; background: #fff; border-top: 1px solid var(--yw-border); box-shadow: 0 -6px 24px rgba(6,14,32,.12); padding-bottom: env(safe-area-inset-bottom); }
  .yw-appbar a { flex: 1 1 0; width: auto !important; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; color: #5A6378; text-decoration: none; font-size: .7rem; font-weight: 700; position: relative; border: 0; border-radius: 0; height: auto; padding: 0; }
  .yw-appbar a.active, .yw-appbar a:hover { color: var(--yw-navy); }
  .yw-appbar a.active::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--yw-gold); }
  .yw-appbar .yw-sl-count { position: absolute; top: 6px; left: calc(50% + 6px); margin: 0; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .yw-wa { bottom: calc(76px + env(safe-area-inset-bottom)); width: 48px; height: 48px; }
  .yw-top { display: none; }
  .yw-footer { padding-bottom: 40px; }
}

/* Inside the installed app: feel native */
body.is-app .yw-topbar { display: none !important; }
body.is-app { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: contain; }
body.is-app .yw-hero { padding-top: 32px; }
@media (display-mode: standalone) {
  .yw-topbar { display: none !important; }
}

/* =========================================================
   Download App
   ========================================================= */
.yw-app-hero { background: linear-gradient(rgba(6,14,32,.92), rgba(6,14,32,.94)), repeating-linear-gradient(90deg, rgba(212,167,44,.06) 0 1px, transparent 1px 80px), var(--yw-navy); color: #fff; padding: 70px 0 80px; }
.yw-app-hero h1 { color: #fff; font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.1; margin-bottom: 1rem; }
.yw-apk-btn { display: inline-flex; align-items: center; gap: 14px; padding: 12px 26px; margin-top: 10px; text-align: left; }
.yw-apk-btn span { display: flex; flex-direction: column; line-height: 1.15; font-size: 1.15rem; }
.yw-apk-btn small { font-size: .75rem; font-weight: 600; opacity: .8; }
.yw-app-note { color: #AEB5C4; font-size: .88rem; margin-top: 12px; }
.yw-qr-box { align-items: center; gap: 18px; margin-top: 34px; padding: 16px 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; max-width: 520px; }
.yw-qr { background: #fff; padding: 8px; border-radius: 8px; min-width: 148px; min-height: 148px; display: flex; align-items: center; justify-content: center; color: var(--yw-navy); text-align: center; }
.yw-qr img, .yw-qr canvas { display: block; }
.yw-qr-box p { color: #C3C9D6; font-size: .9rem; }
.yw-phone { display: inline-block; width: 260px; height: 520px; border-radius: 40px; background: #05080F; padding: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 0 0 2px #2A3B63; }
.yw-phone-screen { width: 100%; height: 100%; border-radius: 28px; background: var(--yw-navy); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; }
.yw-phone-screen img { width: 85%; }
.yw-phone-screen span { color: var(--yw-gold-light); font-weight: 700; font-size: .9rem; }
.yw-install-steps { padding-left: 1.2rem; margin: 0; color: var(--yw-muted); line-height: 1.7; }
.yw-install-steps li { margin-bottom: 10px; }
.yw-install-steps strong { color: var(--yw-text); }
.yw-store-btn { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; margin: 4px 0 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; color: #fff !important; text-decoration: none; }
.yw-store-btn + .yw-store-btn { margin-left: 8px; }
.yw-store-btn:hover { border-color: var(--yw-gold); color: var(--yw-gold-light) !important; }
.yw-store-btn span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 700; }
.yw-store-btn small { font-size: .68rem; font-weight: 500; opacity: .8; }
.yw-store-btn svg { color: #3DDC84; }
.yw-topbar-app { color: var(--yw-gold-light) !important; font-weight: 700; }
.yw-app-only-app { display: none; }
body.is-app .yw-app-dl, body.is-app .yw-app-only-browser, body.is-app #installBanner { display: none !important; }
body.is-app .yw-app-only-app { display: block; }
@media (display-mode: standalone) {
  .yw-app-dl, .yw-app-only-browser, #installBanner { display: none !important; }
  .yw-app-only-app { display: block; }
}
@media (max-width: 575.98px) {
  .yw-app-hero { padding: 44px 0 56px; }
  .yw-apk-btn { width: 100%; justify-content: center; }
  .yw-phone { width: 200px; height: 400px; border-radius: 32px; }
}

/* Shortlist: keep actions under each card (fix overlap on phones) + clear compare controls */
.yw-sl-item { display: flex; flex-direction: column; }
.yw-sl-item .yw-property { height: auto; flex: 1 1 auto; }
.yw-sl-actions { display: flex; gap: 10px; align-items: stretch; margin-top: 10px; padding: 0; position: relative; z-index: 2; }
.yw-cmp-toggle { flex: 1; margin: 0; cursor: pointer; }
.yw-cmp-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.yw-cmp-toggle span { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 2px solid var(--yw-navy); border-radius: 8px; font-weight: 700; color: var(--yw-navy); background: #fff; padding: 0 12px; text-align: center; }
.yw-cmp-toggle .yw-cmp-on { display: none; background: var(--yw-navy); color: #fff; }
.yw-cmp-toggle.is-on .yw-cmp-on { display: flex; }
.yw-cmp-toggle.is-on .yw-cmp-off { display: none; }
.yw-cmp-toggle.is-disabled span { opacity: .45; cursor: not-allowed; }
.yw-cmp-toggle input:focus-visible + span { outline: 3px solid var(--yw-gold); }
.yw-sl-remove { min-height: 46px; font-weight: 700; }
.yw-compare-bar { position: sticky; bottom: 16px; z-index: 1020; margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--yw-navy); color: #fff; padding: 12px 14px 12px 18px; border-radius: 12px; box-shadow: 0 14px 34px rgba(6,14,32,.3); }
.yw-compare-bar span { font-weight: 600; font-size: .95rem; }
.yw-compare-bar .btn { min-width: 150px; min-height: 46px; }
.yw-compare-bar .btn:disabled { opacity: .55; }
.yw-compare-bar.is-ready { border: 2px solid var(--yw-gold); }
@media (max-width: 767.98px) {
  .yw-compare-bar { bottom: calc(70px + env(safe-area-inset-bottom)); }
}

/* Compare table: keep the feature names visible while scrolling sideways on phones */
.yw-compare .yw-cmp-label { position: sticky; left: 0; z-index: 1; }
@media (max-width: 575.98px) {
  .yw-compare { min-width: 0; }
  .yw-compare th, .yw-compare td { padding: 9px 8px; font-size: .84rem; min-width: 128px; }
  .yw-compare .yw-cmp-label { min-width: 92px; width: 92px; }
  .yw-cmp-img img { height: 90px; }
}

/* ================= Locality guides ================= */
.yw-loc-hero { position: relative; color: #fff; padding: 46px 0 40px; background: var(--yw-navy); background-image: linear-gradient(100deg, rgba(6,14,32,.94) 0%, rgba(10,22,48,.86) 55%, rgba(10,22,48,.62) 100%), var(--loc-bg, none); background-size: cover; background-position: center; }
.yw-loc-hero h1 { color: #fff; font-weight: 800; font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 8px; }
.yw-loc-hero .yw-hero-text { color: #D7DBE4; max-width: 680px; font-size: 1.05rem; margin-bottom: 0; }
.yw-loc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 26px; }
.yw-loc-stats > div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 14px 16px; }
.yw-loc-stats small { display: block; color: #AEB5C4; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.yw-loc-stats strong { display: block; color: #fff; font-family: 'Manrope', sans-serif; font-size: 1.12rem; font-weight: 700; }
.yw-loc-stats em { font-style: normal; font-size: .8rem; color: #C3C9D6; font-weight: 500; margin-left: 2px; }
.yw-loc-stats span { display: inline-block; margin-top: 6px; font-size: .78rem; font-weight: 700; color: var(--yw-gold-light); }
.yw-loc-list { list-style: none; padding: 0; margin: 0; }
.yw-loc-list li { position: relative; padding: 9px 0 9px 28px; border-bottom: 1px dashed var(--yw-border); }
.yw-loc-list li:last-child { border-bottom: 0; }
.yw-loc-list li::before { content: ''; position: absolute; left: 4px; top: 16px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--yw-gold); }
.yw-loc-list.yw-loc-list-pin li::before { border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: rgba(212,167,44,.18); }
.yw-loc-articles { list-style: none; padding: 0; margin: 0; }
.yw-loc-articles li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--yw-border); }
.yw-loc-articles li:last-child { border-bottom: 0; }
.yw-loc-articles a { font-weight: 600; color: var(--yw-navy); text-decoration: none; }
.yw-loc-articles a:hover { color: var(--yw-gold-dark); }
.yw-loc-articles small { color: var(--yw-muted); white-space: nowrap; }
.yw-faq .accordion-item { border: 1px solid var(--yw-border); border-radius: 10px !important; overflow: hidden; margin-bottom: 10px; }
.yw-faq .accordion-header { margin: 0; }
.yw-faq .accordion-button { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .98rem; color: var(--yw-navy); background: #fff; box-shadow: none; }
.yw-faq .accordion-button:not(.collapsed) { background: #FBF6E7; color: var(--yw-navy); }
.yw-faq .accordion-button:focus-visible { outline: 3px solid var(--yw-gold); outline-offset: -3px; }
.yw-faq .accordion-body { color: var(--yw-muted); line-height: 1.7; }
.yw-loc-teaser { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--yw-text); transition: border-color .2s ease, box-shadow .2s ease; }
.yw-loc-teaser:hover { border-color: var(--yw-gold); box-shadow: 0 10px 26px rgba(10,22,48,.08); color: var(--yw-text); }
.yw-loc-teaser .yw-loc-list-pin { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #FBF6E7; color: var(--yw-gold-dark); }
.yw-loc-teaser strong { display: block; color: var(--yw-navy); }
.yw-loc-teaser small { display: block; color: var(--yw-muted); }
.yw-loc-teaser > span:last-child { font-size: 1.3rem; color: var(--yw-gold-dark); }

/* Locality index cards */
.yw-loc-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--yw-border); border-radius: var(--yw-radius); overflow: hidden; text-decoration: none; color: var(--yw-text); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.yw-loc-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(10,22,48,.1); border-color: var(--yw-gold); color: var(--yw-text); }
.yw-loc-card-img { display: block; aspect-ratio: 16 / 9; background: var(--yw-silver); overflow: hidden; }
.yw-loc-card-img img { width: 100%; height: 100%; object-fit: cover; }
.yw-loc-card-body { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px 20px; flex: 1; }
.yw-loc-card-body strong { font-family: 'Manrope', sans-serif; font-size: 1.15rem; color: var(--yw-navy); }
.yw-loc-card-body small { color: var(--yw-muted); }
.yw-loc-card-body em { font-style: normal; font-weight: 700; color: var(--yw-gold-dark); margin-top: 6px; }
.yw-loc-card-count { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: .9rem; color: var(--yw-navy); }

/* ================= Blog ================= */
.yw-blog-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 28px; }
.yw-blog-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.yw-blog-cats a { padding: 8px 16px; border: 1px solid var(--yw-border); border-radius: 30px; background: #fff; color: var(--yw-navy); font-weight: 600; font-size: .88rem; text-decoration: none; }
.yw-blog-cats a:hover { border-color: var(--yw-gold); }
.yw-blog-cats a.active { background: var(--yw-navy); border-color: var(--yw-navy); color: #fff; }
.yw-blog-search { flex: 0 1 280px; }
.yw-blog-search .form-control { border-radius: 30px; padding-left: 18px; }
.yw-post-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--yw-border); border-radius: var(--yw-radius); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.yw-post-card:hover { box-shadow: 0 16px 36px rgba(10,22,48,.1); transform: translateY(-3px); }
.yw-post-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000614; }
.yw-post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.yw-post-img img[src*="yardwise-logo-dark"] { object-fit: contain; }
.yw-post-card:hover .yw-post-img img { transform: scale(1.03); }
.yw-post-body { display: flex; flex-direction: column; padding: 18px 20px 20px; flex: 1; }
.yw-post-cat { align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--yw-gold-dark); margin-bottom: 8px; }
.yw-post-body h2, .yw-post-body h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.yw-post-body h2 a, .yw-post-body h3 a { color: var(--yw-navy); text-decoration: none; }
.yw-post-body h2 a:hover, .yw-post-body h3 a:hover { color: var(--yw-gold-dark); }
.yw-post-body p { color: var(--yw-muted); font-size: .93rem; margin-bottom: 12px; }
.yw-post-body small { margin-top: auto; color: var(--yw-muted); font-size: .8rem; }
@media (min-width: 768px) {
  .yw-post-card-big { flex-direction: row; }
  .yw-post-card-big .yw-post-img { flex: 0 0 55%; aspect-ratio: auto; min-height: 320px; }
  .yw-post-card-big .yw-post-body { padding: 32px 34px; justify-content: center; }
  .yw-post-card-big h2 { font-size: 1.6rem; }
  .yw-post-card-big small { margin-top: 8px; }
}

/* Article page */
.yw-article { background: #fff; }
.yw-article-head { background: var(--yw-navy); color: #fff; padding: 44px 0 40px; }
.yw-article-head h1 { color: #fff; font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.25; max-width: 900px; margin-bottom: 10px; }
.yw-article-meta { color: #AEB5C4; margin: 0; font-size: .92rem; }
.yw-article-wrap { padding-top: 36px; padding-bottom: 80px; }
.yw-article-cover { width: 100%; border-radius: var(--yw-radius); aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 26px; }
.yw-article-lead { font-size: 1.15rem; line-height: 1.7; color: var(--yw-navy); font-weight: 600; border-left: 4px solid var(--yw-gold); padding-left: 18px; margin-bottom: 28px; }
.yw-article-body { font-size: 1.04rem; line-height: 1.85; color: var(--yw-text); overflow-wrap: anywhere; }
.yw-article-body h2 { font-size: 1.45rem; font-weight: 700; color: var(--yw-navy); margin: 38px 0 14px; }
.yw-article-body h3 { font-size: 1.18rem; font-weight: 700; color: var(--yw-navy); margin: 28px 0 10px; }
.yw-article-body p { margin-bottom: 18px; }
.yw-article-body ul, .yw-article-body ol { margin-bottom: 20px; padding-left: 1.4rem; }
.yw-article-body li { margin-bottom: 8px; }
.yw-article-body li::marker { color: var(--yw-gold-dark); font-weight: 700; }
.yw-article-body blockquote { background: #FBF6E7; border-left: 4px solid var(--yw-gold); border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 24px 0; color: var(--yw-navy); font-weight: 600; }
.yw-article-body blockquote p:last-child { margin-bottom: 0; }
.yw-article-body a { color: var(--yw-gold-dark); font-weight: 600; }
.yw-article-loc { display: block; margin: 34px 0 0; padding: 18px 22px; border: 1px solid var(--yw-border); border-left: 4px solid var(--yw-gold); border-radius: 10px; background: var(--yw-ivory); text-decoration: none; }
.yw-article-loc span { display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--yw-gold-dark); }
.yw-article-loc strong { color: var(--yw-navy); }
.yw-article-loc:hover strong { color: var(--yw-gold-dark); }
.yw-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--yw-border); }
.yw-share > span { font-weight: 700; color: var(--yw-navy); margin-right: 6px; }
.yw-article .yw-similar { margin-top: 56px; }
@media (max-width: 575.98px) {
  .yw-loc-hero { padding: 34px 0 30px; }
  .yw-loc-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .yw-loc-stats > div { padding: 12px; }
  .yw-loc-stats strong { font-size: .98rem; }
  .yw-loc-articles li { flex-direction: column; gap: 2px; }
  .yw-blog-search { flex: 1 1 100%; }
  .yw-blog-cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; width: 100%; scrollbar-width: none; }
  .yw-blog-cats a { white-space: nowrap; }
  .yw-article-head { padding: 32px 0 28px; }
  .yw-article-body { font-size: 1rem; }
  .yw-article-body h2 { font-size: 1.25rem; }
}

/* ================= Yardwise Safety Score ================= */
.yw-safe-chip, .yw-delay-chip { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 700; padding: 5px 10px; border-radius: 20px; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.yw-safe-chip { background: #1E6B3A; color: #fff; }
.yw-safe-chip strong { font-weight: 800; }
.yw-safe-good { background: #1E4E8C; }
.yw-safe-partial { background: #4B556B; }
.yw-safe-attention { background: #B7791F; }
.yw-pill-safe { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; background: #E3F4EA; color: #1E6B3A; }
.yw-pill-safe:hover { color: #1E6B3A; filter: brightness(.96); }
.yw-pill-safe-good { background: #E6EEF9; color: #1E4E8C; }
.yw-pill-safe-partial { background: #EEF0F4; color: #4B556B; }
.yw-pill-safe-attention { background: #FFF1D6; color: #8A5A00; }
.yw-safety { --c: #1E6B3A; border-top: 4px solid var(--c); }
.yw-safety-good { --c: #1E4E8C; }
.yw-safety-partial { --c: #6B7487; }
.yw-safety-attention { --c: #B7791F; }
.yw-safety-head { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.yw-safety-head h2 { margin: 2px 0 4px; color: var(--c); }
.yw-safety-head p { margin: 0; color: var(--yw-muted); font-size: .9rem; }
.yw-safety-head .yw-eyebrow { margin-bottom: 0; }
.yw-safety-ring { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%; display: grid; place-content: center; text-align: center; position: relative; background: conic-gradient(var(--c) calc(var(--score) * 1%), #E6E7EB 0); }
.yw-safety-ring::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.yw-safety-ring span, .yw-safety-ring small { position: relative; line-height: 1; }
.yw-safety-ring span { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.9rem; color: var(--yw-navy); }
.yw-safety-ring small { font-size: .72rem; color: var(--yw-muted); margin-top: 2px; }
.yw-safety-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--yw-border); border-radius: 10px; overflow: hidden; }
.yw-safety-list li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--yw-border); }
.yw-safety-list li:last-child { border-bottom: 0; }
.yw-safety-list li > div { flex: 1; min-width: 0; }
.yw-safety-list strong { display: block; font-size: .93rem; color: var(--yw-navy); }
.yw-safety-list small { display: block; font-size: .8rem; color: var(--yw-muted); }
.yw-safety-list em { font-style: normal; font-size: .76rem; font-weight: 700; white-space: nowrap; padding: 3px 9px; border-radius: 12px; background: #EEF0F4; color: #4B556B; }
.yw-safety-ico { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: #EEF0F4; color: #6B7487; }
.yw-safety-list .is-ok .yw-safety-ico { background: #1E6B3A; color: #fff; }
.yw-safety-list .is-ok em { background: #E3F4EA; color: #1E6B3A; }
.yw-safety-list .is-issue { background: #FFF8EB; }
.yw-safety-list .is-issue .yw-safety-ico { background: #B7791F; color: #fff; }
.yw-safety-list .is-issue em { background: #FFF1D6; color: #8A5A00; }
.yw-safety-list .is-na strong, .yw-safety-list .is-pending strong { color: #4B556B; }
.yw-safety-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 8px; background: var(--yw-ivory); font-size: .92rem; }
.yw-safety-note-warn { background: #FFF1D6; color: #6B4700; }
.yw-safety-stale { margin: 0 0 14px; padding: 10px 14px; border-radius: 8px; background: #FFF1D6; color: #6B4700; font-size: .9rem; }
.yw-safety-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.yw-safety-foot p { flex: 1 1 320px; margin: 0; font-size: .8rem; color: var(--yw-muted); }
.yw-safety-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; border-style: dashed; }
.yw-safety-cta > div { flex: 1 1 240px; }
.yw-safety-cta strong { display: block; color: var(--yw-navy); }
.yw-safety-cta small { display: block; color: var(--yw-muted); }
.yw-safety-cta-ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #FBF6E7; color: var(--yw-gold-dark); }
.yw-verified-filter { padding: 12px 12px 12px 36px; border: 1px solid var(--yw-border); border-radius: 10px; background: #F1FAF4; }
.yw-verified-filter label strong { display: block; font-size: .9rem; color: #1E6B3A; }
.yw-verified-filter label small { display: block; font-size: .78rem; color: var(--yw-muted); }

/* ================= Builder Delay Meter ================= */
.yw-delay-chip { background: #1E6B3A; color: #fff; }
.yw-delay-chip.yw-delay-extended { background: #B7791F; }
.yw-delay-chip.yw-delay-late { background: #B42318; }
.yw-pill-delay { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; background: #E3F4EA; color: #1E6B3A; }
.yw-pill-delay:hover { filter: brightness(.96); color: inherit; }
.yw-pill-delay-extended { background: #FFF1D6; color: #8A5A00; }
.yw-pill-delay-late { background: #FDE8E3; color: #9A3412; }
.yw-delay { --c: #1E6B3A; --bg: #E3F4EA; border-top: 4px solid var(--c); }
.yw-delay-extended { --c: #B7791F; --bg: #FFF1D6; }
.yw-delay-late { --c: #B42318; --bg: #FDE8E3; }
.yw-delay-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.yw-delay-head h2 { margin: 2px 0 4px; color: var(--c); }
.yw-delay-head p { margin: 0; color: var(--yw-muted); font-size: .9rem; }
.yw-delay-head .yw-eyebrow { margin-bottom: 0; }
.yw-delay-ico { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--c); }
.yw-delay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.yw-delay-grid > div { border: 1px solid var(--yw-border); border-radius: 10px; padding: 12px 14px; }
.yw-delay-grid small { display: block; font-size: .76rem; color: var(--yw-muted); margin-bottom: 2px; }
.yw-delay-grid strong { display: block; font-family: 'Manrope', sans-serif; font-size: 1.1rem; color: var(--yw-navy); }
.yw-delay-grid span { display: block; font-size: .78rem; font-weight: 700; color: #8A5A00; margin-top: 2px; }
.yw-delay-progress { margin-top: 16px; font-size: .9rem; }
.yw-delay-bar { height: 10px; border-radius: 6px; background: #E6E7EB; overflow: hidden; margin-top: 6px; }
.yw-delay-bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--yw-gold), var(--yw-gold-dark)); }
.yw-delay-track { margin: 16px 0 0; padding: 12px 14px; border-radius: 8px; background: var(--yw-ivory); font-size: .92rem; }
.yw-delay-foot { margin: 14px 0 0; font-size: .8rem; color: var(--yw-muted); }
@media (max-width: 575.98px) {
  .yw-safety-head { gap: 14px; }
  .yw-safety-ring { width: 80px; height: 80px; }
  .yw-safety-ring span { font-size: 1.5rem; }
  .yw-safety-list li { flex-wrap: wrap; row-gap: 6px; }
  .yw-safety-list li > div { flex: 1 1 calc(100% - 40px); }
  .yw-safety-list em { margin-left: 38px; }
  .yw-delay-ico { width: 46px; height: 46px; }
  .yw-safe-chip, .yw-delay-chip { font-size: .72rem; padding: 4px 9px; }
}

/* ---------- Visitor accounts (Sign in with Google) ---------- */
.yw-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: var(--yw-gold); color: var(--yw-navy); font-weight: 800; font-size: .95rem; flex: 0 0 auto; }
.yw-avatar-sm { width: 26px; height: 26px; font-size: .8rem; }
.yw-avatar-lg { width: 64px; height: 64px; font-size: 1.6rem; }
.yw-user-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); background: transparent; padding: 3px; display: inline-flex; align-items: center; justify-content: center; }
.yw-user-btn:hover, .yw-user-btn[aria-expanded="true"] { border-color: var(--yw-gold); }
.yw-user-dropdown { min-width: 240px; }
.yw-user-head { padding: 8px 14px 10px; border-bottom: 1px solid var(--yw-border); margin-bottom: 6px; }
.yw-user-head strong { display: block; color: var(--yw-navy); font-size: .95rem; }
.yw-user-head span { display: block; color: var(--yw-muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.yw-user-dropdown form { margin: 0; }
.yw-user-dropdown button.dropdown-item { width: 100%; text-align: left; }
.yw-account-link.active { border-color: var(--yw-gold); color: var(--yw-gold-light); }

.yw-auth { padding: 56px 0 72px; background: var(--yw-ivory); }
.yw-auth-card { max-width: 480px; margin: 0 auto; background: #fff; border: 1px solid var(--yw-border); border-radius: 16px; padding: 38px 36px 30px; text-align: center; box-shadow: 0 20px 50px rgba(6,14,32,.08); }
.yw-auth-mark { width: 56px; height: 56px; object-fit: contain; margin-bottom: 10px; }
.yw-auth-card h1 { font-size: 1.7rem; font-weight: 800; color: var(--yw-navy); margin-bottom: 8px; }
.yw-auth-lead { color: var(--yw-muted); margin-bottom: 20px; }
.yw-auth-points { list-style: none; padding: 0; margin: 0 0 26px; text-align: left; display: grid; gap: 10px; }
.yw-auth-points li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--yw-text); }
.yw-auth-points svg { color: var(--yw-gold); flex: 0 0 auto; margin-top: 2px; }
.yw-gsi { min-height: 46px; display: flex; justify-content: center; align-items: center; }
.yw-gsi.is-busy { opacity: .5; pointer-events: none; }
.yw-gsi-loading { color: var(--yw-muted); font-size: .9rem; }
.yw-auth-note { font-size: .8rem; color: var(--yw-muted); margin: 18px 0 0; }
.yw-auth-skip { display: inline-block; margin-top: 16px; font-size: .9rem; font-weight: 600; color: var(--yw-navy); }

.yw-signin-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #FBF6E8; border: 1px solid #EBDDB4; border-radius: 12px; padding: 16px 20px; margin-bottom: 26px; }
.yw-signin-strip strong { display: block; color: var(--yw-navy); }
.yw-signin-strip span { font-size: .9rem; color: var(--yw-muted); }
.yw-signin-strip .btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; background: #fff; color: var(--yw-navy); border: 1px solid #D5D9E2; font-weight: 700; }
.yw-signin-strip .btn:hover { border-color: var(--yw-navy); }

.yw-account-card { margin-top: 0; }
.yw-google-tag { display: inline-block; margin-top: 4px; font-size: .72rem; font-weight: 700; background: #EEF3FD; color: #1A4FB8; padding: 2px 8px; border-radius: 20px; }
.yw-account-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.yw-account-stats a { display: block; text-decoration: none; background: var(--yw-ivory); border-radius: 10px; padding: 14px 16px; }
.yw-account-stats strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--yw-navy); line-height: 1.1; }
.yw-account-stats span { font-size: .85rem; color: var(--yw-muted); }
.yw-danger-zone summary { cursor: pointer; font-weight: 700; color: #B02A37; }
.min-w-0 { min-width: 0; }

.yw-toast { position: fixed; left: 12px; right: 12px; bottom: 24px; margin: 0 auto; width: fit-content; max-width: 560px; transform: translateY(160%); visibility: hidden; z-index: 1090; display: flex; align-items: center; gap: 12px; background: var(--yw-navy); color: #E9ECF2; border-radius: 12px; padding: 12px 14px 12px 18px; box-shadow: 0 18px 40px rgba(0,0,0,.3); font-size: .9rem; transition: transform .25s ease, visibility .25s; }
.yw-toast.show { transform: translateY(0); visibility: visible; }
.yw-toast strong { color: #fff; }
.yw-toast .btn { flex: 0 0 auto; }
.yw-toast-x { background: none; border: 0; color: #AEB5C4; font-size: 1.4rem; line-height: 1; padding: 0 2px; }
@media (max-width: 991.98px) { .yw-toast { bottom: 84px; } }
@media (max-width: 575.98px) {
  .yw-auth { padding: 28px 0 48px; }
  .yw-auth-card { padding: 28px 20px 24px; }
  .yw-signin-strip { flex-direction: column; align-items: stretch; text-align: left; }
  .yw-signin-strip .btn { justify-content: center; }
}

/* ---------- Account features: alerts, sharing, notes, enquiries, listings, referrals, reviews ---------- */
.yw-alert-btn { border: 1px solid #D5D9E2; background: #fff; color: var(--yw-navy); font-weight: 700; white-space: nowrap; }
.yw-alert-btn:hover { border-color: var(--yw-gold); color: var(--yw-navy); }
.yw-alert-btn.is-on { background: #E3F4EA; border-color: #BFE3CC; color: #1E6B3A; }
.yw-results-bar { flex-wrap: wrap; gap: 10px; }

.yw-sl-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 16px; }
.yw-sl-tools .btn { display: inline-flex; align-items: center; gap: 8px; }
.yw-sl-tools .form-check { margin: 0; font-size: .92rem; }
.yw-share-panel { background: #fff; border: 1px solid var(--yw-border); border-radius: 12px; padding: 16px 18px; margin-bottom: 22px; max-width: 680px; }
.yw-sl-extra { padding: 8px 4px 0; }
.yw-votes { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .86rem; margin: 0 0 6px; }
.yw-votes .up { color: #1E6B3A; } .yw-votes .down { color: #9A3412; }
.yw-note-text { background: #FFF9E6; border-left: 3px solid var(--yw-gold); border-radius: 6px; padding: 8px 10px; font-size: .88rem; margin: 0 0 4px; white-space: pre-line; }
.yw-note-edit { background: none; border: 0; padding: 2px 0; font-size: .86rem; font-weight: 700; color: var(--yw-navy); text-decoration: underline; text-underline-offset: 3px; }

.yw-voter { max-width: 420px; background: #fff; border: 1px solid var(--yw-border); border-radius: 12px; padding: 14px 16px; margin-bottom: 22px; }
.yw-vote { padding: 10px 4px 0; }
.yw-vote-btn { border: 1px solid #D5D9E2; background: #fff; border-radius: 20px; padding: 6px 14px; font-weight: 700; font-size: .88rem; margin-right: 6px; }
.yw-vote-btn b { margin-left: 4px; color: var(--yw-muted); }
.yw-vote-btn[data-vote="1"].is-on { background: #E3F4EA; border-color: #7CC79A; color: #1E6B3A; }
.yw-vote-btn[data-vote="-1"].is-on { background: #FDE8E3; border-color: #F0A898; color: #9A3412; }
.yw-vote-names { font-size: .82rem; color: var(--yw-muted); margin: 6px 0 0; min-height: 1em; }

.yw-account-side { position: sticky; top: 100px; }
.yw-account-nav { display: grid; gap: 2px; margin-top: 16px; background: #fff; border: 1px solid var(--yw-border); border-radius: var(--yw-radius); padding: 8px; }
.yw-account-nav a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 8px; color: var(--yw-text); font-weight: 600; text-decoration: none; font-size: .94rem; }
.yw-account-nav a:hover { background: var(--yw-ivory); color: var(--yw-navy); }
.yw-account-nav b { background: var(--yw-gold); color: var(--yw-navy); border-radius: 10px; font-size: .72rem; padding: 1px 7px; }
.yw-section [id] { scroll-margin-top: 100px; }
.yw-alert-list, .yw-enq-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.yw-alert-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--yw-border); border-radius: 10px; padding: 10px 12px; }
.yw-alert-list a { font-weight: 700; color: var(--yw-navy); display: block; }
.yw-alert-list small { color: var(--yw-muted); }
.yw-enq-list li { border: 1px solid var(--yw-border); border-radius: 10px; padding: 10px 14px; }
.yw-enq-list li.is-upcoming { border-color: var(--yw-gold); background: #FFFBEF; }
.yw-enq-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.yw-enq-type { font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--yw-muted); }
.yw-enq-status { font-size: .74rem; font-weight: 700; padding: 2px 9px; border-radius: 12px; background: #E6EEF9; color: #1E4E8C; white-space: nowrap; }
.yw-enq-status.yw-enq-contacted { background: #E3F4EA; color: #1E6B3A; }
.yw-enq-status.yw-enq-closed { background: #EEF0F4; color: #5a6378; }
.yw-listing-row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--yw-border); }
.yw-listing-row:first-of-type { border-top: 0; padding-top: 0; }
.yw-listing-row > img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: var(--yw-ivory); }
.yw-listing-row form { margin: 0; }
.yw-ls { display: inline-block; font-size: .72rem; font-weight: 800; padding: 2px 9px; border-radius: 12px; }
.yw-ls-live { background: #E3F4EA; color: #1E6B3A; } .yw-ls-review { background: #FFF1D6; color: #8A5A00; }
.yw-ls-sold { background: #E6EEF9; color: #1E4E8C; } .yw-ls-off { background: #EEF0F4; color: #5a6378; }
.yw-ls-stats { display: flex; flex-wrap: wrap; gap: 14px; font-size: .84rem; color: var(--yw-muted); margin-top: 4px; }
.yw-ls-stats b { color: var(--yw-navy); }
.yw-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.yw-mini { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--yw-text); border: 1px solid var(--yw-border); border-radius: 10px; padding: 8px; background: #fff; min-width: 0; }
.yw-mini:hover { border-color: var(--yw-gold); color: var(--yw-text); }
.yw-mini img { width: 84px; height: 64px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; background: var(--yw-ivory); }
.yw-mini span { min-width: 0; display: flex; flex-direction: column; }
.yw-mini strong { color: var(--yw-navy); font-size: .92rem; }
.yw-mini em { font-style: normal; font-weight: 600; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yw-mini small { color: var(--yw-muted); font-size: .78rem; }
.yw-refer-teaser { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: linear-gradient(120deg, #FFFBEF, #FFF3D0); border-color: #EBDDB4; }
.yw-refer-how ol { padding-left: 1.2rem; display: grid; gap: 8px; }
.yw-reward { display: flex; gap: 12px; align-items: center; background: #FFF9E6; border: 1px solid #EBDDB4; border-radius: 10px; padding: 12px 14px; }
.yw-reward span { font-size: 1.6rem; }
.yw-for-you .yw-section-head { margin-bottom: 24px; }

.yw-loc-rating { color: inherit; text-decoration: none; display: block; }
.yw-loc-rating strong { color: var(--yw-gold-light); }
.yw-loc-rating span { display: block; font-size: .8rem; opacity: .8; }
.yw-stars { color: #D5D9E2; letter-spacing: 1px; white-space: nowrap; }
.yw-stars .on { color: var(--yw-gold); }
.yw-stars .half { background: linear-gradient(90deg, var(--yw-gold) 50%, #D5D9E2 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.yw-rev-summary { font-size: 1.05rem; }
.yw-rev-summary span { color: var(--yw-muted); font-size: .9rem; }
.yw-reviews { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 14px; }
.yw-reviews li { border-bottom: 1px solid var(--yw-border); padding-bottom: 14px; }
.yw-reviews p { margin: 8px 0 4px; white-space: pre-line; }
.yw-reviews small { color: var(--yw-muted); }
.yw-rev-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.yw-rev-rel { font-size: .78rem; background: var(--yw-ivory); padding: 2px 8px; border-radius: 10px; color: var(--yw-muted); }
.yw-rev-write { border-top: 1px solid var(--yw-border); padding-top: 14px; margin-top: 8px; }
.yw-rev-write summary { cursor: pointer; font-weight: 700; color: var(--yw-navy); }
.yw-star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.yw-star-input input { position: absolute; opacity: 0; pointer-events: none; }
.yw-star-input label { font-size: 2rem; line-height: 1; color: #D5D9E2; cursor: pointer; }
.yw-star-input input:checked ~ label, .yw-star-input label:hover, .yw-star-input label:hover ~ label { color: var(--yw-gold); }
.yw-star-input input:focus-visible + label { outline: 2px solid var(--yw-navy); border-radius: 4px; }
.yw-card-rating { color: #8A5A00; font-weight: 700; }
@media (max-width: 991.98px) {
  .yw-account-side { position: static; }
}
@media (max-width: 575.98px) {
  .yw-refer-teaser { flex-direction: column; align-items: stretch; }
  .yw-alert-btn { white-space: normal; }
  .yw-listing-row > img { width: 72px; height: 56px; }
}
.yw-btn-line { color: var(--yw-navy); border: 2px solid var(--yw-navy); background: #fff; font-weight: 700; }
.yw-btn-line:hover, .yw-btn-line:focus { color: #fff; background: var(--yw-navy); border-color: var(--yw-navy); }
.yw-box h3.h6 { color: var(--yw-navy); font-weight: 800; }
body:has(.yw-compare-bar) .yw-toast { bottom: 108px; }

/* Search page: matching new projects above the property results */
.yw-search-projects { margin-bottom: 8px; }
.yw-search-projects-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin: 4px 0 16px; }
.yw-search-projects h2 span, .yw-search-props-title span { color: var(--yw-muted); font-weight: 600; }
.yw-search-props-title { margin: 34px 0 16px; padding-top: 26px; border-top: 1px solid var(--yw-border); }
.yw-head-link { color: var(--yw-gold-light); font-weight: 700; }
.yw-search-projects h2, .yw-search-props-title { color: var(--yw-navy); font-weight: 800; }
/* Header "Login" button: icon + text */
.yw-signin-link { gap: 7px; font-weight: 700; font-size: .92rem; padding: 0 14px; white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1399.98px) { .yw-signin-link { padding: 0 10px; font-size: .86rem; gap: 5px; } }
.yw-navbar .nav-link { white-space: nowrap; }
@media (min-width: 1400px) {
  .yw-navbar .nav-link { padding: .5rem .68rem !important; }
  .yw-navbar .nav-link::after { left: .68rem; right: .68rem; }
  .yw-nav-cta { gap: 8px; margin-left: .5rem; }
  .yw-nav-cta .btn { padding: .6rem 1.05rem; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .yw-navbar .nav-link { padding: .5rem .42rem !important; font-size: .86rem; }
  .yw-navbar .nav-link::after { left: .42rem; right: .42rem; }
  .yw-nav-cta { gap: 5px; margin-left: .3rem; }
  .yw-nav-cta .btn { padding: .55rem .7rem; }
  .yw-logo { height: 50px; }
}

/* ---------- Builders: landing page, List Your Project, Builder Console ---------- */
.yw-builder-hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(212,167,44,.18), transparent 60%), var(--yw-navy); color: #fff; padding: 72px 0 80px; }
.yw-builder-hero h1 { color: #fff; font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 16px; }
.yw-builder-hero .yw-hero-text { color: #C3C9D6; font-size: 1.1rem; line-height: 1.7; max-width: 640px; }
.yw-builder-promise { list-style: none; margin: 0; padding: 22px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.04); }
.yw-builder-promise li { position: relative; padding: 12px 0 12px 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.yw-builder-promise li:last-child { border-bottom: 0; }
.yw-builder-promise li::before { content: ""; position: absolute; left: 0; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--yw-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A1630' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/15px no-repeat; }
.yw-builder-promise strong { display: block; color: #fff; }
.yw-builder-promise span { color: #AEB5C4; font-size: .92rem; }
.yw-benefit { height: 100%; background: #fff; border: 1px solid var(--yw-border); border-radius: 14px; padding: 26px; transition: border-color .2s ease, box-shadow .2s ease; }
.yw-benefit:hover { border-color: var(--yw-gold); box-shadow: 0 10px 30px rgba(10,22,48,.07); }
.yw-benefit-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: #FBF6E8; color: var(--yw-gold-dark); margin-bottom: 14px; }
.yw-section .yw-benefit h3 { font-size: 1.1rem; font-weight: 700; color: var(--yw-navy); margin-bottom: 8px; }
.yw-benefit p { color: var(--yw-muted); margin: 0; line-height: 1.65; }
.yw-builder-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.yw-builder-steps li { position: relative; background: #fff; border: 1px solid var(--yw-border); border-radius: 14px; padding: 24px 22px; }
.yw-step-no { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--yw-navy); color: var(--yw-gold-light); font-weight: 800; margin-bottom: 12px; }
.yw-section .yw-builder-steps h3 { font-size: 1.05rem; font-weight: 700; color: var(--yw-navy); margin-bottom: 6px; }
.yw-builder-steps p { color: var(--yw-muted); margin: 0; font-size: .95rem; line-height: 1.6; }
.yw-keep-ready { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; padding: 16px 20px; background: #fff; border: 1px dashed #D9CFB0; border-radius: 12px; }
.yw-keep-ready strong { color: var(--yw-navy); margin-right: 4px; }
.yw-keep-ready span { background: #FBF6E8; color: var(--yw-navy); border-radius: 20px; padding: 5px 12px; font-size: .88rem; font-weight: 600; }
.yw-h2 { font-weight: 700; font-size: clamp(1.6rem, 2.8vw, 2.2rem); color: var(--yw-navy); }
.yw-check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 16px; }
.yw-info-box { background: #F2F5FA; border-left: 4px solid var(--yw-navy); border-radius: 8px; padding: 14px 16px; }
.yw-info-box strong { display: block; color: var(--yw-navy); margin-bottom: 4px; }
.yw-info-box span { color: var(--yw-muted); font-size: .92rem; line-height: 1.6; }
.yw-drop-sm { padding: 18px 16px; }
.yw-console-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.yw-console-top strong { display: block; color: var(--yw-navy); font-size: 1.1rem; }
.yw-console-top span { color: var(--yw-muted); font-size: .92rem; }
.yw-console-top > div:last-child { flex-shrink: 0; }
.yw-console-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.yw-console-jump a { background: #fff; border: 1px solid var(--yw-border); border-radius: 20px; padding: 6px 14px; font-weight: 600; font-size: .9rem; color: var(--yw-navy); text-decoration: none; }
.yw-console-jump a:hover { border-color: var(--yw-gold); }
.yw-console-card { margin-top: 0; margin-bottom: 24px; scroll-margin-top: 110px; }
.yw-console-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.yw-console-head img { width: 120px; height: 80px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.yw-section .yw-console-head h2 { font-size: 1.35rem; margin: 0 0 2px; }
.yw-console-head p { margin: 0; color: var(--yw-muted); font-size: .92rem; }
.yw-stage-badge { flex-shrink: 0; font-weight: 700; font-size: .85rem; padding: 6px 12px; border-radius: 20px; }
.yw-stage-badge.is-live { background: #E3F4EA; color: #1E6B3A; }
.yw-stage-badge.is-review { background: #FFF4D6; color: #7A5A00; }
.yw-stage-badge.is-off { background: #EEF0F4; color: #4B556B; }
.yw-stage-steps { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.yw-stage-steps li { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--yw-muted); background: #F6F7F9; border-radius: 10px; padding: 10px 12px; }
.yw-stage-steps li > span:first-child { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #C9CED8; font-size: .75rem; }
.yw-stage-steps li.is-done { color: var(--yw-navy); background: #EEF7F1; }
.yw-stage-steps li.is-done > span:first-child { background: #1E6B3A; border-color: #1E6B3A; color: #fff; }
.yw-console-note { font-size: .92rem; color: var(--yw-muted); margin-bottom: 16px; }
.yw-console-empty { background: #F6F7F9; border-radius: 10px; padding: 16px; color: var(--yw-muted); margin: 0 0 16px; }
.yw-stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.yw-stat-grid > div { border: 1px solid var(--yw-border); border-radius: 12px; padding: 14px; }
.yw-stat-grid span { display: flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--yw-muted); }
.yw-stat-grid span svg { color: var(--yw-gold-dark); flex-shrink: 0; }
.yw-stat-grid strong { display: block; font-family: 'Manrope', sans-serif; font-size: 1.7rem; color: var(--yw-navy); line-height: 1.2; margin-top: 4px; }
.yw-stat-grid small { color: var(--yw-muted); font-size: .78rem; }
.yw-month-table { font-size: .92rem; margin-bottom: 16px; }
.yw-month-table caption { caption-side: top; font-weight: 700; color: var(--yw-navy); padding-top: 0; }
.yw-month-table th, .yw-month-table td { text-align: right; }
.yw-month-table th:first-child { text-align: left; font-weight: 600; white-space: nowrap; }
.yw-console-waiting { background: #FFF8E6; border: 1px solid #EBDDB4; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: .92rem; }
.yw-console-waiting ul { margin: 6px 0 0; padding-left: 1.1rem; color: var(--yw-muted); }
.yw-update-box { border: 1px solid var(--yw-border); border-radius: 12px; }
.yw-update-box summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--yw-navy); list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.yw-update-box summary::-webkit-details-marker { display: none; }
.yw-update-box summary::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--yw-gold); color: var(--yw-navy); font-weight: 800; }
.yw-update-box[open] summary::before { content: "\2212"; }
.yw-update-box summary span { font-weight: 500; font-size: .88rem; color: var(--yw-muted); }
.yw-update-box form { padding: 0 18px 18px; }
.yw-console-foot { font-size: .88rem; color: var(--yw-muted); max-width: 820px; }
.yw-builder-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fff; border: 1px solid var(--yw-border); border-left: 5px solid var(--yw-gold); border-radius: 14px; padding: 22px 26px; }
.yw-builder-strip h2 { font-size: 1.3rem !important; margin: 0 0 4px; }
.yw-builder-strip p { margin: 0; color: var(--yw-muted); }
@media (max-width: 1199.98px) {
  .yw-stat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991.98px) {
  .yw-builder-steps { grid-template-columns: repeat(2, 1fr); }
  .yw-stage-steps { grid-template-columns: repeat(2, 1fr); }
  .yw-check-grid { grid-template-columns: repeat(2, 1fr); }
  .yw-console-top, .yw-builder-strip { flex-direction: column; align-items: stretch; }
}
@media (max-width: 575.98px) {
  .yw-builder-hero { padding: 48px 0 56px; }
  .yw-builder-steps, .yw-check-grid { grid-template-columns: 1fr; }
  .yw-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .yw-console-head { flex-wrap: wrap; }
  .yw-console-head img { width: 100%; height: 150px; }
}
@media print {
  .yw-topbar, .yw-navbar, header.yw-header, footer, .yw-footer, .yw-update-box, .yw-console-top .btn, .yw-console-jump, .breadcrumb, .yw-toast, #installBanner, .yw-mobile-bar, .yw-wa-float { display: none !important; }
  .yw-page-head { background: #fff !important; color: #000; padding: 0 0 10px; }
  .yw-page-head h1 { color: #0A1630 !important; }
  .yw-section { padding: 0 !important; background: #fff !important; }
  .yw-console-card { break-inside: avoid; border: 1px solid #ccc; box-shadow: none; }
}

/* ---------- AI Agreement Check page (report styles: ai-report.css) ---------- */
.yw-ai-hero h1 { max-width: 680px; }
.yw-ai-how { list-style: none; counter-reset: aihow; padding: 0; margin: 22px 0; display: grid; gap: 14px; }
.yw-ai-how li { counter-increment: aihow; position: relative; padding-left: 52px; }
.yw-ai-how li::before { content: counter(aihow); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--yw-navy); color: var(--yw-gold-light); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.yw-ai-how strong { display: block; color: var(--yw-navy); }
.yw-ai-how span { color: var(--yw-muted); font-size: .95rem; }
.yw-ai-quota { font-size: .82rem; font-weight: 700; background: #E3F4EA; color: #1E6B3A; border-radius: 14px; padding: 4px 12px; }
.yw-ai-quota.is-empty { background: #FDE8E3; color: #B42318; }
.yw-ai-drop { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; border: 2px dashed #CDC6B4; border-radius: 12px; padding: 26px 16px; cursor: pointer; background: #FCFBF8; transition: border-color .15s, background .15s; }
.yw-ai-drop:hover, .yw-ai-drop.is-over, .yw-ai-drop:focus-within { border-color: var(--yw-gold); background: #FBF6E7; }
.yw-ai-drop.has-files { border-style: solid; border-color: #3E9E63; background: #F5FBF7; }
.yw-ai-drop-icon { font-size: 2rem; line-height: 1; }
.yw-ai-drop strong { color: var(--yw-navy); }
.yw-ai-drop span:last-child { color: var(--yw-muted); font-size: .88rem; }
.yw-ai-files { list-style: none; padding: 0; margin: 8px 0 0; font-size: .88rem; color: var(--yw-muted); display: grid; gap: 2px; max-height: 150px; overflow: auto; }
.yw-ai-files li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yw-ai-bar { height: 8px; }
.yw-ai-bar .progress-bar { background: var(--yw-gold); transition: width .2s; }
.yw-ai-narrow { max-width: 620px; }
.yw-ai-progress { max-width: 620px; text-align: center; padding: 36px 28px; }
.yw-ai-spinner { width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; border: 5px solid #EFE7D0; border-top-color: var(--yw-gold); animation: ywspin 1s linear infinite; }
@keyframes ywspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .yw-ai-spinner { animation-duration: 3s; } }
.yw-ai-steps { list-style: none; padding: 0; margin: 0 auto; text-align: left; max-width: 360px; display: grid; gap: 10px; }
.yw-ai-steps li { position: relative; padding-left: 32px; color: #9AA1B1; font-weight: 600; }
.yw-ai-steps li::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #D5D9E2; }
.yw-ai-steps li.is-active { color: var(--yw-navy); }
.yw-ai-steps li.is-active::before { border-color: var(--yw-gold); border-top-color: transparent; animation: ywspin 1s linear infinite; }
.yw-ai-steps li.is-done { color: #1E6B3A; }
.yw-ai-steps li.is-done::before { content: '\2713'; border-color: #3E9E63; background: #3E9E63; color: #fff; font-size: .7rem; display: flex; align-items: center; justify-content: center; animation: none; }
.yw-ai-progress-msg { margin: 18px 0 0; color: var(--yw-muted); font-size: .92rem; }
.yw-ai-side { position: sticky; top: 96px; }
.yw-ai-side .yw-box { margin-top: 16px; }
.yw-ai-plan-box { background: #FBF7EC; border-color: #EBDDB3; }
.yw-ai-tag { display: inline-block; background: var(--yw-navy); color: var(--yw-gold-light); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; border-radius: 10px; padding: 2px 10px; }
.yw-ai-history { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.yw-ai-history a > span:first-child { flex: 1 1 auto; min-width: 0; }
.yw-ai-history a { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--yw-border); border-radius: 10px; padding: 12px 16px; text-decoration: none; color: var(--yw-text); background: #fff; }
.yw-ai-history a:hover, .yw-ai-history a.is-current { border-color: var(--yw-gold); background: #FCFAF3; }
.yw-ai-history strong { display: block; color: var(--yw-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yw-ai-history small { display: block; color: var(--yw-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yw-ai-checks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.yw-ai-checks div { background: #fff; border: 1px solid var(--yw-border); border-radius: 12px; padding: 18px; }
.yw-ai-checks span { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; background: #FBF6E7; color: var(--yw-gold-dark); font-weight: 800; font-size: .85rem; margin-bottom: 8px; }
.yw-ai-checks strong { display: block; color: var(--yw-navy); margin-bottom: 4px; }
.yw-ai-checks p { margin: 0; color: var(--yw-muted); font-size: .9rem; line-height: 1.55; }
.yw-ai-plan { position: relative; height: 100%; background: #fff; border: 1px solid var(--yw-border); border-radius: 14px; padding: 26px 24px; display: flex; flex-direction: column; }
.yw-ai-plan.is-featured { border: 2px solid var(--yw-gold); box-shadow: 0 12px 30px rgba(10, 22, 48, .08); }
.yw-ai-plan .yw-ai-tag { position: absolute; top: -11px; left: 24px; }
.yw-ai-plan h3 { font-size: 1.2rem; font-weight: 800; color: var(--yw-navy); margin: 0 0 2px; }
.yw-ai-plan-who { color: var(--yw-muted); font-size: .92rem; }
.yw-ai-plan ul { padding-left: 1.1rem; margin: 0 0 16px; flex-grow: 1; }
.yw-ai-plan li { margin-bottom: 6px; }
.yw-ai-price { font-size: 1.35rem; font-weight: 800; color: var(--yw-navy); margin: 0; }
.yw-ai-price small { display: block; font-size: .8rem; font-weight: 600; color: var(--yw-muted); }
.yw-ai-strip { background: linear-gradient(90deg, #0A1630, #13244A); color: #fff; border-radius: 14px; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.yw-ai-strip h2, .yw-ai-strip h3 { color: #fff; font-size: 1.2rem; font-weight: 800; margin: 0 0 4px; }
.yw-ai-strip p { color: #C3C9D6; margin: 0; }
@media (max-width: 991.98px) { .yw-ai-checks { grid-template-columns: repeat(2, 1fr); } .yw-ai-side { position: static; } }
@media (max-width: 575.98px) { .yw-ai-checks { grid-template-columns: 1fr; } }

/* ---------- Home: "Near you" in Handpicked for you ---------- */
.yw-near-btn { border: 1.5px solid var(--yw-gold); background: #FBF6E7; color: var(--yw-navy); font-weight: 700; font-size: .9rem; border-radius: 20px; padding: 6px 14px; line-height: 1.3; }
.yw-near-btn:hover, .yw-near-btn:focus-visible { background: var(--yw-gold); color: var(--yw-navy); }
.yw-near-note { margin: 16px 0 0; font-size: .92rem; color: var(--yw-muted); background: var(--yw-ivory); border-radius: 10px; padding: 10px 14px; }
.yw-near-in { animation: ywNearIn .35s ease-out; }
@keyframes ywNearIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .yw-near-in { animation: none; } }

/* ---------- Home: "Handpicked for you" tabs (For Sale / For Rent / New Projects) ---------- */
.yw-hp-tabs { display: inline-flex; flex-wrap: nowrap; gap: 4px; padding: 5px; margin: -18px 0 28px; background: #F3F0E8; border: 1px solid var(--yw-border); border-radius: 999px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.yw-hp-tabs::-webkit-scrollbar { display: none; }
.yw-hp-tabs .nav-link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border: 0; border-radius: 999px; padding: 9px 20px; font-weight: 700; font-size: .95rem; color: var(--yw-navy); background: transparent; transition: background .2s, color .2s, box-shadow .2s; }
.yw-hp-tabs .nav-link:hover { background: #fff; color: var(--yw-navy); }
.yw-hp-tabs .nav-link.active { background: var(--yw-navy); color: #fff; box-shadow: 0 6px 16px rgba(10, 22, 48, .18); }
.yw-hp-tabs .nav-link:focus-visible { outline: 3px solid var(--yw-gold); outline-offset: 2px; }
.yw-hp-count { display: inline-block; min-width: 24px; text-align: center; font-size: .75rem; font-weight: 800; line-height: 1; padding: 4px 7px; border-radius: 999px; background: #fff; color: var(--yw-navy); border: 1px solid var(--yw-border); }
.yw-hp-tabs .nav-link.active .yw-hp-count { background: var(--yw-gold); color: var(--yw-navy); border-color: var(--yw-gold); }
.yw-hp-tabs.is-single .nav-link.active { box-shadow: none; }
.yw-hp-more { text-align: center; margin-top: 28px; }
@media (max-width: 575.98px) {
  .yw-hp-tabs { display: flex; width: 100%; margin-top: -12px; overflow: visible; }
  .yw-hp-tabs .nav-item { flex: 1 1 0; min-width: 0; }
  .yw-hp-tabs .nav-link { width: 100%; justify-content: center; gap: 5px; padding: 9px 6px; font-size: .88rem; }
  .yw-hp-icon, .yw-hp-new { display: none; }
  .yw-hp-count { min-width: 20px; padding: 3px 6px; }
}

/* ---------- Yardwise AI tools ---------- */
.yw-ait-icon { flex: none; width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; color: var(--yw-gold-light); background: radial-gradient(120% 120% at 30% 20%, #1D3266, var(--yw-navy) 60%); box-shadow: inset 0 0 0 1px rgba(240, 201, 90, .35); }
.yw-ait-head h1 { margin-bottom: 4px; }
.yw-ait-form-wrap { max-width: 920px; margin: 0 auto; }
.yw-ait-form { padding: 30px 32px; }
.yw-ait-step { font-size: 1.2rem; color: var(--yw-navy); margin: 26px 0 12px; }
.yw-ait-form .yw-ait-step:first-child { margin-top: 0; }
.yw-ait-spark { color: var(--yw-navy); }
.yw-ait-ask { position: relative; }
.yw-ait-ask textarea { padding-right: 58px; font-size: 1.05rem; min-height: 110px; }
.yw-ait-mic { position: absolute; right: 10px; bottom: 10px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--yw-navy); color: var(--yw-gold-light); display: inline-flex; align-items: center; justify-content: center; }
.yw-ait-mic.is-on { background: #B42318; color: #fff; animation: ywMic 1.2s ease-in-out infinite; }
@keyframes ywMic { 50% { box-shadow: 0 0 0 10px rgba(180, 35, 24, .15); } }
.yw-ait-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: .86rem; color: var(--yw-muted); }
.yw-ait-examples button, .yw-ask-chips button { border: 1px solid var(--yw-border); background: #fff; color: var(--yw-navy); border-radius: 999px; padding: 6px 12px; font-size: .84rem; font-weight: 600; transition: border-color .2s, background .2s; }
.yw-ait-examples button:hover, .yw-ask-chips button:hover { border-color: var(--yw-gold); background: #FBF6E7; }
.yw-ait-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.yw-ait-checks label { margin: 0; }
.yw-ait-checks input { position: absolute; opacity: 0; pointer-events: none; }
.yw-ait-checks span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid #CBD2DE; background: #fff; font-weight: 700; font-size: .88rem; cursor: pointer; }
.yw-ait-checks input:checked + span { background: var(--yw-navy); border-color: var(--yw-navy); color: #fff; box-shadow: inset 0 -2px 0 var(--yw-gold); }
.yw-ait-checks input:focus-visible + span { outline: 3px solid var(--yw-gold); outline-offset: 2px; }
.yw-ait-result { margin-top: 34px; scroll-margin-top: 100px; }
.yw-ait-result.is-loading { min-height: 160px; border-radius: 20px; background: linear-gradient(100deg, #EEF1F6 30%, #F7F8FB 50%, #EEF1F6 70%); background-size: 200% 100%; animation: ywShimmer 1.3s linear infinite; }
@keyframes ywShimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .yw-ait-result.is-loading { animation: none; } }
.yw-ait-card { background: #fff; border: 1px solid var(--yw-border); border-radius: 20px; padding: 26px 28px; box-shadow: 0 1px 0 rgba(10, 22, 48, .04), 0 12px 32px -20px rgba(10, 22, 48, .4); }
.yw-ait-kicker { font-size: .9rem; font-weight: 700; color: var(--yw-gold-dark); margin: 0 0 6px; }
.yw-ait-lead { font-size: 1.05rem; line-height: 1.7; color: var(--yw-text); }
.yw-ait-sub { color: var(--yw-muted); font-weight: 600; }
.yw-ait-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.yw-ait-chips span { background: #F3F5F9; border: 1px solid var(--yw-border); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .86rem; color: var(--yw-navy); }
.yw-ait-must { margin: 14px 0 0; font-size: .92rem; color: var(--yw-muted); }
.yw-ait-h { font-size: 1.5rem; color: var(--yw-navy); margin: 34px 0 16px; }
.yw-ait-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.yw-ait-note { font-size: .84rem; color: var(--yw-muted); margin: 20px 0 0; }
.yw-ait-big { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--yw-navy); margin: 0 0 6px; }
.yw-ait-verdict { border-left: 6px solid #8A93A6; }
.yw-v-fair { border-left-color: #2E8B57; } .yw-v-fair .yw-ait-big { color: #1E6B3A; }
.yw-v-low { border-left-color: #1A73B8; } .yw-v-low .yw-ait-big { color: #175A8E; }
.yw-v-high { border-left-color: #E3A008; } .yw-v-high .yw-ait-big { color: #8A5A00; }
.yw-v-veryhigh { border-left-color: #D92D20; } .yw-v-veryhigh .yw-ait-big { color: #B42318; }
.yw-ait-diff { text-align: center; background: #F3F5F9; border-radius: 14px; padding: 10px 16px; }
.yw-ait-diff strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--yw-navy); }
.yw-ait-diff span { font-size: .78rem; color: var(--yw-muted); }
.yw-ait-meter { position: relative; height: 10px; border-radius: 999px; margin: 22px 0 6px; background: linear-gradient(90deg, #1A73B8 0%, #2E8B57 30%, #2E8B57 58%, #E3A008 75%, #D92D20 100%); }
.yw-ait-meter-mark { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--yw-navy); transform: translate(-50%, -50%); box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.yw-ait-meter-scale { display: flex; justify-content: space-between; font-size: .78rem; color: var(--yw-muted); font-weight: 600; }
.yw-ait-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 20px 0 0; }
.yw-ait-facts dt { font-size: .82rem; font-weight: 600; color: var(--yw-muted); }
.yw-ait-facts dd { margin: 2px 0 0; font-weight: 800; color: var(--yw-navy); }
.yw-ait-span { grid-column: 1 / -1; }
.yw-ait-span dd { font-weight: 600; }
.yw-ait-list { background: #fff; border: 1px solid var(--yw-border); border-radius: 18px; padding: 18px 20px; }
.row > [class*="col"] > .yw-ait-list:only-child { height: 100%; }
.yw-ait-list h3 { font-size: 1.1rem; color: var(--yw-navy); margin-bottom: 10px; }
.yw-ait-list ul { padding-left: 1.1rem; margin: 0; }
.yw-ait-list li { margin-bottom: 7px; line-height: 1.55; }
.yw-ait-warn { background: #FFF7E6; border: 1px solid #F3D9A0; border-radius: 16px; padding: 14px 18px; margin: 16px 0; }
.yw-ait-warn ul { padding-left: 1.1rem; margin-top: 6px; }
.yw-agreement { background: #fff; border: 1px solid var(--yw-border); border-radius: 18px; padding: 40px 44px; line-height: 1.75; box-shadow: 0 12px 32px -20px rgba(10, 22, 48, .4); }
.yw-agreement h2 { text-align: center; font-size: 1.8rem; color: var(--yw-navy); letter-spacing: .04em; margin-bottom: 22px; }
.yw-agreement h3 { font-size: 1.15rem; color: var(--yw-navy); margin-top: 22px; }
.yw-agreement ol { padding-left: 1.3rem; }
.yw-agreement li { margin-bottom: 10px; }
.yw-sign { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 40px; margin-top: 40px; }
.yw-vastu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 18px; background: var(--yw-navy); padding: 6px; border-radius: 18px; }
.yw-vastu-cell { background: #fff; border-radius: 12px; min-height: 108px; padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.yw-vastu-cell.has-door { box-shadow: inset 0 0 0 2px var(--yw-gold); }
.yw-vastu-zone { font-size: .74rem; font-weight: 800; color: var(--yw-muted); }
.yw-vastu-room { font-size: .84rem; font-weight: 700; border-radius: 999px; padding: 4px 10px; background: #EEF1F6; color: var(--yw-navy); }
.yw-vastu-room.is-good, .yw-vastu-legend .is-good, .yw-vastu-notes .is-good { background: #E3F4EA; color: #1E6B3A; }
.yw-vastu-room.is-ok, .yw-vastu-legend .is-ok, .yw-vastu-notes .is-ok { background: #EEF1F6; color: #3B4660; }
.yw-vastu-room.is-attention, .yw-vastu-legend .is-attention, .yw-vastu-notes .is-attention { background: #FDE8E3; color: #B42318; }
.yw-vastu-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.yw-vastu-legend span, .yw-vastu-notes span { font-size: .76rem; font-weight: 800; border-radius: 999px; padding: 3px 10px; }
.yw-vastu-notes { list-style: none; padding: 0 !important; }
.yw-vastu-notes li { margin-bottom: 10px; }
.yw-ait-table th, .yw-ait-table td { padding: 14px 16px; vertical-align: top; }
.yw-ait-table thead th { background: var(--yw-navy); color: #fff; font-family: var(--yw-display, inherit); font-weight: 400; font-size: 1.05rem; }
.yw-ait-table thead th:first-child { border-top-left-radius: 20px; }
.yw-ait-table thead th:last-child { border-top-right-radius: 20px; }
.yw-ait-table tbody th { color: var(--yw-navy); font-weight: 800; width: 22%; }
.yw-ait-table td.is-better { background: #FBF6E7; }
.yw-ait-tick { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; align-items: center; justify-content: center; background: var(--yw-gold); color: var(--yw-navy); font-size: .74rem; font-weight: 800; }
.yw-ait-best { height: 100%; background: #fff; border: 1px solid var(--yw-border); border-radius: 18px; padding: 16px 18px; }
.yw-ait-best span { font-size: .84rem; font-weight: 700; color: var(--yw-gold-dark); }
.yw-ait-best strong { display: block; font-size: 1.15rem; color: var(--yw-navy); margin: 2px 0 4px; }
.yw-ait-best p { margin: 0; color: var(--yw-muted); font-size: .92rem; }
.yw-ask .h2, .yw-ask h2 { font-size: 1.35rem; }
.yw-ask-thread-wrap { display: grid; gap: 4px; margin: 14px 0 6px; }
.yw-ask-thread { display: grid; gap: 8px; margin-bottom: 8px; }
.yw-ask-q, .yw-ask-a { max-width: 85%; margin: 0; padding: 11px 15px; border-radius: 16px; line-height: 1.55; }
.yw-ask-q { justify-self: end; background: var(--yw-navy); color: #fff; border-bottom-right-radius: 4px; }
.yw-ask-a { justify-self: start; background: #F3F5F9; border: 1px solid var(--yw-border); border-bottom-left-radius: 4px; }
.yw-ask-a.is-unsure { background: #FFF7E6; border-color: #F3D9A0; }
.yw-ask-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.yw-ask-form { display: flex; gap: 8px; }
.yw-ask-form .btn { flex: none; min-width: 84px; }
.yw-checklist-doc { background: #fff; border: 1px solid var(--yw-border); border-radius: 18px; padding: 32px 36px; }
.yw-checklist-doc h2 { font-size: 1.8rem; color: var(--yw-navy); margin-bottom: 4px; }
.yw-checklist-doc h3 { font-size: 1.15rem; color: var(--yw-navy); margin: 24px 0 10px; }
.yw-tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.yw-tick-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--yw-border); border-radius: 12px; break-inside: avoid; }
.yw-tick-list small { display: block; color: var(--yw-muted); }
.yw-box-tick { flex: none; width: 20px; height: 20px; margin-top: 2px; border: 2px solid var(--yw-navy); border-radius: 5px; }
.yw-steps-list { padding-left: 1.3rem; }
.yw-steps-list li { margin-bottom: 6px; }
.yw-ait-stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin-top: 22px; background: #EEF1F6; }
.yw-ait-stack .is-loan, .yw-ait-stack-legend .is-loan::before { background: var(--yw-navy); }
.yw-ait-stack .is-down, .yw-ait-stack-legend .is-down::before { background: var(--yw-gold); }
.yw-ait-stack .is-costs, .yw-ait-stack-legend .is-costs::before { background: #8A93A6; }
.yw-ait-stack-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; font-size: .82rem; font-weight: 600; color: var(--yw-muted); }
.yw-ait-stack-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.yw-ait-more { margin-top: 64px; }
.yw-ait-more h2 { margin-bottom: 18px; }
.yw-ait-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.yw-ait-hero h1 { max-width: 640px; }
.yw-ait-heroask { display: flex; gap: 8px; max-width: 600px; margin-top: 26px; padding: 8px; border-radius: 18px; background: rgba(255, 255, 255, .96); box-shadow: 0 0 0 1px rgba(240, 201, 90, .45), 0 30px 60px -30px rgba(0, 0, 0, .7); }
.yw-ait-heroask input { flex: 1; min-width: 0; border: 0; outline: none; padding: 8px 12px; font-size: 1.02rem; font-weight: 600; color: var(--yw-text); background: transparent; }
.yw-ait-group { font-size: 1.6rem; color: var(--yw-navy); margin-bottom: 18px; }
.yw-ait-tile { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 24px; border-radius: 22px; border: 1px solid var(--yw-border); background: #fff; color: var(--yw-text); text-decoration: none; box-shadow: 0 1px 0 rgba(10, 22, 48, .04), 0 12px 32px -20px rgba(10, 22, 48, .4); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s; }
.yw-ait-tile:hover { color: var(--yw-text); transform: translateY(-5px); border-color: rgba(212, 167, 44, .7); box-shadow: 0 0 0 1px rgba(212, 167, 44, .25), 0 34px 64px -28px rgba(10, 22, 48, .5); }
.yw-ait-tile strong { font-family: var(--yw-display, inherit); font-weight: 400; font-size: 1.35rem; color: var(--yw-navy); margin-top: 6px; }
.yw-ait-tile-text { color: var(--yw-muted); line-height: 1.6; flex-grow: 1; }
.yw-ait-tile-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.yw-ait-badge { font-size: .74rem; font-weight: 800; border-radius: 999px; padding: 3px 10px; background: #E3F4EA; color: #1E6B3A; }
.yw-ait-badge.is-muted { background: #EEF1F6; color: #3B4660; }
.yw-ait-go { margin-left: auto; font-weight: 800; color: var(--yw-gold-dark); font-size: .9rem; }
.yw-ai-fill { margin-top: 18px; padding: 18px 20px; border-radius: 18px; background: linear-gradient(135deg, #FBF6E7, #fff 70%); border: 1px solid #EBDDB3; }
.yw-ai-filled { animation: ywFilled 4s ease-out; }
@keyframes ywFilled { 0%, 60% { box-shadow: 0 0 0 4px rgba(212, 167, 44, .45); border-color: var(--yw-gold); } }
.yw-ai-home { background: radial-gradient(800px 380px at 88% 0%, rgba(212, 167, 44, .16), transparent 70%), var(--yw-navy-deep, #071022); color: #fff; }
.yw-ai-home h2 { color: #fff; }
.yw-ai-home .yw-lead { color: #C9D0DD; }
.yw-ai-home .yw-tool { background: rgba(255, 255, 255, .04); border-color: rgba(240, 201, 90, .2); color: #fff; box-shadow: none; }
.yw-ai-home .yw-tool strong { color: #fff; }
.yw-ai-home .yw-tool small { color: #AEB7C8; }
.yw-ai-home .yw-tool:hover { color: #fff; background: rgba(240, 201, 90, .07); }
.yw-hero-ai { max-width: 1040px; margin: 18px auto 0; text-align: center; font-size: .97rem; line-height: 1.6; color: #D9DEE8; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.yw-hero-ai > span { color: var(--yw-gold-light); margin-right: 4px; }
.yw-hero-ai a { color: var(--yw-gold-light); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(240, 201, 90, .45); text-underline-offset: 4px; }
.yw-hero-ai a:hover, .yw-hero-ai a:focus-visible { color: #fff; text-decoration-color: #fff; }
@media (max-width: 575.98px) {
  .yw-ait-form, .yw-ait-card, .yw-checklist-doc { padding: 20px 18px; }
  .yw-agreement { padding: 24px 18px; }
  .yw-ait-facts, .yw-sign { grid-template-columns: 1fr; }
  .yw-vastu-cell { min-height: 84px; padding: 8px; }
  .yw-vastu-room { font-size: .74rem; padding: 3px 8px; }
  .yw-ask-q, .yw-ask-a { max-width: 95%; }
  .yw-ait-heroask { flex-direction: column; }
}
@media print {
  .yw-no-print { display: none !important; }
  .yw-agreement, .yw-checklist-doc, .yw-ait-card { border: 0; box-shadow: none; padding: 0; }
  .yw-ait-page { padding: 0 !important; }
}
.yw-tools-menu .dropdown-header { font-weight: 800; font-size: .78rem; color: var(--yw-gold-dark); }
.yw-ai-new { display: inline-block; background: #E3F4EA; color: #1E6B3A; border-radius: 999px; padding: 1px 7px; font-size: .66rem; margin-left: 4px; vertical-align: 1px; }

/* ---------- iPhone app and iPhone install ---------- */
.yw-app-btns { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: flex-start; }
.yw-app-btn-wrap { min-width: 0; }
.yw-box .yw-app-note { color: #5A6378; }
.yw-ios-share { vertical-align: -3px; margin: 0 2px; color: #1E6FD9; }
@media (min-width: 992px) { .yw-checklist-2 { columns: 2; column-gap: 40px; } .yw-checklist-2 li { break-inside: avoid; } }
/* On a phone, show only the steps for that phone */
html.is-iphone [data-os="android"], html.is-android [data-os="ios"] { display: none !important; }
/* Inside the iPhone app: the app has its own tab bar */
.is-ios-app .yw-appbar, .is-ios-app #installBanner, .is-ios-app #iosBanner { display: none !important; }
.is-ios-app body, body.is-ios-app { padding-bottom: 0 !important; }
.is-ios-app .yw-wa { bottom: 16px !important; }

/* Requirements (My Account) */
.yw-req-list { list-style: none; padding: 0; margin: 12px 0 0; }
.yw-req-item { border: 1px solid var(--yw-border); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.yw-req-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.yw-req-top strong { display: block; color: var(--yw-navy); }
.yw-req-top small { display: block; color: var(--yw-muted); margin-top: 2px; }
.yw-req-status { flex-shrink: 0; font-size: .74rem; font-weight: 800; border-radius: 999px; padding: 3px 10px; }
.yw-req-ok { background: #E3F4E8; color: #1E6B3A; }
.yw-req-warn { background: #FFF3D6; color: #7A5A0A; }
.yw-req-bad { background: #FDE7E5; color: #A6251B; }
.yw-req-muted { background: #EEF0F4; color: #4A5468; }
.yw-req-agents { font-size: .88rem; margin: 10px 0 6px; }
.yw-req-agent-list { list-style: none; padding: 0; margin: 0 0 8px; }
.yw-req-agent-list li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .9rem; padding: 6px 10px; background: #F7F8FA; border-radius: 8px; margin-bottom: 6px; }
.yw-req-agent-list a { font-weight: 700; white-space: nowrap; }
.yw-req-actions { margin-top: 10px; }
.yw-req-ref { color: var(--yw-muted); margin-bottom: 14px; }
.yw-req-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--yw-navy); color: #fff; border-radius: var(--yw-radius); padding: 20px 24px; margin-top: 32px; }
.yw-req-cta strong { display: block; font-size: 1.08rem; color: #fff; }
.yw-req-cta span { color: #C9D1E2; font-size: .92rem; }

/* Agents Console (/agents) */
.yw-ag-head p { margin-bottom: 4px; }
.yw-ag-head { padding-bottom: 44px; }
.yw-ag-pending { background: #FFF6DC; border-left: 4px solid var(--yw-gold); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: .94rem; }
.yw-ag-loc { background: #fff; border: 1px solid var(--yw-border); border-radius: var(--yw-radius); padding: 14px 18px; margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.yw-ag-loc-now strong { color: var(--yw-navy); font-size: 1.15rem; margin: 0 6px; }
.yw-ag-loc-label { color: var(--yw-muted); font-size: .85rem; }
.yw-ag-loc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.yw-ag-radius { display: inline-flex; border: 1px solid #CDD3DE; border-radius: 8px; overflow: hidden; }
.yw-ag-radius a { padding: 5px 11px; font-size: .84rem; font-weight: 700; color: var(--yw-navy); text-decoration: none; border-right: 1px solid #CDD3DE; }
.yw-ag-radius a:last-child { border-right: 0; }
.yw-ag-radius a.active { background: var(--yw-navy); color: #fff; }
.yw-ag-gps-msg { width: 100%; color: var(--yw-muted); }
.yw-ag-gps-msg:empty { display: none; }
.yw-ag-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.yw-ag-filters .yw-seg { flex: 0 0 240px; }
.yw-ag-count { color: var(--yw-muted); margin-bottom: 12px; }
.yw-ag-count strong { color: var(--yw-navy); }
.yw-ag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.yw-ag-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--yw-border); border-radius: var(--yw-radius); padding: 16px 18px; text-decoration: none; color: var(--yw-text); }
.yw-ag-card:hover { border-color: var(--yw-gold); }
.yw-ag .yw-ag-card h2 { font-size: 1.15rem; line-height: 1.3; color: var(--yw-navy); margin: 8px 0 4px; }
.yw-ag-card-top { display: flex; align-items: center; gap: 8px; }
.yw-ag-kind { font-size: .72rem; font-weight: 800; border-radius: 999px; padding: 3px 10px; text-transform: none; }
.yw-ag-buy { background: #E6EEF9; color: #1E4E8C; }
.yw-ag-rent { background: #E3F4E8; color: #1E6B3A; }
.yw-ag-mine { font-size: .72rem; font-weight: 800; background: var(--yw-navy); color: #fff; border-radius: 999px; padding: 3px 10px; }
.yw-ag-closed { font-size: .74rem; font-weight: 800; background: #EEF0F4; color: #4A5468; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.yw-ag-when { margin-left: auto; font-size: .8rem; color: var(--yw-muted); }
.yw-ag-place { margin: 0 0 6px; font-size: .92rem; }
.yw-ag-place span { color: var(--yw-muted); }
.yw-ag-facts { margin: 0 0 6px; font-weight: 700; font-size: .9rem; color: var(--yw-navy); }
.yw-ag-note { margin: 0 0 8px; font-size: .86rem; color: var(--yw-muted); }
.yw-ag-card-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--yw-border); display: flex; justify-content: space-between; font-size: .8rem; color: var(--yw-muted); }
.yw-ag-facts-list { list-style: none; padding: 0; margin: 0; }
.yw-ag-facts-list li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--yw-border); }
.yw-ag-facts-list li:last-child { border-bottom: 0; }
.yw-ag-facts-list span { color: var(--yw-muted); }
.yw-ag-facts-list strong { color: var(--yw-navy); text-align: right; }
.yw-ag-contact { border-top: 4px solid var(--yw-gold); }
.yw-ag-client { font-size: 1.05rem; }
.yw-ag-steps { padding-left: 1.2rem; }
.yw-ag-steps li { margin-bottom: 12px; color: var(--yw-muted); }
.yw-ag-steps strong { color: var(--yw-navy); }
.yw-ag-join { border-top: 4px solid var(--yw-gold); }
.yw-ag-subtabs { display: flex; gap: 8px; }
.yw-ag-subtabs a { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--yw-border); color: var(--yw-navy); font-weight: 700; text-decoration: none; font-size: .9rem; }
.yw-ag-subtabs a.active { background: var(--yw-navy); color: #fff; border-color: var(--yw-navy); }
.yw-ag-leads { list-style: none; padding: 0; margin: 0; }
.yw-ag-leads li { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: #fff; border: 1px solid var(--yw-border); border-radius: var(--yw-radius); padding: 14px 18px; margin-bottom: 10px; }
.yw-ag-leads small { display: block; color: var(--yw-muted); }
.yw-ag-lead-title { font-weight: 800; color: var(--yw-navy); text-decoration: none; }
.yw-ag-lead-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 575.98px) {
  .yw-ag-grid { grid-template-columns: 1fr; }
  .yw-ag-filters .form-select, .yw-ag-filters .form-control { max-width: none !important; flex: 1 1 140px; }
  .yw-ag-filters .yw-seg { flex: 1 1 100%; max-width: none !important; }
  .yw-ag-loc { padding: 12px 14px; }
}

/* Homepage: post a requirement / agents */
.yw-hero-match { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin: 18px auto 0; }
.yw-hero-match a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(240, 201, 90, .55); background: rgba(7, 16, 34, .55); backdrop-filter: blur(6px); color: #E6E9F0; text-decoration: none; font-size: .93rem; }
.yw-hero-match a strong { color: var(--yw-gold-light); }
.yw-hero-match a:hover, .yw-hero-match a:focus-visible { border-color: var(--yw-gold-light); background: rgba(212, 167, 44, .18); color: #fff; }
.yw-match-card { height: 100%; border-radius: 18px; padding: 30px 32px; position: relative; overflow: hidden; }
.yw-match-card h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem) !important; line-height: 1.15; margin: 0 0 10px; }
.yw-match-card p { margin-bottom: 14px; }
.yw-match-buyer { background: #fff; border: 1px solid var(--yw-border); border-top: 4px solid var(--yw-gold); }
.yw-match-buyer h2 { color: var(--yw-navy); }
.yw-match-buyer p { color: var(--yw-muted); }
.yw-match-agent { background: radial-gradient(420px 220px at 100% 0%, rgba(212, 167, 44, .2), transparent 70%), var(--yw-navy); color: #fff; }
.yw-match-agent h2 { color: #fff; }
.yw-match-agent p { color: #C3C9D6; }
.yw-match-examples { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.yw-match-examples li { font-size: .82rem; font-weight: 700; color: var(--yw-navy); background: #FBF5E4; border: 1px dashed #D9C48A; border-radius: 8px; padding: 5px 10px; }
.yw-match-points { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 7px; }
.yw-match-points li { position: relative; padding-left: 26px; font-weight: 600; font-size: .94rem; }
.yw-match-points li::before { content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border-radius: 50%; background: var(--yw-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A1630' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 10px no-repeat; }
.yw-match-buyer .yw-match-points li { color: var(--yw-navy); }
.yw-match-agent .yw-match-points li { color: #E6E9F0; }
.yw-match-note { display: inline-block; margin-left: 12px; font-size: .85rem; color: var(--yw-muted); }
.yw-topbar-req { font-weight: 700; }
.yw-offcanvas-match { display: grid; gap: 10px; margin-top: 16px; }
@media (max-width: 575.98px) {
  .yw-match-card { padding: 24px 20px; }
  .yw-match-card .btn { width: 100%; }
  .yw-match-note { display: block; margin: 8px 0 0; text-align: center; }
  .yw-hero-match { flex-direction: column; align-items: stretch; }
  .yw-hero-match a { justify-content: center; }
}

/* Agent verification */
.yw-ag-signout { background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 8px; padding: 3px 12px; font-size: .84rem; font-weight: 700; }
.yw-ag-signout:hover { border-color: var(--yw-gold-light); color: var(--yw-gold-light); }
.yw-badge-ok { display: inline-block; font-size: .74rem; font-weight: 800; color: #1E6B3A; background: #E3F4E8; border-radius: 999px; padding: 2px 9px; margin: 2px 4px 2px 0; white-space: nowrap; }
.yw-ag-state { display: inline-block; font-size: .78rem; font-weight: 800; border-radius: 999px; padding: 4px 12px; }
.yw-ag-state-wait { background: #FFF3D6; color: #7A5A0A; }
.yw-ag-state-ok { background: #E3F4E8; color: #1E6B3A; }
.yw-ag-state-bad { background: #FDE7E5; color: #A6251B; }
.yw-ag-ok { color: #1E6B3A; font-weight: 800; font-size: .86rem; }
.yw-ag-bignum { font-family: var(--yw-display, serif); font-size: 3.4rem; line-height: 1; color: var(--yw-navy); margin: 6px 0 8px; }
.yw-ag-login .form-control-lg { font-size: 1.05rem; }
.yw-req-agent-meta { display: block; font-size: .8rem; color: var(--yw-muted); margin-top: 2px; }
.yw-req-report summary { cursor: pointer; font-size: .82rem; font-weight: 700; color: #A6251B; list-style: none; }
.yw-req-report summary::-webkit-details-marker { display: none; }
.yw-req-report[open] { width: 100%; }
.yw-req-report form { margin-top: 8px; display: grid; gap: 8px; }

/* ---------- Agents Console: its own app shell, like the Team portal (no website menu) ---------- */
.ag-app { background: var(--yw-ivory); min-height: 100vh; display: flex; flex-direction: column; }
.ag-skip { position: absolute; left: 12px; top: 8px; z-index: 50; background: #fff; padding: 6px 12px; border-radius: 8px; }
.ag-top { position: sticky; top: 0; z-index: 30; background: var(--yw-navy); color: #fff; padding-top: env(safe-area-inset-top); border-bottom: 1px solid rgba(212, 167, 44, .35); }
.ag-top-in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.ag-brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; text-decoration: none; }
.ag-brand img { height: 42px; width: auto; }
.ag-brand span { color: var(--yw-gold-light); font-weight: 800; font-size: .95rem; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .22); line-height: 1.6; }
.ag-nav { display: flex; align-self: stretch; gap: 4px; }
.ag-nav a { display: flex; align-items: center; gap: 8px; padding: 0 14px; color: #BFC7D7; font-weight: 700; font-size: .95rem; text-decoration: none; border-bottom: 3px solid transparent; border-top: 3px solid transparent; }
.ag-nav a:hover { color: #fff; }
.ag-nav a.active { color: #fff; border-bottom-color: var(--yw-gold); }
.ag-nav a:focus-visible, .ag-tabbar a:focus-visible, .ag-me a:focus-visible { outline: 2px solid var(--yw-gold-light); outline-offset: -2px; }
.ag-me { margin-left: auto; display: flex; align-items: center; gap: 14px; min-width: 0; }
.ag-me-name { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; line-height: 1.25; text-decoration: none; }
.ag-me-name strong { color: #fff; font-size: .92rem; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-me-name span { color: #AEB7C9; font-size: .76rem; white-space: nowrap; }
.ag-me .yw-ag-signout { padding: 6px 12px; white-space: nowrap; }
.ag-main { flex: 1 0 auto; padding: 30px 0 24px; }
.ag-title { margin-bottom: 20px; }
.ag-title h1 { font-size: clamp(1.65rem, 3vw, 2.2rem); color: var(--yw-navy); margin: 0 0 4px; }
.ag-title p { color: var(--yw-muted); margin: 0; }
.ag-foot { margin: 40px 0 0; padding-top: 16px; border-top: 1px solid var(--yw-border); font-size: .84rem; color: var(--yw-muted); text-align: center; }
.ag-tabbar { display: none; }
@media (max-width: 767.98px) {
  .ag-nav { display: none; }
  .ag-top-in { min-height: 58px; gap: 12px; }
  .ag-brand { gap: 9px; }
  .ag-brand img { height: 34px; }
  .ag-brand span { font-size: .86rem; padding-left: 9px; }
  .ag-me { gap: 10px; }
  .ag-me-name strong { max-width: 120px; font-size: .84rem; }
  .ag-me-name span { font-size: .7rem; }
  .ag-me .yw-ag-signout { padding: 5px 10px; font-size: .78rem; }
  .ag-main { padding: 20px 0 0; }
  .ag-title h1 { font-size: 1.55rem; }
  .ag-foot { margin-top: 28px; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .ag-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--yw-border); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px rgba(10, 22, 48, .08); }
  .ag-tabbar a { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px 10px; font-size: .72rem; font-weight: 800; color: #5A6378; text-decoration: none; position: relative; }
  .ag-tabbar a.active { color: var(--yw-navy); }
  .ag-tabbar a.active::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--yw-gold); }
}
@media (max-width: 340px) { .ag-me-name { display: none; } }

/* Agent sign-in screen */
.ag-login-page { background: radial-gradient(circle at 20% 10%, #1B3160 0%, var(--yw-navy) 55%, #060E20 100%); }
.ag-login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }
.ag-login-card { width: 100%; max-width: 410px; background: #fff; border-radius: 20px; padding: 30px 26px 26px; border-top: 4px solid var(--yw-gold); box-shadow: 0 30px 70px rgba(0, 0, 0, .4); }
.ag-login-card img { display: block; height: 70px; margin: 0 auto 8px; background: var(--yw-navy); border-radius: 12px; padding: 6px 14px; }
.ag-login-card h1 { text-align: center; font-size: 1.5rem; color: var(--yw-navy); margin: 8px 0 4px; }
.ag-login-sub { text-align: center; color: var(--yw-muted); font-size: .9rem; margin-bottom: 20px; }
.ag-login-card .form-label { font-weight: 700; font-size: .86rem; color: #3A4458; }
.ag-login-back { margin: 18px 0 0; font-size: .86rem; }
.ag-login-back a { color: #C9D1E2; }
.ag-login-back a:hover { color: #fff; }
