html { scroll-behavior: smooth; }

body {
    font-family: "Urbanist", sans-serif;
    background: #151013;
    color: #F5EDE8;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
    font-family: "Bungee", cursive;
    letter-spacing: 0.01em;
}

section[id] { scroll-margin-top: 6rem; }

.animate-this {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}
.animate-this.animated { opacity: 1; transform: translateY(0); }

/* Scrolling news-ticker strip in the header */
.ticker-track {
    animation: ticker 22s linear infinite;
    width: max-content;
}
@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

select.category-select { max-height: 300px; }

/* Horizontal-scroll category chip rail */
.category-rail {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scroll-snap-type: x proximity;
}
.category-rail::-webkit-scrollbar { height: 6px; }
.category-rail::-webkit-scrollbar-thumb { background: rgba(255,61,104,.3); border-radius: 6px; }
.category-chip {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 108px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    text-align: center;
    padding: 1rem .5rem;
    border-radius: 1.25rem;
    background: #211A1E;
    border: 1px solid rgba(255,255,255,.08);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.category-chip:hover { transform: translateY(-3px) rotate(-1deg); border-color: rgba(255,61,104,.5); box-shadow: 0 12px 24px -8px rgba(255,61,104,.35); }
.category-chip .chip-icon {
    height: 44px; width: 44px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #FF3D68, #FF8A3D);
}
.category-chip .chip-icon svg { height: 20px; width: 20px; fill: #151013; }
.category-chip p { font-size: .7rem; font-weight: 800; margin: 0; color: #F5EDE8; text-transform: uppercase; }

.preloader-inline { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.premium-tab { background: #211A1E; border: 1px solid rgba(255,255,255,.08); color: #B9A8A0; }
.premium-tab.active { background: linear-gradient(135deg, #FF3D68, #FF8A3D); border-color: transparent; color: #151013; }
.preloader-inline .spin {
    height: 2rem; width: 2rem; border-radius: 999px;
    border: 3px solid rgba(255,61,104,.25); border-top-color: #FF3D68;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/*
 * Compatibility layer -- apiClass.php's ajaxList() (used by listing.php's
 * "Load More" button) renders solid bg-white cards with dark text (a
 * deliberate bright "photo clipping" contrast against the dark page),
 * plus .bg-accent/.btn-prime/.btn-sec already defined in css/style.css,
 * driven by --prime/--sec (retheme above).
 */
.bg-white { color: #211A1E; }
.bg-white .opacity-75 { color: #5D5054; }

/* Homepage listing card component, used by index.php's own PHP-rendered cards */
.businesscard {
    position: relative;
    background: #211A1E;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}
.businesscard:hover { box-shadow: 0 20px 50px -15px rgba(255,61,104,.4); transform: translateY(-4px); }
.businesscard .img-fluid, .businesscard .aks { width: 100%; height: 190px; object-fit: cover; display: block; }
.businesscard .p-3 { padding: 1.1rem; }
.businesscard .fs-5 { font-size: 1rem; font-weight: 700; color: #F5EDE8; font-family: "Urbanist", sans-serif; }
.businesscard .fw-bold { font-weight: 700; }
.businesscard .card-address {
    color: #D8CCC6; opacity: 1; font-size: .875rem; margin-top: .35rem; margin-bottom: .75rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.businesscard .d-flex { display: flex; }
.businesscard .gap-2 { gap: .5rem; }
.businesscard .flex-grow-1 { flex-grow: 1; }
.businesscard .w-100 { width: 100%; }
.psdrs { position: relative; }
.open {
    position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .04em; border-radius: 999px; padding: 4px 10px;
    background: linear-gradient(135deg, #FFC93D, #FF8A3D); color: #151013;
}

/* Homepage tabs (radio-driven, no JS) */
.tabs-wrapper { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.tabs-wrapper input { display: none; }
.tabs-wrapper label {
    cursor: pointer; padding: .6rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: .85rem;
    background: #211A1E; border: 1px solid rgba(255,255,255,.08); color: #B9A8A0; transition: all .2s ease;
}
.tabs-wrapper input:checked + label { background: linear-gradient(135deg, #FF3D68, #FF8A3D); border-color: transparent; color: #151013; }
.content-wrapper .tab-content { display: none; }
.tabs-wrapper input#mobile-optimised:checked ~ .content-wrapper .tab-content[data-tab="mobile-optimised"],
.tabs-wrapper input#explore-listing:checked ~ .content-wrapper .tab-content[data-tab="explore-listing"],
.tabs-wrapper input#click-to-call:checked ~ .content-wrapper .tab-content[data-tab="click-to-call"] { display: block; }

.blog-card.hidden { display: none; }

.blog-content { font-size: 1.05rem; line-height: 1.8; color: rgba(245,237,232,.8); }
.blog-content h1, .blog-content h2, .blog-content h3, .blog-content h4, .blog-content h5, .blog-content h6 {
    color: #F5EDE8; font-weight: 700; line-height: 1.3; margin-top: 1.75em; margin-bottom: .6em; font-family: "Bungee", cursive;
}
.blog-content h1 { font-size: 1.6rem; }
.blog-content h2 { font-size: 1.35rem; }
.blog-content h3 { font-size: 1.15rem; }
.blog-content p { margin-bottom: 1.1em; }
.blog-content ul, .blog-content ol { margin: 1em 0 1.2em 1.4em; }
.blog-content ul { list-style: disc; }
.blog-content ol { list-style: decimal; }
.blog-content a { color: #FF8A3D; text-decoration: underline; }
.blog-content strong, .blog-content b { font-weight: 700; color: #F5EDE8; }
.blog-content blockquote { border-left: 3px solid #FF3D68; padding-left: 1em; margin: 1.2em 0; color: rgba(245,237,232,.65); font-style: italic; }
.blog-content img { border-radius: 1rem; margin: 1em 0; max-width: 100%; }
