html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    overflow-y: hidden;
}

/* Dropdown list for Vehicle Make / Garage Name */
.dropdown-container { position: relative; }
.dropdown-list {
    position: absolute;
    width: 100%;
    z-index: 2000;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 4px;
    padding: 4px 0;
    max-height: 180px; /* ~5 items visible, then scroll */
    overflow-y: auto;
    box-shadow: 0 6px 12px rgba(0,0,0,.15);
}
.dropdown-list li {
    list-style: none;
    padding: 8px 10px;
    cursor: pointer;
}
.dropdown-list li:hover { background: #f1f5ff; }

/* Ensure navbar is collapsed by default (mobile only) */
@media (max-width: 991.98px) {
  #MapNavbar.navbar-collapse:not(.show) { display: none; }
  .navbar-collapse.collapse:not(.show) { display: none; }
}

/* On desktop (>=992px) always show expanded locator navbar */
@media (min-width: 992px) {
  #MapNavbar.navbar-collapse { display: flex !important; }
}

.title-cls {
    font-size: 12px;
    color: #333 !important;
    font-size: 12px;
    color: #333 !important;
    line-height: 1.4;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
    font-weight: 600;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
.max-widthset {
    max-width: 430px !important;
}
.infowindow-max-widthset {
    max-width: 280px !important;
}
.map-bold-hader{
    font-weight:600;
}
.navbar-toggleable-sm{
    background-color: #326abf !important;
}

.location-dropdown {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    transition: all 0.3s ease;
}
.form-control:focus, .form-check-input:focus {
    box-shadow: none !important;
}
#map {
    height: 100vh;
    width: 100%;
}
.border-none-b {
    border-left: none;
    border-right: none;
    border-radius: 1px;
}
.map-container {
    border-radius: 4px;
    overflow: hidden;
    /*  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);*/
    margin-bottom: 30px;
    position: relative;
}
.search-container {
    display: flex;
    justify-content: center;
    margin: 10px 0;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    width: 95%;
    padding: 10px 15px;
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 13px;
    padding-right: 50px;
    transition: all 0.3s ease;
}

    .search-input:focus {
        outline: none;
        box-shadow: 0 5px 20px rgba(67, 97, 238, 0.2);
    }

.search-btn {
    position: absolute;
    right: 5px;
    top: 0px;
    background: var(--primary);
    color: #326abf !important;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .search-btn:hover {
        background: var(--secondary);
        transform: scale(1.05);
    }
.search-btn {
    position: absolute;
    right: 5px;
    top: 0px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .search-btn:hover {
        background: var(--secondary);
        transform: scale(1.05);
    }

 .card-header {
    font-size: 14px;
    font-weight: 600;
    padding-top: 0px !important;
    padding-bottom: 6px !important;
}
#location-title {
    padding: 3px;
    margin-bottom: 11px;
    margin-left: 12px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
}

.custom-font-family {
    font-family: "Arial", Helvetica, Helvetica Neue, sans-serif !important;
}

.card-text {
    font-size: 11px;
    line-height: 1.4;
    font-weight: 500 !important;
    color: #333 !important;
}
.card-header {
    background-color: #326abf;
}
.card-body {
    cursor: pointer;
    padding: 5px;
}
.custom-padding {
    padding-left: 1px;
    padding-right: 1px;
}
.location-info {
    margin: 10px 0;
}
.card-loop {
    height: auto;
    min-height: 92px;
    margin-bottom: 3px !important;
}
.sec-icon {
    padding-left: 20px;
    margin-top: 7px;
    max-width: 40px;
    margin-right: 20px;
}
.first-icon {
    max-width: 300px;
}
.panel-width-left {
    width: 70%;
}
.panel-width-right {
    width: 30%;
}
.navbar-locator {
    background-color: #034ea2 !important;
    border-color: #034ea2;
    margin-bottom: 0;
    font-size: 0.8rem;
    min-height: 25px !important;
    font-family: "Arial", Helvetica, Helvetica Neue, sans-serif;
}

.navbar-locator .nav-link:hover {
    background: #002754 !important;
}

.navbar-nav {
    float: left;
    margin: 0;
}
.nav {
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}
.nav-link{
    padding:2px;
    padding-left:5px;
}
.navbar-header {
    float: left;
}
.navbar {
    position: relative;
    border: 1px solid transparent;
}

.navbar-locator .navbar-nav > li > a {
    color: #fff !important;
    border-left: #034da2 1px solid;
}
/*.dropdown-menu > li > a:hover {
    text-decoration: none;
    background-color: #034da2;
}*/
.dropdown-menu {
    position: absolute;
    z-index: 1000;
    display: none;
    left: auto !important;
    float: left;
    min-width: 160px;
    width: auto !important;
    margin: 2px 0 0;
    list-style: none;
    font-size: 12px;
    background-color: #fff;
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 0;
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
    background-clip: padding-box;
}
nav .dropdown-menu a:hover {
    text-decoration: none;
}

nav .dropdown-menu li a {
    text-transform: none;
    display: block;
}
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
    text-decoration: none;
    color: #fff;
    background-color: #034da2;
}
.dropdown-menu > li > a {
    display: block;
    padding: 5px 20px;
    clear: both;
    font-weight: normal;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap;
}
.navbar-locator .navbar-nav > li > a:hover, .navbar-locator .navbar-nav > .open > a,
.navbar-locator .navbar-nav > .open > a:hover, .navbar-locator .navbar-nav > .open > a:focus {
    background: #002754 !important;
  /*  margin-right: -1px;*/
    z-index: 999;
  /*  border-left: solid 2px #1a6ac5 !important;
    border-right: solid 1px #1a6ac5 !important;*/
}
.location-search-list {
    overflow: visible;
    scrollbar-width: auto;
    max-height: none;
    overflow-x: visible;
    background-color:white !important;
}
.branch-card-actions {
    margin-top: 6px;
    display: flex;
    gap: 8px;
}

.branch-card-actions .btn {
    flex: 1;
}
.highlight-card {
    background-color: #e6e6e6; /* A light blue shade for highlighting */
    border: 1px solid #e6e6e6; /* Optional: add a border */
}
.mv-8 {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}
.divider-red {
    width: 100%;
    height: 1px;
    background-color: #034ea2;
}
.selectedMapItem {
    background-color: #d1eaff; /* Light blue or any you want */
    border-left: 4px solid #007bff;
}
.height-100 {
    height: calc(100% - 100px) !important;
}

.no-result {
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 60px 30px;
    color: #ff0000;
}
svg.locator {
    fill: #034ea2 !important;
}

@media (max-width: 767px) {
    .panel-width-right {
        width: 100%;
        order: 1;
    }

    .panel-width-left {
        width: 100%;
        order: 2;
    }

    .location-search-list {
        max-height: none;
        overflow: visible;
        min-height: auto;
    }

    .companylogo {
        width: 85% !important;
    }
}

#location-title {
    color: white;
}

/* Mobile filter toggle button */
.filter-toggle-btn { display:none; }
@media (max-width: 767px){
    .filter-toggle-btn { 
            display:inline-flex;
            align-items:center;
            justify-content:center;
            width:46px;
            height:46px;
            border-radius:50%;
            border:2px solid #fff;
            background:#034ea2; /* same panel color for seamless look */
            color:#fff;
            cursor:pointer;
            position:relative;
            transition:background .25s ease, transform .2s ease;
    }
    .filter-toggle-btn:focus { outline:2px solid #fff; outline-offset:2px; }
    .filter-toggle-btn:active { transform:scale(.94); }
    .filter-toggle-btn[aria-expanded="false"] { background:#013d82; }
    .filter-toggle-icon { font-size:20px; line-height:1; }
        .filter-toggle-btn .filter-toggle-icon { display:block; }
    /* When filters are closed, expand map to more height */
    [ng-controller] #map { transition:height .3s ease; }
    /* Collapsed state: detect by sibling panel hidden */
    .mapLocation:not(.filters-open) #map { height:75vh; }
}

.companylogo {
    width: 32%;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}
/* Accessibility & Mobile Enhancements (appended) */
.visually-hidden { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0 0 0 0) !important; white-space:nowrap !important; border:0 !important; }
.card-body[role="button"]:focus { outline:2px solid #034ea2; outline-offset:2px; border-radius:4px; }
@media (max-width: 767px){
    /* Reduce map height on small screens to expose list earlier */
    #map { height:50vh; }
}

/* Extremely small devices handling (e.g., 320px width) */
@media (max-width: 360px){
    .branch-header-wrapper { display:flex; align-items:center; gap:6px; }
    #location-title { flex:1 1 auto; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-right:4px; }
    .filter-toggle-btn { width:40px; height:40px; min-width:40px; min-height:40px; }
    .filter-toggle-btn .filter-toggle-icon { width:18px; height:18px; }
    .divider-red { margin-top:4px; }
}