/* ==========================================================================
   Future Realty India — premium portal theme layer
   Loaded AFTER plugin.css and style.css. New sections are scoped to .fri and
   use fri- prefixed classes with CSS Grid, so the legacy theme cannot fight
   them. Header/footer rules deliberately override the old Sarchholm theme.
   Brand primary stays #007dc2.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
    --fri-blue:        #007dc2;
    --fri-blue-dark:   #00527f;
    --fri-blue-soft:   rgba(0, 125, 194, .1);

    --fri-ink:         #0b1b2b;
    --fri-ink-2:       #12293f;
    --fri-slate:       #46586b;
    --fri-muted:       #7a8797;
    --fri-line:        #e4e9ef;
    --fri-cream:       #f6f8fa;

    --fri-radius:      14px;
    --fri-radius-sm:   10px;
    --fri-shadow:      0 14px 34px -16px rgba(11, 27, 43, .26);
    --fri-shadow-lg:   0 28px 64px -24px rgba(11, 27, 43, .4);

    --fri-display: "Playfair Display", Georgia, "Times New Roman", serif;
    --fri-sans: "Inter", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --fri-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Base ------------------------------------------------------ */
.fri, .fri * { box-sizing: border-box; }

.fri {
    font-family: var(--fri-sans);
    color: var(--fri-slate);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
.fri h1, .fri h2, .fri h3, .fri h4 {
    font-family: var(--fri-display);
    color: var(--fri-ink);
    font-weight: 600;
    letter-spacing: -.012em;
    line-height: 1.18;
    margin: 0;
}
.fri p { margin: 0; }
.fri img { max-width: 100%; display: block; }
.fri a { text-decoration: none; transition: color .22s var(--fri-ease); }
.fri ul { list-style: none; margin: 0; padding: 0; }

.fri__wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 26px; }

.fri__section { padding: 64px 0; }
.fri__section--cream { background: var(--fri-cream); }
.fri__section--ink { background: var(--fri-ink); }

/* Section heading ---------------------------------------------------------*/
.fri__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--fri-line);
}
.fri__section--ink .fri__head { border-bottom-color: rgba(255,255,255,.1); }
.fri__eyebrow {
    display: block;
    font-family: var(--fri-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--fri-blue);
    margin-bottom: 7px;
}
.fri__title { font-size: clamp(24px, 2.5vw, 33px); }
.fri__section--ink .fri__title { color: #fff; }

/* Buttons -----------------------------------------------------------------*/
.fri-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--fri-sans);
    font-size: 14px;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .25s var(--fri-ease);
    white-space: nowrap;
}
.fri-btn--primary { background: var(--fri-blue); color: #fff; }
.fri-btn--primary:hover { background: var(--fri-blue-dark); color: #fff; }
.fri-btn--ghost {
    background: #fff;
    color: var(--fri-ink);
    border-color: var(--fri-line);
}
.fri-btn--ghost:hover { border-color: var(--fri-blue); color: var(--fri-blue); }

.fri-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--fri-blue);
    white-space: nowrap;
}
.fri-link i { font-size: 11px; transition: transform .28s var(--fri-ease); }
.fri-link:hover { color: var(--fri-blue-dark); }
.fri-link:hover i { transform: translateX(4px); }
.fri__section--ink .fri-link { color: #7ec8f0; }

/* ---------- 3. Hero (compact) -------------------------------------------- */
.fri-hero {
    position: relative;
    padding: 108px 0 50px;
    background-size: cover;
    background-position: center;
    isolation: isolate;
}
.fri-hero::after {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(100deg, rgba(6,18,30,.93) 0%, rgba(6,18,30,.78) 48%, rgba(6,18,30,.5) 100%),
        linear-gradient(to top, rgba(6,18,30,.9) 0%, rgba(6,18,30,0) 46%);
}
.fri-hero__inner { position: relative; z-index: 2; }
.fri-hero__copy { max-width: 720px; margin-bottom: 26px; }
.fri-hero__title {
    font-size: clamp(28px, 3.5vw, 46px);
    color: #fff !important;
    line-height: 1.12;
}
.fri-hero__text {
    margin-top: 12px;
    font-size: 16px;
    color: rgba(255,255,255,.74);
    max-width: 60ch;
}

/* Search panel ------------------------------------------------------------*/
.fri-sp {
    background: rgba(255,255,255,.97);
    border-radius: var(--fri-radius);
    box-shadow: var(--fri-shadow-lg);
    overflow: hidden;
    max-width: 1080px;
}
.fri-sp__tabs { display: flex; gap: 0; border-bottom: 1px solid var(--fri-line); }
.fri-sp__tab {
    padding: 14px 26px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--fri-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all .25s var(--fri-ease);
}
.fri-sp__tab:hover { color: var(--fri-ink); }
.fri-sp__tab.is-active { color: var(--fri-blue); border-bottom-color: var(--fri-blue); }

.fri-sp__body {
    display: grid;
    grid-template-columns: 2fr 1.1fr 1.1fr auto;
    gap: 0;
    align-items: stretch;
    margin: 0;
}
.fri-sp__field { padding: 14px 20px; min-width: 0; }
.fri-sp__field + .fri-sp__field { border-left: 1px solid var(--fri-line); }
.fri-sp__field label {
    display: block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--fri-muted) !important;
    margin: 0 0 5px !important;
    font-family: var(--fri-sans) !important;
    line-height: 1.3 !important;
}
.fri-sp__input { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fri-sp__input > i { color: var(--fri-blue); font-size: 13px; flex: none; }

/* Hard reset — legacy CSS styles bare input/select globally. */
.fri-sp__input input,
.fri-sp__input select,
.fri-sp__input input[type="text"] {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.45 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    color: var(--fri-ink) !important;
    font-family: var(--fri-sans) !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    text-overflow: ellipsis;
}
.fri-sp__input input::placeholder { color: #a3adba; opacity: 1; }

.fri-sp__go {
    border-radius: 0 !important;
    padding: 0 34px !important;
    align-self: stretch;
    font-size: 14.5px !important;
}

.fri-sp__quick {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 12px 20px;
    background: var(--fri-cream);
    border-top: 1px solid var(--fri-line);
    font-size: 13px;
}
.fri-sp__quick > span {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--fri-muted);
}
.fri-sp__quick a { color: var(--fri-slate); font-weight: 500; }
.fri-sp__quick a:hover { color: var(--fri-blue); }

/* main.js runs $('select').selectpicker() globally, replacing every native
   <select> with a bootstrap-select widget. Style that widget, not the select. */
.fri-sp__input .bootstrap-select { width: 100% !important; position: relative !important; display: block !important; }
.fri-sp__input .bootstrap-select > .dropdown-toggle,
.fri-sp__input .bootstrap-select > .dropdown-toggle.btn-light {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 20px 0 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.45 !important;
    color: var(--fri-ink) !important;
    font-family: var(--fri-sans) !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    text-align: left !important;
    width: 100% !important;
}
.fri-sp__input .bootstrap-select .filter-option,
.fri-sp__input .bootstrap-select .filter-option-inner,
.fri-sp__input .bootstrap-select .filter-option-inner-inner {
    color: var(--fri-ink) !important;
    position: static !important;
    padding: 0 !important;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fri-sp__input .bootstrap-select > .dropdown-toggle::after {
    border-top-color: var(--fri-muted) !important;
    position: absolute; right: 0; top: 50%;
    transform: translateY(-50%); margin: 0 !important;
}
.fri-sp__input .bootstrap-select .dropdown-menu {
    border-radius: 10px !important;
    border: 1px solid var(--fri-line) !important;
    box-shadow: var(--fri-shadow) !important;
    padding: 7px !important;
    margin-top: 10px !important;
    max-height: 320px;
}
.fri-sp__input .bootstrap-select .dropdown-menu li a {
    border-radius: 7px;
    padding: 8px 12px !important;
    font-family: var(--fri-sans) !important;
    font-size: 13.5px !important;
    color: var(--fri-slate) !important;
}
.fri-sp__input .bootstrap-select .dropdown-menu li a:hover,
.fri-sp__input .bootstrap-select .dropdown-menu li.selected a {
    background: var(--fri-cream) !important;
    color: var(--fri-blue) !important;
}

/* ---------- 4. Trust strip ----------------------------------------------- */
.fri-strip { background: var(--fri-ink); padding: 16px 0; }
.fri-strip__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 26px;
}
.fri-strip__list li {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 13.5px;
    color: rgba(255,255,255,.62);
}
.fri-strip__list i { color: var(--fri-blue); font-size: 15px; flex: none; }
.fri-strip__list strong { color: #fff; font-weight: 600; }

/* ---------- 5. Browse block ---------------------------------------------- */
.fri-browse {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.fri-browse__col {
    background: #fff;
    border: 1px solid var(--fri-line);
    border-radius: var(--fri-radius);
    padding: 22px 22px 24px;
}
.fri-browse__h {
    font-family: var(--fri-sans) !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--fri-ink);
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px !important;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--fri-line);
}
.fri-browse__h i { color: var(--fri-blue); font-size: 13px; }

.fri-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.fri-pills a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 7px;
    background: var(--fri-cream);
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--fri-slate);
    transition: all .22s var(--fri-ease);
}
.fri-pills a b {
    font-size: 11px;
    font-weight: 700;
    color: var(--fri-muted);
    background: #fff;
    border-radius: 20px;
    padding: 1px 7px;
    transition: all .22s var(--fri-ease);
}
.fri-pills a:hover { background: var(--fri-blue); color: #fff; }
.fri-pills a:hover b { background: rgba(255,255,255,.22); color: #fff; }

/* ---------- 6. Project card ---------------------------------------------- */
.fri-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fri-grid--4 { grid-template-columns: repeat(4, 1fr); }

.fri-card {
    background: #fff;
    border: 1px solid var(--fri-line);
    border-radius: var(--fri-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .35s var(--fri-ease), box-shadow .35s var(--fri-ease);
}
.fri-card:hover { transform: translateY(-4px); box-shadow: var(--fri-shadow); }

.fri-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #dfe5ec;
}
.fri-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--fri-ease); }
.fri-card:hover .fri-card__media img { transform: scale(1.06); }

.fri-card__tags {
    position: absolute;
    top: 11px; left: 11px; right: 11px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.fri-badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 5px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(11,27,43,.72);
    backdrop-filter: blur(6px);
}
.fri-badge--premium { background: var(--fri-blue); }
.fri-badge--soft { background: rgba(255,255,255,.9); color: var(--fri-ink); }

.fri-card__body { padding: 16px 17px 0; flex: 1; }
.fri-card__builder {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--fri-blue);
    margin-bottom: 5px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fri-card__name {
    font-size: 17px;
    line-height: 1.28;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.56em;
}
.fri-card__name a { color: var(--fri-ink); }
.fri-card__name a:hover { color: var(--fri-blue); }
.fri-card__loc {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--fri-muted);
}
.fri-card__loc i { color: var(--fri-blue); font-size: 11px; flex: none; }
.fri-card__loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fri-card__meta {
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid var(--fri-line);
    display: grid;
    gap: 3px;
}
.fri-card__cfg {
    font-size: 13px;
    font-weight: 600;
    color: var(--fri-ink);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fri-card__area { font-size: 12.5px; color: var(--fri-muted); }

.fri-card__foot {
    margin-top: 14px;
    padding: 12px 17px;
    background: var(--fri-cream);
    border-top: 1px solid var(--fri-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.fri-card__price {
    font-size: 15px;
    font-weight: 700;
    color: var(--fri-ink);
    min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fri-card__price small {
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fri-muted);
    margin-bottom: 1px;
}
.fri-card__go {
    width: 34px; height: 34px;
    flex: none;
    border-radius: 8px;
    display: grid; place-items: center;
    background: #fff;
    border: 1px solid var(--fri-line);
    color: var(--fri-blue);
    font-size: 12px;
    transition: all .25s var(--fri-ease);
}
.fri-card__go:hover { background: var(--fri-blue); border-color: var(--fri-blue); color: #fff; }

.fri-card__rera {
    padding: 8px 17px;
    background: #fff;
    border-top: 1px solid var(--fri-line);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--fri-muted);
    display: flex; align-items: center; gap: 7px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fri-card__rera i { color: #2fa36b; font-size: 11px; }

/* Dark-section card variant */
.fri__section--ink .fri-card { background: var(--fri-ink-2); border-color: rgba(255,255,255,.09); }
.fri__section--ink .fri-card__name a { color: #fff; }
.fri__section--ink .fri-card__name a:hover { color: #7ec8f0; }
.fri__section--ink .fri-card__loc { color: rgba(255,255,255,.5); }
.fri__section--ink .fri-card__meta { border-top-color: rgba(255,255,255,.09); }
.fri__section--ink .fri-card__cfg { color: #fff; }
.fri__section--ink .fri-card__area { color: rgba(255,255,255,.5); }
.fri__section--ink .fri-card__foot { background: rgba(255,255,255,.04); border-top-color: rgba(255,255,255,.09); }
.fri__section--ink .fri-card__price { color: #fff; }
.fri__section--ink .fri-card__go { background: transparent; border-color: rgba(255,255,255,.2); color: #fff; }
.fri__section--ink .fri-card__rera { background: transparent; border-top-color: rgba(255,255,255,.09); color: rgba(255,255,255,.45); }

/* ---------- 7. Locality mosaic ------------------------------------------- */
.fri-places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fri-place {
    position: relative;
    height: 190px;
    border-radius: var(--fri-radius);
    overflow: hidden;
    display: block;
    background: var(--fri-ink);
}
.fri-place img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--fri-ease); }
.fri-place:hover img { transform: scale(1.07); }
.fri-place::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(6,18,30,.9) 0%, rgba(6,18,30,.1) 62%);
}
.fri-place__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 20px; }
.fri-place__name { color: #fff !important; font-size: 18px; margin-bottom: 3px; }
.fri-place__cta {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 600;
    color: rgba(255,255,255,.7);
    transition: gap .28s var(--fri-ease), color .28s var(--fri-ease);
}
.fri-place__cta i { font-size: 10px; }
.fri-place:hover .fri-place__cta { gap: 12px; color: #fff; }

/* ---------- 8. Insights + advisory --------------------------------------- */
.fri-lower { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.fri-lower__main { min-width: 0; }
.fri-posts { display: grid; gap: 16px; }

.fri-post {
    background: #fff;
    border: 1px solid var(--fri-line);
    border-radius: var(--fri-radius);
    overflow: hidden;
    display: grid;
    grid-template-columns: 190px 1fr;
    transition: box-shadow .3s var(--fri-ease);
}
.fri-post:hover { box-shadow: var(--fri-shadow); }
.fri-post__media { overflow: hidden; background: #dfe5ec; display: block; }
.fri-post__media img { width: 100%; height: 100%; object-fit: cover; min-height: 120px; transition: transform .7s var(--fri-ease); }
.fri-post:hover .fri-post__media img { transform: scale(1.05); }
.fri-post__body { padding: 18px 20px; min-width: 0; }
.fri-post__cat {
    display: inline-block;
    font-size: 10px; font-weight: 700;
    letter-spacing: .13em; text-transform: uppercase;
    color: var(--fri-blue);
    margin-bottom: 8px;
}
.fri-post__title { font-size: 18px; line-height: 1.3; }
.fri-post__title a { color: var(--fri-ink); }
.fri-post__title a:hover { color: var(--fri-blue); }
.fri-post__meta { margin-top: 9px; font-size: 12px; color: var(--fri-muted); }

.fri-aside {
    background: var(--fri-ink);
    border-radius: var(--fri-radius);
    padding: 26px 24px 24px;
    position: sticky;
    top: 96px;
}
.fri-aside__h { color: #fff !important; font-size: 22px; margin-bottom: 10px !important; }
.fri-aside__p { color: rgba(255,255,255,.6); font-size: 14px; }
.fri-aside__list { margin: 18px 0 22px; display: grid; gap: 10px; }
.fri-aside__list li {
    display: flex; gap: 10px;
    font-size: 13.5px;
    color: rgba(255,255,255,.72);
    line-height: 1.5;
}
.fri-aside__list i { color: #2fa36b; font-size: 12px; margin-top: 4px; flex: none; }
.fri-aside__btn { width: 100%; }
.fri-aside__tel {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    margin-top: 12px;
    font-size: 15px; font-weight: 600;
    color: #fff;
}
.fri-aside__tel i { color: var(--fri-blue); font-size: 13px; }
.fri-aside__tel:hover { color: #7ec8f0; }

/* ---------- 9. Shared header --------------------------------------------- */
.header.transparent .site-navbar-wrap.v1 {
    background: transparent;
    padding: 10px 0;
    transition: background .35s var(--fri-ease), padding .35s var(--fri-ease), box-shadow .35s var(--fri-ease);
}
.header.scrolled .site-navbar-wrap.v1,
.header.scroll .site-navbar-wrap.v1 {
    background: rgba(255,255,255,.98) !important;
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px -10px rgba(11,27,43,.28);
    padding: 6px 0;
}
.site-navbar .navbar-brand { display: inline-block; padding: 0 !important; margin: 0 !important; }
.site-navbar .navbar-brand img {
    max-height: 42px;
    width: auto;
    transition: max-height .35s var(--fri-ease);
}
.header.scrolled .site-navbar .navbar-brand img,
.header.scroll .site-navbar .navbar-brand img { max-height: 36px; }

/* Desktop layout: logo left · menu centred · actions right.
   Scoped to >=992px so Bootstrap's .d-none still hides the menu on mobile and
   the existing hamburger / off-canvas menu keeps working untouched. */
.fri-nav__actions { display: none; }

@media (min-width: 992px) {
    /* nowrap + basis:0 keeps logo and nav on one line. With basis:auto the nav
       column claims max-content width and drops to a second row. */
    .site-navbar .row { flex-wrap: nowrap !important; }
    .site-navbar .row > [class*="col-lg-2"] { flex: 0 0 auto; max-width: 170px; }
    .site-navbar .row > [class*="col-lg-8"] {
        flex: 1 1 0%;
        min-width: 0;
        max-width: none;
        display: flex;
        align-items: center;
        gap: 18px;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .site-navigation {
        flex: 1 1 0%;
        min-width: 0;
        padding: 0 !important;
        margin: 0 !important;
    }
    .site-navigation .container {
        width: auto !important; max-width: none !important;
        padding: 0 !important; margin: 0 !important;
    }
    .site-navigation ul.site-menu.d-lg-block {
        display: flex !important;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 4px;
        margin: 0 !important; padding: 0 !important;
    }
    .site-navigation ul.site-menu > li { float: none !important; margin: 0 !important; white-space: nowrap; }
    /* Contact lives in the header actions on desktop; the <li> stays in the DOM
       so js-clone-nav still copies it into the mobile menu. */
    .site-navigation ul.site-menu > li.fri-hide-lg { display: none !important; }

    .fri-nav__actions { display: flex; align-items: center; gap: 8px; flex: none; }
}

/* Menu links --------------------------------------------------------------*/
/* The legacy theme paints a 2px blue hover bar via a::before pinned at
   top:-20px. With the shorter header it floats above the menu — kill it. */
.site-navigation ul.site-menu > li > a::before { display: none !important; }
/* Legacy li padding inset the link 15px from the li box, so the hover pill and
   the dropdown (anchored to the li) didn't line up. */
.site-navigation ul.site-menu > li { padding: 0 !important; }

.site-navigation ul.site-menu > li > a {
    font-family: var(--fri-sans) !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    letter-spacing: .005em;
    color: rgba(255,255,255,.82) !important;
    padding: 9px 14px !important;
    border-radius: 7px;
    position: relative;
    transition: color .22s var(--fri-ease), background .22s var(--fri-ease);
}
.site-navigation ul.site-menu > li > a:hover {
    color: #fff !important;
    background: rgba(255,255,255,.12);
}
/* Small chevron on items that actually have a dropdown. */
.site-navigation ul.site-menu > li:has(> ul.dropdown) > a::after {
    content: "";
    display: inline-block;
    width: 5px; height: 5px;
    margin-left: 8px;
    vertical-align: 2px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: .55;
    transition: transform .25s var(--fri-ease);
}
.site-navigation ul.site-menu > li:has(> ul.dropdown):hover > a::after {
    transform: rotate(225deg) translateY(-3px);
    opacity: 1;
}

.header.scrolled .site-menu > li > a,
.header.scroll .site-menu > li > a { color: var(--fri-slate) !important; }
.header.scrolled .site-menu > li > a:hover,
.header.scroll .site-menu > li > a:hover {
    color: var(--fri-blue) !important;
    background: var(--fri-blue-soft);
}

/* Header actions ----------------------------------------------------------*/
.fri-nav__tel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 7px;
    font-family: var(--fri-sans);
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    white-space: nowrap;
    transition: color .22s var(--fri-ease), background .22s var(--fri-ease);
}
.fri-nav__tel i { color: var(--fri-blue); font-size: 12px; }
.fri-nav__tel:hover { color: #fff; background: rgba(255,255,255,.12); }
.header.scrolled .fri-nav__tel,
.header.scroll .fri-nav__tel { color: var(--fri-slate); }
.header.scrolled .fri-nav__tel:hover,
.header.scroll .fri-nav__tel:hover { color: var(--fri-blue); background: var(--fri-blue-soft); }

.fri-nav__cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 7px;
    background: var(--fri-blue);
    color: #fff !important;
    font-family: var(--fri-sans);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .22s var(--fri-ease), transform .22s var(--fri-ease);
}
.fri-nav__cta:hover { background: var(--fri-blue-dark); color: #fff !important; transform: translateY(-1px); }

/* Dropdown ----------------------------------------------------------------*/
.site-navigation ul.site-menu > li { position: relative; }
.site-menu .dropdown {
    left: 0 !important;
    right: auto !important;
    top: 100% !important;
    transform: none !important;
    border-radius: 10px !important;
    border: 1px solid var(--fri-line) !important;
    border-top: 2px solid var(--fri-blue) !important;
    box-shadow: 0 18px 40px -16px rgba(11,27,43,.32) !important;
    padding: 7px !important;
    min-width: 214px !important;
    margin-top: 8px !important;
}
.site-menu .dropdown li a {
    font-family: var(--fri-sans) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 6px;
    padding: 9px 12px !important;
    color: var(--fri-slate) !important;
    transition: background .18s var(--fri-ease), color .18s var(--fri-ease);
}
.site-menu .dropdown li a:hover { background: var(--fri-cream) !important; color: var(--fri-blue) !important; }

/* Mobile hamburger — the theme's lnr icon comes from an external CDN, so draw
   our own glyph and hide the original to avoid an invisible button. */
.mobile-bar { color: #fff !important; font-size: 0 !important; line-height: 0 !important; }
.mobile-bar > span { display: none !important; }
.mobile-bar::before {
    content: "";
    display: inline-block;
    width: 22px; height: 15px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    position: relative;
}
.mobile-bar::after {
    content: "";
    display: block;
    width: 22px; height: 2px;
    background: currentColor;
    margin-top: -8.5px;
}
.header.scrolled .mobile-bar,
.header.scroll .mobile-bar { color: var(--fri-ink) !important; }

/* ---------- 10. Shared footer override ----------------------------------- */
.footer-wrapper.v2 { background: var(--fri-ink) !important; }
.footer-wrapper.v2 .footer-top-area { padding: 64px 0 46px; }
.footer-wrapper.v2 .footer-logo img { max-height: 54px; width: auto; margin-bottom: 18px; }
.footer-wrapper.v2 .company-desc p {
    font-family: var(--fri-sans);
    color: rgba(255,255,255,.55) !important;
    font-size: 14px;
    line-height: 1.7;
}
.footer-wrapper.v2 .footer-content .title,
.footer-wrapper.v2 h2.title {
    font-family: var(--fri-display) !important;
    color: #fff !important;
    font-size: 18px !important;
    margin-bottom: 18px !important;
    position: relative;
    padding-bottom: 12px;
}
.footer-wrapper.v2 .footer-content .title::after {
    content: "";
    position: absolute; left: 0; bottom: 0;
    width: 30px; height: 2px;
    background: var(--fri-blue);
}
.footer-wrapper.v2 .text-center .footer-content .title::after { left: 50%; transform: translateX(-50%); }
.footer-wrapper.v2 .list a,
.footer-wrapper.v2 .res-list a {
    font-family: var(--fri-sans) !important;
    color: rgba(255,255,255,.55) !important;
    font-size: 13.5px !important;
    line-height: 2.1 !important;
    transition: color .22s var(--fri-ease);
}
.footer-wrapper.v2 .list a:hover,
.footer-wrapper.v2 .res-list a:hover { color: #fff !important; }
.footer-wrapper.v2 .contact-info .text,
.footer-wrapper.v2 .contact-info .text a {
    font-family: var(--fri-sans) !important;
    color: rgba(255,255,255,.6) !important;
    font-size: 13.5px !important;
}
.footer-wrapper.v2 .contact-info .icon i { color: var(--fri-blue) !important; }
.footer-wrapper.v2 .footer-bottom-area {
    background: rgba(0,0,0,.3) !important;
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 20px 0;
}
.footer-wrapper.v2 .footer-bottom-area p {
    font-family: var(--fri-sans) !important;
    color: rgba(255,255,255,.48) !important;
    font-size: 13px !important;
    text-align: center;
    margin: 0;
}
.scrolltotop { background: var(--fri-blue) !important; border-radius: 8px !important; }

/* ---------- 11. Responsive ----------------------------------------------- */
@media (max-width: 1199px) {
    .fri-grid--4 { grid-template-columns: repeat(3, 1fr); }
    .fri-lower { grid-template-columns: 1fr 300px; }
    .fri-sp__body { grid-template-columns: 1.6fr 1fr 1fr auto; }
}

@media (max-width: 991px) {
    .fri__section { padding: 48px 0; }
    .fri-hero { padding: 100px 0 38px; }
    .fri-sp__body { grid-template-columns: 1fr 1fr; }
    .fri-sp__field { border-left: 0 !important; border-top: 1px solid var(--fri-line); }
    .fri-sp__field--grow { grid-column: 1 / -1; border-top: 0; }
    .fri-sp__go { grid-column: 1 / -1; padding: 15px !important; border-top: 1px solid var(--fri-line); }
    .fri-grid, .fri-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .fri-browse { grid-template-columns: 1fr; }
    .fri-strip__list { grid-template-columns: repeat(2, 1fr); }
    .fri-places { grid-template-columns: repeat(2, 1fr); }
    .fri-lower { grid-template-columns: 1fr; }
    .fri-aside { position: static; }
    .fri__head { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 640px) {
    .fri__wrap { padding: 0 18px; }
    .fri__section { padding: 40px 0; }
    .fri-hero { padding: 92px 0 30px; }
    .fri-sp__tabs { overflow-x: auto; }
    .fri-sp__tab { padding: 12px 18px; white-space: nowrap; }
    .fri-sp__body { grid-template-columns: 1fr; }
    .fri-grid, .fri-grid--4 { grid-template-columns: 1fr; }
    .fri-strip__list { grid-template-columns: 1fr; }
    .fri-places { grid-template-columns: 1fr; }
    .fri-post { grid-template-columns: 1fr; }
    .fri-post__media img { min-height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
    .fri *, .fri *::before, .fri *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}

/* ==========================================================================
   12. Listing pages (category / locality / location / search)
   ========================================================================== */

/* Page header -------------------------------------------------------------*/
.fri-phead {
    position: relative;
    padding: 108px 0 40px;
    background-size: cover;
    background-position: center;
    background-color: var(--fri-ink);
    isolation: isolate;
}
.fri-phead::after {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(100deg, rgba(6,18,30,.94) 0%, rgba(6,18,30,.8) 55%, rgba(6,18,30,.6) 100%);
}
.fri-crumb {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    font-size: 12.5px;
    color: rgba(255,255,255,.5);
    margin-bottom: 12px;
}
.fri-crumb a { color: rgba(255,255,255,.66); }
.fri-crumb a:hover { color: #fff; }
.fri-crumb em { font-style: normal; color: #fff; }
.fri-phead__title { color: #fff !important; font-size: clamp(26px, 3vw, 38px); }
.fri-phead__meta {
    margin-top: 9px;
    font-size: 14px;
    color: rgba(255,255,255,.62);
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.fri-phead__meta strong { color: #fff; font-weight: 700; }
.fri-phead__flag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--fri-blue);
    color: #fff;
    font-size: 10px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
}

/* CMS prose block ---------------------------------------------------------*/
.fri-prose {
    max-width: 82ch;
    margin-inline: auto;
    font-size: 15px;
    line-height: 1.75;
    color: var(--fri-slate);
}
/* Long CMS copy reads better as a contained card than as bare text. */
.fri-prose--card {
    background: #fff;
    border: 1px solid var(--fri-line);
    border-radius: var(--fri-radius);
    padding: 34px 38px;
}
.fri-prose img { max-width: 100%; height: auto; }
.fri-prose *[style*="width"] { max-width: 100% !important; }
.fri-prose h1, .fri-prose h2, .fri-prose h3, .fri-prose h4 { margin: 26px 0 10px; }
.fri-prose h1 { font-size: 28px; } .fri-prose h2 { font-size: 24px; }
.fri-prose h3 { font-size: 20px; } .fri-prose h4 { font-size: 17px; }
.fri-prose > *:first-child { margin-top: 0; }
.fri-prose p { margin-bottom: 14px; }
/* .fri ul sets padding:0 globally, which pushes list markers outside the box
   and makes them invisible. CMS prose needs the padding back. */
.fri-prose ul, .fri-prose ol {
    margin: 0 0 14px 0;
    padding-left: 22px;
    list-style-position: outside;
}
/* The legacy theme sets list-style:none directly on `li`, which beats the
   inherited value from `ul` — so the marker has to be set on the li itself. */
.fri-prose ul, .fri-prose ul > li { list-style-type: disc !important; }
.fri-prose ol, .fri-prose ol > li { list-style-type: decimal !important; }
.fri-prose ul ul, .fri-prose ul ul > li { list-style-type: circle !important; }
.fri-prose ul ul { margin-bottom: 0; }
.fri-prose li { margin-bottom: 6px; display: list-item; }
.fri-prose li::marker { color: var(--fri-blue); }
.fri-prose a { color: var(--fri-blue); text-decoration: underline; }
.fri-prose img { border-radius: var(--fri-radius); margin: 14px 0; }
.fri-prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.fri-prose th, .fri-prose td { border: 1px solid var(--fri-line); padding: 9px 12px; text-align: left; }
.fri-prose th { background: var(--fri-cream); font-weight: 600; color: var(--fri-ink); }

/* Layout ------------------------------------------------------------------*/
.fri-listing { display: grid; grid-template-columns: 286px 1fr; gap: 28px; align-items: start; }
.fri-results { min-width: 0; }

/* Filter sidebar ----------------------------------------------------------*/
.fri-filters { position: sticky; top: 86px; display: grid; gap: 16px; }
.fri-filters__form {
    background: #fff;
    border: 1px solid var(--fri-line);
    border-radius: var(--fri-radius);
    padding: 20px;
    margin: 0;
}
.fri-filters__head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding-bottom: 13px; margin-bottom: 16px;
    border-bottom: 1px solid var(--fri-line);
}
.fri-filters__h {
    font-family: var(--fri-sans) !important;
    font-size: 13px; font-weight: 700;
    display: flex; align-items: center; gap: 9px;
    margin: 0 !important;
}
.fri-filters__h i { color: var(--fri-blue); font-size: 13px; }
.fri-filters__clear { font-size: 12.5px; font-weight: 600; color: var(--fri-blue); }
.fri-filters__clear:hover { color: var(--fri-blue-dark); }
.fri-filters__go { width: 100%; margin-top: 4px; }

.fri-field { margin-bottom: 14px; }
.fri-field > label {
    display: block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--fri-muted) !important;
    margin: 0 0 6px !important;
    font-family: var(--fri-sans) !important;
}
.fri-field__ctl {
    display: flex; align-items: center; gap: 9px;
    background: var(--fri-cream);
    border: 1px solid var(--fri-line);
    border-radius: 8px;
    padding: 10px 13px;
    min-width: 0;
    transition: border-color .2s var(--fri-ease), background .2s var(--fri-ease);
}
.fri-field__ctl:focus-within { border-color: var(--fri-blue); background: #fff; }
.fri-field__ctl > i { color: var(--fri-blue); font-size: 12px; flex: none; }

/* Hard reset — legacy CSS styles bare input/select globally. */
.fri-field__ctl input,
.fri-field__ctl select,
.fri-field__ctl input[type="text"] {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.45 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    color: var(--fri-ink) !important;
    font-family: var(--fri-sans) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    text-overflow: ellipsis;
}
.fri-field__ctl input::placeholder { color: #a3adba; opacity: 1; }

/* main.js turns every <select> into a bootstrap-select widget at runtime. */
.fri-field__ctl .bootstrap-select { width: 100% !important; position: relative !important; display: block !important; }
.fri-field__ctl .bootstrap-select > .dropdown-toggle,
.fri-field__ctl .bootstrap-select > .dropdown-toggle.btn-light {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 20px 0 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.45 !important;
    color: var(--fri-ink) !important;
    font-family: var(--fri-sans) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: left !important;
    width: 100% !important;
}
.fri-field__ctl .bootstrap-select .filter-option,
.fri-field__ctl .bootstrap-select .filter-option-inner,
.fri-field__ctl .bootstrap-select .filter-option-inner-inner {
    color: var(--fri-ink) !important;
    position: static !important;
    padding: 0 !important;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fri-field__ctl .bootstrap-select > .dropdown-toggle::after {
    border-top-color: var(--fri-muted) !important;
    position: absolute; right: 0; top: 50%;
    transform: translateY(-50%); margin: 0 !important;
}
.fri-field__ctl .bootstrap-select .dropdown-menu {
    border-radius: 10px !important;
    border: 1px solid var(--fri-line) !important;
    box-shadow: var(--fri-shadow) !important;
    padding: 7px !important;
    margin-top: 10px !important;
    max-height: 300px;
}
.fri-field__ctl .bootstrap-select .dropdown-menu li a {
    border-radius: 7px;
    padding: 8px 12px !important;
    font-family: var(--fri-sans) !important;
    font-size: 13.5px !important;
    color: var(--fri-slate) !important;
}
.fri-field__ctl .bootstrap-select .dropdown-menu li a:hover,
.fri-field__ctl .bootstrap-select .dropdown-menu li.selected a {
    background: var(--fri-cream) !important;
    color: var(--fri-blue) !important;
}

/* Advisor helper card -----------------------------------------------------*/
.fri-help {
    background: var(--fri-ink);
    border-radius: var(--fri-radius);
    padding: 22px 20px;
    text-align: center;
}
.fri-help h3 { color: #fff !important; font-size: 19px; margin-bottom: 7px !important; }
.fri-help p { color: rgba(255,255,255,.6); font-size: 13.5px; }
.fri-help__btn { width: 100%; margin-top: 15px; }
.fri-help__tel {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 11px; font-size: 14px; font-weight: 600; color: #fff;
}
.fri-help__tel i { color: var(--fri-blue); font-size: 12px; }
.fri-help__tel:hover { color: #7ec8f0; }

/* Toolbar -----------------------------------------------------------------*/
.fri-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap;
    padding-bottom: 14px; margin-bottom: 20px;
    border-bottom: 1px solid var(--fri-line);
    font-size: 13.5px; color: var(--fri-muted);
}
.fri-toolbar strong { color: var(--fri-ink); font-weight: 700; }
.fri-toolbar__page { font-size: 12.5px; }

.fri-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Pagination --------------------------------------------------------------*/
.fri-pager {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap;
    margin-top: 32px; padding-top: 22px;
    border-top: 1px solid var(--fri-line);
}
.fri-pager__btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 10px 18px;
    border: 1px solid var(--fri-line);
    border-radius: 8px;
    font-size: 13.5px; font-weight: 600;
    color: var(--fri-ink);
    background: #fff;
    transition: all .22s var(--fri-ease);
}
.fri-pager__btn i { font-size: 11px; }
.fri-pager__btn:hover { border-color: var(--fri-blue); color: var(--fri-blue); }
.fri-pager__btn.is-disabled { opacity: .4; pointer-events: none; }
.fri-pager__nums { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.fri-pager__num {
    min-width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 13.5px; font-weight: 600;
    color: var(--fri-slate);
    transition: all .22s var(--fri-ease);
}
.fri-pager__num:hover { background: var(--fri-cream); color: var(--fri-blue); }
.fri-pager__num.is-active { background: var(--fri-blue); color: #fff; }
.fri-pager__gap { color: var(--fri-muted); padding: 0 3px; }

/* Empty state -------------------------------------------------------------*/
.fri-empty {
    text-align: center;
    padding: 62px 26px;
    background: #fff;
    border: 1px dashed var(--fri-line);
    border-radius: var(--fri-radius);
}
.fri-empty__ico {
    width: 56px; height: 56px; margin: 0 auto 16px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--fri-blue-soft);
    color: var(--fri-blue);
    font-size: 20px;
}
.fri-empty h3 { font-size: 22px; margin-bottom: 8px !important; }
.fri-empty p { color: var(--fri-muted); font-size: 14.5px; max-width: 46ch; margin: 0 auto; }
.fri-empty__actions { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* Responsive --------------------------------------------------------------*/
@media (max-width: 1199px) {
    .fri-listing { grid-template-columns: 250px 1fr; gap: 22px; }
    .fri-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
    .fri-phead { padding: 100px 0 32px; }
    .fri-listing { grid-template-columns: 1fr; }
    .fri-filters { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 640px) {
    .fri-phead { padding: 92px 0 26px; }
    .fri-filters { grid-template-columns: 1fr; }
    .fri-grid--3 { grid-template-columns: 1fr; }
    .fri-pager { justify-content: center; }
    .fri-pager__nums { order: -1; width: 100%; justify-content: center; }
}

/* ==========================================================================
   13. Project detail page  (v6 — portal layout: cards on a tinted canvas)
   ========================================================================== */

/* Portal typography: the detail page runs on the sans stack end to end.
   Playfair stays on the rest of the site. */
.fri-pdp h1, .fri-pdp h2, .fri-pdp h3, .fri-pdp h4 {
    font-family: var(--fri-sans);
    letter-spacing: -.015em;
}

/* Page head --------------------------------------------------------------- */
.fri-phead--project { padding: 84px 0 74px; }
.fri-phead--project::after {
    background: linear-gradient(100deg, rgba(6,18,30,.95) 0%, rgba(6,18,30,.86) 55%, rgba(6,18,30,.68) 100%);
}
/* No gallery = the summary card overlaps the head itself, so it needs room. */
.fri-phead--nogal { padding-bottom: 96px; }

.fri-phead--project .fri-crumb { margin-bottom: 16px; }
.fri-phead__row {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 18px 30px; flex-wrap: wrap;
}
.fri-phead__main { min-width: 0; }
.fri-phead__builder {
    display: block;
    font-size: 11px; font-weight: 700;
    letter-spacing: .15em; text-transform: uppercase;
    color: #7ec8f0;
    margin-bottom: 8px;
}
.fri-phead--project .fri-phead__title { font-size: clamp(23px, 2.5vw, 33px); font-weight: 700; }
.fri-phead__loc {
    margin-top: 9px;
    font-size: 14px;
    color: rgba(255,255,255,.7);
    display: flex; align-items: center; gap: 8px;
}
.fri-phead__loc i { color: #7ec8f0; font-size: 13px; }
.fri-phead__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.fri-badge--rera { background: rgba(31,150,96,.92); }
.fri-badge--rera i { margin-right: 5px; }

/* Gallery ----------------------------------------------------------------- */
.fri-gallery-wrap { background: var(--fri-ink); padding: 0 0 58px; margin-top: -44px; }
.fri-gallery__stage {
    position: relative;
    aspect-ratio: 16 / 6.4;
    border-radius: var(--fri-radius);
    overflow: hidden;
    background: #0a1520;
    box-shadow: 0 26px 50px -30px rgba(0,0,0,.8);
}
.fri-gallery__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .45s var(--fri-ease);
}
.fri-gallery__img.is-active { opacity: 1; }
.fri-gallery__nav {
    position: absolute; top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(11,27,43,.55);
    backdrop-filter: blur(8px);
    color: #fff; font-size: 13px;
    cursor: pointer; z-index: 3;
    display: grid; place-items: center;
    transition: background .22s var(--fri-ease);
}
.fri-gallery__nav:hover { background: var(--fri-blue); border-color: var(--fri-blue); }
.fri-gallery__nav--prev { left: 14px; }
.fri-gallery__nav--next { right: 14px; }
.fri-gallery__counter {
    position: absolute; right: 14px; bottom: 14px; z-index: 3;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 13px; border-radius: 20px;
    background: rgba(11,27,43,.68);
    backdrop-filter: blur(8px);
    color: #fff; font-size: 12px; font-weight: 600;
}
.fri-gallery__counter i { font-size: 11px; opacity: .8; }
.fri-gallery__thumbs {
    display: flex; gap: 9px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}
.fri-gallery__thumb {
    flex: none;
    width: 96px; height: 62px;
    padding: 0; border: 2px solid transparent;
    border-radius: 9px; overflow: hidden;
    background: #0a1520; cursor: pointer;
    opacity: .55;
    transition: opacity .22s var(--fri-ease), border-color .22s var(--fri-ease);
}
.fri-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fri-gallery__thumb:hover { opacity: .85; }
.fri-gallery__thumb.is-active { opacity: 1; border-color: var(--fri-blue); }

/* Summary bar — the money row, straddling the dark head and the page --------*/
.fri-sumwrap { position: relative; z-index: 6; margin-top: -46px; }
.fri-sum {
    display: grid;
    grid-template-columns: minmax(190px, auto) 1fr auto;
    align-items: center;
    gap: 20px 28px;
    background: #fff;
    border: 1px solid var(--fri-line);
    border-radius: var(--fri-radius);
    box-shadow: 0 20px 44px -26px rgba(11,27,43,.42);
    padding: 18px 22px;
}
.fri-sum__label {
    display: block;
    font-size: 10px; font-weight: 700;
    letter-spacing: .13em; text-transform: uppercase;
    color: var(--fri-muted);
}
.fri-sum__price strong {
    display: block; margin-top: 3px;
    font-size: 25px; font-weight: 700; line-height: 1.15;
    color: var(--fri-ink);
}
.fri-sum__sub { display: block; margin-top: 3px; font-size: 13px; color: var(--fri-muted); }

.fri-sum__meta {
    display: flex; flex-wrap: wrap;
    gap: 10px 30px;
    padding-left: 28px;
    border-left: 1px solid var(--fri-line);
    min-width: 0;
}
.fri-sum__meta li { min-width: 0; }
.fri-sum__meta span {
    display: block;
    font-size: 10px; font-weight: 700;
    letter-spacing: .13em; text-transform: uppercase;
    color: var(--fri-muted);
}
.fri-sum__meta b {
    display: block; margin-top: 3px;
    font-size: 14px; font-weight: 600; color: var(--fri-ink);
    overflow-wrap: anywhere;
}
.fri-sum__cta { display: flex; gap: 10px; flex: none; }
.fri-sum__cta .fri-btn { padding: 12px 20px; }

/* Jump nav ---------------------------------------------------------------- */
.fri-jump {
    position: sticky; top: 61px; z-index: 40;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--fri-line);
    margin-top: 26px;
}
.fri-jump .fri__wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.fri-jump ul { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.fri-jump ul::-webkit-scrollbar { display: none; }
.fri-jump li { flex: none; }
.fri-jump a {
    display: block;
    padding: 14px 14px;
    font-size: 13.5px; font-weight: 600;
    color: var(--fri-muted);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color .2s var(--fri-ease), border-color .2s var(--fri-ease);
}
.fri-jump a:hover { color: var(--fri-ink); }
.fri-jump a.is-active { color: var(--fri-blue); border-bottom-color: var(--fri-blue); }
.fri-jump__cta {
    flex: none;
    padding: 9px 20px; border-radius: 7px;
    background: var(--fri-blue); color: #fff !important;
    font-size: 13px; font-weight: 600;
    border-bottom: 0 !important;
}
.fri-jump__cta:hover { background: var(--fri-blue-dark); }

/* Layout — white cards on a tinted canvas ---------------------------------*/
.fri-pdp .fri__section { background: var(--fri-cream); padding: 30px 0 56px; }
.fri-detail { display: grid; grid-template-columns: 1fr 348px; gap: 24px; align-items: stretch; }
.fri-detail__main { min-width: 0; }
.fri-detail__side { min-width: 0; }
/* The sticky element must sit INSIDE a full-height column, otherwise it has
   no room to travel and the sidebar stops scrolling a third of the way down. */
.fri-detail__sticky { position: sticky; top: 122px; display: grid; gap: 16px; }

/* Content blocks ---------------------------------------------------------- */
.fri-block {
    background: #fff;
    border: 1px solid var(--fri-line);
    border-radius: var(--fri-radius);
    padding: 22px 24px 24px;
    margin-bottom: 18px;
    scroll-margin-top: 132px;
}
.fri-block:last-child { margin-bottom: 0; }
.fri-block__h {
    font-size: 18px !important;
    font-weight: 700;
    margin-bottom: 16px !important;
    display: flex; align-items: center; gap: 10px;
}
.fri-block__count {
    font-size: 11px; font-weight: 700;
    color: var(--fri-blue);
    background: var(--fri-blue-soft);
    padding: 3px 9px; border-radius: 20px;
}

/* Quick facts ------------------------------------------------------------- */
.fri-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
    gap: 10px;
}
.fri-fact {
    display: flex; align-items: flex-start; gap: 11px;
    background: var(--fri-cream);
    border: 1px solid var(--fri-line);
    border-radius: var(--fri-radius-sm);
    padding: 12px 14px;
    min-width: 0;
}
.fri-fact i { color: var(--fri-blue); font-size: 14px; margin-top: 3px; }
.fri-fact > div { min-width: 0; }
.fri-fact span {
    display: block;
    font-size: 10px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--fri-muted);
}
.fri-fact b {
    display: block; margin-top: 2px;
    font-size: 14px; font-weight: 600; color: var(--fri-ink);
    overflow-wrap: anywhere;
}
.fri-fact--rera b { font-size: 13px; line-height: 1.4; }

/* CMS prose inside the detail cards ---------------------------------------
   The shared .fri-prose is a centred 82ch measure, which inside a card reads
   as an unexplained indent - in the detail cards it runs full width. */
.fri-pdp .fri-prose {
    max-width: none;
    margin-inline: 0;
    font-size: 14.5px;
    line-height: 1.75;
}
/* The legacy theme sets a font-size on bare <p>, so the inherited size is
   overridden unless it is restated on the element itself. */
.fri-pdp .fri-prose p { font-size: 14.5px; margin-bottom: 12px; }
.fri-pdp .fri-prose > *:last-child { margin-bottom: 0; }

/* Key features / location advantages read as scannable two-column tick lists
   rather than a long sparse bullet list. The disc markers set earlier carry
   !important, so these overrides need it too. */
.fri-prose--checks ul, .fri-prose--pins ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 22px;
    margin: 0 !important;
    padding: 0 !important;
}
.fri-prose--checks ul > li,
.fri-prose--pins ul > li {
    list-style-type: none !important;
    position: relative;
    margin: 0;
    padding: 8px 0 8px 28px;
    font-size: 14px;
    color: var(--fri-slate);
    border-bottom: 1px solid var(--fri-line);
}
.fri-prose--checks ul > li::before,
.fri-prose--pins ul > li::before {
    font-family: "Font Awesome 5 Free"; font-weight: 900;
    position: absolute; left: 0; top: 8px;
    color: var(--fri-blue);
    font-size: 12px;
}
.fri-prose--checks ul > li::before { content: "\f00c"; }
.fri-prose--pins ul > li::before { content: "\f3c5"; }

/* Floor plan table -------------------------------------------------------- */
.fri-table-wrap {
    border: 1px solid var(--fri-line);
    border-radius: var(--fri-radius-sm);
    overflow: hidden;
    overflow-x: auto;
}
.fri-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fri-table th {
    background: var(--fri-cream);
    text-align: left;
    padding: 12px 16px;
    font-size: 10.5px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--fri-muted);
    white-space: nowrap;
}
.fri-table td { padding: 13px 16px; border-top: 1px solid var(--fri-line); color: var(--fri-slate); }
.fri-table tbody tr:hover { background: var(--fri-cream); }
.fri-table td b { color: var(--fri-ink); font-weight: 600; }
.fri-table__price { font-weight: 700; color: var(--fri-ink) !important; white-space: nowrap; }
.fri-table__act { text-align: right; white-space: nowrap; }
.fri-table__act a { color: var(--fri-blue); font-weight: 600; font-size: 13px; }
.fri-table__act a:hover { text-decoration: underline; }

.fri-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.fri-plan {
    margin: 0;
    border: 1px solid var(--fri-line);
    border-radius: var(--fri-radius-sm);
    overflow: hidden;
    background: #fff;
    transition: box-shadow .3s var(--fri-ease);
}
.fri-plan:hover { box-shadow: var(--fri-shadow); }
.fri-plan img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: var(--fri-cream); padding: 10px; }
.fri-plan figcaption {
    padding: 10px 13px;
    border-top: 1px solid var(--fri-line);
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    font-size: 13px;
}
.fri-plan figcaption b { color: var(--fri-ink); }
.fri-plan figcaption span { color: var(--fri-muted); font-size: 12.5px; }

/* Amenities --------------------------------------------------------------- */
.fri-amen { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 8px; }
.fri-amen li {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    background: var(--fri-cream);
    border: 1px solid var(--fri-line);
    border-radius: var(--fri-radius-sm);
    font-size: 13.5px;
    color: var(--fri-slate);
    transition: border-color .22s var(--fri-ease), background .22s var(--fri-ease);
}
.fri-amen li:hover { border-color: var(--fri-blue); background: #fff; }
.fri-amen__ico {
    width: 30px; height: 30px; flex: none;
    border-radius: 8px;
    display: grid; place-items: center;
    background: #fff;
    border: 1px solid var(--fri-line);
    color: var(--fri-blue);
    font-size: 13px;
}
.fri-amen li:hover .fri-amen__ico { background: var(--fri-blue-soft); border-color: transparent; }

/* Location / site images -------------------------------------------------- */
.fri-locimg {
    border: 1px solid var(--fri-line);
    border-radius: var(--fri-radius-sm);
    overflow: hidden;
    margin-top: 16px;
    background: var(--fri-cream);
}
.fri-locimg img { width: 100%; height: auto; }
.fri-block > .fri-locimg:first-of-type:not(:last-child) { margin-top: 0; margin-bottom: 16px; }

/* EMI calculator ---------------------------------------------------------- */
.fri-emi {
    display: grid;
    grid-template-columns: 1fr 296px;
    gap: 0;
    border: 1px solid var(--fri-line);
    border-radius: var(--fri-radius-sm);
    overflow: hidden;
}
.fri-emi__inputs { padding: 20px 22px; display: grid; gap: 18px; background: #fff; }
.fri-emi__field label {
    display: block !important;
    font-size: 10px !important; font-weight: 700 !important;
    letter-spacing: .13em; text-transform: uppercase;
    color: var(--fri-muted) !important;
    margin: 0 0 8px !important;
    font-family: var(--fri-sans) !important;
}
.fri-emi__field input[type="number"] {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 10px 13px !important;
    margin: 0 0 10px !important;
    background: var(--fri-cream) !important;
    border: 1px solid var(--fri-line) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: var(--fri-ink) !important;
    font-family: var(--fri-sans) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}
.fri-emi__field input[type="number"]:focus { border-color: var(--fri-blue) !important; outline: none !important; }
.fri-emi__field input[type="range"] {
    display: block; width: 100%; height: 4px;
    padding: 0; margin: 0; border: 0;
    background: var(--fri-line);
    border-radius: 4px;
    -webkit-appearance: none; appearance: none;
    cursor: pointer;
}
.fri-emi__field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 17px; height: 17px; border-radius: 50%;
    background: var(--fri-blue);
    border: 2px solid #fff;
    box-shadow: 0 2px 7px rgba(0,125,194,.5);
    cursor: pointer;
}
.fri-emi__field input[type="range"]::-moz-range-thumb {
    width: 15px; height: 15px; border-radius: 50%;
    background: var(--fri-blue); border: 2px solid #fff; cursor: pointer;
}
.fri-emi__out { background: var(--fri-ink); padding: 22px; color: #fff; }
.fri-emi__label {
    display: block;
    font-size: 10px; font-weight: 700;
    letter-spacing: .13em; text-transform: uppercase;
    color: rgba(255,255,255,.5);
}
.fri-emi__out strong {
    display: block; margin-top: 5px;
    font-size: 30px; font-weight: 700; color: #fff;
}
.fri-emi__split { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 9px; }
.fri-emi__split li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.fri-emi__split span { color: rgba(255,255,255,.55); }
.fri-emi__split b { color: #fff; font-weight: 600; }
.fri-emi__note { margin-top: 14px; font-size: 11.5px; color: rgba(255,255,255,.4); line-height: 1.5; }

/* FAQ --------------------------------------------------------------------- */
.fri-faq { border: 1px solid var(--fri-line); border-radius: var(--fri-radius-sm); overflow: hidden; }
.fri-faq__item { border-bottom: 1px solid var(--fri-line); background: #fff; }
.fri-faq__item:last-child { border-bottom: 0; }
.fri-faq__item > summary {
    padding: 14px 44px 14px 18px;
    font-size: 14.5px; font-weight: 600;
    color: var(--fri-ink);
    cursor: pointer;
    position: relative;
    list-style: none;
}
.fri-faq__item > summary::-webkit-details-marker { display: none; }
.fri-faq__item > summary::after {
    content: "";
    position: absolute; right: 18px; top: 50%;
    width: 7px; height: 7px;
    margin-top: -5px;
    border-right: 2px solid var(--fri-blue);
    border-bottom: 2px solid var(--fri-blue);
    transform: rotate(45deg);
    transition: transform .25s var(--fri-ease);
}
.fri-faq__item[open] > summary::after { transform: rotate(225deg); margin-top: -2px; }
.fri-faq__item > summary:hover { background: var(--fri-cream); }
.fri-faq__item > div { padding: 0 18px 16px; font-size: 14px; color: var(--fri-slate); line-height: 1.7; }
.fri-faq__item > div a { color: var(--fri-blue); font-weight: 600; }

/* Enquiry sidebar --------------------------------------------------------- */
.fri-enq {
    background: #fff;
    border: 1px solid var(--fri-line);
    border-radius: var(--fri-radius);
    padding: 20px;
    scroll-margin-top: 132px;
}
.fri-enq__h { font-size: 17px !important; margin-bottom: 6px !important; }
.fri-enq__p { font-size: 13px; color: var(--fri-muted); margin-bottom: 16px !important; }
.fri-enq__form { margin: 0; }
.fri-enq__go { width: 100%; margin-top: 4px; }
.fri-enq__fine { margin-top: 10px; font-size: 11px; color: var(--fri-muted); line-height: 1.5; text-align: center; }
.fri-enq__tel {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    margin-top: 14px; padding-top: 14px;
    border-top: 1px solid var(--fri-line);
    font-size: 15px; font-weight: 700; color: var(--fri-ink);
}
.fri-enq__tel i { color: var(--fri-blue); font-size: 13px; }
.fri-enq__tel:hover { color: var(--fri-blue); }

.fri-field__ctl--area { align-items: flex-start; }
.fri-field__ctl textarea {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    resize: vertical;
    color: var(--fri-ink) !important;
    font-family: var(--fri-sans) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Sidebar mini list ------------------------------------------------------- */
.fri-side-list {
    background: #fff;
    border: 1px solid var(--fri-line);
    border-radius: var(--fri-radius);
    padding: 18px 20px;
}
.fri-side-list__h {
    font-family: var(--fri-sans) !important;
    font-size: 13px; font-weight: 700;
    padding-bottom: 12px; margin-bottom: 4px !important;
    border-bottom: 1px solid var(--fri-line);
}
.fri-mini {
    display: flex; gap: 12px; align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid var(--fri-line);
}
.fri-mini:last-child { border-bottom: 0; padding-bottom: 0; }
.fri-mini__img {
    width: 64px; height: 50px; flex: none;
    border-radius: 8px; overflow: hidden; background: #dfe5ec;
}
.fri-mini__img img { width: 100%; height: 100%; object-fit: cover; }
.fri-mini__body { min-width: 0; display: block; }
.fri-mini__body b {
    display: block;
    font-size: 13.5px; font-weight: 600; color: var(--fri-ink);
    line-height: 1.35;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fri-mini__loc { display: block; font-size: 12px; color: var(--fri-muted); margin-top: 2px; }
.fri-mini__price { display: block; font-size: 12.5px; font-weight: 600; color: var(--fri-blue); margin-top: 3px; }
.fri-mini:hover .fri-mini__body b { color: var(--fri-blue); }

/* Mobile action bar ------------------------------------------------------- */
.fri-actionbar { display: none; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1199px) {
    .fri-detail { grid-template-columns: 1fr 306px; gap: 18px; }
    .fri-plans { grid-template-columns: repeat(2, 1fr); }
    .fri-sum { grid-template-columns: minmax(170px, auto) 1fr; }
    .fri-sum__cta { grid-column: 1 / -1; border-top: 1px solid var(--fri-line); padding-top: 16px; }
    .fri-sum__cta .fri-btn { flex: 1 1 0; }
}
@media (max-width: 991px) {
    .fri-phead--project { padding: 84px 0 66px; }
    .fri-gallery__stage { aspect-ratio: 16 / 9; }
    .fri-detail { grid-template-columns: 1fr; }
    .fri-detail__sticky { position: static; }
    .fri-emi { grid-template-columns: 1fr; }
    .fri-jump { top: 0; }
    .fri-prose--checks ul, .fri-prose--pins ul { grid-template-columns: 1fr; }

    /* Sticky call/enquire bar — hidden once the enquiry form is on screen. */
    .fri-actionbar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        display: flex; align-items: center; gap: 10px;
        padding: 10px 14px;
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--fri-line);
        box-shadow: 0 -8px 24px -18px rgba(11,27,43,.6);
        transition: transform .3s var(--fri-ease);
    }
    .fri-actionbar.is-hidden { transform: translateY(110%); }
    .fri-actionbar__price { min-width: 0; flex: 1 1 auto; }
    .fri-actionbar__price span {
        display: block;
        font-size: 9.5px; font-weight: 700;
        letter-spacing: .12em; text-transform: uppercase;
        color: var(--fri-muted);
    }
    .fri-actionbar__price b { font-size: 15px; font-weight: 700; color: var(--fri-ink); }
    .fri-actionbar__tel {
        flex: none;
        width: 42px; height: 42px; border-radius: 9px;
        display: grid; place-items: center;
        border: 1px solid var(--fri-line);
        color: var(--fri-blue); font-size: 15px;
    }
    .fri-actionbar__cta {
        flex: none;
        padding: 12px 20px; border-radius: 9px;
        background: var(--fri-blue); color: #fff !important;
        font-size: 14px; font-weight: 600;
    }
    /* Keep the footer clear of the fixed bar. */
    .fri-pdp { padding-bottom: 0; }
    body { padding-bottom: 64px; }
}
@media (max-width: 640px) {
    .fri-phead__row { flex-direction: column; align-items: flex-start; }
    .fri-gallery-wrap { padding-bottom: 52px; }
    .fri-gallery__stage { aspect-ratio: 4 / 3; }
    .fri-gallery__thumb { width: 82px; height: 54px; }
    .fri-sum { grid-template-columns: 1fr; padding: 16px 18px; gap: 14px; }
    .fri-sum__meta { padding-left: 0; border-left: 0; padding-top: 14px; border-top: 1px solid var(--fri-line); gap: 12px 24px; }
    .fri-facts { grid-template-columns: 1fr 1fr; }
    .fri-amen { grid-template-columns: 1fr 1fr; }
    .fri-plans { grid-template-columns: 1fr; }
    .fri-block { padding: 18px 16px 20px; }
    .fri-block__h { font-size: 17px !important; }
    .fri-jump__cta { display: none; }
}
@media (max-width: 420px) {
    .fri-facts { grid-template-columns: 1fr; }
    .fri-amen { grid-template-columns: 1fr; }
    .fri-actionbar__cta { padding: 12px 16px; font-size: 13.5px; }
}

/* ==========================================================================
   14. Builder directory  (/builder/)
   ========================================================================== */

.fri-bldl .fri__section { background: var(--fri-cream); padding: 40px 0 64px; }

/* Search + sort bar -------------------------------------------------------*/
.fri-bbar {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--fri-line);
    border-radius: var(--fri-radius);
    padding: 14px 16px;
    margin-bottom: 20px;
}
.fri-bbar__search { flex: 1 1 300px; margin: 0 !important; min-width: 0; }
.fri-bbar__search .fri-field__ctl { margin: 0; }
.fri-bbar__sort { display: flex; align-items: center; gap: 7px; flex: none; flex-wrap: wrap; }
.fri-bbar__label {
    font-size: 10px; font-weight: 700;
    letter-spacing: .13em; text-transform: uppercase;
    color: var(--fri-muted);
    margin-right: 3px;
}
.fri-chip {
    padding: 9px 16px;
    border: 1px solid var(--fri-line);
    border-radius: 20px;
    background: #fff;
    font-family: var(--fri-sans);
    font-size: 13px; font-weight: 600;
    color: var(--fri-slate);
    cursor: pointer;
    transition: all .22s var(--fri-ease);
}
.fri-chip:hover { border-color: var(--fri-blue); color: var(--fri-blue); }
.fri-chip.is-active {
    background: var(--fri-blue);
    border-color: var(--fri-blue);
    color: #fff;
}

/* Developer cards ---------------------------------------------------------*/
.fri-bgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
    gap: 14px;
}
.fri-bgrid__none { grid-column: 1 / -1; color: var(--fri-muted); }

.fri-bcard {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--fri-line);
    border-radius: var(--fri-radius);
    padding: 16px 18px 14px;
    min-width: 0;
    transition: border-color .22s var(--fri-ease), box-shadow .3s var(--fri-ease), transform .22s var(--fri-ease);
}
.fri-bcard:hover {
    border-color: var(--fri-blue);
    box-shadow: var(--fri-shadow);
    transform: translateY(-2px);
}
/* Logos are supplied at wildly different sizes and aspect ratios, so the box
   is fixed and the image is contained inside it. */
.fri-bcard__logo {
    display: grid; place-items: center;
    height: 74px;
    padding: 8px 10px;
    margin-bottom: 14px;
    overflow: hidden;
    background: var(--fri-cream);
    border-radius: var(--fri-radius-sm);
}
/* max-height in px, not %: as a grid item the percentage resolves against an
   indefinite grid area and tall logos escape the box. */
.fri-bcard__logo img { max-height: 58px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.fri-bcard__logo.is-fallback {
    background: var(--fri-blue-soft);
    color: var(--fri-blue);
    font-size: 22px; font-weight: 700; letter-spacing: .02em;
}
.fri-bcard__body { display: block; min-width: 0; flex: 1 1 auto; }
.fri-bcard__name {
    display: block;
    /* Names are stored inconsistently ("signature global", "ganga", "M3M") -
       capitalize only touches the first letter, so acronyms stay intact. */
    text-transform: capitalize;
    font-size: 15.5px; font-weight: 600;
    color: var(--fri-ink);
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.fri-bcard__count {
    display: inline-flex; align-items: center; gap: 7px;
    margin-top: 7px;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--fri-cream);
    font-size: 12px; font-weight: 600;
    color: var(--fri-slate);
}
.fri-bcard__count i { font-size: 10px; color: var(--fri-blue); }
.fri-bcard__go {
    display: flex; align-items: center; gap: 8px;
    margin-top: 14px; padding-top: 12px;
    border-top: 1px solid var(--fri-line);
    font-size: 13px; font-weight: 600;
    color: var(--fri-blue);
}
.fri-bcard__go i { font-size: 10px; transition: transform .28s var(--fri-ease); }
.fri-bcard:hover .fri-bcard__go i { transform: translateX(4px); }

/* Advisor band ------------------------------------------------------------*/
.fri-bcta {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
    margin-top: 30px;
    padding: 28px 30px;
    background: var(--fri-ink);
    border-radius: var(--fri-radius);
}
.fri-bcta__text { min-width: 0; flex: 1 1 380px; }
.fri-bcta h2 { color: #fff; font-size: 22px; margin-bottom: 8px !important; }
.fri-bcta p { color: rgba(255,255,255,.62); font-size: 14px; max-width: 62ch; }
.fri-bcta__actions { display: flex; gap: 11px; flex-wrap: wrap; flex: none; }
.fri-bcta__actions .fri-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.fri-bcta__actions .fri-btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/* Responsive --------------------------------------------------------------*/
@media (max-width: 991px) {
    .fri-bgrid { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
    .fri-bcta { padding: 24px 22px; }
}
@media (max-width: 640px) {
    .fri-bbar { padding: 12px; }
    .fri-bbar__sort { width: 100%; }
    .fri-chip { flex: 1 1 0; text-align: center; }
    .fri-bgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .fri-bcard { padding: 12px 12px 10px; }
    .fri-bcard__logo { height: 60px; margin-bottom: 11px; }
    .fri-bcard__name { font-size: 14px; }
    .fri-bcta__actions .fri-btn { flex: 1 1 100%; }
}

/* ==========================================================================
   15. Builder detail  (/builder/<slug>)
   ========================================================================== */

.fri-phead--builder { padding: 96px 0 40px; }

.fri-bhero {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px 26px;
    margin-top: 6px;
}
/* White tile: the logos are dark-on-white PNGs and vanish on the dark head. */
.fri-bhero__logo {
    display: grid; place-items: center;
    width: 118px; height: 88px;
    padding: 10px 12px;
    background: #fff;
    border-radius: var(--fri-radius);
    box-shadow: 0 14px 30px -18px rgba(0,0,0,.7);
    overflow: hidden;
}
.fri-bhero__logo img { max-height: 66px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.fri-bhero__main { min-width: 0; }
.fri-bhero__eyebrow {
    display: block;
    font-size: 11px; font-weight: 700;
    letter-spacing: .15em; text-transform: uppercase;
    color: #7ec8f0;
    margin-bottom: 7px;
}
.fri-phead--builder .fri-phead__title { text-transform: capitalize; }
.fri-bhero__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 14px; }
.fri-bhero__more { font-size: 12.5px; color: rgba(255,255,255,.6); }
.fri-bhero__cta { display: flex; gap: 10px; flex: none; flex-wrap: wrap; }
.fri-bhero__cta .fri-btn--ghost {
    background: transparent; color: #fff; border-color: rgba(255,255,255,.3);
}
.fri-bhero__cta .fri-btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/* Every card on this page belongs to the same developer, so the builder line
   inside the shared card is noise here. */
.fri-bdp .fri-card__builder { display: none; }

/* Back to the directory --------------------------------------------------*/
.fri-bback {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap;
    margin-top: 26px; padding-top: 20px;
    border-top: 1px solid var(--fri-line);
    font-size: 13.5px; color: var(--fri-muted);
}

/* Responsive --------------------------------------------------------------*/
@media (max-width: 991px) {
    .fri-phead--builder { padding: 92px 0 34px; }
    .fri-bhero { grid-template-columns: auto 1fr; }
    .fri-bhero__cta { grid-column: 1 / -1; }
    .fri-bhero__cta .fri-btn { flex: 1 1 0; }
}
@media (max-width: 640px) {
    .fri-bhero { grid-template-columns: 1fr; gap: 16px; }
    .fri-bhero__logo { width: 96px; height: 72px; }
    .fri-bhero__logo img { max-height: 52px; }
}

/* ==========================================================================
   16. Location / sector page  (/location/<slug>)
   ========================================================================== */

.fri-locp .fri-phead { padding-bottom: 34px; }
.fri-phead__eyebrow {
    display: block;
    font-size: 11px; font-weight: 700;
    letter-spacing: .15em; text-transform: uppercase;
    color: #7ec8f0;
    margin-bottom: 8px;
}
.fri-crumb__plain { color: rgba(255,255,255,.5); }

/* Sector snapshot strip ---------------------------------------------------*/
.fri-lstrip { background: var(--fri-ink-2); border-bottom: 1px solid rgba(255,255,255,.07); }
.fri-lstats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: rgba(255,255,255,.08);
}
.fri-lstat {
    background: var(--fri-ink-2);
    padding: 18px 20px;
    min-width: 0;
}
.fri-lstat b {
    display: block;
    font-size: 26px; font-weight: 700; line-height: 1.1;
    color: #fff;
}
.fri-lstat span {
    display: block; margin-top: 5px;
    font-size: 10.5px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: rgba(255,255,255,.5);
}

/* Cross-link tag lists ----------------------------------------------------*/
.fri-xlinks { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--fri-line); }
.fri-xlinks__h {
    font-family: var(--fri-sans) !important;
    font-size: 14px; font-weight: 700;
    margin-bottom: 14px !important;
}
.fri-taglist { display: flex; flex-wrap: wrap; gap: 8px; }
.fri-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 8px 8px 14px;
    border: 1px solid var(--fri-line);
    border-radius: 20px;
    background: #fff;
    font-size: 13px; font-weight: 600;
    color: var(--fri-slate);
    text-transform: capitalize;
    transition: all .22s var(--fri-ease);
}
.fri-tag span {
    display: inline-grid; place-items: center;
    min-width: 22px; height: 22px;
    padding: 0 6px;
    border-radius: 20px;
    background: var(--fri-cream);
    font-size: 11px; font-weight: 700;
    color: var(--fri-muted);
    text-transform: none;
}
.fri-tag:hover { border-color: var(--fri-blue); color: var(--fri-blue); }
.fri-tag:hover span { background: var(--fri-blue-soft); color: var(--fri-blue); }

/* Responsive --------------------------------------------------------------*/
@media (max-width: 991px) {
    .fri-lstats { grid-template-columns: repeat(3, 1fr); }
    .fri-lstat { padding: 15px 16px; }
    .fri-lstat b { font-size: 22px; }
}
@media (max-width: 640px) {
    .fri-lstats { grid-template-columns: repeat(2, 1fr); }
    /* An odd tile count would otherwise leave a hollow cell in the last row. */
    .fri-lstat:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .fri-lstat b { font-size: 20px; }
    .fri-lstat span { font-size: 10px; letter-spacing: .1em; }
}
