.tr-home {
    overflow: hidden;
    color: var(--tr-text);
    background:
        radial-gradient(circle at 8% 4%, rgba(239,51,79,.055), transparent 28rem),
        radial-gradient(circle at 92% 13%, rgba(46,139,60,.055), transparent 28rem),
        var(--tr-bg);
}
.tr-home *, .tr-home *::before, .tr-home *::after { box-sizing: border-box; }
.tr-home-container { width: min(calc(100% - 32px), var(--tr-content-width)); margin-inline: auto; }

.tr-hero { padding: clamp(42px,6vw,86px) 0 92px; background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.88)); }
.tr-hero-grid { display: grid; grid-template-columns: minmax(0,1.06fr) minmax(360px,.84fr); gap: clamp(32px,6vw,76px); align-items: center; }
.tr-eyebrow, .tr-section-heading > span, .tr-search-heading > span, .tr-path-card > span { display: inline-flex; align-items: center; gap: 8px; color: var(--tr-red); font-size: 13px; font-weight: 900; }
.tr-eyebrow::before, .tr-section-heading > span::before { content: ""; width: 25px; height: 3px; border-radius: 99px; background: currentColor; }
.tr-hero h1 { margin: 17px 0; color: var(--tr-navy); font-size: clamp(43px,5.8vw,78px); font-weight: 900; line-height: 1.12; letter-spacing: -.045em; }
.tr-hero h1 span { color: var(--tr-red); }
.tr-hero-copy > p { max-width: 690px; margin: 0; color: var(--tr-muted); font-size: clamp(17px,1.5vw,21px); line-height: 1.95; }
.tr-hero-actions, .tr-final-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.tr-button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 12px 23px; border: 1px solid transparent; border-radius: 14px; font-weight: 900; text-decoration: none !important; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.tr-button:hover, .tr-button:focus-visible { transform: translateY(-2px); }
.tr-button-primary { color: #fff !important; background: var(--tr-navy); box-shadow: 0 14px 30px rgba(11,49,95,.18); }
.tr-button-primary:hover { background: var(--tr-red); }
.tr-button-secondary { color: var(--tr-navy) !important; border-color: var(--tr-border); background: #fff; }
.tr-trust-row { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 25px; }
.tr-trust-row span { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 800; }
.tr-trust-row span::before { content: "✓"; display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #166534; background: #dcfce7; }

.tr-family-radar-card { position: relative; padding: clamp(24px,4vw,38px); overflow: hidden; border: 1px solid rgba(11,49,95,.1); border-radius: 34px; background: radial-gradient(circle at 95% 0%, rgba(239,51,79,.10), transparent 18rem), radial-gradient(circle at 0% 100%, rgba(46,139,60,.09), transparent 17rem), #fff; box-shadow: 0 28px 70px rgba(11,49,95,.13); }
.tr-family-radar-card::after { content: ""; position: absolute; left: -80px; bottom: -100px; width: 230px; height: 230px; border: 38px solid rgba(11,49,95,.035); border-radius: 50%; }
.tr-family-card-logo { position: relative; z-index: 1; display: block; width: min(100%,350px); height: auto; margin-bottom: 25px; }
.tr-family-card-kicker { position: relative; z-index: 1; color: var(--tr-red); font-size: 13px; font-weight: 900; }
.tr-family-radar-card h2 { position: relative; z-index: 1; margin: 7px 0 8px; color: var(--tr-navy); font-size: clamp(25px,3vw,38px); line-height: 1.35; }
.tr-family-radar-card > p { position: relative; z-index: 1; margin: 0; color: var(--tr-muted); }
.tr-age-pills, .tr-family-card-tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.tr-age-pills a, .tr-family-card-tags span { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 7px 12px; border: 1px solid var(--tr-border); border-radius: 999px; color: var(--tr-navy) !important; background: #fff; font-size: 13px; font-weight: 900; text-decoration: none !important; }
.tr-age-pills a:hover { color: #fff !important; border-color: var(--tr-red); background: var(--tr-red); }
.tr-family-card-main { position: relative; z-index: 1; display: flex; min-height: 50px; align-items: center; justify-content: center; margin-top: 20px; border-radius: 13px; color: #fff !important; background: var(--tr-navy); font-weight: 900; text-decoration: none !important; }
.tr-family-card-link, .tr-family-card-privacy { position: relative; z-index: 1; display: block; margin-top: 11px; text-align: center; font-size: 12px; font-weight: 800; }
.tr-family-card-privacy { color: var(--tr-muted); }

.tr-quick-search { position: relative; z-index: 2; margin-top: -52px; }
.tr-search-card { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 24px; padding: clamp(22px,3vw,30px); border: 1px solid var(--tr-border); border-radius: 25px; background: #fff; box-shadow: 0 23px 60px rgba(11,49,95,.12); }
.tr-search-heading h2 { margin: 6px 0 0; color: var(--tr-navy); font-size: 25px; line-height: 1.35; }
.tr-search-form { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(170px,.72fr) minmax(180px,.82fr) auto; gap: 10px; align-items: end; }
.tr-search-form label { display: grid; gap: 5px; }
.tr-search-form label > span { color: var(--tr-navy); font-size: 11px; font-weight: 900; }
.tr-search-form input, .tr-search-form select { width: 100%; min-height: 51px; margin: 0; padding: 10px 13px; border: 1px solid var(--tr-border); border-radius: 12px; background: #fff; font: inherit; }
.tr-search-form button { min-width: 92px; min-height: 51px; border: 0; border-radius: 12px; color: #fff; background: var(--tr-red); font: inherit; font-weight: 900; cursor: pointer; }

.tr-family-numbers { padding: 34px 0 0; }
.tr-family-number-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.tr-family-number-grid article { padding: 17px; border: 1px solid rgba(11,49,95,.07); border-radius: 18px; background: rgba(255,255,255,.78); }
.tr-family-number-grid strong { display: block; color: var(--tr-navy); font-size: 24px; font-weight: 900; }
.tr-family-number-grid span { color: var(--tr-muted); font-size: 12px; font-weight: 700; }

.tr-section { padding: clamp(66px,7vw,104px) 0; }
.tr-section-heading { max-width: 730px; margin-bottom: 28px; }
.tr-section-heading h2 { margin: 7px 0 9px; color: var(--tr-navy); font-size: clamp(29px,3.2vw,44px); line-height: 1.3; }
.tr-section-heading p { margin: 0; color: var(--tr-muted); }
.tr-section-heading-inline { display: flex; max-width: none; align-items: end; justify-content: space-between; gap: 25px; }
.tr-section-heading-inline > p { max-width: 470px; }
.tr-section-heading-inline > a { flex: 0 0 auto; font-weight: 900; }

.tr-age-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.tr-age-grid a { display: grid; min-height: 145px; align-content: center; gap: 5px; padding: 20px; border: 1px solid var(--tr-border); border-radius: 22px; color: inherit !important; background: #fff; box-shadow: 0 12px 32px rgba(11,49,95,.055); text-align: center; text-decoration: none !important; transition: transform .16s ease, border-color .16s ease; }
.tr-age-grid a:hover { border-color: rgba(239,51,79,.35); transform: translateY(-4px); }
.tr-age-grid strong { color: var(--tr-red); font-size: 30px; font-weight: 900; }
.tr-age-grid span { color: var(--tr-muted); font-size: 13px; }

.tr-category-section { padding-top: 0; }
.tr-category-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.tr-category-card { position: relative; display: flex; min-height: 168px; align-items: flex-start; gap: 15px; padding: 23px; border: 1px solid var(--tr-border); border-radius: 23px; color: inherit !important; background: #fff; box-shadow: 0 12px 34px rgba(11,49,95,.06); text-decoration: none !important; transition: transform .17s ease, box-shadow .17s ease; }
.tr-category-card:hover { box-shadow: 0 20px 46px rgba(11,49,95,.11); transform: translateY(-4px); }
.tr-category-card i { display: grid; flex: 0 0 51px; width: 51px; height: 51px; place-items: center; border-radius: 16px; color: var(--tr-navy); background: #eff6ff; font-style: normal; }
.tr-category-card svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tr-category-card strong { display: block; margin-bottom: 7px; color: var(--tr-navy); font-size: 18px; font-weight: 900; }
.tr-category-card span { color: var(--tr-muted); font-size: 13px; line-height: 1.8; }
.tr-category-card b { position: absolute; bottom: 17px; left: 20px; color: var(--tr-red); }

.tr-family-path { padding-top: 0; }
.tr-path-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.tr-path-card { min-height: 350px; padding: clamp(28px,4vw,47px); overflow: hidden; border-radius: 29px; box-shadow: 0 20px 54px rgba(11,49,95,.11); }
.tr-path-parent { color: var(--tr-navy); background: radial-gradient(circle at 0% 100%, rgba(239,51,79,.1), transparent 22rem), linear-gradient(145deg,#fff,#f1f6fb); }
.tr-path-business { color: #fff; background: radial-gradient(circle at 0% 100%, rgba(239,51,79,.28), transparent 22rem), linear-gradient(145deg,#0b315f,#164b80); }
.tr-path-card > span { color: inherit; opacity: .75; }
.tr-path-card h2 { max-width: 620px; margin: 17px 0 11px; color: inherit; font-size: clamp(28px,3vw,42px); line-height: 1.35; }
.tr-path-card p { max-width: 620px; margin: 0 0 24px; color: inherit; opacity: .82; }
.tr-path-card > div { display: grid; gap: 6px; }
.tr-path-card a { color: inherit !important; font-weight: 900; text-decoration: none !important; }
.tr-path-card small { opacity: .65; }

.tr-latest-section { padding-top: 0; }
.tr-home-place-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.tr-home-place-card { overflow: hidden; border: 1px solid var(--tr-border); border-radius: 23px; background: #fff; box-shadow: 0 14px 36px rgba(11,49,95,.065); }
.tr-home-place-card > a { display: block; color: inherit !important; text-decoration: none !important; }
.tr-home-place-media { aspect-ratio: 16 / 10; overflow: hidden; background: #edf3f8; }
.tr-home-place-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .18s ease; }
.tr-home-place-card:hover img { transform: scale(1.035); }
.tr-home-place-body { padding: 17px 18px 20px; }
.tr-home-place-body > span { color: var(--tr-red); font-size: 11px; font-weight: 900; }
.tr-home-place-body h3 { margin: 6px 0; color: var(--tr-navy); font-size: 19px; line-height: 1.5; }
.tr-home-place-body p { min-height: 24px; margin: 0 0 10px; color: var(--tr-muted); font-size: 13px; }
.tr-home-place-body strong { color: var(--tr-red); font-size: 13px; }
.tr-product-home-section { padding-top: 0; }
.tr-home-empty { padding: 32px; border: 1px dashed #cbd5e1; border-radius: 22px; background: #fff; text-align: center; }

.tr-final-cta { padding: 0 0 clamp(70px,8vw,108px); }
.tr-final-box { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(31px,5vw,57px); border-radius: 30px; color: #fff; background: radial-gradient(circle at 10% 90%, rgba(239,51,79,.35), transparent 24rem), linear-gradient(135deg,#0b315f,#164b80); box-shadow: 0 24px 62px rgba(11,49,95,.2); }
.tr-final-box > div:first-child { max-width: 740px; }
.tr-final-box > div:first-child > span { font-weight: 900; opacity: .75; }
.tr-final-box h2 { margin: 7px 0; color: #fff; font-size: clamp(28px,3.3vw,44px); line-height: 1.32; }
.tr-final-box p { margin: 0; opacity: .8; }
.tr-button-light { color: var(--tr-navy) !important; background: #fff; }
.tr-button-outline-light { color: #fff !important; border-color: rgba(255,255,255,.45); background: transparent; }

@media (max-width: 1080px) {
    .tr-search-card { grid-template-columns: 1fr; }
    .tr-search-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .tr-search-form button { width: 100%; }
    .tr-age-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 900px) {
    .tr-hero-grid { grid-template-columns: 1fr; }
    .tr-hero-copy { text-align: center; }
    .tr-hero-copy > p { margin-inline: auto; }
    .tr-hero-actions, .tr-trust-row { justify-content: center; }
    .tr-family-radar-card { max-width: 650px; margin-inline: auto; }
    .tr-family-number-grid, .tr-category-grid, .tr-home-place-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .tr-path-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .tr-home-container { width: min(calc(100% - 22px), var(--tr-content-width)); }
    .tr-hero { padding-top: 36px; padding-bottom: 76px; }
    .tr-hero h1 { font-size: clamp(36px,12vw,52px); }
    .tr-hero-actions { display: grid; }
    .tr-button { width: 100%; }
    .tr-quick-search { margin-top: -37px; }
    .tr-search-form { grid-template-columns: 1fr; }
    .tr-family-number-grid, .tr-age-grid, .tr-category-grid, .tr-home-place-grid { grid-template-columns: 1fr; }
    .tr-section-heading-inline, .tr-final-box { display: block; }
    .tr-section-heading-inline > a, .tr-section-heading-inline > p { display: inline-block; margin-top: 10px; }
    .tr-path-card { min-height: 320px; border-radius: 23px; }
    .tr-final-actions { display: grid; }
    .tr-family-card-logo { width: min(100%,310px); }
}

/* ===== v1.3.0 clean family search and logo-only cards ===== */

.tr-home-place-logo {
    display: grid;
    height: 175px;
    place-items: center;
    gap: 6px;
    padding: 22px;
    background:
        radial-gradient(circle at 85% 15%,rgba(239,51,79,.12),transparent 11rem),
        radial-gradient(circle at 10% 90%,rgba(46,139,60,.09),transparent 10rem),
        linear-gradient(145deg,#fff,#f0f5fa);
}

.tr-home-place-logo img {
    display: block;
    width: min(100%,210px);
    height: 112px;
    object-fit: contain;
    filter: drop-shadow(0 8px 13px rgba(11,49,95,.08));
}

.tr-home-place-logo > span {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border: 1px solid rgba(11,49,95,.09);
    border-radius: 27px;
    color: var(--tr-navy);
    background: #fff;
    box-shadow: 0 12px 25px rgba(11,49,95,.08);
    font-size: 33px;
    font-weight: 900;
}

.tr-home-place-logo small { color: var(--tr-muted); font-size: 10px; font-weight: 800; }

/* Retire old place-photo treatment. */
.tr-home-place-media { display: none !important; }



/* ===== v1.3.0 governorate-first homepage search ===== */
.tr-search-heading p {
    margin: 7px 0 0;
    color: var(--tr-muted);
    font-size: 13px;
    line-height: 1.7;
}

.tr-home-search-form {
    grid-template-columns: minmax(240px, 1.3fr) minmax(150px, .65fr) minmax(210px, .85fr) minmax(145px, .55fr) minmax(110px, .45fr);
}

.tr-home-search-query {
    grid-column: span 2;
}

.tr-home-area-field {
    display: grid;
    gap: 5px;
}

.tr-home-area-field > span {
    color: var(--tr-navy);
    font-size: 11px;
    font-weight: 900;
}

.tr-home-search-form .tr-multi-location summary {
    min-height: 51px;
    border-radius: 12px;
}

.tr-home-location-button,
.tr-home-search-submit {
    min-height: 51px !important;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.tr-home-location-button {
    color: var(--tr-navy) !important;
    border: 1px solid #bfdbfe !important;
    background: #eff6ff !important;
}

.tr-home-location-button:hover,
.tr-home-location-button:focus-visible {
    color: #fff !important;
    border-color: var(--tr-navy) !important;
    background: var(--tr-navy) !important;
}

.tr-home-search-submit {
    color: #fff !important;
    background: var(--tr-red) !important;
}

.tr-home-location-button:disabled {
    opacity: .7;
    cursor: wait;
}

.tr-home-location-status {
    grid-column: 1 / -1;
    min-height: 18px;
    color: #31577d;
    font-size: 12px;
    font-weight: 700;
}

.tr-home-search-form .tr-multi-location.is-disabled summary {
    color: #94a3b8;
    background: #f8fafc;
    cursor: not-allowed;
}

.tr-family-number-grid article {
    transition: transform .16s ease, box-shadow .16s ease;
}

.tr-family-number-grid article:hover {
    box-shadow: 0 16px 34px rgba(11,49,95,.08);
    transform: translateY(-3px);
}

@media (max-width: 1180px) {
    .tr-home-search-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tr-home-search-query {
        grid-column: span 2;
    }
}

@media (max-width: 820px) {
    .tr-home-search-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tr-home-search-query {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .tr-home-search-form {
        grid-template-columns: 1fr;
    }

    .tr-home-search-query,
    .tr-home-location-status {
        grid-column: auto;
    }

    .tr-home-search-form .tr-location-options {
        width: 100%;
        grid-template-columns: 1fr;
    }
}

/* ===== v1.4.0 stable search layout ===== */
.tr-search-card {
    display: block;
    min-width: 0;
    padding: clamp(22px, 3vw, 32px);
}

.tr-search-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.tr-search-heading h2 {
    max-width: 520px;
}

.tr-search-heading p {
    max-width: 560px;
}

.tr-home-search-form {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) minmax(165px, .75fr) minmax(150px, .65fr) minmax(120px, .5fr) minmax(120px, .5fr);
    gap: 12px;
    align-items: end;
    min-width: 0;
}

.tr-home-search-form > *,
.tr-home-search-form label,
.tr-home-area-field,
.tr-home-search-form .tr-multi-location {
    min-width: 0;
}

.tr-home-search-query {
    grid-column: span 2;
}

.tr-home-area-field {
    grid-column: span 2;
}

.tr-home-search-form input,
.tr-home-search-form select,
.tr-home-search-form summary,
.tr-home-location-button,
.tr-home-search-submit {
    width: 100%;
    max-width: 100%;
}

.tr-home-search-form .tr-multi-location summary b {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.tr-home-search-form .tr-location-options {
    right: auto;
    left: 0;
    width: min(430px, calc(100vw - 42px));
}

.tr-home-location-status {
    grid-column: 1 / -1;
    margin-top: -3px;
}

@media (max-width: 1200px) {
    .tr-search-heading {
        display: block;
    }

    .tr-search-heading p {
        margin-top: 8px;
    }

    .tr-home-search-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tr-home-search-query,
    .tr-home-area-field {
        grid-column: span 2;
    }
}

@media (max-width: 820px) {
    .tr-home-search-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tr-home-search-query,
    .tr-home-area-field {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .tr-search-card {
        padding: 18px 14px;
        border-radius: 20px;
    }

    .tr-home-search-form {
        grid-template-columns: 1fr;
    }

    .tr-home-search-query,
    .tr-home-area-field,
    .tr-home-location-status {
        grid-column: auto;
    }
}

/* Eight clear family categories in the launch grid. */
.tr-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1000px) {
    .tr-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .tr-category-grid { grid-template-columns: 1fr; }
}


/* ===== v1.5.0 premium national homepage ===== */
.tr-home {
    background:
        radial-gradient(circle at 5% 5%, rgba(239, 51, 79, .065), transparent 31rem),
        radial-gradient(circle at 96% 22%, rgba(46, 139, 60, .055), transparent 30rem),
        linear-gradient(180deg, #ffffff 0, #f7f9fc 44rem, #f8fafc 100%);
}

.tr-hero {
    position: relative;
    isolation: isolate;
    padding-top: clamp(48px, 7vw, 96px);
    background:
        linear-gradient(115deg, rgba(255,255,255,.98), rgba(245,249,253,.93));
}

.tr-hero::before,
.tr-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.tr-hero::before {
    top: -210px;
    left: -180px;
    width: 510px;
    height: 510px;
    border: 70px solid rgba(11,49,95,.025);
}

.tr-hero::after {
    right: 6%;
    bottom: 2%;
    width: 180px;
    height: 180px;
    background:
        repeating-radial-gradient(
            circle,
            rgba(239,51,79,.055) 0 2px,
            transparent 2px 15px
        );
}

.tr-hero-copy {
    position: relative;
}

.tr-hero-copy::after {
    content: "العراق";
    display: inline-flex;
    margin-top: 20px;
    padding: 5px 10px;
    border: 1px solid rgba(11,49,95,.09);
    border-radius: 999px;
    color: var(--tr-muted);
    background: rgba(255,255,255,.7);
    font-size: 11px;
    font-weight: 900;
}

.tr-hero h1 {
    max-width: 800px;
    letter-spacing: -.055em;
}

.tr-hero h1 span {
    position: relative;
    display: inline-block;
}

.tr-hero h1 span::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 2px;
    width: 72%;
    height: 8px;
    border-radius: 999px;
    background: rgba(239,51,79,.13);
}

.tr-family-radar-card {
    border-radius: 38px;
    box-shadow:
        0 32px 80px rgba(11,49,95,.15),
        inset 0 1px 0 rgba(255,255,255,.8);
}

.tr-family-radar-card::before {
    content: "";
    position: absolute;
    top: -90px;
    right: -90px;
    width: 210px;
    height: 210px;
    border: 28px solid rgba(239,51,79,.05);
    border-radius: 50%;
}

.tr-search-card {
    border-color: rgba(11,49,95,.08);
    box-shadow:
        0 28px 70px rgba(11,49,95,.13),
        0 3px 10px rgba(11,49,95,.04);
}

.tr-family-number-grid article {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-color: rgba(11,49,95,.08);
    background: rgba(255,255,255,.9);
}

.tr-family-number-grid article::after {
    content: "";
    position: absolute;
    left: -24px;
    bottom: -35px;
    width: 80px;
    height: 80px;
    border: 14px solid rgba(239,51,79,.035);
    border-radius: 50%;
}

.tr-family-number-grid strong {
    font-size: clamp(26px, 3vw, 36px);
}

/* Governorate discovery */
.tr-governorates-section {
    padding-bottom: 44px;
}

.tr-governorate-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.tr-governorate-grid > a {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 95px;
    padding: 16px;
    border: 1px solid var(--tr-border);
    border-radius: 20px;
    color: inherit !important;
    background: #fff;
    box-shadow: 0 11px 30px rgba(11,49,95,.045);
    text-decoration: none !important;
    transition: transform .17s ease, border-color .17s ease, box-shadow .17s ease;
}

.tr-governorate-grid > a:hover {
    border-color: rgba(239,51,79,.28);
    box-shadow: 0 20px 42px rgba(11,49,95,.09);
    transform: translateY(-4px);
}

.tr-governorate-grid > a > span {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 17px;
    color: var(--tr-navy);
    background:
        radial-gradient(circle at 65% 25%, rgba(239,51,79,.16), transparent 43%),
        #eef4fa;
    font-size: 22px;
    font-weight: 900;
}

.tr-governorate-grid strong {
    display: block;
    color: var(--tr-navy);
    font-size: 16px;
}

.tr-governorate-grid small {
    color: var(--tr-muted);
    font-size: 11px;
}

.tr-governorate-grid b {
    color: var(--tr-red);
    font-size: 18px;
}

.tr-governorates-all {
    display: table;
    margin: 19px auto 0;
    color: var(--tr-navy);
    font-weight: 900;
}

/* Comparison feature */
.tr-home-compare-section {
    padding-top: 0;
}

.tr-home-compare-box {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(430px, .85fr);
    gap: 36px;
    align-items: center;
    overflow: hidden;
    padding: clamp(30px, 5vw, 58px);
    border-radius: 32px;
    color: #fff;
    background:
        radial-gradient(circle at 3% 100%, rgba(239,51,79,.43), transparent 27rem),
        radial-gradient(circle at 95% 3%, rgba(212,168,90,.20), transparent 21rem),
        linear-gradient(135deg, #08294f, #154a7e);
    box-shadow: 0 28px 70px rgba(11,49,95,.22);
}

.tr-home-compare-box::after {
    content: "";
    position: absolute;
    right: -115px;
    bottom: -150px;
    width: 330px;
    height: 330px;
    border: 45px solid rgba(255,255,255,.035);
    border-radius: 50%;
}

.tr-home-compare-copy,
.tr-home-compare-demo {
    position: relative;
    z-index: 1;
}

.tr-home-compare-copy > span {
    font-size: 13px;
    font-weight: 900;
    opacity: .72;
}

.tr-home-compare-copy h2 {
    max-width: 620px;
    margin: 9px 0;
    color: #fff;
    font-size: clamp(31px, 4vw, 50px);
    line-height: 1.28;
}

.tr-home-compare-copy p {
    max-width: 650px;
    margin: 0;
    opacity: .8;
}

.tr-home-compare-copy > div {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 23px;
}

.tr-home-compare-copy a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    padding: 9px 15px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 11px;
    color: #fff !important;
    font-weight: 900;
    text-decoration: none !important;
}

.tr-home-compare-copy a:first-child {
    color: var(--tr-navy) !important;
    border-color: #fff;
    background: #fff;
}

.tr-home-compare-demo {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 8px;
    align-items: center;
}

.tr-home-compare-demo article {
    display: grid;
    min-height: 165px;
    align-content: center;
    gap: 5px;
    padding: 17px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 20px;
    background: rgba(255,255,255,.08);
    text-align: center;
    backdrop-filter: blur(8px);
}

.tr-home-compare-demo i {
    display: grid;
    width: 35px;
    height: 35px;
    margin: 0 auto 5px;
    place-items: center;
    border-radius: 50%;
    color: var(--tr-navy);
    background: #fff;
    font-style: normal;
    font-weight: 900;
}

.tr-home-compare-demo strong {
    font-size: 17px;
}

.tr-home-compare-demo span {
    font-size: 11px;
    opacity: .72;
}

.tr-home-compare-demo > b {
    opacity: .55;
}

/* Latest campaigns */
.tr-home-campaigns-section {
    padding-top: 0;
}

.tr-home-campaign-links {
    display: flex;
    gap: 12px;
}

.tr-home-campaign-links a {
    font-weight: 900;
}

.tr-home-campaign-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.tr-home-campaign-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--tr-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 13px 34px rgba(11,49,95,.055);
    transition: transform .17s ease, box-shadow .17s ease;
}

.tr-home-campaign-card:hover {
    box-shadow: 0 22px 45px rgba(11,49,95,.095);
    transform: translateY(-4px);
}

.tr-home-campaign-logo {
    display: grid;
    width: 74px;
    height: 74px;
    overflow: hidden;
    place-items: center;
    border: 1px solid var(--tr-border);
    border-radius: 18px;
    color: var(--tr-navy);
    background: #f8fafc;
    font-size: 20px;
    font-weight: 900;
}

.tr-home-campaign-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 7px;
}

.tr-home-campaign-card > div:last-child > span {
    color: var(--tr-red);
    font-size: 11px;
    font-weight: 900;
}

.tr-home-campaign-card h3 {
    margin: 4px 0;
    color: var(--tr-navy);
    font-size: 16px;
    line-height: 1.5;
}

.tr-home-campaign-card p {
    margin: 0 0 9px;
    color: var(--tr-muted);
    font-size: 12px;
}

.tr-home-campaign-meta {
    display: grid;
    gap: 2px;
    margin-bottom: 9px;
}

.tr-home-campaign-meta small {
    color: var(--tr-muted);
}

.tr-home-campaign-meta strong {
    color: var(--tr-green);
}

.tr-home-campaign-card a {
    color: var(--tr-red);
    font-size: 12px;
    font-weight: 900;
}

/* Latest place cards + comparison */
.tr-home-place-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.tr-home-place-card > a {
    flex: 1 1 auto;
}

.tr-home-card-compare {
    width: calc(100% - 32px);
    margin: 0 16px 16px;
}

.tr-home-place-grid .tr-home-place-card:nth-child(1) {
    border-color: rgba(239,51,79,.22);
    box-shadow: 0 18px 45px rgba(239,51,79,.08);
}

.tr-category-card:nth-child(4n + 1) i {
    color: var(--tr-red);
    background: #fff1f2;
}

.tr-category-card:nth-child(4n + 2) i {
    color: var(--tr-green);
    background: #f0fdf4;
}

.tr-category-card:nth-child(4n + 3) i {
    color: #9a6700;
    background: #fffbeb;
}

/* Section rhythm */
.tr-governorates-section,
.tr-category-section,
.tr-home-campaigns-section {
    position: relative;
}

.tr-governorates-section::before,
.tr-home-campaigns-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255,255,255,.48);
}

@media (max-width: 1120px) {
    .tr-governorate-grid,
    .tr-home-campaign-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tr-home-compare-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .tr-home-compare-demo {
        grid-template-columns: 1fr;
    }

    .tr-home-compare-demo > b {
        display: none;
    }

    .tr-home-compare-demo article {
        min-height: 110px;
    }

    .tr-home-campaign-links {
        margin-top: 10px;
    }
}

@media (max-width: 560px) {
    .tr-governorate-grid,
    .tr-home-campaign-grid {
        grid-template-columns: 1fr;
    }

    .tr-home-compare-box {
        padding: 25px 20px;
        border-radius: 24px;
    }

    .tr-home-compare-copy > div {
        display: grid;
    }

    .tr-home-compare-copy a {
        justify-content: center;
    }

    .tr-home-campaign-card {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .tr-home-campaign-logo {
        width: 62px;
        height: 62px;
    }
}


/* ===== v1.6.0 definitive homepage search fix ===== */
.tr-home .tr-quick-search {
    position: relative;
    z-index: 20;
}

.tr-home .tr-search-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    width: 100%;
    min-width: 0;
    padding: clamp(22px, 3vw, 34px) !important;
    overflow: visible;
}

.tr-home .tr-search-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr);
    gap: 8px 28px;
    align-items: end;
    margin: 0 !important;
}

.tr-home .tr-search-heading > span {
    grid-column: 1 / -1;
}

.tr-home .tr-search-heading h2 {
    max-width: none;
    margin: 0;
    font-size: clamp(27px, 3vw, 40px);
}

.tr-home .tr-search-heading p {
    max-width: 520px;
    margin: 0;
    justify-self: end;
    color: var(--tr-muted);
    line-height: 1.8;
}

.tr-home .tr-home-search-form {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 13px !important;
    align-items: end;
    width: 100%;
    min-width: 0;
}

.tr-home .tr-home-search-form > * {
    min-width: 0;
    margin: 0;
}

.tr-home .tr-home-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.tr-home .tr-home-field > span {
    color: var(--tr-navy);
    font-size: 12px;
    font-weight: 900;
}

.tr-home .tr-home-query-field {
    grid-column: span 5;
}

.tr-home .tr-home-governorate-field {
    grid-column: span 3;
}

.tr-home .tr-home-age-field {
    grid-column: span 2;
}

.tr-home .tr-home-radius-field {
    grid-column: span 2;
}

.tr-home .tr-home-area-field {
    grid-column: span 6 !important;
}

.tr-home .tr-home-location-button {
    grid-column: span 3;
}

.tr-home .tr-home-search-submit {
    grid-column: span 3;
}

.tr-home .tr-home-location-status {
    grid-column: 1 / -1;
    min-height: 18px;
    margin: 0;
}

.tr-home .tr-home-field input,
.tr-home .tr-home-field select,
.tr-home .tr-home-area-dropdown > button,
.tr-home .tr-home-location-button,
.tr-home .tr-home-search-submit {
    width: 100% !important;
    min-width: 0;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    border: 1px solid var(--tr-border);
    border-radius: 13px !important;
    font: inherit;
    line-height: 1.35;
}

.tr-home .tr-home-field input,
.tr-home .tr-home-field select {
    color: var(--tr-navy);
    background: #fff;
}

.tr-home .tr-home-area-dropdown {
    position: relative;
    min-width: 0;
}

.tr-home .tr-home-area-dropdown > button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--tr-navy);
    background: #fff;
    cursor: pointer;
}

.tr-home .tr-home-area-dropdown > button > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
}

.tr-home .tr-home-area-dropdown > button i {
    flex: 0 0 auto;
    font-style: normal;
    transition: transform .16s ease;
}

.tr-home .tr-home-area-dropdown.is-open > button i {
    transform: rotate(180deg);
}

.tr-home .tr-home-area-dropdown.is-disabled > button,
.tr-home .tr-home-area-dropdown > button:disabled {
    color: #94a3b8;
    background: #f8fafc;
    cursor: not-allowed;
}

.tr-home .tr-home-area-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 999;
    width: min(620px, calc(100vw - 44px));
    max-height: 330px;
    overflow: auto;
    padding: 12px;
    border: 1px solid var(--tr-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(11,49,95,.18);
}

.tr-home .tr-home-area-panel[hidden] {
    display: none !important;
}

.tr-home .tr-home-area-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.tr-home .tr-home-area-options label {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid #e7edf4;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
}

.tr-home .tr-home-area-options label[hidden] {
    display: none !important;
}

.tr-home .tr-home-area-options input {
    width: auto !important;
    min-height: auto !important;
    padding: 0 !important;
}

.tr-home .tr-home-area-options span {
    min-width: 0;
    overflow: hidden;
    color: var(--tr-navy);
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tr-home .tr-home-location-button {
    color: var(--tr-navy) !important;
    border-color: #bfdbfe !important;
    background: #eff6ff !important;
    font-weight: 900;
    cursor: pointer;
}

.tr-home .tr-home-search-submit {
    color: #fff !important;
    border-color: var(--tr-red) !important;
    background: var(--tr-red) !important;
    font-weight: 900;
    cursor: pointer;
}

.tr-home .tr-home-location-button:hover,
.tr-home .tr-home-location-button:focus-visible {
    color: #fff !important;
    background: var(--tr-navy) !important;
}

@media (max-width: 1050px) {
    .tr-home .tr-search-heading {
        grid-template-columns: 1fr;
    }

    .tr-home .tr-search-heading > span,
    .tr-home .tr-search-heading p {
        grid-column: auto;
        justify-self: start;
    }

    .tr-home .tr-home-query-field,
    .tr-home .tr-home-area-field {
        grid-column: span 6 !important;
    }

    .tr-home .tr-home-governorate-field,
    .tr-home .tr-home-age-field,
    .tr-home .tr-home-radius-field,
    .tr-home .tr-home-location-button,
    .tr-home .tr-home-search-submit {
        grid-column: span 3;
    }
}

@media (max-width: 760px) {
    .tr-home .tr-home-search-form {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .tr-home .tr-home-query-field,
    .tr-home .tr-home-governorate-field,
    .tr-home .tr-home-area-field,
    .tr-home .tr-home-location-status {
        grid-column: 1 / -1 !important;
    }

    .tr-home .tr-home-age-field,
    .tr-home .tr-home-radius-field,
    .tr-home .tr-home-location-button,
    .tr-home .tr-home-search-submit {
        grid-column: span 1;
    }

    .tr-home .tr-home-area-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .tr-home .tr-search-card {
        padding: 18px 14px !important;
        border-radius: 20px;
    }

    .tr-home .tr-home-search-form {
        grid-template-columns: 1fr !important;
    }

    .tr-home .tr-home-search-form > * {
        grid-column: auto !important;
    }

    .tr-home .tr-home-area-panel {
        right: 0;
        width: 100%;
    }

    .tr-home .tr-home-area-options {
        grid-template-columns: 1fr;
    }
}

/* ===== v1.7.0 marketplace-style family discovery rails ===== */
.tr-popular-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e8edf3;
}

.tr-popular-searches strong {
    color: var(--tr-navy);
    font-size: 12px;
}

.tr-popular-searches a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 6px 11px;
    border: 1px solid #dbe5ef;
    border-radius: 999px;
    color: #31577d;
    background: #fff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .15s ease, border-color .15s ease, color .15s ease;
}

.tr-popular-searches a:hover {
    color: var(--tr-red);
    border-color: rgba(239,51,79,.3);
    transform: translateY(-2px);
}

.tr-home-rail-section {
    padding-top: clamp(30px,5vw,58px);
    padding-bottom: 0;
}

.tr-home-rail-section:nth-of-type(even) {
    background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(248,250,252,.4));
}

.tr-rail-heading {
    margin-bottom: 17px;
}

.tr-rail-tools {
    display: flex;
    gap: 7px;
    align-items: center;
}

.tr-rail-tools button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #dbe5ef;
    border-radius: 11px;
    color: var(--tr-navy);
    background: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.tr-rail-tools button:hover {
    color: #fff;
    border-color: var(--tr-navy);
    background: var(--tr-navy);
}

.tr-rail-tools a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 7px 12px;
    border-radius: 11px;
    color: var(--tr-navy);
    background: #eef4fa;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.tr-home-place-rail {
    display: grid;
    grid-auto-columns: minmax(235px, 265px);
    grid-auto-flow: column;
    gap: 13px;
    overflow-x: auto;
    padding: 3px 2px 18px;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.tr-home-place-rail::-webkit-scrollbar {
    height: 7px;
}

.tr-home-place-rail::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #cbd5e1;
}

.tr-rail-card {
    display: flex;
    min-height: 360px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(11,49,95,.055);
    scroll-snap-align: start;
    transition: transform .17s ease, box-shadow .17s ease, border-color .17s ease;
}

.tr-rail-card:hover {
    border-color: rgba(239,51,79,.22);
    box-shadow: 0 20px 42px rgba(11,49,95,.1);
    transform: translateY(-4px);
}

.tr-rail-card-main {
    flex: 1 1 auto;
    color: inherit;
    text-decoration: none;
}

.tr-rail-card-logo {
    position: relative;
    display: grid;
    min-height: 155px;
    place-items: center;
    padding: 20px;
    background:
        radial-gradient(circle at 78% 18%, rgba(239,51,79,.11), transparent 43%),
        linear-gradient(145deg,#f8fafc,#eef4fa);
}

.tr-rail-card-logo img,
.tr-rail-card-logo > span {
    display: grid;
    width: 108px;
    height: 108px;
    object-fit: contain;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    color: var(--tr-navy);
    background: #fff;
    font-size: 28px;
    font-weight: 900;
}

.tr-rail-card-logo img {
    padding: 9px;
}

.tr-rail-card-logo b {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #166534;
    background: #dcfce7;
    font-size: 10px;
}

.tr-rail-card-copy {
    padding: 16px;
}

.tr-rail-card-copy > span {
    color: var(--tr-red);
    font-size: 10px;
    font-weight: 900;
}

.tr-rail-card-copy h3 {
    min-height: 48px;
    margin: 5px 0;
    color: var(--tr-navy);
    font-size: 16px;
    line-height: 1.55;
}

.tr-rail-card-copy p {
    margin: 0 0 9px;
    color: var(--tr-muted);
    font-size: 11px;
}

.tr-rail-card-rating {
    display: flex;
    gap: 5px;
    align-items: center;
}

.tr-rail-card-rating strong {
    color: var(--tr-navy);
}

.tr-rail-card-rating i {
    color: #f59e0b;
    font-style: normal;
}

.tr-rail-card-rating small,
.tr-rail-card-new {
    color: var(--tr-muted);
    font-size: 10px;
}

.tr-rail-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding: 0 14px 14px;
}

.tr-rail-card-actions > a,
.tr-rail-card-actions .tr-compare-button {
    display: flex;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 7px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 900;
}

.tr-rail-card-actions > a {
    color: #fff;
    background: var(--tr-navy);
    text-decoration: none;
}

.tr-rail-card-actions .tr-compare-button::before {
    display: none;
}

.tr-home-rail-learning .tr-rail-card-logo {
    background: radial-gradient(circle at 78% 18%, rgba(46,139,60,.13), transparent 43%), linear-gradient(145deg,#f8fafc,#f0fdf4);
}

.tr-home-rail-outing .tr-rail-card-logo {
    background: radial-gradient(circle at 78% 18%, rgba(212,168,90,.18), transparent 43%), linear-gradient(145deg,#f8fafc,#fffbeb);
}

.tr-home-rail-shopping .tr-rail-card-logo {
    background: radial-gradient(circle at 78% 18%, rgba(110,68,220,.12), transparent 43%), linear-gradient(145deg,#f8fafc,#f5f3ff);
}

@media (max-width: 680px) {
    .tr-rail-heading {
        align-items: flex-start;
    }

    .tr-rail-tools button {
        display: none;
    }

    .tr-home-place-rail {
        grid-auto-columns: minmax(220px, 78vw);
    }
}
