/* =====================================================
   Lanka Hela Ads: Glossy Red Theme
   Red #e1182b · Dark #14040a · Yellow #ffc400
   (header.php එකේ අන්තිමට load වෙනවා)
   ===================================================== */

:root {
    --red: #e1182b;
    --red-dark: #b00b19;
    --red-soft: #fdecee;
    --yellow: #ffc400;
    --ink: #1f2430;

    --card: #ffffff;
    --border: #e4e6ef;
    --text: #1f2430;
    --soft: #4b5563;
    --muted: #6b7280;

    --primary: #e1182b;
    --primary-dark: #b00b19;
    --accent: #ffc400;
    --danger: #e1182b;
    --radius: 14px;
}

html { color-scheme: light; }

/* ---------- Base ---------- */
html body {
    font-family: 'Inter', 'Noto Sans Sinhala', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #e9ebf7 0%, #f5f6fb 45%, #eef0f8 100%) fixed;
}
body h1, body h2, body h3, body h4 {
    font-family: 'Poppins', 'Noto Sans Sinhala', 'Inter', sans-serif;
    color: var(--ink);
}
::selection { background: #ffd0d5; color: #1f2430; }
body :focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- Glow animations (ඉක්මන් නෑ, හිමින්) ---------- */
@keyframes glowYellow {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 196, 0, .45), 0 4px 10px rgba(0, 0, 0, .18); }
    50%      { box-shadow: 0 0 24px 4px rgba(255, 196, 0, .85), 0 4px 12px rgba(0, 0, 0, .2); }
}
@keyframes glowRed {
    0%, 100% { box-shadow: 0 0 8px rgba(225, 24, 43, .45), 0 4px 10px rgba(0, 0, 0, .18); }
    50%      { box-shadow: 0 0 24px 4px rgba(255, 60, 75, .8), 0 4px 12px rgba(0, 0, 0, .2); }
}
@media (prefers-reduced-motion: reduce) {
    body .btn, body .hp-search button, body .sticky-contact a { animation: none !important; }
}

/* ---------- Header: උඩ අඳුරු → පහළ රතු gradient ---------- */
body .site-header {
    background:
        radial-gradient(110% 140% at 92% 110%, rgba(255, 70, 85, .55), transparent 60%),
        linear-gradient(180deg, #14040a 0%, #4a0912 30%, #a50f1e 65%, #e0182b 100%);
    border-bottom: 1px solid rgba(255, 130, 140, .55);
    box-shadow: 0 6px 22px rgba(120, 0, 15, .35);
}
body .logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-style: italic;
    color: #fff;
    text-shadow: 0 0 14px rgba(255, 70, 85, .75);
}
body .logo span { color: var(--yellow); text-shadow: 0 0 14px rgba(255, 170, 0, .8); }

/* Nav (desktop): links + Post Ad එකම පේළියේ */
body .nav {
    display: flex;
    align-items: center;
    gap: 0;
}
body .nav-links {
    display: flex;
    align-items: center;
}
body .nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: .88rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}
body .nav-links a + a { border-left: 1px solid rgba(255, 255, 255, .22); }
body .nav-links a:hover { color: var(--yellow); }
body .nav svg {
    width: 16px;
    height: 16px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
body .nav .btn { margin-left: 14px; padding: 9px 18px; }

/* Mobile header:
   පේළි 1 = Logo (වම) + Post Ad (දකුණ)
   පේළි 2 = Home / Ad Types / Blog ... tab bar එක */
@media (max-width: 700px) {
    body .site-header .header-inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px 12px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    body .site-header .logo { order: 1; font-size: 24px; }
    body .site-header .nav { display: contents; }
    body .site-header .nav .btn {
        order: 2;
        margin-left: auto;
        padding: 8px 16px;
    }
    body .site-header .nav-links {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: space-between;
        background: rgba(0, 0, 0, .28);
        border: 1px solid rgba(255, 255, 255, .2);
        border-radius: 14px;
        padding: 4px;
    }
    body .site-header .nav-links a {
        flex: 1 1 0;
        min-width: 0;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        padding: 7px 2px;
        font-size: .72rem;
        text-align: center;
        border-radius: 10px;
    }
    body .site-header .nav-links a + a { border-left: 1px solid rgba(255, 255, 255, .15); }
    body .site-header .nav-links a:hover { background: rgba(255, 255, 255, .1); }
    body .site-header .nav svg { width: 19px; height: 19px; }
    body .site-header .nav .btn svg { width: 16px; height: 16px; }
}

/* ---------- Buttons: outline + glow ---------- */
body .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(180deg, #ffe066 0%, #ffc400 55%, #ffad00 100%);
    color: #2a1a00 !important;
    border: 2px solid #fff1a8;
    border-radius: 12px;
    font-weight: 800;
    animation: glowYellow 3.4s ease-in-out infinite;
    transition: transform .15s;
}
body .btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
body .btn-block { display: flex; width: 100%; }

body .btn.btn-primary {
    background: linear-gradient(180deg, #ff4357 0%, #e1182b 55%, #b00b19 100%);
    color: #fff !important;
    border-color: #ff9aa4;
    animation-name: glowRed;
}
body .btn.btn-primary:hover { background: linear-gradient(180deg, #ff4357 0%, #e1182b 55%, #b00b19 100%); }
body .btn.btn-danger {
    background: linear-gradient(180deg, #c81e2e, #8f0d19);
    color: #fff !important;
    border-color: #ff9aa4;
    animation: none;
}
body .btn.btn-wa {
    background: linear-gradient(180deg, #3fe27d, #1fb356);
    color: #fff !important;
    border-color: #a6f5c3;
    animation: none;
    box-shadow: 0 0 12px rgba(37, 211, 102, .5);
}

/* ---------- Hero ---------- */
body .hp-hero {
    background:
        radial-gradient(100% 90% at 50% 0%, rgba(255, 255, 255, .20), transparent 55%),
        linear-gradient(180deg, #ff2a3d 0%, #d10f20 50%, #8b0916 100%);
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(180, 10, 30, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
    color: #fff;
    padding-bottom: 28px;
}
body .hp-hero h1 { color: #fff; font-weight: 800; text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
body .hp-hero h1::after {
    content: "";
    display: block;
    width: 90px;
    height: 4px;
    margin: 10px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, transparent, #ffc400, transparent);
}
body .hp-hero p { color: #fff; opacity: .96; }

/* "1 live ads · 25 districts · 100% free" pill */
body .hp-hero .hx-count {
    display: inline-block;
    margin: 20px 0 4px;
    padding: 9px 22px;
    border: 1px solid rgba(255, 196, 0, .75);
    border-radius: 999px;
    background: rgba(80, 0, 10, .35);
    color: #fff;
    font-size: 13px;
    letter-spacing: .2px;
    line-height: 1.4;
}
body .hp-hero .hx-count::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 10px;
    border-radius: 50%;
    background: #7cf06a;
    box-shadow: 0 0 8px #7cf06a;
}
body .hx-count strong { color: var(--yellow); margin-right: 3px; }

/* Search: icons සහිත inputs */
body .hp-search input,
body .hp-search select {
    border: 2px solid #ff8a95;
    border-radius: 12px;
    background-color: #fff;
    color: var(--ink);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
body .hp-search input[type="text"] {
    padding-left: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1182b' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 20px;
}
body .hp-search select {
    -webkit-appearance: none;
    appearance: none;
    padding-left: 40px;
    padding-right: 36px;
    background-repeat: no-repeat, no-repeat;
    background-position: 13px center, right 12px center;
    background-size: 18px, 14px;
}
body .hp-search select[name="district"] {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e1182b'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2430' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
}
body .hp-search select[name="category"] {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1182b' stroke-width='2.2' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7.5' height='7.5' rx='1.5'/%3E%3Crect x='13.5' y='3' width='7.5' height='7.5' rx='1.5'/%3E%3Crect x='3' y='13.5' width='7.5' height='7.5' rx='1.5'/%3E%3Crect x='13.5' y='13.5' width='7.5' height='7.5' rx='1.5'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2430' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
}
body .hp-search button {
    background: linear-gradient(180deg, #ffe066 0%, #ffc400 55%, #ffad00 100%);
    color: #2a1a00;
    border: 2px solid #fff1a8;
    border-radius: 12px;
    font-weight: 800;
    animation: glowYellow 3.4s ease-in-out infinite;
}

/* ---------- Banner (අඳුරු + රතු glow, හිමින් shine animation) ---------- */
@keyframes bannerShine {
    0%        { left: -60%; }
    55%, 100% { left: 140%; }
}
@keyframes bannerGlow {
    0%, 100% { box-shadow: 0 10px 30px rgba(120, 0, 20, .35), 0 0 0 0 rgba(255, 70, 85, 0); }
    50%      { box-shadow: 0 12px 34px rgba(160, 0, 30, .5), 0 0 18px 2px rgba(255, 70, 85, .45); }
}
@keyframes arrowNudge {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(5px); }
}

body .hp-banner {
    position: relative;
    overflow: hidden;
    padding: 20px 18px;
    background:
        radial-gradient(80% 150% at 88% 130%, rgba(255, 45, 65, .6), transparent 62%),
        linear-gradient(135deg, #14070c 0%, #2a0b13 60%, #5a0b18 100%);
    border: 1.5px solid rgba(255, 120, 130, .6);
    border-radius: 20px;
    color: #fff;
    animation: bannerGlow 3.6s ease-in-out infinite;
}
body .hp-banner:hover { color: #fff; }
/* හිමින් යන shine එක */
body .hp-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 38%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .18), transparent);
    transform: skewX(-20deg);
    animation: bannerShine 4.8s ease-in-out infinite;
    pointer-events: none;
}
body .hp-banner small { color: var(--yellow); }
body .hp-banner small::after {
    content: "›";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 8px;
    border: 1.5px solid var(--yellow);
    border-radius: 50%;
    font-size: 15px;
    line-height: 1;
    color: var(--yellow);
    animation: arrowNudge 1.8s ease-in-out infinite;
}
@media (max-width: 600px) {
    body .hp-banner { padding: 16px 12px; font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
    body .hp-banner,
    body .hp-banner::before,
    body .hp-banner small::after { animation: none; }
}

/* ---------- Section titles ---------- */
body .hp-title {
    position: relative;
    padding-bottom: 12px;
    color: var(--ink);
    font-weight: 800;
}
body .hp-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 4px;
    border-radius: 4px;
    background: var(--red);
}
body .hp-title a { color: var(--red); }
body .hp-title a:hover { color: var(--red-dark); }
body .hp-arrows { color: var(--red); }

/* ---------- Surfaces ---------- */
body .stat-card,
body .admin-panel,
body .filter-bar,
body .seo-text,
body .detail-card,
body .cat-card,
body .chip,
body .empty,
body .about,
body .auth-card,
body .hp-seo,
body .hp-faq,
body .hx-step,
body .blog-card,
body .post-card,
body .blog-form,
body .static-card,
body .blog-table,
body .at-box {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: 0 2px 10px rgba(60, 60, 120, .08);
}
body .empty { border-style: dashed; box-shadow: none; }

body .hp-cats a,
body .hp-chips a,
body .pagination a,
body .pagination span {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--ink);
    box-shadow: 0 1px 4px rgba(60, 60, 120, .06);
    transition: border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
body .hp-cats a:hover,
body .hp-chips a:hover,
body .chip:hover,
body .cat-card:hover,
body .pagination a:hover {
    border-color: var(--red);
    color: var(--red);
    box-shadow: 0 4px 14px rgba(225, 24, 43, .18);
    transform: translateY(-1px);
}
body .pagination .current {
    background: linear-gradient(180deg, #ff4357, #e1182b 55%, #b00b19);
    border: 2px solid #ff9aa4;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 0 10px rgba(225, 24, 43, .45);
}

/* ---------- Text colours ---------- */
body .breadcrumb,
body .page-head p,
body .detail-meta,
body .facts dt,
body .meta,
body .form-help,
body .link-muted,
body .stat-card .stat-label,
body .admin-table th,
body .blog-date,
body .post-meta,
body .blog-table small,
body .static-updated,
body .crumbs,
body .auth-alt,
body .share-row .share-label,
body .blog-form label small { color: var(--muted); }

body .breadcrumb a:hover,
body .crumbs a:hover { color: var(--red); text-decoration: underline; }

body .seo-text p,
body .about p,
body .description,
body .hp-seo p,
body .hp-faq p,
body .at-box p,
body .hx-step p,
body .blog-card p,
body .post-body,
body .static-card p,
body .static-card li,
body .static-card .lead,
body .admin-table tr.sub td:first-child { color: var(--soft); }

body .static-card h1,
body .post-card h1,
body .blog-card h2,
body .blog-card h3,
body .hx-step h3,
body .blog-sub,
body .blog-form label,
body .post-body h3,
body .hp-seo h2,
body .hp-faq h2,
body .seo-text h2,
body .at-box h2 { color: var(--ink); }

body .static-card h2,
body .post-body h2 { color: var(--red); }
body .post-body strong { color: var(--ink); }

body .static-card a,
body .post-body a,
body .auth-alt a,
body .crumbs a,
body .more-link a,
body .safety a,
body .blog-actions a { color: var(--red); }

body .price,
body .detail-price,
body .stat-card .stat-num { color: var(--red); }

/* ---------- Inputs / forms ---------- */
body input[type="text"],
body input[type="number"],
body input[type="email"],
body input[type="password"],
body input[type="tel"],
body input[type="search"],
body input[type="url"],
body select,
body textarea {
    background-color: #fff;
    color: var(--ink);
    border: 1px solid #d1d5db;
}
body input::placeholder,
body textarea::placeholder { color: #9ca3af; }
body input:focus,
body select:focus,
body textarea:focus,
body .form-row input:focus,
body .form-row select:focus,
body .form-row textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(225, 24, 43, .16);
}
body .hp-search input:focus,
body .hp-search select:focus { box-shadow: 0 0 0 3px rgba(255, 196, 0, .6); }
body .filter-bar .btn-reset { color: var(--red); border: 1px solid #f3b4bb; border-radius: 10px; text-decoration: none; padding: 6px 12px; }

body .alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
body .alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
body .blog-flash { background: #f0fdf4; border-left-color: #16a34a; color: #166534; }
body .blog-error { background: #fef2f2; border-left-color: var(--red); color: #991b1b; }

/* ---------- Ad cards (tiers) ---------- */
body .ad-card {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: 0 2px 10px rgba(60, 60, 120, .08);
}
body .ad-card:hover { box-shadow: 0 10px 26px rgba(60, 60, 120, .18); }
body .ad-card .ad-img,
body .ad-img { background: #eceff1; color: #9ca3af; }
body .ad-card .ad-body h3 { color: var(--ink); }
body .ad-card .ad-excerpt { color: var(--soft); }
body .ad-card .ad-foot { color: var(--muted); }

body .ad-card.tier-normal { background: #fff; border: 1px solid var(--border); }
body .ad-card.tier-normal .price { color: var(--red); }

body .ad-card.tier-super {
    background: #fff7f8;
    border: 2px solid var(--red);
    box-shadow: 0 4px 16px rgba(225, 24, 43, .2);
}
body .ad-card.tier-super .price { color: var(--red-dark); }

body .ad-card.tier-vip {
    background: #fff8dc;
    border: 2px solid #f2b705;
    box-shadow: 0 6px 22px rgba(242, 183, 5, .38);
}
body .ad-card.tier-vip h3 { color: #3a2a00; }
body .ad-card.tier-vip .ad-excerpt { color: #5e4a14; }
body .ad-card.tier-vip .price { color: #a15c00; }
body .ad-card.tier-vip .ad-foot { color: #7a6420; }

body .ad-card .badge { background: var(--red); color: #fff; font-weight: 800; }
body .ad-card .badge.tier-badge-vip {
    background: linear-gradient(135deg, #ffd23f, #f2b705);
    color: #3a2a00;
    animation-name: softGlowGold;
}
body .ad-card .badge.tier-badge-super {
    background: linear-gradient(135deg, #ff4357, #c81e2e);
    color: #fff;
    animation-name: softGlowRed;
}
@keyframes softGlowGold {
    0%, 100% { box-shadow: 0 0 4px 1px rgba(255, 196, 0, .6); transform: scale(1); }
    50%      { box-shadow: 0 0 12px 4px rgba(255, 196, 0, .95); transform: scale(1.07); }
}
@keyframes softGlowRed {
    0%, 100% { box-shadow: 0 0 4px 1px rgba(225, 24, 43, .55); transform: scale(1); }
    50%      { box-shadow: 0 0 12px 4px rgba(225, 24, 43, .85); transform: scale(1.07); }
}
@media (prefers-reduced-motion: reduce) {
    body .ad-card .badge.tier-badge-vip,
    body .ad-card .badge.tier-badge-super { animation: none; }
}

/* ---------- Ad detail page ---------- */
body .gallery-main { background: #eceff1; }
body .gallery-thumbs button.active { border-color: var(--red); }
body .safety { background: #fff8e1; border: 1px solid #ffe08a; color: #5c4a00; }
body .share-row button {
    background: #fff;
    border: 1.5px solid #cfd3de;
    color: var(--ink);
}
body .share-row button:hover { background: #f3f4f6; }
body .report-link a { color: var(--muted); }
body .sticky-contact {
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(60, 60, 120, .12);
}
body .sticky-contact a { border-radius: 12px; }
body .sticky-call {
    background: linear-gradient(180deg, #ff4357, #e1182b 55%, #b00b19);
    color: #fff !important;
    border: 2px solid #ff9aa4;
    animation: glowRed 3.4s ease-in-out infinite;
}
body .sticky-wa {
    background: linear-gradient(180deg, #3fe27d, #1fb356);
    color: #fff !important;
    border: 2px solid #a6f5c3;
}

/* ---------- Static pages / blog ---------- */
body .static-note { background: var(--red-soft); border-left-color: var(--red); color: var(--soft); }
body .static-warn,
body .blog-draft-note { background: #fff8e1; border-left-color: #f59e0b; color: #5c4a00; }
body .static-card a.static-cta {
    background: linear-gradient(180deg, #ffe066, #ffc400 55%, #ffad00);
    color: #2a1a00;
    border: 2px solid #fff1a8;
    border-radius: 12px;
}
body .blog-card:hover { border-color: var(--red); box-shadow: 0 10px 26px rgba(225, 24, 43, .15); }

/* ---------- How it works / FAQ ---------- */
body .hx-num {
    background: linear-gradient(180deg, #ff4357, #b00b19);
    color: #fff;
    border: 2px solid #ff9aa4;
    box-shadow: 0 0 10px rgba(225, 24, 43, .4);
}
body .hp-faq details { border-top-color: var(--border); }
body .hp-faq summary { color: var(--ink); }

/* ---------- Ad Types page ---------- */
body .at-vip { background: #fff8dc; border: 2px solid #f2b705; }
body .at-super { background: #fff7f8; border: 2px solid var(--red); }
body .at-normal { background: #fff; border: 1px solid var(--border); }

/* ---------- Admin ---------- */
body .admin-bar { background: #14040a; }
body .admin-tabs a { color: #d6c9cc; }
body .admin-tabs a:hover { color: #fff; }
body .admin-tabs a.active { color: #fff; border-bottom: 3px solid var(--yellow); }
body .admin-table th,
body .admin-table td { border-bottom: 1px solid var(--border); }
body .blog-table th { background: #f3f4f8; color: var(--ink); }
body .blog-table th,
body .blog-table td { border-bottom: 1px solid var(--border); }
body .blog-actions button { color: var(--red); }
body .blog-actions button.danger { color: #b91c1c; }
body .badge-published { background: #dcfce7; color: #166534; }
body .badge-draft { background: #fff1d6; color: #8a5a00; }

/* ---------- Footer ---------- */
body .site-footer {
    background: linear-gradient(180deg, #3a0810 0%, #14040a 100%);
    color: #d8c9cc;
    border-top: 3px solid var(--red);
}
body .site-footer h3 { color: #fff; }
body .site-footer a:hover { color: var(--yellow); }
body .footer-links a { color: #e6d9dc; }
body .footer-links a:hover { color: var(--yellow); }
body .footer-bottom { border-top: 1px solid #4a1520; color: #b8a5a9; }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
    body .hp-hero h1 { font-size: 1.45rem; }
}

/* ---------- Search button: round icon only ---------- */
body .hp-search button {
    font-size: 0;               /* අකුරු නොපෙනේ (screen reader වලට තියෙනවා) */
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    min-width: 54px;
    padding: 0;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a1a00' stroke-width='2.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") center / 26px 26px no-repeat,
        linear-gradient(180deg, #ffe066 0%, #ffc400 55%, #ffad00 100%);
    transition: transform .15s;
}
body .hp-search button:hover { transform: scale(1.07); }

/* ---------- Search form (mobile): input + icon ඇතුළතින්, selects දෙක සමාන ---------- */
@media (max-width: 700px) {
    body .hp-search {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        position: relative;
    }
    body .hp-search input[type="text"] {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        padding-right: 62px;
    }
    body .hp-search select {
        width: 100%;
        min-width: 0;
        text-overflow: ellipsis;
    }
    /* round search icon එක input එකේ දකුණු කෙළවරේ */
    body .hp-search button {
        position: absolute;
        top: 5px;
        right: 5px;
        width: 44px;
        height: 44px;
        min-width: 44px;
        background-size: 22px 22px, auto;
    }
}

/* ---------- Mobile search: input උස සවි කරලා icon එක හරියටම මැදට ---------- */
@media (max-width: 700px) {
    body .hp-search input[type="text"] {
        height: 50px;
    }
    body .hp-search select {
        height: 46px;
    }
    body .hp-search button {
        top: 5px;
        right: 5px;
        width: 40px;
        height: 40px;
        min-width: 40px;
        background-size: 20px 20px, auto;
    }
}

/* ---------- Search form text: තද අළු (force) ---------- */
html body .hp-hero .hp-search select,
html body .hp-hero .hp-search input[type="text"] {
    color: #5b6472 !important;
    -webkit-text-fill-color: #5b6472 !important;
    font-weight: 500;
}
html body .hp-hero .hp-search input[type="text"]::placeholder {
    color: #7b8290 !important;
    -webkit-text-fill-color: #7b8290 !important;
    opacity: 1;
}

/* ---------- Browse categories drop down ---------- */
@keyframes catDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
body .hp-catdrop { margin: 26px 0 8px; }
body .hp-catdrop > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #fff;
    border: 2px solid #f3b4bb;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(60, 60, 120, .08);
    font-family: 'Poppins', 'Noto Sans Sinhala', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
    user-select: none;
}
body .hp-catdrop > summary::-webkit-details-marker { display: none; }
body .hp-catdrop > summary:hover {
    border-color: var(--red);
    box-shadow: 0 4px 16px rgba(225, 24, 43, .18);
}
body .hp-catdrop-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
body .hp-catdrop-label svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--red);
    stroke-width: 2.2;
    stroke-linejoin: round;
}
/* chevron */
body .hp-catdrop > summary::after {
    content: "";
    width: 11px;
    height: 11px;
    margin-right: 4px;
    border-right: 3px solid var(--red);
    border-bottom: 3px solid var(--red);
    transform: rotate(45deg);
    transition: transform .25s;
}
body .hp-catdrop[open] > summary {
    border-color: var(--red);
    box-shadow: 0 4px 16px rgba(225, 24, 43, .2);
}
body .hp-catdrop[open] > summary::after { transform: rotate(-135deg); margin-top: 6px; }
body .hp-catdrop .hp-cats {
    margin-top: 12px;
    animation: catDropIn .25s ease-out;
}
@media (prefers-reduced-motion: reduce) {
    body .hp-catdrop .hp-cats { animation: none; }
}

/* ---------- Sidebar: Categories + Top cities ---------- */
@keyframes catDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
body .hp-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-top: 22px;
}
body .hp-side { position: sticky; top: 84px; }
body .hp-main { min-width: 0; }
body .hp-main > .hp-title:first-child { margin-top: 0; }

/* red gradient pill button, white outline */
body .hp-sidedrop > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 999px;
    border: 2px solid #fff;
    background: linear-gradient(180deg, #ff4a5c 0%, #e1182b 55%, #a50f1e 100%);
    color: #fff;
    font-family: 'Poppins', 'Noto Sans Sinhala', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 0 0 1px rgba(225, 24, 43, .35),
                0 6px 16px rgba(225, 24, 43, .35),
                inset 0 1px 0 rgba(255, 255, 255, .35);
    user-select: none;
}
body .hp-sidedrop > summary::-webkit-details-marker { display: none; }
body .hp-sidedrop > summary::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(45deg);
    transition: transform .25s;
}
body .hp-sidedrop[open] > summary::after { transform: rotate(-135deg); margin-top: 5px; }

/* panel */
body .hp-sidepanel {
    margin-top: 12px;
    background: #fff;
    border: 1px solid #f3d0d4;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 2px 10px rgba(60, 60, 120, .08);
    animation: catDropIn .25s ease-out;
}
body .hp-sidepanel h3 {
    margin: 0 0 8px;
    font-family: 'Poppins', sans-serif;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--red);
}
body .hp-sidepanel h3.hp-side-h2 {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #f3b4bb;
}
body .hp-sidelist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
body .hp-sidelist a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--ink);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
}
body .hp-sidelist a:hover { background: #fff1f2; color: var(--red); }
body .hp-sidelist .n {
    font-size: .72rem;
    font-weight: 700;
    color: #fff;
    background: var(--red);
    border-radius: 999px;
    padding: 1px 8px;
}

/* desktop: always open, no chevron */
@media (min-width: 901px) {
    body .hp-sidedrop > summary { cursor: default; justify-content: center; }
    body .hp-sidedrop > summary::after { display: none; }
}
/* mobile / tablet: stacked, dropdown */
@media (max-width: 900px) {
    body .hp-layout { grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
    body .hp-side { position: static; }
    body .hp-sidedrop > summary { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
    body .hp-sidepanel { animation: none; }
}

/* Categories button: border/outline ඉවත් කිරීම */
body .hp-sidedrop > summary {
    border: 0 !important;
    outline: none !important;
    box-shadow: 0 6px 16px rgba(225, 24, 43, .35),
                inset 0 1px 0 rgba(255, 255, 255, .35) !important;
}
body .hp-sidedrop > summary:focus,
body .hp-sidedrop > summary:focus-visible {
    outline: none !important;
}

/* ---------- Home: zone 1 (ads) + zone 2 (how it works & below) ---------- */
body .hp-zone-ads {
    background: #fdeef0;
    border: 2px solid #f3b4bb;
    border-radius: 20px;
    padding: 4px 18px 22px;
    margin-bottom: 26px;
}
body .hp-zone-more {
    background: #fff;
    border: 1px solid #e6e8f0;
    border-radius: 20px;
    padding: 4px 22px 26px;
    box-shadow: 0 2px 12px rgba(60, 60, 120, .06);
}
/* box ඇතුළේ පළමු title එකේ උඩ ඉඩ */
body .hp-zone-ads > .hp-title:first-child,
body .hp-zone-more > .hp-title:first-child { margin-top: 18px; }

@media (max-width: 700px) {
    body .hp-zone-ads  { padding: 2px 10px 16px; border-radius: 16px; }
    body .hp-zone-more { padding: 2px 14px 20px; border-radius: 16px; }
}
/* ---------- Home: ads sections = separate boxes ---------- */
body .hp-zone-ads {
    background: none;
    border: 0;
    padding: 0;
    margin-bottom: 0;
}
body .hp-ads-sec {
    background: #fdeef0;
    border: 2px solid #f3b4bb;
    border-radius: 20px;
    padding: 4px 18px 22px;
    margin-bottom: 22px;
}
body .hp-ads-sec > .hp-title:first-child { margin-top: 18px; }
body .hp-zone-more { margin-top: 30px; }

@media (max-width: 700px) {
    body .hp-ads-sec { padding: 2px 10px 16px; border-radius: 16px; margin-bottom: 16px; }
    body .hp-zone-more { margin-top: 22px; }
}

body .hp-sidedrop > summary { font-size: .98rem; white-space: nowrap; }

/* ---------- SUPER ads = GREEN ---------- */
@keyframes softGlowGreen {
    0%, 100% { box-shadow: 0 0 4px 1px rgba(22, 163, 74, .55); transform: scale(1); }
    50%      { box-shadow: 0 0 12px 4px rgba(22, 163, 74, .85); transform: scale(1.07); }
}

/* card: කොළ outline + ලා කොළ background */
body .ad-card.tier-super {
    background: #f1fff5;
    border: 2px solid #1fa84f;
    box-shadow: 0 4px 16px rgba(22, 163, 74, .22);
}
body .ad-card.tier-super:hover {
    box-shadow: 0 10px 26px rgba(22, 163, 74, .35);
}
body .ad-card.tier-super .price { color: #0f7a35; }

/* SUPER badge */
body .ad-card .badge.tier-badge-super {
    background: linear-gradient(135deg, #34d058, #0f7a35);
    color: #fff;
    animation-name: softGlowGreen;
}

/* Ad Types පිටුවේ Super box එකත් කොළ */
body .at-super {
    background: #f1fff5;
    border: 2px solid #1fa84f;
}

/* ---------- Cities page ---------- */
body .ct-wrap { max-width: 1100px; }
body .ct-eyebrow { margin: 18px 0 4px; color: var(--red); font-weight: 800; font-size: .75rem; letter-spacing: .12em; }
body .ct-h1 { margin: 0 0 10px; font-size: 2rem; font-weight: 800; }
body .ct-intro { color: var(--soft); max-width: 720px; margin: 0 0 20px; }

body .ct-search {
    position: relative;
    margin-bottom: 8px;
}
body .ct-search svg {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    fill: none;
    stroke: var(--red);
    stroke-width: 2.4;
    stroke-linecap: round;
}
body .ct-search input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 46px;
    border: 2px solid #f3b4bb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(60, 60, 120, .08);
    font-size: 1rem;
}
body .ct-none { margin: 10px 2px; color: var(--muted); }

body .ct-h2 {
    position: relative;
    margin: 30px 0 6px;
    padding-bottom: 12px;
    font-weight: 800;
}
body .ct-h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 4px;
    border-radius: 4px;
    background: var(--red);
}
body .ct-sub { margin: 0 0 14px; color: var(--muted); font-size: .92rem; }

/* Top cities */
body .ct-top {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
}
body .ct-top a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(60, 60, 120, .06);
    transition: border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
body .ct-top a:hover {
    border-color: var(--red);
    color: var(--red);
    box-shadow: 0 4px 14px rgba(225, 24, 43, .18);
    transform: translateY(-1px);
}
body .ct-top svg { width: 18px; height: 18px; flex: none; fill: var(--red); }
body .ct-top b {
    margin-left: auto;
    padding: 1px 9px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: .72rem;
}

/* Provinces */
body .ct-prov {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 20px 6px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(60, 60, 120, .06);
}
body .ct-prov h3 {
    margin: 0 0 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--red);
    font-size: 1.15rem;
    font-weight: 800;
}
body .ct-dist { border-bottom: 1px solid var(--border); }
body .ct-dist:last-child { border-bottom: 0; }
body .ct-dist > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 2px;
    font-weight: 700;
    color: var(--ink);
}
body .ct-dist > summary::-webkit-details-marker { display: none; }
body .ct-dist > summary::after {
    content: "+";
    margin-left: auto;
    color: var(--red);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}
body .ct-dist[open] > summary::after { content: "\2212"; }
body .ct-n {
    padding: 1px 9px;
    border-radius: 999px;
    background: var(--red-soft);
    color: var(--red);
    font-size: .72rem;
    font-weight: 800;
}
body .ct-body { padding: 0 2px 16px; }
body .ct-viewall {
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 14px;
    border: 1px solid #f3b4bb;
    border-radius: 999px;
    color: var(--red);
    font-weight: 700;
    font-size: .88rem;
    text-decoration: none;
}
body .ct-viewall:hover { background: var(--red-soft); }
body .ct-towns {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px 16px;
}
body .ct-towns li { color: var(--soft); font-size: .92rem; }
body .ct-towns li::before { content: "\203A"; margin-right: 7px; color: var(--red); font-weight: 800; }

@media (max-width: 900px) { body .ct-towns { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) {
    body .ct-h1 { font-size: 1.5rem; }
    body .ct-towns { grid-template-columns: repeat(2, 1fr); }
    body .ct-prov { padding: 12px 14px 4px; }
}
/* ---------- Cities page: SEO text + FAQ boxes ---------- */
body .ct-wrap .hp-seo,
body .ct-wrap .hp-faq {
    padding: 22px 24px;
    margin-top: 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(60, 60, 120, .06);
}
body .ct-wrap .hp-seo { margin-top: 30px; }
body .ct-wrap .hp-seo h2,
body .ct-wrap .hp-faq h2 {
    margin: 0 0 12px;
    font-size: 1.3rem;
    font-weight: 800;
}
body .ct-wrap .hp-seo p { margin: 0 0 10px; line-height: 1.7; }
body .ct-wrap .hp-seo a { color: var(--red); font-weight: 600; }

body .ct-wrap .hp-faq details {
    padding: 12px 0;
    border-top: 1px solid var(--border);
}
body .ct-wrap .hp-faq details:first-of-type { border-top: 0; }
body .ct-wrap .hp-faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
}
body .ct-wrap .hp-faq summary::marker { color: var(--red); }
body .ct-wrap .hp-faq details p { margin: 10px 0 0; line-height: 1.7; }

@media (max-width: 600px) {
    body .ct-wrap .hp-seo,
    body .ct-wrap .hp-faq { padding: 16px 16px; border-radius: 14px; }
}
/* ---------- Blog banner (photo + heading + Read more) ---------- */
@keyframes bbFade {
    from { opacity: 0; transform: translateX(10px); }
    to   { opacity: 1; transform: translateX(0); }
}
body .bb-wrap {
    position: relative;
    margin: 14px 0;
    border-radius: 20px;
    overflow: hidden;
    background:
        radial-gradient(80% 150% at 88% 130%, rgba(255, 45, 65, .6), transparent 62%),
        linear-gradient(135deg, #14070c 0%, #2a0b13 60%, #5a0b18 100%);
    border: 1.5px solid rgba(255, 120, 130, .6);
    box-shadow: 0 10px 30px rgba(120, 0, 20, .35);
}
body .bb-slide { display: none; }
body .bb-slide.is-active {
    display: grid;
    grid-template-columns: minmax(220px, 36%) 1fr;
    align-items: stretch;
    min-height: 170px;
    animation: bbFade .5s ease-out;
}
body .bb-media { display: block; position: relative; background: #2a0b13; }
body .bb-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
}
body .bb-noimg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 170px;
    background: linear-gradient(135deg, #ff2a3d, #8b0916);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: 1.2rem;
    text-align: center;
    padding: 10px;
}
body .bb-noimg small { color: var(--yellow); font-size: .9rem; letter-spacing: .15em; text-transform: uppercase; font-style: normal; }
body .bb-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 22px 30px;
    min-width: 0;
}
body .bb-tag {
    padding: 3px 12px;
    border: 1px solid rgba(255, 196, 0, .8);
    border-radius: 999px;
    color: var(--yellow);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
}
body .bb-title { margin: 0; font-size: 1.35rem; line-height: 1.3; font-weight: 800; }
body .bb-title a {
    color: #fff;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body .bb-title a:hover { color: var(--yellow); }
body .bb-ex {
    margin: 0;
    color: #f0d9dc;
    font-size: .92rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body .bb-more { padding: 8px 20px; margin-top: 2px; }

/* dots */
body .bb-dots {
    position: absolute;
    right: 18px;
    bottom: 10px;
    display: flex;
    gap: 7px;
}
body .bb-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
}
body .bb-dot.is-active { background: var(--yellow); box-shadow: 0 0 8px rgba(255, 196, 0, .9); }

/* mobile */
@media (max-width: 700px) {
    body .bb-slide.is-active { grid-template-columns: 1fr; }
    body .bb-media img,
    body .bb-noimg { min-height: 0; height: 150px; }
    body .bb-text { padding: 14px 16px 30px; }
    body .bb-title { font-size: 1.1rem; }
    body .bb-dots { left: 0; right: 0; justify-content: center; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    body .bb-slide.is-active { animation: none; }
}

/* ---------- Blog photos ---------- */
body .post-hero {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    margin: 0 0 18px;
    border-radius: 14px;
    background: #eceff1;
}
body .blog-card .blog-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin: -2px 0 12px;
    border-radius: 10px;
    background: #eceff1;
}

/* admin editor: photo box */
body .blog-img-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
    padding: 14px;
    border: 2px dashed #f3b4bb;
    border-radius: 14px;
    background: #fff8f9;
}
body .blog-img-preview {
    display: block;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #eceff1;
}
body .blog-img-remove {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #b91c1c;
}

/* ---------- New ads banner = Post Ad button theme (yellow) ---------- */
@keyframes bannerGlowYellow {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 196, 0, .45), 0 4px 10px rgba(0, 0, 0, .18); }
    50%      { box-shadow: 0 0 24px 4px rgba(255, 196, 0, .85), 0 4px 12px rgba(0, 0, 0, .2); }
}
body .hp-banner {
    background: linear-gradient(180deg, #ffe066 0%, #ffc400 55%, #ffad00 100%);
    border: 2px solid #fff1a8;
    color: #2a1a00;
    animation: bannerGlowYellow 3.4s ease-in-out infinite;
}
body .hp-banner:hover { color: #2a1a00; filter: brightness(1.04); }
body .hp-banner,
body .hp-banner * { color: #2a1a00 !important; }

/* shine: කහ පාටට ගැළපෙන සුදු */
body .hp-banner::before {
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .55), transparent);
}

/* "Click here to see new ads ›" කොටස */
body .hp-banner small { font-weight: 800; }
body .hp-banner small::after {
    border-color: #2a1a00;
    color: #2a1a00 !important;
}

@media (prefers-reduced-motion: reduce) {
    body .hp-banner { animation: none; }
}

/* Header: "Cities Directory" (desktop) / "Cities" (mobile) */
body .nav-links .lbl-short { display: none; }
@media (max-width: 700px) {
    body .nav-links .lbl-full  { display: none; }
    body .nav-links .lbl-short { display: inline; }
}

/* ---------- My Dashboard page ---------- */
body .db-wrap { max-width: 900px; }
body .db-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 10px;
}
body .db-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(60, 60, 120, .08);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
body .db-card:hover {
    border-color: var(--red);
    box-shadow: 0 8px 22px rgba(225, 24, 43, .2);
    transform: translateY(-2px);
}
body .db-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--red-soft);
}
body .db-ic svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--red);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
body .db-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body .db-txt strong { font-family: 'Poppins', sans-serif; font-size: 1.05rem; font-weight: 800; }
body .db-txt small { color: var(--muted); font-size: .85rem; }

/* Post a free ad: කහ gradient */
body .db-post {
    background: linear-gradient(180deg, #ffe066 0%, #ffc400 55%, #ffad00 100%);
    border: 2px solid #fff1a8;
    animation: glowYellow 3.4s ease-in-out infinite;
}
body .db-post .db-ic { background: rgba(255, 255, 255, .55); }
body .db-post .db-ic svg { stroke: #2a1a00; }
body .db-post .db-txt strong,
body .db-post .db-txt small { color: #2a1a00; }

/* Logout */
body .db-logout .db-ic { background: #fef2f2; }
body .db-logout .db-txt strong { color: #b91c1c; }

@media (prefers-reduced-motion: reduce) {
    body .db-post { animation: none; }
}

/* ---------- Agents / Fake Ads pages ---------- */
body .pg-wrap { max-width: 820px; }
body .pg-card {
    margin: 12px 0 24px;
    padding: 26px 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(60, 60, 120, .08);
}
body .pg-card h1 { margin: 0 0 12px; font-size: 1.7rem; font-weight: 800; }
body .pg-card h2 {
    margin: 26px 0 10px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--red);
}
body .pg-card p,
body .pg-card li { color: var(--soft); line-height: 1.7; }
body .pg-card li { margin-bottom: 8px; }
body .pg-card li strong { color: var(--ink); }
body .pg-card a:not(.btn) { color: var(--red); font-weight: 600; }
body .pg-lead { font-size: 1.05rem; }
body .pg-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
body .pg-center { text-align: center; padding: 44px 24px; }
body .pg-center .pg-cta { justify-content: center; }
@media (max-width: 600px) {
    body .pg-card { padding: 18px 16px; }
    body .pg-card h1 { font-size: 1.35rem; }
}

/* ---------- Mobile tab bar: බොත්තම් 7ක් ඉඩ ඇති තරම්, අවශ්‍ය නම් swipe ---------- */
@media (max-width: 700px) {
    body .site-header .nav-links {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    body .site-header .nav-links::-webkit-scrollbar { display: none; }
    body .site-header .nav-links a {
        flex: 1 0 auto;
        min-width: 58px;
        padding: 7px 8px;
    }
}

/* ===== Cities Directory (DB) ===== */
body .gc-wrap .gc-head { background: #fff; border: 1px solid #f3c9cf; border-radius: 16px; padding: 18px; margin-bottom: 16px; }
body .gc-wrap .gc-head h1 { margin: 0 0 6px; color: #14040a; }
body .gc-wrap .gc-head p { margin: 0 0 12px; color: #4a5663; }
body .gc-wrap .gc-search { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 2px solid #e1182b; border-radius: 999px; font-size: 1rem; background: #fff; color: #1f2430; }
body .gc-wrap .gc-h2 { font-size: 1.15rem; margin: 22px 0 10px; color: #14040a; }
body .gc-wrap .gc-h2 small { display: block; font-weight: 400; font-size: .85rem; color: #6b7785; margin-top: 2px; }
body .gc-wrap .gc-top { display: flex; flex-wrap: wrap; gap: 8px; }
body .gc-wrap .gc-top a { background: #fff; border: 1px solid #f3c9cf; border-radius: 999px; padding: 7px 14px; font-weight: 600; color: #1f2430; text-decoration: none; }
body .gc-wrap .gc-top a b { background: #e1182b; color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .78rem; margin-left: 4px; }
body .gc-wrap .gc-dist { background: #fff; border: 1px solid #f3c9cf; border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
body .gc-wrap .gc-dist > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 16px; font-weight: 700; color: #14040a; }
body .gc-wrap .gc-dist > summary::-webkit-details-marker { display: none; }
body .gc-wrap .gc-dist > summary::after { content: "▾"; margin-left: 6px; color: #e1182b; }
body .gc-wrap .gc-dist[open] > summary { background: #fff1f2; }
body .gc-wrap .gc-dname em { display: block; font-style: normal; font-weight: 400; font-size: .85rem; color: #6b7785; }
body .gc-wrap .gc-dcount { margin-left: auto; font-size: .82rem; font-weight: 700; color: #6b7785; background: #f3f5f8; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
body .gc-wrap .gc-dcount.has { background: #e1182b; color: #fff; }
body .gc-wrap .gc-body { padding: 12px 16px 16px; }
body .gc-wrap .gc-meta { margin: 0 0 8px; }
body .gc-wrap .gc-all { font-weight: 700; color: #e1182b; text-decoration: none; }
body .gc-wrap .gc-note { margin: 0 0 10px; font-size: .85rem; color: #6b7785; }
body .gc-wrap .gc-cities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
body .gc-wrap .gc-city > a, body .gc-wrap .gc-city > span { display: block; border-radius: 10px; padding: 9px 12px; text-decoration: none; height: 100%; box-sizing: border-box; }
body .gc-wrap .gc-city em { display: block; font-style: normal; font-size: .8rem; color: #6b7785; }
body .gc-wrap .gc-on { background: #fff1f2; border: 1px solid #f3a9b2; color: #14040a; font-weight: 700; }
body .gc-wrap .gc-on b { display: inline-block; margin-top: 3px; background: #e1182b; color: #fff; border-radius: 999px; padding: 1px 9px; font-size: .75rem; }
body .gc-wrap .gc-off { background: #f8f9fb; border: 1px solid #eceff3; color: #6b7785; }
body .gc-wrap .gc-none { text-align: center; color: #6b7785; padding: 20px; }
body .gc-wrap .gc-seo { background: #fff; border: 1px solid #f3c9cf; border-radius: 16px; padding: 18px; margin-top: 24px; }
body .gc-wrap .gc-seo h2 { margin-top: 0; font-size: 1.1rem; }
body .gc-wrap .gc-seo h3 { font-size: 1rem; margin: 14px 0 8px; }
body .gc-wrap .gc-seo details { border-top: 1px solid #f0f2f5; padding: 8px 0; }
body .gc-wrap .gc-seo summary { cursor: pointer; font-weight: 600; }
body .gc-wrap .gc-seo details p { margin: 6px 0 0; color: #4a5663; }

/* ===== Ads grid යටින් එන headings වලට ඉඩ ===== */
body .ad-grid + .chip-title,
body .pagination + .chip-title,
body .empty + .chip-title {
    margin-top: 30px;
}
body .ad-grid + .pagination {
    margin-top: 22px;
}

/* Cities Directory: ads නැති cities (click කරන්න පුළුවන්, ads ඇති ඒවාට වඩා මෘදු පාටක්) */
body .gc-wrap .gc-city > a.gc-off:hover { background: #fff1f2; border-color: #f3a9b2; color: #14040a; }
body .gc-wrap .gc-city > a.gc-on:hover { box-shadow: 0 4px 14px rgba(225, 24, 43, .18); }