/**
 * Index page â€“ CarShub365
 * All styles extracted from index.html inline blocks.
 */
:root {
    --index-primary: rgb(0, 130, 255);
    --index-primary-dark: rgb(0, 100, 220);
    --index-card-bg: rgba(38, 42, 52, 0.92);
    --index-glass-border: 1px solid rgb(0, 100, 220);
}

/* Service Category Cards Ã¢â‚¬â€œ less transparent for better readability */
.service-category-card {
    background: rgba(38, 42, 52, 0.92) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 12px !important;
    padding: 1.5rem 1rem !important;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    min-height: 150px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
    background: rgba(55, 60, 70, 0.95) !important;
}

/* Highlighted state (hover or center when no hover): blue border, icon, lighter bg, brighter text */
.service-category-card:hover,
.service-category-item-center .service-category-card {
    border-width: 2px !important;
    border-color: rgb(0, 130, 255) !important;
    background: rgba(50, 55, 65, 0.95) !important;
    box-shadow: 0 8px 24px rgba(0, 130, 255, 0.25), 0 10px 25px rgba(0, 0, 0, 0.4) !important;
}
.service-category-card:hover .category-icon i,
.service-category-item-center .service-category-card .category-icon i {
    color: rgb(0, 130, 255) !important;
}
.service-category-card:hover .category-icon i.fa-cog,
.service-category-item-center .service-category-card .category-icon i.fa-cog {
    border-color: rgb(0, 130, 255) !important;
}
.service-category-card:hover .category-name,
.service-category-card:hover .text-white-50,
.service-category-item-center .service-category-card .category-name,
.service-category-item-center .service-category-card .text-white-50 {
    color: rgba(255, 255, 255, 1) !important;
}
/* When row is hovered, hovered item stands out; non-hovered stay readable */
#homepageServicesCategoriesCarousel .services-carousel-row:hover .service-category-item {
    opacity: 0.88;
}
#homepageServicesCategoriesCarousel .services-carousel-row:hover .service-category-item:hover {
    opacity: 1;
}
#homepageServicesCategoriesCarousel .services-carousel-row:hover .service-category-item:not(:hover) .service-category-card {
    border-width: 1px !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    background: rgba(38, 42, 52, 0.92) !important;
    box-shadow: none !important;
}
#homepageServicesCategoriesCarousel .services-carousel-row:hover .service-category-item:not(:hover) .service-category-card .category-icon i {
    opacity: 0.9;
}
#homepageServicesCategoriesCarousel .services-carousel-row:hover .service-category-item:not(:hover) .service-category-card .category-icon i.fa-cog {
    border-color: rgba(255, 255, 255, 0.55) !important;
}

.service-category-card .category-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.75rem;
    min-height: 42px;
}

.service-category-card .category-icon i {
    font-size: 1.35rem;
}

.service-category-card .category-icon i.fa-cog {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid rgb(0, 130, 255);
    border-radius: 50%;
    padding: 0.35rem;
}

.service-category-card .category-name {
    text-align: center;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    word-break: break-word;
}

.service-category-card .category-count {
    text-align: center;
    font-size: 0.75rem;
    margin: 0;
    margin-top: 0.25rem;
}

/* Our Services carousel Ã¢â‚¬â€œ static (no auto-spin), equal spacing */
#homepageServicesCarouselWrapper { padding: 0 3rem; }
#homepageServicesCategoriesCarousel .carousel-inner { min-height: 200px; padding: 0.5rem 0; }
#homepageServicesCategoriesCarousel .carousel-item { padding: 0 0.5rem; }
#homepageServicesCategoriesCarousel .carousel-item .row.services-carousel-row,
#homepageServicesCategoriesCarousel .carousel-inner > .services-carousel-row {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 0;
}
#homepageServicesCategoriesCarousel .carousel-item .services-carousel-row > .service-category-item,
#homepageServicesCategoriesCarousel .carousel-inner > .services-carousel-row > .service-category-item {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    opacity: 1;
    transition: opacity 0.35s ease;
}
/* Desktop: equal flex items with min size (overridden in mobile media query) */
#homepageServicesCategoriesCarousel .carousel-inner > .services-carousel-row > .service-category-item {
    flex: 1 1 140px;
    min-width: 140px;
}
/* No default center highlight in Our Services: all cards visible with full contrast */
#homepageServicesCategoriesCarousel .service-category-item-center:not(:hover) .service-category-card {
    border-width: 1px !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    background: rgba(38, 42, 52, 0.92) !important;
    box-shadow: none !important;
}
/* Keep category icon colors from inline style (no grey override) */
#homepageServicesCategoriesCarousel .service-category-item-center:not(:hover) .service-category-card .category-icon i.fa-cog {
    border-color: rgba(255, 255, 255, 0.6) !important;
}
#homepageServicesCategoriesCarousel .service-category-item-center:not(:hover) .service-category-card .category-name,
#homepageServicesCategoriesCarousel .service-category-item-center:not(:hover) .service-category-card .text-white-50 {
    color: rgba(255, 255, 255, 1) !important;
}
/* All-in-scope: single row of all categories, no slides; hide nav on desktop */
#homepageServicesCarouselWrapper.services-all-in-scope .carousel-control-prev,
#homepageServicesCarouselWrapper.services-all-in-scope .carousel-control-next {
    display: none;
}
#homepageServicesCarouselWrapper.services-all-in-scope .carousel-inner {
    overflow: visible;
}
/* Mobile (â‰¤767.98px): all categories stacked vertically, no horizontal scroll */
@media (max-width: 767.98px) {
    #homepageServicesCarouselWrapper.services-all-in-scope {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    #homepageServicesCarouselWrapper.services-all-in-scope .carousel-control-prev,
    #homepageServicesCarouselWrapper.services-all-in-scope .carousel-control-next {
        display: none;
    }
    #homepageServicesCarouselWrapper.services-all-in-scope .carousel-inner {
        width: 100%;
        overflow-x: hidden;
        overflow-y: visible;
        padding: 0.5rem 0;
    }
    #homepageServicesCarouselWrapper.services-all-in-scope .carousel-inner > .services-carousel-row {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.75rem;
        margin: 0;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
    #homepageServicesCarouselWrapper.services-all-in-scope .carousel-inner > .services-carousel-row > .service-category-item {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        opacity: 1;
    }
    /* Always show highlighted style on every visible category card in mobile Ã¢â‚¬â€œ subtle shadow to avoid blue lines between stacked cards */
    #homepageServicesCarouselWrapper.services-all-in-scope .carousel-inner .service-category-item .service-category-card {
        border-width: 2px !important;
        border-color: rgb(0, 130, 255) !important;
        background: rgba(50, 55, 65, 0.95) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    }
    #homepageServicesCarouselWrapper.services-all-in-scope .carousel-inner .service-category-item .service-category-card .category-icon i {
        color: rgb(0, 130, 255) !important;
    }
    #homepageServicesCarouselWrapper.services-all-in-scope .carousel-inner .service-category-item .service-category-card .category-icon i.fa-cog {
        border-color: rgb(0, 130, 255) !important;
    }
    #homepageServicesCarouselWrapper.services-all-in-scope .carousel-inner .service-category-item .service-category-card .category-name,
    #homepageServicesCarouselWrapper.services-all-in-scope .carousel-inner .service-category-item .service-category-card .text-white-50 {
        color: rgba(255, 255, 255, 1) !important;
    }
}
#homepageServicesCategoriesCarousel .carousel-control-prev,
#homepageServicesCategoriesCarousel .carousel-control-next {
    width: 3rem; height: 3rem; top: 50%; transform: translateY(-50%);
    border-radius: 50%; background: rgba(0, 100, 220, 0.8); opacity: 1;
    border: 2px solid rgba(255,255,255,0.3);
}
#homepageServicesCategoriesCarousel .carousel-control-prev { left: -1rem; }
#homepageServicesCategoriesCarousel .carousel-control-next { right: -1rem; }
#homepageServicesCategoriesCarousel .carousel-control-prev:hover,
#homepageServicesCategoriesCarousel .carousel-control-next:hover { background: rgb(0, 100, 220); opacity: 1; }

/* Category selection (index booking flow): full opacity so icons and labels stay bright */
#homepageCategoriesSection .services-carousel-row > div > .service-category-item {
    opacity: 1;
    transition: opacity 0.35s ease;
}
/* Default: bright icons (inline category color), white label */
#homepageCategoriesSection .service-category-item .service-category-card .category-icon i {
    opacity: 1;
}
#homepageCategoriesSection .service-category-item .service-category-card .category-name {
    color: rgba(255, 255, 255, 1) !important;
}
#homepageCategoriesSection .service-category-item .service-category-card {
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
}
#homepageCategoriesSection .service-category-item:hover .service-category-card {
    border-width: 2px !important;
    border-color: rgb(0, 130, 255) !important;
    background: rgba(50, 55, 65, 0.95) !important;
    box-shadow: 0 8px 24px rgba(0, 130, 255, 0.25), 0 10px 25px rgba(0, 0, 0, 0.4) !important;
}
#homepageCategoriesSection .service-category-item:hover .service-category-card .category-icon i {
    color: rgb(0, 130, 255) !important;
}
#homepageCategoriesSection .service-category-item:hover .service-category-card .category-icon i.fa-cog {
    border-color: rgb(0, 130, 255) !important;
}
#homepageCategoriesSection .services-carousel-row:hover .service-category-item { opacity: 0.92; }
#homepageCategoriesSection .services-carousel-row:hover .service-category-item:hover { opacity: 1; }
#homepageCategoriesSection .services-carousel-row:hover .service-category-item:not(:hover) .service-category-card {
    border-width: 1px !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    background: rgba(38, 42, 52, 0.92) !important;
    box-shadow: none !important;
}
/* Keep non-hovered icons bright when row is hovered (no grey override) */
#homepageCategoriesSection .services-carousel-row:hover .service-category-item:not(:hover) .service-category-card .category-icon i {
    opacity: 0.95;
}
#homepageCategoriesSection .services-carousel-row:hover .service-category-item:not(:hover) .service-category-card .category-icon i.fa-cog {
    border-color: rgba(255, 255, 255, 0.65) !important;
}
#homepageCategorySelectionWrapper .carousel-control-prev,
#homepageCategorySelectionWrapper .carousel-control-next {
    width: 3rem; height: 3rem; top: 50%; transform: translateY(-50%);
    border-radius: 50%; background: rgba(0, 100, 220, 0.8); opacity: 1;
    border: 2px solid rgba(255,255,255,0.3);
    display: none;
}
#homepageCategorySelectionWrapper .carousel-control-prev { left: -1rem; }
#homepageCategorySelectionWrapper .carousel-control-next { right: -1rem; }
#homepageCategorySelectionWrapper .carousel-control-prev:hover,
#homepageCategorySelectionWrapper .carousel-control-next:hover { background: rgb(0, 100, 220); opacity: 1; }
/* Desktop: one row, side-by-side like Our Services */
#homepageCategorySelectionWrapper .category-selection-scroll {
    overflow: visible;
}
#homepageCategorySelectionWrapper .category-selection-scroll > .services-carousel-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
    margin: 0;
}
#homepageCategorySelectionWrapper .category-selection-scroll .services-carousel-row > div {
    flex: 1 1 140px;
    min-width: 140px;
    max-width: 220px;
}
@media (max-width: 767.98px) {
    #homepageCategorySelectionWrapper .carousel-control-prev,
    #homepageCategorySelectionWrapper .carousel-control-next { display: none !important; }
    #homepageCategorySelectionWrapper .category-selection-scroll {
        width: 100%;
        overflow-x: hidden;
        overflow-y: visible;
        padding: 0.5rem 0;
    }
    #homepageCategorySelectionWrapper .category-selection-scroll > .services-carousel-row {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.75rem;
        margin: 0;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
    #homepageCategorySelectionWrapper .category-selection-scroll .services-carousel-row > div {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
    }
    #homepageCategorySelectionWrapper .category-selection-scroll .service-category-item {
        opacity: 1;
    }
    #homepageCategorySelectionWrapper .category-selection-scroll .service-category-item .service-category-card {
        border-width: 2px !important;
        border-color: rgb(0, 130, 255) !important;
        background: rgba(50, 55, 65, 0.95) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    }
    #homepageCategorySelectionWrapper .category-selection-scroll .service-category-item .service-category-card .category-icon i,
    #homepageCategorySelectionWrapper .category-selection-scroll .service-category-item .service-category-card .category-icon i.fa-cog {
        color: rgb(0, 130, 255) !important;
        border-color: rgb(0, 130, 255) !important;
    }
    #homepageCategorySelectionWrapper .category-selection-scroll .service-category-item .service-category-card .category-name,
    #homepageCategorySelectionWrapper .category-selection-scroll .service-category-item .service-category-card .text-white-50 {
        color: rgba(255, 255, 255, 1) !important;
    }
}

/* Business owners join Ã¢â‚¬â€œ vertical layout, professional UI */
#businessOwnersJoin {
    padding-top: 20rem;
    padding-bottom: 20rem;
    min-height: 18rem;
}
#businessOwnersJoin .business-join-inner {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}
/* Business Owners title/subtitle use same classes as Our Services (display-5, lead) */
#businessOwnersJoin .btn-primary {
    white-space: nowrap;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
}

#services {
    padding-bottom: 20rem !important;
}

/* Wizard Steps Indicator */
.wizard-steps-indicator {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.wizard-steps-indicator .step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgb(0, 100, 220);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.wizard-steps-indicator .step-indicator.active {
    background: rgb(0, 100, 220);
    border-color: rgb(0, 130, 255);
    color: white;
}

.wizard-steps-indicator .step-indicator-group .step-sublabel {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 0.25rem;
    text-align: center;
}

.wizard-navigation {
    padding-top: 1.5rem;
    border-top: 1px solid rgb(0, 100, 220);
}

/* Registration Wizard Styles */
.registration-progress {
    margin-bottom: 2rem;
}

.progress-wrapper {
    position: relative;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.progress-steps .step-indicator {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.progress-steps .step-indicator.active {
    color: rgb(0, 130, 255);
}

.registration-step {
    min-height: 300px;
}

.bg-glass {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgb(0, 100, 220);
}

/* Booking Flow Section - Account for fixed navbar */
#bookingFlowSection {
    padding-top: 100px;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
}

@media (max-width: 768px) {
    #bookingFlowSection {
        padding-top: 80px;
    }
}

/* Municipality Autocomplete & Map - Matching Dashboard */
.search-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgb(0, 100, 220);
}

.autocomplete-wrapper { 
    position: relative; 
    flex: 1; 
    overflow: visible;
}

#homepageLocationSearchSection .autocomplete-wrapper {
    overflow: visible;
}

.autocomplete-input { 
    padding-right: 50px !important; 
}

.autocomplete-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.location-pin-btn {
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    border-color: rgb(0, 130, 255) !important;
    height: auto;
    align-self: flex-start;
}

/* Ensure location button height matches input and doesn't stretch with dropdown */
#homepageLocationSearchSection .location-pin-btn {
    height: calc(1.5em + 0.75rem + 2px);
    min-height: calc(1.5em + 0.75rem + 2px);
    max-height: calc(1.5em + 0.75rem + 2px);
    align-self: flex-start;
    flex-shrink: 0;
    flex-grow: 0;
}

/* Ensure autocomplete wrapper doesn't affect sibling button height */
#homepageLocationSearchSection .autocomplete-wrapper {
    align-self: flex-start;
}

.location-pin-btn:hover {
    background-color: rgba(102, 126, 234, 0.2) !important;
    border-color: rgb(0, 130, 255) !important;
    transform: scale(1.05);
}

.location-pin-btn:active {
    transform: scale(0.95);
}

.autocomplete-results {
    position: absolute; 
    top: 100%; 
    left: 0; 
    right: 0;
    background: #fff; 
    border: 2px solid #e0e0e0; 
    border-top: none;
    border-radius: 0 0 10px 10px; 
    max-height: 300px; 
    overflow-y: auto;
    display: none; 
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    margin-top: 2px;
}

.autocomplete-results.show { 
    display: block; 
}

/* Google Places Search Styles */
#homepagePlacesAutocompleteDropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#homepagePlacesAutocompleteDropdown.show {
    display: block;
}

#homepagePlacesAutocompleteDropdown .autocomplete-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
    color: #000;
}

#homepagePlacesAutocompleteDropdown .autocomplete-item:hover {
    background: #f8f9fa;
}

#homepagePlacesAutocompleteDropdown .autocomplete-item:last-child {
    border-bottom: none;
}

#homepagePlacesAutocompleteDropdown .main-text {
    font-weight: 500;
    color: #000;
    margin-bottom: 3px;
}

#homepagePlacesAutocompleteDropdown .secondary-text {
    font-size: 0.9em;
    color: rgba(0, 0, 0, 0.7);
}

#homepagePlacesAutocompleteDropdown .loading {
    text-align: center;
    padding: 20px;
    color: rgba(0, 0, 0, 0.7);
}

#homepagePlacesAutocompleteDropdown .spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Keep autocomplete-wrapper relative for input icon positioning */
#homepageLocationSearchSection .autocomplete-wrapper {
    position: relative;
}

/* Autocomplete results position (extends to card edges) */
#homepageLocationSearchSection .autocomplete-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: -1rem;
    right: -1rem;
    width: calc(100% + 2rem);
    border-radius: 0 0 10px 10px;
    border-left: none;
    border-right: none;
    margin-top: 0;
}

.autocomplete-item { 
    padding: 12px 20px; 
    cursor: pointer; 
    border-bottom: 1px solid #f0f0f0; 
    transition: background 0.2s; 
}

.autocomplete-item:hover, 
.autocomplete-item.highlighted { 
    background: #f8f9ff; 
}

.autocomplete-item-primary { 
    font-weight: 600; 
    font-size: 16px; 
    color: #333; 
}

.autocomplete-item-secondary { 
    font-size: 14px; 
    color: #666; 
}

/* ===== Index: Stacking order (location section vs map) =====
 * Goal: filters, category dropdown, and autocomplete always above the map.
 * Map and list section are siblings under #homepageLocationSearchSection.
 */
#homepageLocationSearchSection {
    position: relative;
    z-index: 10;
}
#homepageLocationSearchSection .search-container {
    position: relative;
    overflow: visible;
}
#homepageLocationSearchSection .search-container:first-of-type {
    z-index: 11;
}
#homepageLocationSearchSection .d-flex.gap-2 {
    align-items: center;
}
#homepageLocationSearchSection .border-bottom {
    position: relative;
    overflow: visible;
}
#homepageLocationSearchSection .p-3 {
    overflow: visible;
}
#homepageLocationSearchSection .autocomplete-wrapper {
    z-index: 12;
}
#homepageLocationSearchSection .autocomplete-results {
    z-index: 13;
}
#homepageLocationSearchSection .category-dropdown {
    position: relative;
    z-index: 14;
}
#homepageLocationSearchSection .category-dropdown .dropdown-menu,
#homepageLocationSearchSection .dropdown-menu {
    z-index: 15;
}
/* When Bootstrap/Popper moves dropdown to body */
.dropdown-menu[aria-labelledby="homepageServiceTypeDropdown"] {
    z-index: 1040;
}
/* Map and Leaflet: stay below section content */
#homepageMapContainer {
    position: relative;
    z-index: 1;
}
#homepageMap {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    z-index: 1;
}
#homepageMapContainer .leaflet-container,
#homepageMapContainer .leaflet-pane,
#homepageMapContainer .leaflet-map-pane,
#homepageMapContainer .leaflet-tile-pane,
#homepageMapContainer .leaflet-overlay-pane,
#homepageMapContainer .leaflet-shadow-pane,
#homepageMapContainer .leaflet-marker-pane,
#homepageMapContainer .leaflet-tooltip-pane,
#homepageMapContainer .leaflet-popup-pane {
    z-index: 1;
}
#homepageMapContainer .leaflet-top,
#homepageMapContainer .leaflet-bottom,
#homepageMapContainer .leaflet-left,
#homepageMapContainer .leaflet-right,
#homepageMapContainer .leaflet-control {
    z-index: 2;
}
/* Business list section (below map) - same stacking as section */
#homepageLocationSearchSection #homepageBusinessListSection {
    position: relative;
    z-index: 10;
}

/* Business List View Styles - Matching Dashboard */
.business-list-view .row {
    display: flex;
    flex-direction: column;
    margin-left: 0;
    margin-right: 0;
}

.business-list-view .col-12 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    padding-left: 0;
    padding-right: 0;
}

.business-list-view .business-card {
    display: flex;
    flex-direction: row;
    height: auto;
    min-height: 280px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    width: 100%;
    align-items: stretch;
}

.business-list-view .business-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(52, 144, 220, 0.3);
}

.business-list-view .business-image {
    width: 350px;
    min-width: 350px;
    min-height: 0;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    align-self: stretch;
    cursor: pointer;
}

.business-list-view .business-image img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.business-list-view .business-card:hover .business-image img {
    transform: scale(1.05);
}

.business-list-view .business-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1rem;
    z-index: 10;
    cursor: pointer;
}

.business-list-view .business-overlay:hover {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.business-list-view .business-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.business-list-view .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    justify-content: space-between;
}

.business-list-view .card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.business-list-view .business-rating-header {
    display: block !important;
    margin-right: auto !important;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.business-list-view .business-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.business-list-view .business-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: default;
    pointer-events: none;
}

.business-list-view .business-info-item i {
    width: 20px;
    text-align: center;
}

.business-list-view .business-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.business-list-view .business-actions .btn {
    flex: 1;
    min-width: 150px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .business-list-view .business-image {
        width: 100%;
        min-width: 100%;
        height: 200px;
        min-height: 200px;
    }
    
    .business-list-view .business-card {
        flex-direction: column;
    }
    
    .business-list-view .card-title {
        font-size: 1.25rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 0.5rem;
    }
    
    .business-list-view .business-rating-header {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        width: 100%;
    }
    
    .business-list-view .business-info {
        grid-template-columns: 1fr !important;
        padding: 0.75rem;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .business-list-view .business-info-item {
        font-size: 0.85rem;
    }
    
    .business-list-view .business-actions {
        flex-direction: column !important;
        gap: 0.5rem;
        margin-top: 0.75rem;
        width: 100%;
    }
    
    .business-list-view .business-actions .btn {
        width: 100% !important;
        min-width: auto !important;
        flex: none !important;
    }
}

/* Time Slots */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.time-slot-btn {
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.time-slot-btn:hover:not(.disabled) {
    background: rgba(0, 123, 255, 0.2);
    border-color: rgb(0, 100, 220);
}

.time-slot-btn.active {
    background: rgb(0, 100, 220);
    border-color: rgb(0, 130, 255);
    color: white;
}

.time-slot-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* Business Card */
.business-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Service Selection Tabs */
.service-selection-tabs .nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.service-selection-tabs .nav-link {
    color: rgba(255, 255, 255, 0.7);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1rem;
}

.service-selection-tabs .nav-link:hover {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.service-selection-tabs .nav-link.active {
    color: rgb(0, 130, 255);
    border-bottom-color: rgb(0, 100, 220);
    background: transparent;
}

.service-list {
    max-height: 800px;
    overflow-y: auto;
}

/* Business Details Modal Styles (Same as Dashboard) */
#businessDetailsModal .modal-dialog {
    max-height: calc(100vh - 2rem);
    margin: 1rem auto;
    margin-top: max(1rem, 70px); /* Clear fixed navbar (~56px) so header is not hidden */
    display: flex;
    flex-direction: column;
}

#businessDetailsModal .modal-content {
    background: rgba(30, 30, 30, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

#businessDetailsModal .modal-body {
    overflow-y: auto;
    flex: 1 1 auto;
    font-size: 0.95rem;
}

/* Registration Wizard Modal - Ensure it appears above booking wizard */
#registrationWizardModal {
    z-index: 1060 !important;
}

#registrationWizardModal .modal-backdrop {
    z-index: 1159 !important;
}

/* Blur and darken background when "Create Account to Continue" is shown (find services workflow) */
body.registration-backdrop-active .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.88) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
/* Blur any modal/content behind the registration modal so only "Create Account" stands out */
body.registration-backdrop-active .modal.show:not(#homepageRegistrationWizardModal):not(#registrationWizardModal) {
    filter: blur(12px);
    pointer-events: none;
}

#businessDetailsModal .modal-footer {
    flex-shrink: 0;
}

#modalBusinessInfo {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#modalBusinessInfo .business-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

#modalBusinessInfo .business-info-item:last-child {
    margin-bottom: 0;
}

#modalBusinessInfo .business-info-item i {
    width: 20px;
    text-align: center;
}

/* Service Selection with Tabs in Modal Wizard */
#serviceSelectionContainer .nav-tabs-custom {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

#serviceSelectionContainer .nav-tabs-custom .nav-link {
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1rem;
    margin-bottom: -2px;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

#serviceSelectionContainer .nav-tabs-custom .nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

#serviceSelectionContainer .nav-tabs-custom .nav-link.active {
    color: #fff;
    background: transparent;
    border-bottom-color: rgb(0, 100, 220);
    font-weight: 600;
}

#serviceSelectionContainer .service-checkbox-item {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

#serviceSelectionContainer .service-checkbox-item .form-check-input {
    margin-left: auto;
    flex-shrink: 0;
    width: 1.25em;
    height: 1.25em;
}

#serviceSelectionContainer .service-checkbox-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(52, 144, 220, 0.3) !important;
}

/* Calendar with Slots Styles for Booking Wizard - Matching Dashboard */
.calendar-with-slots-wrapper {
    margin-top: 1rem;
}

.calendar-with-slots {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
}

.mini-calendar {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    align-self: start;
    height: fit-content;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.calendar-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.calendar-nav-btn:hover {
    background: rgba(52, 144, 220, 0.3);
    border-color: rgb(0, 100, 220);
}

.calendar-month-year {
    color: white;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.calendar-weekday {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 600;
    padding: 5px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    color: white;
    font-weight: 500;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.05);
}

.calendar-day:hover {
    background: rgba(52, 144, 220, 0.2);
    border-color: rgb(0, 100, 220);
}

.calendar-day.selected {
    background: rgb(0, 100, 220);
    border-color: rgb(0, 70, 180);
    color: white;
}

.calendar-day.unavailable {
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    opacity: 0.5;
}

.calendar-day.unavailable:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: transparent;
}

.calendar-day.closed-day {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
    pointer-events: none;
}

.calendar-day.today {
    border-color: #34d664;
}

.time-slots-sidebar {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.time-slot-block {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    font-weight: 600;
    font-size: 14px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.time-slot-block.available {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #34d664;
    border-color: #34d664;
}

.time-slot-block.available:hover {
    background: rgba(52, 221, 100, 0.2);
    border-color: #34d664;
    transform: translateY(-2px);
}

.time-slot-block.has-booking {
    border-color: rgba(255, 193, 7, 0.5);
    background: rgba(52, 221, 100, 0.1);
}

.time-slot-block.has-booking:hover {
    background: rgba(52, 221, 100, 0.2);
    border-color: rgba(255, 193, 7, 0.7);
}

.time-slot-block.selected {
    background: #34d664;
    border-color: #28a745;
    color: white;
}

.time-slot-block.taken {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.4);
    cursor: not-allowed;
    opacity: 0.5;
}

.time-slot-block.blocked {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.2);
    color: rgba(255, 255, 255, 0.7);
    cursor: not-allowed;
    opacity: 0.7;
}

.time-slot-block.exceeds-closing {
    border-color: #fd7e14;
    background: rgba(253, 126, 20, 0.2);
    color: rgba(255, 255, 255, 0.7);
    cursor: not-allowed;
    opacity: 0.7;
}

.time-slot-block.minimum-notice {
    border-color: #6c757d;
    background: rgba(108, 117, 125, 0.2);
    color: rgba(255, 255, 255, 0.7);
    cursor: not-allowed;
    opacity: 0.7;
}

.time-slot-block.unavailable {
    border-color: #6c757d;
    background: rgba(108, 117, 125, 0.2);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    opacity: 0.6;
}

.time-slot-block[style*="cursor: not-allowed"] {
    pointer-events: none;
}

.time-slot-block small {
    display: block;
    margin-top: 4px;
    font-size: 0.65rem;
    line-height: 1.2;
    word-wrap: break-word;
}

/* Insurance contact options - clickable buttons (like time slots) */
.insurance-contact-btn {
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    border: 2px solid #34d664;
    font-weight: 600;
    font-size: 14px;
    color: white;
    background: rgba(255, 255, 255, 0.05);
}
.insurance-contact-btn:hover {
    background: rgba(52, 221, 100, 0.2);
    transform: translateY(-2px);
}
.insurance-contact-btn.selected {
    background: #34d664;
    border-color: #28a745;
    color: white;
}

/* Mobile Responsive for Modal */
@media (max-width: 768px) {
    #businessDetailsModal .modal-dialog {
        margin: 0.5rem;
        margin-top: max(0.5rem, 70px); /* Keep modal header below fixed navbar */
    }
    
    .calendar-with-slots {
        grid-template-columns: 1fr;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .mini-calendar {
        padding: 10px;
    }
    
    .calendar-day {
        font-size: 0.85rem;
    }
    
    .calendar-month-year {
        font-size: 14px;
    }
    
    #businessDetailsModal .modal-body {
        font-size: 0.85rem;
        padding: 1rem;
    }
    
    #modalBusinessInfo {
        padding: 0.75rem;
    }
    
    #modalBusinessInfo .business-info-item {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    #serviceSelectionContainer .nav-tabs-custom {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        display: flex;
    }
    
    #serviceSelectionContainer .nav-tabs-custom .nav-link {
        font-size: 0.8rem;
        padding: 0.6rem 0.75rem;
        min-width: auto;
        flex-shrink: 0;
    }
    
    #serviceSelectionContainer .nav-tabs-custom .nav-link span.d-none {
        display: none !important;
    }
    
    #serviceSelectionContainer .tab-content .tab-pane > div {
        max-height: 250px !important;
    }
    
    #serviceSelectionContainer .service-checkbox-item {
        padding: 0.75rem !important;
        font-size: 0.9rem;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

/* Mobile Navbar - Compact and Organized */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 0;
        min-height: 60px;
    }
    
    .navbar .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .navbar-brand {
        margin: 0;
        padding: 0;
    }
    
    .navbar-brand img {
        height: 40px !important;
    }
    
    .navbar-toggler {
        padding: 0.375rem 0.5rem;
        margin: 0;
        border: none;
        font-size: 1.1rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.5rem 0;
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .navbar-nav .nav-item {
        margin: 0;
    }
    
    .navbar-nav .btn {
        width: 100%;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        margin: 0 !important;
    }
    
    .navbar-nav .btn.me-2 {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
}

/* Language switcher: icons + selected state */
.navbar .lang-link {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.navbar .lang-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
}
.navbar .lang-link.active {
    color: #fff !important;
    background-color: rgba(0, 130, 255, 0.35);
    box-shadow: 0 0 0 1px rgba(0, 130, 255, 0.6);
}
.navbar .lang-link .lang-icon {
    font-size: 0.9rem;
    opacity: 0.95;
}

/* === Google OAuth Modal === */
#googleOAuthModal .modal-dialog {
    max-width: 500px;
    width: 95%;
    margin: 1.75rem auto;
}

#googleOAuthModal .modal-content {
    border-radius: 0.5rem;
    overflow: hidden;
}

#googleOAuthModal .modal-body {
    min-height: 500px;
    max-height: 80vh;
    position: relative;
}

#googleOAuthLoading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 500px;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10;
}

#googleOAuthIframe {
    width: 100%;
    height: 500px;
    min-height: 500px;
    max-height: 80vh;
}

/* Mobile responsive styles for Google OAuth modal */
@media (max-width: 768px) {
    #googleOAuthModal .modal-dialog {
        margin: 0;
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: 100%;
    }

    #googleOAuthModal .modal-content {
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    #googleOAuthModal .modal-header {
        flex-shrink: 0;
    }

    #googleOAuthModal .modal-body {
        flex: 1;
        height: calc(100% - 60px);
        min-height: calc(100vh - 60px);
        max-height: calc(100vh - 60px);
        overflow: hidden;
    }

    #googleOAuthIframe {
        height: 100% !important;
        min-height: calc(100vh - 60px) !important;
        max-height: calc(100vh - 60px) !important;
    }

    #googleOAuthLoading {
        min-height: calc(100vh - 60px) !important;
    }
}

/* Tablet and medium screens */
@media (min-width: 769px) and (max-width: 1024px) {
    #googleOAuthModal .modal-dialog {
        max-width: 600px;
        width: 90%;
    }

    #googleOAuthModal .modal-body {
        min-height: 550px;
    }

    #googleOAuthIframe {
        height: 550px;
        min-height: 550px;
    }
}

/* Ensure modal is above other modals */
#googleOAuthModal {
    z-index: 1070 !important;
}

#googleOAuthModal .modal-backdrop {
    z-index: 1069 !important;
}

/* === Index: Navbar brand and hero logo (replace inline styles) === */
.navbar-brand.clickable { cursor: pointer; }
.navbar-brand-img { height: 50px; cursor: pointer; }
.hero-logo { max-height: 56px; height: auto; }

/* ==========================================================
   Homepage Layout Revamp (clean, section-based structure)
   ========================================================== */
:root {
    --homepage-nav-height: 72px;
    --homepage-content-max: 1200px;
    --homepage-section-gap: clamp(2.5rem, 5vw, 5rem);
    --homepage-panel-bg: rgba(8, 12, 22, 0.72);
    --homepage-panel-border: rgba(255, 255, 255, 0.12);
}

body.homepage-layout {
    margin: 0;
    padding: 0;
}

body.homepage-layout .homepage-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    margin: 0;
    min-height: var(--homepage-nav-height);
    padding: 0 !important;
    z-index: 1100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.homepage-layout .homepage-navbar .container {
    max-width: var(--homepage-content-max);
    padding-left: 1rem;
    padding-right: 1rem;
    min-height: var(--homepage-nav-height);
    display: flex;
    align-items: center;
}

body.homepage-layout #globalAlertBar.homepage-alert {
    position: fixed;
    top: var(--homepage-nav-height);
    left: 0;
    right: 0;
    margin: 0 !important;
    z-index: 1090;
    border-radius: 0;
}

body.homepage-layout #heroSection {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    padding-top: var(--homepage-nav-height);
    display: flex;
    align-items: stretch;
}

body.homepage-layout #heroSection .container {
    width: 100%;
    max-width: var(--homepage-content-max);
    min-height: calc(100vh - var(--homepage-nav-height));
    min-height: calc(calc(var(--vh, 1vh) * 100) - var(--homepage-nav-height));
    height: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

body.homepage-layout #heroSection .hero-content {
    max-width: 760px;
    margin-inline: auto;
}

body.homepage-layout #heroSection .hero-buttons .btn {
    min-width: 220px;
    letter-spacing: 0.2px;
}

body.homepage-layout .homepage-section {
    position: relative;
    padding: var(--homepage-section-gap) 0;
}

body.homepage-layout .homepage-section .container,
body.homepage-layout .homepage-footer .container {
    max-width: var(--homepage-content-max);
    padding-left: 1rem;
    padding-right: 1rem;
}

body.homepage-layout .homepage-section .row,
body.homepage-layout .homepage-footer .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

body.homepage-layout #businessOwnersJoin {
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
    min-height: auto;
}

body.homepage-layout #businessOwnersJoin .business-join-inner {
    max-width: 760px;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    background: var(--homepage-panel-bg);
    border: 1px solid var(--homepage-panel-border);
    border-radius: 20px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

body.homepage-layout #services {
    padding-top: clamp(3rem, 6vw, 5rem) !important;
    padding-bottom: clamp(3rem, 6vw, 5rem) !important;
}

body.homepage-layout #homepageServicesCarouselWrapper {
    padding: 0 clamp(1rem, 4vw, 3rem);
}

body.homepage-layout #howItWorks {
    background: transparent !important;
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

body.homepage-layout #howItWorks .step-card {
    height: 100%;
    padding: 1.5rem 1.25rem;
    background: var(--homepage-panel-bg);
    border: 1px solid var(--homepage-panel-border);
    border-radius: 16px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

body.homepage-layout #howItWorks .step-number {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

body.homepage-layout .homepage-footer {
    background: rgba(0, 0, 0, 0.88) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.homepage-layout .homepage-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.homepage-layout .homepage-footer .social-links a:hover {
    color: #fff !important;
    border-color: rgba(0, 130, 255, 0.8);
    background: rgba(0, 130, 255, 0.18);
}

@media (max-width: 991.98px) {
    :root {
        --homepage-nav-height: 64px;
    }

    body.homepage-layout .homepage-navbar {
        min-height: var(--homepage-nav-height);
        padding: 0 !important;
    }

    body.homepage-layout .homepage-navbar .navbar-collapse {
        margin-top: 0.4rem;
        padding: 0.5rem 0;
        background: rgba(5, 8, 15, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
    }

    body.homepage-layout #heroSection .hero-content {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    body.homepage-layout #heroSection .hero-buttons .btn {
        width: 100%;
        min-width: 0;
    }

    body.homepage-layout #homepageServicesCarouselWrapper {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}
