/* =====================
   FRONT CSS — IndexEG
   ===================== */

/* ── Global navbar offset ── */
:root { --yp-nav-h: 64px; }

/* ── Override old navbar button effect from style.css ── */
.site-nav .navbar-nav .nav-link { position: static; }
.site-nav .navbar-nav .nav-link::before { display: none !important; }

/* ── Site Navbar ── */
.site-nav {
    padding: 8px 0;
    transition: background .3s, box-shadow .3s;
}

/* Homepage: transparent → solid on scroll */
.site-nav--home { background: transparent; }
.site-nav--home.scrolled {
    background: #837f7f;
    box-shadow: 0 2px 14px rgba(0,0,0,.4);
}

/* Inner pages: always in scrolled state */
.site-nav--inner {
    background-color: #bebebe !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Search hidden on homepage until scrolled */
.site-nav--home .site-nav__search {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity .25s, transform .25s;
}
.site-nav--home.scrolled .site-nav__search,
.site-nav--inner .site-nav__search {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* ── Brand ── */
.site-nav__brand { display: flex; align-items: center; }
.site-nav__brand img { display: block; }

/* ── Search (Bootstrap input-group override) ── */
.site-nav__search { max-width: 680px; }
.site-nav__ig-icon {
    background: #fff;
    border: none;
    color: #999;
    font-size: .8rem;
    padding: 0 10px;
}
.site-nav__ig-divider {
    background: #fff;
    border: none;
    border-left: 1px solid #e0e0e0 !important;
    padding: 0;
    width: 1px;
}
.site-nav__fc {
    border: none;
    box-shadow: none !important;
    font-size: 1rem;
    color: #222;
    height: 50px;
}
.site-nav__fc--where { max-width: 210px; }
.site-nav__fc::placeholder { color: #bbb; }
.site-nav__fc:focus { box-shadow: none !important; border-color: transparent; }
.site-nav__search-btn {
    background: #c1121f;
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    padding: 0 20px;
    border: none;
    white-space: nowrap;
}
.site-nav__search-btn:hover { background: #a00e1a; color: #fff; }

/* ── Nav links ── */
.site-nav .nav-link,
.site-nav__link {
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .2px;
    color: rgba(255,255,255,.88) !important;
    border-radius: 4px;
    transition: color .2s;
}
.site-nav .nav-link:hover,
.site-nav__link:hover,
.site-nav__link.active { color: #fff !important; }

/* ── Dropdown toggle — remove button appearance ── */
.site-nav .dropdown-toggle {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.site-nav .dropdown-toggle::after {
    display: none;
}

/* ── Language / Login — plain link style ── */
.site-nav__lang-btn,
.site-nav__login-btn {
    color: rgba(255,255,255,.88) !important;
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .2px;
    text-decoration: none;
    padding: 8px 10px !important;
    border: none !important;
    background: none !important;
    border-radius: 4px;
    transition: color .2s;
}
.site-nav__lang-btn:hover,
.site-nav__login-btn:hover { color: #fff !important; }

/* ── Inner page header (businesses, search, etc.) ── */
main .header {
    height: auto !important;
    min-height: unset !important;
    padding: 100px 20px 20px !important;
}

/* ── Listing Hero Banner ── */
.listing-hero {
    position: relative;
    height: 220px;
    margin-top: 0;
    padding-top: 80px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d3561 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.listing-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.52);
}
.listing-hero > .container-fluid { position: relative; z-index: 1; }
.listing-hero__breadcrumb { font-size: .78rem; }
.listing-hero__breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }
.listing-hero__showing { color: rgba(255,255,255,.75); font-size: .8rem; }
.listing-hero__title {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
}
.listing-hero__count { color: rgba(255,255,255,.8); font-size: .82rem; }

/* ── Hero ── */
.hero-section {
    min-height: 88vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-section h1 { color: #fff; }
.hero-section .hero-search { max-width: 700px; width: 100%; }
.hero-search .form-control {
    border: none;
    border-radius: 8px 0 0 8px;
    height: 54px;
    font-size: 1rem;
    box-shadow: none;
}
.hero-search .form-control:focus { box-shadow: none; }
.hero-search .btn-search {
    background: #f5c518;
    border: none;
    height: 54px;
    padding: 0 24px;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    color: #1a1a2e;
    transition: background .2s;
}
.hero-search .btn-search:hover { background: #e0b000; }
.hero-search .input-where {
    border-radius: 0;
    border-left: 1px solid #e5e7eb;
}
.quick-cats a {
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: .95rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.2);
    transition: all .2s;
}
.quick-cats a:hover {
    background: #f5c518;
    color: #1a1a2e;
    border-color: #f5c518;
}

/* ── Logo Slider (infinite) ── */
.logo-slider { background: #f8f9fa; overflow: hidden; padding: 30px 0; }
.logo-slider h2 { font-size: 1.1rem; color: #555; margin-bottom: 20px; }
.logos-container { display: flex; overflow: hidden; }
.logos-slide {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: slide 20s linear infinite;
    white-space: nowrap;
    flex-shrink: 0;
}
.logos-slide img {
    height: 55px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    opacity: .7;
    filter: grayscale(30%);
    transition: opacity .3s, filter .3s;
}
.logos-slide img:hover { opacity: 1; filter: none; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ── Discover Banner ── */
.discover-banner {
    background: linear-gradient(135deg, #0f3460, #533483);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}
.discover-banner h2 { font-size: 2rem; font-weight: 700; }
.discover-banner p { opacity: .85; max-width: 600px; margin: 0 auto 24px; }
.discover-banner .btn-cta {
    background: #f5c518;
    color: #1a1a2e;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    transition: background .2s, transform .2s;
}
.discover-banner .btn-cta:hover { background: #e0b000; transform: translateY(-2px); }

/* ── Category Cards ── */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 50px; height: 3px;
    background: #f5c518;
    border-radius: 2px;
}
.category-group-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #1a1a2e;
    padding: 10px 0 6px;
    border-bottom: 2px solid #f5c518;
    margin-bottom: 16px;
}
.category-card {
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,.08);
    transition: box-shadow .25s, transform .25s;
    border: 1px solid #f0f0f0;
}
.category-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.14); transform: translateY(-3px); }
.biz-mini-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.biz-mini-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #aaa;
    font-size: 1.5rem;
}
.view-more-link {
    color: #0f3460;
    font-weight: 600;
    text-decoration: none;
    font-size: .9rem;
}
.view-more-link:hover { color: #f5c518; }

/* ── Business Cards (listing) ── */
.biz-card {
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
}
.biz-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.12); transform: translateY(-3px); }
.biz-card .cover {
    height: 140px;
    object-fit: cover;
    width: 100%;
    background: #e9ecef;
}
.biz-card .logo-wrap {
    width: 64px; height: 64px;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    background: #f8f9fa;
    flex-shrink: 0;
}
.biz-card .logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.package-badge {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
}
.package-badge.free { background: #e9ecef; color: #555; }
.package-badge.gold { background: #fff3cd; color: #856404; }
.package-badge.premium { background: #d1ecf1; color: #0c5460; }

/* ── Footer ── */
.site-footer {
    background: #837f7f;
    color: rgba(255,255,255,.9);
}
.site-footer h5 { color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: .5px; }
.site-footer .nav-link { color: rgba(255,255,255,.75); font-size: .88rem; padding: 3px 0; transition: color .2s; }
.site-footer .nav-link:hover { color: #fff; }
.footer-bottom {
    background: rgba(0,0,0,.2);
    font-size: .82rem;
    color: rgba(255,255,255,.55);
}

/* ── Ads slot ── */
.ads-slot {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: .85rem;
    min-height: 90px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-section { padding: 100px 16px 40px; min-height: auto; }
    .hero-section h1 { font-size: 1.9rem; }
    .hero-search .form-control,
    .hero-search .btn-search { height: 46px; }
    .hero-search .input-where { border-radius: 8px; }
    .hero-search .form-control:first-child { border-radius: 8px; }
    .hero-search .btn-search { border-radius: 8px; width: 100%; }
}

/* ── Business cover (show page) ── */
.biz-cover {
    height: 200px;
    background: #1a1a2e;
    overflow: hidden;
    position: relative;
    margin-top: 72px;
}
.biz-cover__img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .75;
}
.biz-cover__gradient {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(transparent, rgba(0,0,0,.5));
}
.biz-logo {
    width: 90px; height: 90px;
    object-fit: cover;
    border: 2px solid #eee;
}

/* ── Listing / Search cards ── */
.biz-thumb       { height: 80px; object-fit: cover; }
.biz-thumb-wrap  { width: 100px; height: 80px; }
.badge-featured  { background: #FFD700; color: #333; font-size: .65rem; }

/* ── Sponsor / Ad cards ── */
.badge-ad        { background: #2a9d8f; font-size: .72rem; border-radius: 0 0 8px 0; }
.ad-card-logo    { width: 70px; height: 70px; object-fit: contain; border: 1px solid #eee; padding: 4px; }

/* ── Carousel ── */
.carousel-indicators--below  { bottom: -10px; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; }
.carousel-ctrl--sm     { width: 36px; }
.carousel-ctrl--prev   { left: -4px; }
.carousel-ctrl--next   { right: -4px; }
.carousel-ctrl--dark .carousel-control-prev-icon,
.carousel-ctrl--dark .carousel-control-next-icon { filter: invert(1) brightness(0.4); }
.carousel-ctrl--light .carousel-control-prev-icon,
.carousel-ctrl--light .carousel-control-next-icon { filter: invert(1); }

/* ── Sidebar ── */
.sidebar-sticky { top: 80px; }

/* ── Misc ── */
.map-iframe { border: 0; width: 100%; height: 100%; display: block; }
.search-sort-select { min-width: 140px; }
.fs-xs { font-size: .65rem; }
.bg-teal { background-color: #2a9d8f !important; }
.bg-dark-navy { background-color: #1a1a2e !important; }
.hours-trigger { border: 1px solid #f5c518; background: rgba(245,197,24,.12); cursor: pointer; user-select: none; }
.hours-drop-list { z-index: 200; max-height: 220px; overflow-y: auto; }
.hours-opt-item { cursor: pointer; border-bottom: 1px solid #f0f0f0; padding: .5rem 1rem; display: flex; justify-content: space-between; align-items: center; }
.hours-opt-item:last-child { border-bottom: 0; }
.related-logo { width: 48px; height: 48px; object-fit: cover; }
.map-wrap { height: 335px; }

/* ── Category page ── */
.cat-hero { min-height: 280px; padding: 100px 20px 40px; }
.cat-card-thumb { height: 120px; background: #e9ecef; overflow: hidden; }

/* ── Business card partial ── */
.biz-card-thumb { height: 160px; overflow: hidden; background: #f5f5f5; }
.obj-cover { object-fit: cover; }
.obj-contain-padded { object-fit: contain; padding: 20px; }
.discover-ctrl-prev { width: 40px; left: -10px; }
.discover-ctrl-next { width: 40px; right: -10px; }

/* ── Reviews ── */
.review-section { }

.review-avg-score {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    color: #1a1a2e;
}

.review-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 14px 16px;
    transition: box-shadow .2s;
}
.review-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.07); }

.review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1a1a2e;
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-form-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.review-star { transition: color .15s; }
.review-star:hover,
.review-star.active { color: #f5c518 !important; }

/* ── Related businesses cards ── */
.related-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 14px;
    position: relative;
    overflow: hidden;
}
.related-card--sponsored {
    border-color: #f5c518;
    background: #fffdf0;
}
.related-sponsored-badge {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    background: #f5c518;
    color: #333;
    font-size: .6rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 0 0 8px 0;
}

/* ── Gallery grid ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}
.gallery-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    transition: opacity .2s, transform .2s;
}
.gallery-thumb:hover { opacity: .85; transform: scale(1.03); }

.product-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    cursor: zoom-in;
    transition: opacity .2s;
}
.product-thumb:hover { opacity: .8; }

/* ── Lightbox ── */
.lb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.92);
    align-items: center;
    justify-content: center;
}
.lb-overlay.active { display: flex; }

.lb-img-wrap {
    position: relative;
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lb-img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    user-select: none;
}
.lb-caption {
    color: rgba(255,255,255,.8);
    font-size: .85rem;
    margin-top: 8px;
    text-align: center;
}
.lb-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.5);
    font-size: .78rem;
}
.lb-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    opacity: .7;
    transition: opacity .2s;
    z-index: 2;
}
.lb-close:hover { opacity: 1; }

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    width: 48px;
    height: 64px;
    border-radius: 6px;
    cursor: pointer;
    opacity: .7;
    transition: background .2s, opacity .2s;
    z-index: 2;
}
.lb-nav:hover { background: rgba(255,255,255,.3); opacity: 1; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-nav.hidden { display: none; }

/* ── Payment method icons ── */
.pm-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    cursor: default;
    transition: background .2s, border-color .2s;
}
.pm-icon-wrap:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}
.pm-icon-wrap i {
    font-size: 18px !important;
    color: #444;
}
.pm-icon-wrap i.fa-kit {
    font-size: 1rem !important;
}
.pm-icon-wrap--img {
    width: 80px;
    height: 40px;
    padding: 6px 8px;
}
.pm-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ── Show page: unify all icon sizes ── */
.biz-show-page i.fa,
.biz-show-page i.fa-solid,
.biz-show-page i.fa-brands,
.biz-show-page i.bi {
    font-size: 14px;
}
.biz-show-page .bi-star,
.biz-show-page .bi-star-fill {
    font-size: 16px;
}
