/* ========================================
   JustDial Clone - Frontend Styles
   ======================================== */

/* --- Font Sizes --- */
.fs-11 { font-size: 11px !important; }
.fs-12 { font-size: 12px !important; }
.fs-13 { font-size: 13px !important; }
.fs-14 { font-size: 14px !important; }
.fs-16 { font-size: 16px !important; }
.fs-18 { font-size: 18px !important; }

/* --- JD Card Hover Effect --- */
.jd-card-hover {
    transition: all 0.2s ease;
}
.jd-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

/* --- Icon Grid Hover --- */
.icon-grid-item {
    transition: all 0.2s ease;
}
.icon-grid-item:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- Hero Section Styles --- */
.hero-slide {
    min-height: 260px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
}

.hero-tile {
    height: 100%;
    min-height: 130px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.hero-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.tile-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
}

.tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* --- Brand Colors (Header) --- */
.brand-blue {
    color: #0052cc;
    font-weight: 700;
}
.brand-orange {
    color: #ff6600;
    font-weight: 700;
}

/* --- JD Header Menu --- */
.jd-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}
.jd-menu a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}
.jd-menu a:hover {
    color: #0d6efd;
}
.jd-lang {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
}
.jd-free {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}
.business-tag {
    font-size: 9px;
    font-weight: 700;
    background: #e74c3c;
    color: white;
    padding: 1px 5px;
    border-radius: 3px;
    position: absolute;
    top: -12px;
    right: 0;
}
.jd-login-btn {
    background: #0d6efd;
    color: white !important;
    padding: 6px 16px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.3s;
}
.jd-login-btn:hover {
    background: #0b5ed7;
}

/* --- Accordion Styles --- */
.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #333;
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

/* --- Sticky Sidebar --- */
@media (min-width: 992px) {
    .position-sticky {
        position: sticky !important;
    }
}

/* --- Border End Dashed --- */
@media (min-width: 768px) {
    .border-end-dashed {
        border-right: 1px dashed #e9ebec;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .jd-menu {
        flex-direction: column;
        gap: 10px;
        padding: 15px 0;
    }
    .hero-tile {
        min-height: 100px;
    }
    .hero-slide {
        min-height: 180px;
    }
}

@media (max-width: 767px) {
    .hero-tile {
        min-height: 80px;
    }
    .hero-slide {
        min-height: 150px;
    }
}

/* --- Carousel Indicators --- */
.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
}

/* --- Z-Index Layers --- */
.z-1 { z-index: 1; }
.z-2 { z-index: 2; }

/* --- Section Backgrounds --- */
body {
    background-color: #f0f2f5 !important;
}

/* --- Link Hover --- */
.jd-link-hover:hover {
    color: #0d6efd !important;
    padding-left: 4px;
    transition: all 0.2s;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #999; }
