/* Chenz Estates Blog - public pages */
:root {
    --brand: #f38321;
    --brand-dark: #d96d10;
    --navy: #1f2d3d;
    --ink: #1f2933;
    --text: #3b4754;
    --muted: #6b7785;
    --line: #e5e8ec;
    --bg: #f7f8fa;
    --wa: #25d366;
    --radius: 10px;
    --serif: 'Source Serif 4', Georgia, serif;
    --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.b-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.b-narrow { max-width: 860px; }
.b-main { min-height: 60vh; padding-bottom: 60px; }

/* ---------- Buttons ---------- */
.b-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font: 600 14px/1 var(--sans); padding: 12px 20px; border-radius: 8px;
    border: 1px solid transparent; cursor: pointer; text-decoration: none !important; white-space: nowrap;
}
.b-btn--brand { background: var(--brand); color: #fff; }
.b-btn--brand:hover { background: var(--brand-dark); }
.b-btn--dark { background: var(--navy); color: #fff; }
.b-btn--dark:hover { background: #111c28; }
.b-btn--whatsapp { background: var(--wa); color: #fff; }
.b-btn--whatsapp:hover { background: #1ebd5a; }
.b-btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.b-btn--ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.b-btn--sm { padding: 8px 14px; font-size: 13px; }
.b-btn--block { width: 100%; }

/* ---------- Header ---------- */
.b-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.b-header__bar { display: flex; align-items: center; gap: 20px; height: 72px; }
.b-brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.b-brand img { width: 64px; height: auto; }
.b-brand__word { font-weight: 700; font-size: 20px; color: var(--ink); border-left: 2px solid var(--brand); padding-left: 10px; }
.b-search { flex: 1; max-width: 420px; margin-left: auto; position: relative; }
.b-search input {
    width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 21px; padding: 0 44px 0 18px;
    font: 14px var(--sans); background: var(--bg);
}
.b-search input:focus { outline: 2px solid var(--brand); border-color: transparent; background: #fff; }
.b-search button { position: absolute; right: 6px; top: 5px; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.b-menu-toggle { display: none; }
.b-nav { border-top: 1px solid var(--line); }
.b-nav .b-container { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.b-nav .b-container::-webkit-scrollbar { display: none; }
.b-nav a { color: var(--text); font-size: 14px; font-weight: 500; padding: 12px 12px; white-space: nowrap; border-bottom: 2px solid transparent; text-decoration: none; }
.b-nav a:hover, .b-nav a.is-active { color: var(--ink); border-bottom-color: var(--brand); }
@media (max-width: 760px) {
    .b-header { position: static; }
    .b-header__bar { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
    .b-search { order: 3; flex-basis: 100%; max-width: none; }
    .b-header__cta { margin-left: auto; padding: 10px 14px; font-size: 13px; }
}

/* ---------- Adverts ---------- */
.b-ad { position: relative; margin: 28px auto; text-align: center; }
.b-ad__label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 6px; }
.b-ad img { margin: 0 auto; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06); }
.b-ad--top img { width: 100%; max-width: 970px; }
.b-ad--sidebar { margin-top: 0; }
.b-ad--sidebar img { width: 100%; max-width: 300px; }
.b-ad--in-article { margin: 32px 0; }
.b-ad--in-article img { width: 100%; max-width: 728px; }
.b-ad--empty a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    border: 2px dashed #d5dbe2; border-radius: 10px; color: var(--muted); padding: 22px; background: #fff; text-decoration: none;
}
.b-ad--empty a:hover { border-color: var(--brand); color: var(--brand-dark); }
.b-ad--empty strong { color: var(--ink); }
.b-ad--empty span { font-size: 13px; }
.b-ad--top.b-ad--empty a { max-width: 970px; margin: 0 auto; min-height: 90px; }
.b-ad--sidebar.b-ad--empty a { min-height: 250px; }

/* ---------- Featured article ---------- */
.b-feature {
    display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; background: #fff; border-radius: 14px; overflow: hidden;
    border: 1px solid var(--line); margin: 10px 0 40px;
}
.b-feature__img img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.b-feature__body { padding: 36px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.b-feature__title { font-size: 30px; }
.b-feature__title a { color: var(--ink); }
.b-feature__excerpt { font-size: 16px; margin: 0; }
.b-feature .b-btn { align-self: flex-start; }
@media (max-width: 860px) { .b-feature { grid-template-columns: 1fr; } .b-feature__img img { min-height: 0; } .b-feature__body { padding: 24px; } .b-feature__title { font-size: 24px; } }

/* ---------- Layout ---------- */
.b-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .b-layout { grid-template-columns: 1fr; } }
.b-section-title { font-size: 22px; margin: 0 0 20px; }
.b-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.b-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .b-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .b-grid, .b-grid--3 { grid-template-columns: 1fr; } }

/* ---------- Article card ---------- */
.b-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s; }
.b-card:hover { box-shadow: 0 10px 24px rgba(31, 45, 61, 0.1); transform: translateY(-2px); }
.b-card__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.b-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.b-card__title { font-size: 18px; }
.b-card__title a { color: var(--ink); }
.b-card__excerpt { margin: 0; font-size: 14px; color: var(--text); flex: 1; }
.b-tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--brand-dark); background: #fff3e8; padding: 4px 10px; border-radius: 4px; text-decoration: none !important; }
.b-meta { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- Sidebar ---------- */
.b-sidebar { display: flex; flex-direction: column; gap: 24px; }
.b-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.b-box__title { font-size: 17px; margin-bottom: 14px; }
.b-box--cta { background: var(--navy); border-color: var(--navy); color: rgba(255, 255, 255, 0.85); }
.b-box--cta .b-box__title { color: #fff; }
.b-box--cta p { margin: 0 0 16px; font-size: 14px; }
.b-popular { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.b-popular a { display: flex; gap: 12px; align-items: center; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.35; }
.b-popular img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.b-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.b-chip { font-size: 13px; padding: 6px 12px; border-radius: 16px; background: var(--bg); color: var(--text); border: 1px solid var(--line); text-decoration: none !important; }
.b-chip:hover { border-color: var(--brand); color: var(--brand-dark); }

/* ---------- Article page ---------- */
.b-article { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 36px 44px; margin-top: 28px; }
@media (max-width: 700px) { .b-article { padding: 22px 18px; border-radius: 0; border-left: 0; border-right: 0; margin-left: -20px; margin-right: -20px; } }
.b-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.b-crumbs a { color: var(--muted); }
.b-article__title { font-size: 38px; letter-spacing: -0.5px; }
@media (max-width: 700px) { .b-article__title { font-size: 28px; } }
.b-article__lead { font-family: var(--serif); font-size: 20px; color: var(--text); margin: 14px 0 22px; }
.b-article__meta { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.b-article__meta .b-btn { margin-left: auto; }
.b-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.b-article__cover { margin: 26px 0; }
.b-article__cover img { width: 100%; border-radius: 10px; }
.b-prose { font-family: var(--serif); font-size: 19px; line-height: 1.75; color: #27313b; }
.b-prose h2 { font-family: var(--sans); font-size: 25px; margin: 36px 0 12px; }
.b-prose h3 { font-family: var(--sans); font-size: 20px; margin: 28px 0 10px; }
.b-prose p { margin: 0 0 20px; }
.b-prose ul, .b-prose ol { margin: 0 0 20px; padding-left: 26px; }
.b-prose li { margin-bottom: 8px; }
.b-prose blockquote { margin: 24px 0; padding: 14px 22px; border-left: 4px solid var(--brand); background: #fff8f0; font-style: italic; }
.b-prose a { text-decoration: underline; }
.b-prose strong { color: var(--ink); }
.b-prose .b-ad { font-family: var(--sans); }
.b-property-cta { display: flex; align-items: center; gap: 20px; background: #fff8f0; border: 1px solid #fbd9b8; border-radius: 10px; padding: 20px 24px; margin: 30px 0; flex-wrap: wrap; }
.b-property-cta div { flex: 1; min-width: 220px; }
.b-property-cta strong { display: block; color: var(--ink); font-size: 17px; }
.b-property-cta span { font-size: 14px; }
.b-article__share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid var(--line); font-size: 14px; }
.b-article__share > span { margin-right: 6px; color: var(--muted); }
.b-related { margin-top: 30px; }
.b-related .b-card__excerpt { display: none; }

/* ---------- Lists, pagination, empty ---------- */
.b-list-head { margin: 28px 0 24px; }
.b-list-head__title { font-size: 32px; }
.b-list-head p { margin: 8px 0 0; font-size: 17px; }
.b-pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; font-size: 14px; color: var(--muted); }
.b-pagination a { font-weight: 600; }
.b-empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; }
.b-empty--page { margin-top: 50px; }
.b-empty--page h1 { margin-bottom: 10px; }

/* ---------- Advertise page ---------- */
.b-adspaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
@media (max-width: 760px) { .b-adspaces { grid-template-columns: 1fr; } }
.b-adspace { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.b-adspace h2 { font-size: 17px; margin: 14px 0 6px; }
.b-adspace p { margin: 0; font-size: 14px; }
.b-adspace__price { font-weight: 700; color: var(--brand-dark); margin-top: 8px !important; }
.b-adspace__shape { background: linear-gradient(135deg, #16325c, #0b1a33); color: #f5c26b; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; margin: 0 auto; }
.b-adspace__shape--top { width: 100%; aspect-ratio: 970 / 250; }
.b-adspace__shape--sidebar { width: 40%; aspect-ratio: 300 / 600; }
.b-adspace__shape--in-article { width: 100%; aspect-ratio: 728 / 200; }
.b-steps { padding-left: 20px; margin: 0 0 20px; }
.b-steps li { margin-bottom: 8px; }
.b-box .b-btn { margin: 4px 6px 4px 0; }

/* ---------- Footer ---------- */
.b-footer { background: var(--navy); color: rgba(255, 255, 255, 0.75); padding: 50px 0 20px; font-size: 14px; }
.b-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 30px; }
@media (max-width: 800px) { .b-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .b-footer__grid { grid-template-columns: 1fr; } }
.b-footer__logo { background: #fff; border-radius: 6px; padding: 4px 8px; width: 90px; margin-bottom: 12px; }
.b-footer__title { color: #fff; font-size: 15px; margin-bottom: 12px; }
.b-footer ul { list-style: none; margin: 0; padding: 0; }
.b-footer li { margin-bottom: 8px; }
.b-footer a { color: rgba(255, 255, 255, 0.85); }
.b-footer__copy { text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.12); margin: 30px 0 0; padding-top: 18px; color: rgba(255, 255, 255, 0.55); }

/* Strip back to the main website (top of every blog page) */
.b-sitebar { background: linear-gradient(90deg, #0f172a 0%, #1e293b 60%, #24324a 100%); color: #cbd5e1; font-size: 13px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.b-sitebar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; }
.b-sitebar a { color: #e2e8f0; text-decoration: none !important; }
.b-sitebar svg { flex: none; opacity: .85; }
.b-sitebar__home { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; margin-left: -8px; border-radius: 999px; font-weight: 600; white-space: nowrap; transition: background .2s; }
.b-sitebar__home svg { color: var(--brand); opacity: 1; }
.b-sitebar__home-hint { font-weight: 400; color: #94a3b8; padding-left: 10px; margin-left: 2px; border-left: 1px solid rgba(255, 255, 255, .15); }
.b-sitebar__home:hover { background: rgba(255, 255, 255, .08); }
.b-sitebar__home:hover .b-sitebar__home-hint { color: #e2e8f0; }
.b-sitebar__links { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.b-sitebar__links::-webkit-scrollbar { display: none; }
.b-sitebar__links a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; white-space: nowrap; font-weight: 500; transition: background .2s, color .2s; }
.b-sitebar__links a:hover, .b-sitebar__links a:focus-visible { background: rgba(255, 255, 255, .1); color: #fff; }
.b-sitebar__links a.is-active { background: var(--brand); color: #fff; font-weight: 700; box-shadow: 0 4px 14px -6px rgba(243, 131, 33, .8); }
.b-sitebar__links a.is-active svg { opacity: 1; }
.b-sitebar a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 900px) { .b-sitebar__home-hint { display: none; } }
@media (max-width: 640px) {
    .b-sitebar__inner { flex-direction: column; align-items: stretch; gap: 2px; padding-top: 6px; padding-bottom: 6px; }
    .b-sitebar__home { align-self: flex-start; }
    .b-sitebar__links { margin: 0 -20px; padding: 0 20px 2px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
    .b-sitebar__links a { padding: 7px 12px; background: rgba(255, 255, 255, .06); }
}

/* =================== Motion and carousels =================== */
@keyframes b-failsafe { to { opacity: 1; transform: none; } }
@keyframes b-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes b-kenburns { from { transform: scale(1.02); } to { transform: scale(1.12); } }
@keyframes b-dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes b-flicker { 0%, 100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(6deg) scale(1.12); } }
@keyframes b-shine { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Scroll-in: hidden until seen (shown anyway after 2.5s if scripts fail, and instantly without scripts) */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); animation: b-failsafe 0s 2.5s forwards; }
[data-reveal].is-in { opacity: 1; transform: none; animation: none; }
@media (scripting: none) { [data-reveal] { opacity: 1; transform: none; } }

/* Hero carousel */
.b-hero { position: relative; margin: 14px 0 36px; border-radius: 18px; overflow: hidden; background: #0f172a; box-shadow: 0 24px 50px -28px rgba(15, 23, 42, .55); isolation: isolate; }
.b-hero__track { position: relative; aspect-ratio: 21 / 9; min-height: 380px; }
.b-hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
.b-hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; z-index: 1; }
.b-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.b-hero__slide.is-active .b-hero__img { animation: b-kenburns 9s ease-out forwards; }
.b-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 16, 30, .9) 0%, rgba(10, 16, 30, .65) 42%, rgba(10, 16, 30, .1) 75%), linear-gradient(0deg, rgba(10, 16, 30, .55), transparent 45%); }
.b-hero__body { position: absolute; left: 0; bottom: 0; top: 0; width: min(620px, 100%); padding: 48px 56px 70px; display: flex; flex-direction: column; justify-content: center; gap: 12px; color: #e2e8f0; }
.b-hero__body > * { opacity: 0; }
.b-hero__slide.is-active .b-hero__body > * { animation: b-rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.b-hero__slide.is-active .b-hero__body > :nth-child(2) { animation-delay: .12s; }
.b-hero__slide.is-active .b-hero__body > :nth-child(3) { animation-delay: .24s; }
.b-hero__slide.is-active .b-hero__body > :nth-child(4) { animation-delay: .32s; }
.b-hero__slide.is-active .b-hero__body > :nth-child(5) { animation-delay: .42s; }
.b-hero__title { font-size: clamp(24px, 3.2vw, 38px); line-height: 1.18; margin: 0; }
.b-hero__title a { color: #fff; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .4s; }
.b-hero__title a:hover { background-size: 100% 2px; }
.b-hero__excerpt { margin: 0; font-size: 16px; color: #cbd5e1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.b-hero__meta { margin: 0; font-size: 13px; color: #94a3b8; }
.b-hero__btn { align-self: flex-start; margin-top: 6px; }
.b-hero__btn span { display: inline-block; transition: transform .25s; }
.b-hero__btn:hover span { transform: translateX(4px); }
.b-tag--light { color: #fff !important; background: rgba(243, 131, 33, .9) !important; }
.b-hero__arrow { position: absolute; top: 50%; z-index: 3; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s, background .2s, transform .2s; }
.b-hero__arrow--prev { left: 16px; } .b-hero__arrow--next { right: 16px; }
.b-hero:hover .b-hero__arrow, .b-hero__arrow:focus-visible { opacity: 1; }
.b-hero__arrow:hover { background: var(--brand); transform: scale(1.06); }
.b-hero__dots { position: absolute; z-index: 3; left: 56px; bottom: 26px; display: flex; gap: 8px; }
.b-hero__dot { position: relative; width: 34px; height: 5px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .3); cursor: pointer; overflow: hidden; transition: width .3s, background .2s; }
.b-hero__dot:hover { background: rgba(255, 255, 255, .55); }
.b-hero__dot.is-active { width: 54px; }
.b-hero__dot span { position: absolute; inset: 0; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.b-hero__dot.is-active span { animation: b-dotfill 6.5s linear forwards; }
.b-hero.is-paused .b-hero__dot.is-active span { animation-play-state: paused; }
.b-hero__arrow:focus-visible, .b-hero__dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 760px) {
    .b-hero { border-radius: 14px; margin-top: 10px; }
    .b-hero__track { aspect-ratio: auto; min-height: 460px; }
    .b-hero__shade { background: linear-gradient(0deg, rgba(10, 16, 30, .95) 0%, rgba(10, 16, 30, .7) 50%, rgba(10, 16, 30, .15) 100%); }
    .b-hero__body { top: auto; padding: 24px 22px 54px; gap: 10px; }
    .b-hero__dots { left: 22px; bottom: 22px; }
    .b-hero__arrow { display: none; }
}

/* "Most read" sideways row */
.b-rail { margin: 0 0 38px; }
.b-rail__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.b-rail__head .b-section-title { margin: 0; }
.b-flame { display: inline-block; animation: b-flicker 1.6s ease-in-out infinite; }
.b-rail__nav { display: flex; gap: 8px; }
.b-rail__btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s, opacity .2s, transform .2s; }
.b-rail__btn:hover:not(:disabled) { background: var(--brand); color: #fff; border-color: var(--brand); transform: scale(1.06); }
.b-rail__btn:disabled { opacity: .35; cursor: default; }
.b-rail__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 16px 2px 12px; scrollbar-width: none; }
.b-rail__track::-webkit-scrollbar { display: none; }
.b-rail__track:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 8px; }
.b-rail__item { position: relative; flex: 0 0 clamp(220px, 26%, 290px); scroll-snap-align: start; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none !important; color: var(--ink); transition: transform .3s, box-shadow .3s; }
.b-rail__item:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -20px rgba(31, 45, 61, .45); }
.b-rail__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.b-rail__item:hover img { transform: scale(1.07); }
.b-rail__num { position: absolute; top: 10px; left: 10px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.b-rail__title { display: block; padding: 12px 14px 16px; font-weight: 600; font-size: 15px; line-height: 1.35; }
@media (max-width: 600px) { .b-rail__item { flex-basis: 76%; } .b-rail__nav { display: none; } }

/* Livelier cards */
.b-card { transition: box-shadow .35s, transform .35s cubic-bezier(.2, .7, .2, 1), border-color .35s; }
.b-card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -22px rgba(31, 45, 61, .45); border-color: #f6c79d; }
.b-card__img { display: block; overflow: hidden; position: relative; }
.b-card__img img { transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .4s, opacity .5s; }
.b-card:hover .b-card__img img { transform: scale(1.08); }
.b-card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, .35)); opacity: 0; transition: opacity .35s; }
.b-card:hover .b-card__img::after { opacity: 1; }
.b-card__title a { text-decoration: none; }
.b-card__title a span { background: linear-gradient(var(--brand), var(--brand)) 0 100% / 0 2px no-repeat; transition: background-size .4s; }
.b-card:hover .b-card__title a span { background-size: 100% 2px; }
.b-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.b-card__more { font-weight: 600; color: var(--brand-dark); text-decoration: none !important; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s; white-space: nowrap; }
.b-card__more span { display: inline-block; transition: transform .25s; }
.b-card:hover .b-card__more { opacity: 1; transform: none; }
.b-card:hover .b-card__more span { transform: translateX(3px); }
.b-tag { transition: background .2s, color .2s; }
.b-tag:hover { background: var(--brand); color: #fff; }
img.is-loading { opacity: 0; }

/* Sidebar and chips */
.b-chip { transition: background .2s, color .2s, border-color .2s, transform .2s; }
.b-chip:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.b-popular a img { transition: transform .4s; }
.b-popular a:hover img { transform: scale(1.06) rotate(-1deg); }
.b-box--cta { position: relative; overflow: hidden; }
.b-box--cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%) 0 0 / 200% 100%; animation: b-shine 5s linear infinite; pointer-events: none; }

/* Sticky header shadow on scroll */
.b-header { transition: box-shadow .3s; }
.b-header.is-scrolled { box-shadow: 0 10px 24px -18px rgba(15, 23, 42, .45); }

/* Article: entrance, reading progress, back to top */
.b-article--enter { animation: b-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.b-article__cover { overflow: hidden; border-radius: 12px; }
.b-article__cover img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), opacity .5s; }
.b-article__cover:hover img { transform: scale(1.03); }
.b-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 50; pointer-events: none; }
.b-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #ffb15c); transform: scaleX(0); transform-origin: left; transition: transform .1s linear; border-radius: 0 3px 3px 0; }
.b-totop { position: fixed; right: 20px; bottom: 22px; z-index: 40; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(15, 23, 42, .6); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .3s, transform .3s, background .2s; }
.b-totop.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.b-totop:hover { background: var(--brand); }
.b-property-cta { background-size: 200% 200%; transition: transform .3s; }
.b-property-cta:hover { transform: translateY(-2px); }

/* People who prefer less motion get a calm version */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    [data-reveal], .b-hero__body > * { opacity: 1 !important; transform: none !important; }
}
