html { scroll-behavior: smooth; }

body {
    font-family: "Cabin", sans-serif;
    background: #FBF3F1;
    color: #2B0E13;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
    font-family: "Zilla Slab", serif;
}

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); }

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(146,38,54,.25); 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: 1rem;
    background: #fff;
    border: 1px solid rgba(43,14,19,.08);
    box-shadow: 0 1px 2px rgba(43,14,19,.05);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.category-chip:hover { box-shadow: 0 12px 24px -8px rgba(217,164,65,.3); transform: translateY(-2px); border-color: rgba(217,164,65,.5); }
.category-chip .chip-icon {
    height: 44px; width: 44px; border-radius: .75rem;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #922636, #D9A441);
}
.category-chip .chip-icon svg { height: 20px; width: 20px; fill: #fff; }
.category-chip p { font-size: .75rem; font-weight: 700; margin: 0; color: #2B0E13; }

.preloader-inline { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.preloader-inline .spin {
    height: 2rem; width: 2rem; border-radius: 999px;
    border: 3px solid rgba(146,38,54,.2); border-top-color: #922636;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/*
 * apiClass.php's ajaxList() (used by listing.php's "Load More" button)
 * renders .businesscard markup, but the site's own css/style.css styles it
 * as a translucent white-on-dark glass card -- overridden below to a solid
 * white card (this project's standard pattern) since the hand-written pages
 * put these cards on light sections, not dark ones.
 */
.businesscard {
    position: relative;
    background: #fff;
    border: 1px solid rgba(43,14,19,.08);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(43,14,19,.05), 0 8px 24px -8px rgba(146,38,54,.16);
    transition: box-shadow .2s ease, transform .2s ease;
    padding: 0 !important;
}
.businesscard:hover { box-shadow: 0 20px 40px -12px rgba(146,38,54,.26); transform: translateY(-3px); }
.businesscard .img-fluid { width: 100%; height: 190px; object-fit: cover; display: block; border-radius: 0; }
.businesscard .p-3 { padding: 1.1rem; }
.businesscard .fs-5 { font-size: 1.05rem; font-weight: 800; color: #2B0E13; font-family: "Zilla Slab", serif; }
.businesscard .fw-bold { font-weight: 800; }
.businesscard .opacity-75 { color: #6B4F52; font-size: .875rem; margin-top: .35rem; margin-bottom: .75rem; }
.businesscard .d-flex { display: flex; }
.businesscard .gap-2 { gap: .5rem; }
.businesscard .flex-grow-1 { flex-grow: 1; }
.businesscard .btn-prime {
    background: #922636 !important; color: #fff !important; border: none !important;
    border-radius: .6rem; padding: .6rem 1rem; font-weight: 700; font-size: .85rem; text-align: center; transition: background .2s ease;
}
.businesscard .btn-prime:hover { background: #6B1B27 !important; }
.businesscard .btn-sec {
    background: rgba(146,38,54,.1) !important; color: #922636 !important; border: none !important;
    border-radius: .6rem; display: flex; align-items: center; justify-content: center;
}
.businesscard .btn-sec img { filter: none !important; }
.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, #D9A441, #922636); color: #fff;
}

/* 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: .6rem; font-weight: 700; font-size: .85rem;
    background: #fff; border: 1px solid rgba(43,14,19,.08); color: #6B4F52; transition: all .2s ease;
}
.tabs-wrapper input:checked + label { background: #922636; border-color: #922636; color: #fff; }
.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(43,14,19,.8); }
.blog-content h1, .blog-content h2, .blog-content h3, .blog-content h4, .blog-content h5, .blog-content h6 {
    color: #2B0E13; font-weight: 800; line-height: 1.3; margin-top: 1.75em; margin-bottom: .6em; font-family: "Zilla Slab", serif;
}
.blog-content h1 { font-size: 1.85rem; }
.blog-content h2 { font-size: 1.55rem; }
.blog-content h3 { font-size: 1.3rem; }
.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: #922636; text-decoration: underline; }
.blog-content strong, .blog-content b { font-weight: 700; color: #2B0E13; }
.blog-content blockquote { border-left: 3px solid #D9A441; padding-left: 1em; margin: 1.2em 0; color: rgba(43,14,19,.65); font-style: italic; }
.blog-content img { border-radius: 1rem; margin: 1em 0; max-width: 100%; }
