/* ================================
   Custom Design System for Business Directory
   Author: Your Name
   ================================ */

/* 1. Root Variables (Colors, Fonts, Spacing) */
:root {
    /* Brand Colors */
    --color-primary: #0066ff;
    --color-primary-dark: #0052cc;
    --color-secondary: #ec6d13;
    --color-bg: #fcfaf8;
    --color-fade: #f3ece7;
    --color-text: #212529;
    --color-text-muted: #6c757d;
    --color-success: #28a745;
    --color-danger: #dc3545;
    --color-white: #ffffff;

    /* Typography */
    --font-family: "Nunito Sans", sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --font-size-h1: 32px;
    --font-size-h2: 28px;
    --font-size-h3: 24px;

    /* Border & Shadow */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}


body {
    font-family: var(--font-family) !important;
    font-size: var(--font-size-base);
    color: var(--color-text);
    background-color: var(--color-bg);
}

h1,
.h1 {
    font-size: var(--font-size-h1);
    font-weight: 600;
}

h2,
.h2 {
    font-size: var(--font-size-h2);
    font-weight: 600;
    text-transform: capitalize;
    color: var(--color-secondary);
}

h3,
.h3 {
    font-size: var(--font-size-h3);
    font-weight: 500;
}

section {
    padding: 36px 0;
}

@media (min-width:992px) {
    section {
        padding: 72px 0;
    }
}

/*--- navbar start ---*/
.navbar {
    border-bottom: 1px solid #f3ece7;
}

.navbar-expand-lg .navbar-nav .nav-link {
    font-size: var(--font-size-base);
    color: var(--color-text);
    font-weight: 500;
}

/*---navaber end -----*/
/*--- banner section start ---*/
.banner-section {
    width: 100%;
    margin: 0 auto;
}

.banner-image {
    width: 100%;
    max-width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
}

@media (max-width:768px) {
    .banner-image {
        height: auto;
        object-fit: cover;
        object-position: center;
    }
}

/* .banner-section {
    padding: 144px 0;
    background: #210330;
}

.search-section {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #fafafa;
}

.input-group {
    display: flex;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.custom-input-container {
    position: relative;
    width: 50%;
}

.custom-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    background: #f4f4f4;
}

.custom-input:focus {
    border-color: #007bff;
    background: #fff;
}

#locationInput {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

#serviceInput {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}

.custom-dropdown {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    max-height: 120px;
    overflow-y: auto;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
    z-index: 20;
}

.custom-service-dropdown {
    max-height: 180px;
}

.dropdown-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.98rem;
}

.dropdown-item:hover {
    background-color: #e8f0fe;
}

/* Show dropdown on input click */
.custom-input:focus+.custom-dropdown,
.custom-dropdown:focus-within {
    display: block;
}

/*--- banner section end ---*/

/*--- category sec start ----*/
.categorySection a.categoryItem {
    text-decoration: none;
    font-size: var(--font-size-sm);
    color: var(--color-text);
    font-weight: 500;
    display: flex;
    flex-direction: column;
    padding: 0 16px;
    height: 130px;
    /* same height */
    box-sizing: border-box;
    align-items: center;
}

.categorySection a.categoryItem>div {
    flex-shrink: 0;
    /* prevent image container from shrinking */
}

.categorySection a.categoryItem .categoryImg {
    width: 80px;
    height: auto;
    border: 1px solid var(--color-fade);
    border-radius: 8px;
    padding: 16px;
}

.categorySection a.categoryItem span {
    flex: 1;
    /* take remaining space */
    display: flex;
    align-items: center;
    /* vertically center text within span */
    justify-content: center;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    padding-top: 4px;
    /* optional spacing from image */
}

/*--- category sec end ------*/

/*----- location sec start ----*/
.location-section {
    padding: 2.5rem 0;
    background: var(--color-bg, #fcfaf8);
    font-family: var(--font-family, "Work Sans", sans-serif);
}

.location-section .location-card {
    display: block;
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 2px 6px rgba(0, 0, 0, 0.08));
    position: relative;
    text-decoration: none;
    color: var(--color-white, #fff);
    transition: box-shadow 0.3s ease;
}

.location-section .location-card:hover {
    box-shadow: var(--shadow-lg, 0 8px 24px rgba(0, 0, 0, 0.15));
}

.location-section .image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md, 12px);
}

.location-section .image-wrapper img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.location-card:hover img {
    transform: scale(1.12);
}

/* Overlay text on bottom left */
.location-card .overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    font-size: var(--font-size-h3, 24px);
    font-weight: 600;
    color: var(--color-white, #fff);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    user-select: none;
    width: 100%;
    height: 100%;
    background: #01010152;
    text-align: center;
    display: flex;
    align-items: end;
    padding: 16px;
    text-transform: capitalize;
}

/*----- location sec end ----*/

/*----- featured-section sec start ----*/
.item-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 16px;
    display: flex;
    align-items: center;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Profile / Avatar */
.item-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}
@media (max-width:768px) {
    .item-img{
        display: none;
    }
}
.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}


.fallback-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

/* Body */
.item-body {
    flex: 1;
}

.item-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 5px;
    text-transform: capitalize;
}

.verified {
    color: var(--color-success);
    font-size: 1rem;
}

/* Location & Category */
.item-location {
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: capitalize;
}

.item-category {
    display: inline-block;
    background: #f0f0f0;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
    margin-top: 4px;
    text-transform: capitalize;
}

/* Buttons */
.item-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 8px;
    transition: 0.3s ease;
    text-decoration: none;
    color: #fff;
}

.btn-whatsapp {
    background: #25D366;
}

.btn-whatsapp:hover {
    background: #1ebc57;
}

.btn-call {
    background: #007bff;
}

.btn-call:hover {
    background: #0056b3;
}

.btn-share {
    background: #6c757d;
}

.btn-share:hover {
    background: #495057;
}

.btn-qr {
    background: #adb5bd;
    color: #212529;
}

.btn-qr:hover {
    background: #868e96;
}

/*----- featured-section sec end ----*/

/*----- footer section start -----*/
footer {
    padding: 72px 0 36px 0;
    border-top: 1px solid var(--color-fade);
}

@media (max-width:768px) {
    footer {
        padding: 36px 0;
    }
}

footer .footer-item h3 {
    color: var(--color-text);
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 24px;
}

footer .footer-item ul {
    padding: 0;
    margin: 0;
}

footer .footer-item ul li {
    list-style: none;
    line-height: 28px;
}

footer .footer-item ul li a {
    font-size: var(--font-size-base);
    color: var(--color-text);
    text-decoration: none;
}

footer .footer-item .social-links a {
    width: 30px;
    height: 30px;
    display: inline-block;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    font-size: var(--font-size-sm);
    color: var(--color-white);
}

footer .copyright {
    font-size: 12px;
    color: var(--color-text-muted);
}

/*----- footer section end -----*/

/*--- form controll ----*/
.form-control {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: var(--font-size-base);
    font-weight: 500;
    background: var(--color-fade);
    border: none;
}

.form-control:focus {
    box-shadow: none;
    outline: 1px solid var(--color-secondary);
}

.custom-btn {
    padding: 10px 14px;
    font-size: var(--font-size-base);
    background: var(--color-secondary);
    color: var(--color-white);
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid var(--color-secondary);
    text-transform: capitalize;
    text-decoration: none;
}
a.custom-btn:hover{
    color: var(--color-white);
}
/*--- swiper style start ---*/
.swiper-button-next,
.swiper-button-prev {
    width: 35px;
    height: 55px;
    border-radius: 8px;
    background: var(--color-secondary);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px;
    color: var(--color-white);
    font-weight: 600;
}

/*--- swiper style end ---*/