/* Modernized Styling for Sadanand Carriers Location Grid */

/* Search and Filter Section */
.location-controls-container {
    background: #fdfdfd;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.search-input-wrapper .fa-search {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 16px;
}

.search-input-wrapper .modern-search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #2d3748;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.search-input-wrapper .modern-search-input:focus {
    border-color: #ffcc33;
    box-shadow: 0 0 0 3px rgba(255, 204, 51, 0.15);
    background: #fff;
}

/* Region Pill Filters */
.filter-pills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.filter-pill {
 
    border: 1px solid #e2e8f0; 
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    outline: none;
}

.filter-pill:hover {
    background: #edf2f7;
    color: #2d3748;
    border-color: #cbd5e0;
}

.filter-pill.active {
    background: #0d1f52;
    color: #ffffff;
    border-color: #0d1f52;
    box-shadow: 0 4px 10px rgba(13, 31, 82, 0.25);
}

/* Branch Grid and Card Design */
.branches-grid-wrapper {
    margin-top: 20px;
    min-height: 200px;
}

.branches-grid-wrapper .row {
    display: flex;
    flex-wrap: wrap;
}

/* Override Bootstrap 3 pseudo-elements that break flex wrap */
.branches-grid-wrapper .row::before,
.branches-grid-wrapper .row::after {
    display: none !important;
}

.branch-card-col {
    margin-bottom: 30px;
    transition: all 0.3s ease;
    display: flex; /* Allow column content to fill height */
}

.branch-card {
    background: #f2f2f2;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 24px;
    width: 100%; /* Stretch card to full column width */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.branch-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(13, 31, 82, 0.1);
    border-color: rgba(255, 204, 51, 0.6);
}

/* Card Badge/Tag */
.branch-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.branch-name {
    font-size: 16px;
    font-weight: 700;
    color: #0d1f52;
    margin: 0;
    line-height: 1.3;
    text-transform: none;
}

.type-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: inline-block;
}

.type-badge.booking-delivery {
    background-color: #dcfce7;
    color: #166534;
}

.type-badge.booking {
    background-color: #fef9c3;
    color: #854d0e;
}

.type-badge.delivery {
    background-color: #e0f2fe;
    color: #075985;
}

/* Card Body Content */
.branch-card-body {
    flex-grow: 1;
}

.branch-address {
    font-size: 12.5px;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
}

.branch-address i {
    color: #e53e3e;
    margin-top: 3px;
    font-size: 14px;
}

.branch-contact {
    font-size: 13px;
    color: #2d3748;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.branch-contact i {
    color: #319795;
    font-size: 14px;
}

/* Card Footer Actions */
.branch-card-actions {
    display: flex;
    gap: 8px;
    border-top: 1px solid #edf2f7;
    padding-top: 16px;
    margin-top: auto;
}

.action-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-secondary {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #edf2f7;
    color: #2d3748;
    border-color: #cbd5e0;
}

.btn-primary {
    background: #ffcc33;
    border: 1px solid #ffcc33;
    color: #0d1f52;
}

.btn-primary:hover {
    background: #e6b82e;
    border-color: #e6b82e;
    color: #0d1f52;
}

/* Copy Tooltip success style */
.btn-secondary.copied {
    background: #c6f6d5;
    border-color: #c6f6d5;
    color: #22543d;
}

/* SubRegion Section Heading */
.subregion-section-header {
    margin-top: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ffcc33;
    padding-bottom: 8px;
}

.subregion-title {
    font-size: 20px;
    font-weight: 700;
    color: #0d1f52;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* No results state styling */
.no-results-box {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1px dashed #cbd5e0;
    border-radius: 16px;
    color: #718096;
    margin-bottom: 50px;
}

.no-results-box i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #a0aec0;
}

.no-results-box h4 {
    font-size: 18px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

/* Scroll adjustment for header */
#wrapper {
    overflow-x: hidden;
}

/* Premium Dark Overlay for Inner Banner on Desktop */
.inner-banner {
    position: relative;
    overflow: visible; /* Ensure breadcrumbs hang off correctly */
}

.inner-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 31, 82, 0.7); /* Premium dark navy overlay */
    z-index: 1;
}

.inner-banner .container {
    position: relative;
    z-index: 2;
}

/* On mobile, completely hide the decorative banner to save screen space and eliminate the white gap */
@media (max-width: 767px) {
    .inner-banner {
        display: none !important;
    }
    .features-section-2 {
        padding-top: 0px !important;
        padding-bottom: 20px !important;
    }
    .location-controls-container {
        margin-top: 0px !important;
        margin-bottom: 20px !important;
        padding: 16px !important;
    }
    
    /* Solid background for expanded mobile menu dropdown */
    .navigation-row .navbar-collapse {
        background-color: #ffffff !important;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1) !important;
        border-top: 1px solid #edf2f7 !important;
        width: 100% !important;
        float: left !important;
        position: relative !important;
        z-index: 9999 !important;
        padding: 0 15px !important;
		margin-top: -45px;
    }
    .navigation-row .navbar-collapse ul#nav {
        margin: 0 !important;
        padding: 10px 0 !important;
        float: none !important;
    }
    .navigation-row .navbar-collapse ul#nav li {
        float: none !important;
        display: block !important;
    }
    .navigation-row .navbar-collapse ul#nav li a {
        line-height: 44px !important;
        padding: 0 15px !important;
        border-bottom: 1px solid #f0f2f5 !important;
        color: #222 !important;
    }
    .navigation-row .navbar-collapse ul#nav li:last-child a {
        border-bottom: none !important;
    }
}
