/* n49-home.css — the new "Top 100" header + hero (scoring banner) for the homepage.
   Everything is scoped under .n49x so it CANNOT touch the existing listing cards,
   which keep the legacy theme's style.css untouched. */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

.n49x, .n49x *, .n49x *::before, .n49x *::after { box-sizing: border-box; }
.n49x { font-family: 'DM Sans', sans-serif; color: #3B3B3B; }
.n49x a { color: #3B3B3B; text-decoration: none; transition: all 0.3s ease 0s; }
.n49x a:hover { color: var(--portal-color, #0066cc); }
.n49x p { margin: 0 0 20px; }
.n49x p:last-child { margin: 0; }
.n49x h1, .n49x h2, .n49x h3, .n49x h4 { line-height: 1.2; font-weight: 700; margin: 0 0 15px; }
.n49x img { max-width: 100%; height: auto; vertical-align: bottom; }

/* ---- flex / layout utilities ---- */
.n49x .flex { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
.n49x .flex.center { align-items: center; }
.n49x .flex.mt-10 { margin-top: 10px; }
.n49x .grow { flex-grow: 1; }
.n49x .wrapper { max-width: 1380px; width: 100%; padding: 0 20px; margin: 0 auto; position: relative; }
.n49x .wrapper.fullwidth { max-width: 100%; }
.n49x .wrapper.size-1080 { max-width: 1120px; }
.n49x .text-center { text-align: center; }
.n49x .text-right { text-align: right; }
.n49x .width-33 { width: 33%; }
.n49x .mb-0 { margin-bottom: 0; }
.n49x .mb-20 { margin-bottom: 20px; }
.n49x .font-size-58 { font-size: 58px; }
.n49x .text-white, .n49x .text-white h1, .n49x .text-white h2, .n49x .text-white p,
.n49x .text-white a:not(.btn) { color: #fff; }

/* ---- buttons ---- */
.n49x .btn {
    display: inline-block; cursor: pointer; font-size: 14px; font-weight: 700;
    color: #fff; text-align: center; background: var(--portal-color, #0066cc);
    border: 2px solid var(--portal-color, #0066cc); border-radius: 4px;
    padding: 9px 25px; transition: all 0.3s ease 0s;
}
.n49x .btn:hover { filter: brightness(0.9); color: #fff; }

/* ---- HEADER ---- */
.n49x.header, .n49x .header { width: 100%; position: relative; z-index: 999; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.16); }
.n49x .header.stuck { position: fixed; top: 0; left: 0; animation: n49fadeInDown ease-in-out 0.6s both; }
@keyframes n49fadeInDown { from { opacity: 0; transform: translate3d(0,-100%,0); } to { opacity: 1; transform: none; } }
.n49x .top { background: var(--portal-color, #0066cc); color: #fff; padding: 5px 0; }
.n49x .top, .n49x .top p, .n49x .top a { font-size: 14px; font-weight: 700; color: #fff; margin: 0; }
/* Higher-specificity + !important so the legacy theme's .header .middle / .header .logo
   padding can't knock the new header out of vertical alignment on the homepage. */
.n49x .header .middle { padding: 12px 0 !important; }
.n49x .header .middle > .wrapper > .flex.center { align-items: center; min-height: 44px; }
.n49x .header .logo { padding: 0 !important; margin: 0 !important; display: flex; align-items: center; line-height: 0; }
.n49x .header .logo a { display: inline-flex; align-items: center; line-height: 0; }
.n49x .header .logo img { display: block !important; height: 38px !important; width: auto !important; max-height: 38px !important; max-width: 220px; }
.n49x .header .logo .default-logo { line-height: 1; }
/* Neutralise the legacy theme's .nav (padding:15px 0 0; height:65px; links height:100%
   with a 4px border) which pushed the links down and broke alignment with the search. */
.n49x .header .nav { display: flex; align-items: center; height: auto; padding: 0; vertical-align: middle; }
.n49x .header .nav > ul { display: inline-flex; align-items: center; height: auto; }
.n49x .header .nav > ul > li { display: inline-flex; align-items: center; height: auto; }
.n49x .header .nav > ul > li > a { height: auto; border-bottom: 0; }
.n49x .header-right { align-items: center; }
.n49x .header .search-wrap, .n49x .header .search-form { align-items: center; }
.n49x .nav ul { font-size: 0; list-style: none; margin: 0; padding: 0; }
.n49x .nav li { position: relative; margin: 0 16px; }
.n49x .nav a { font-size: 14px; font-weight: 700; margin: 0; }
.n49x .btn-menu { display: none; padding: 0; border: 0; background: none; color: #3B3B3B; line-height: 0; cursor: pointer; margin-left: auto; }
.n49x .btn-menu svg { display: block; }
.n49x .header-right { column-gap: 25px; }
.n49x .search-wrap { column-gap: 10px; justify-content: flex-end; flex-wrap: nowrap; }
.n49x .sq-btn.active { color: #fff; background: var(--portal-color, #0066cc); }
.n49x .search-form { margin: 0 10px 0 0; }
.n49x .search-form .input {
    width: 100%; max-width: 200px; height: 40px; border: 1px solid #E7E7E7; border-right: 0;
    border-top-left-radius: 4px; border-bottom-left-radius: 4px; padding: 0 15px;
    font-size: 14px; font-weight: 500; outline: 0;
}
.n49x .sq-btn {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 40px; height: 40px; padding: 0; color: var(--portal-color, #0066cc); background: #fff;
    border: 1px solid var(--portal-color, #0066cc); border-radius: 4px; cursor: pointer;
}
.n49x .sq-btn svg { display: block; }
.n49x .sq-btn.solid, .n49x .sq-btn:hover { color: #fff; background: var(--portal-color, #0066cc); }
.n49x .search-form .search-submit { border-top-left-radius: 0; border-bottom-left-radius: 0; }
/* keep input + magnifier on one row (override .flex wrap/space-between) */
.n49x .search-form { flex-wrap: nowrap; justify-content: flex-start; }
.n49x .search-form .input { width: 180px; max-width: 180px; flex: 0 0 auto; }
.n49x .sq-btn { flex: 0 0 auto; }

/* ---- HERO (the "main scoring banner") ---- */
.n49x.hero-section { padding: 70px 0; position: relative; }
.n49x .header-wrap { position: relative; background: #0b1f3a; min-height: 520px; padding: 70px 0;
    display: flex; align-items: center; overflow: hidden; }
.n49x .header-wrap .bgr {
    position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    background: none no-repeat scroll center center transparent; background-size: cover; opacity: 0.45;
}
.n49x .header-wrap .wrapper { position: relative; z-index: 1; }
.n49x .stats { display: inline-flex; flex-wrap: wrap; background: rgba(255,255,255,0.92); border-radius: 10px; }
.n49x .stats .stat { padding: 20px 40px; border-right: 1px solid #A7A7A7; }
.n49x .stats .stat:last-child { border-right: 0; }
.n49x .stats .number { display: block; font-size: 44px; font-weight: 700; line-height: 1.2; color: #3B3B3B; }
.n49x .stats .star { color: var(--portal-color, #0066cc); }
.n49x .stats .label { display: block; font-size: 12px; font-weight: 700; color: #AFAFAF; text-transform: uppercase; letter-spacing: 1px; }

/* ---- city sub-nav ---- */
.n49x.menu-nav, .n49x .menu-nav { background: #fff; border-bottom: 1px solid #ededed; box-shadow: 0 1px 3px rgba(0,0,0,0.16); position: relative; z-index: 1; }
.n49x .menu-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.n49x .menu-nav a { display: block; padding: 18px; font-size: 14px; font-weight: 700; border-bottom: 2px solid transparent; }
.n49x .menu-nav a:hover { color: #3B3B3B; border-color: #c1c1c1; }
.n49x .menu-nav a.active { color: var(--portal-color, #0066cc); border-bottom-color: var(--portal-color, #0066cc); }

/* ---- responsive ---- */
@media only screen and (max-width: 1140px) {
    .n49x .stats .stat { padding: 20px; }
    .n49x .stats .number { font-size: 34px; }
}
@media only screen and (max-width: 980px) {
    .n49x .mobile-980-hidden, .n49x .header .search-form .input { display: none; }
    .n49x .mobile-980-width-100 { width: 100%; }
    .n49x .mobile-980-text-center { text-align: center; }
    .n49x .header-right { column-gap: 12px; }
    .n49x .btn-menu { display: block; }
    .n49x .header .nav { justify-content: flex-end; }
    .n49x .header .nav ul { display: none; position: absolute; left: 0; top: 50px; width: 100%; background: #fff; border-top: 1px solid #e5e5e7; text-align: left; z-index: 99; }
    .n49x .header .nav.active ul { display: block; }
    .n49x .header .nav > ul > li { display: block; width: 100%; margin: 0; border-bottom: 1px solid #e5e5e5; }
    .n49x .header .nav > ul > li > a { display: block; padding: 1em 20px; }
    .n49x .font-size-58 { font-size: 38px; }
}
@media only screen and (max-width: 800px) {
    .n49x .stats .stat { padding: 12px; width: 50%; }
    .n49x .menu-nav ul { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .n49x .menu-nav ul::-webkit-scrollbar { display: none; }
    .n49x .menu-nav li { flex: 0 0 auto; }
    .n49x .menu-nav a { white-space: nowrap; padding: 15px 14px; }
}
