﻿/* Removed empty body ruleset */
.panel-width-right {
    background-image: linear-gradient(to bottom, #034ea2 162px, transparent 162px);
    border-top: 1px solid #023e80;
}
.Title_branch {
    margin-top: 19px !important;
}

.accordion-button:not(.collapsed) {
    color: black;
    background-color: #fcfcfc !important;
    box-shadow: none !important;
}
.accordion-button:focus {
    box-shadow: none !important;
}
.accordion-button {
    height: 10px;
   
}
.acc-title {
    font-size: 12px;
    font-weight: 700;
}
.custom-font-family {
    font-family: "Arial", Helvetica, Helvetica Neue, sans-serif !important;
}

.btn-font-size {
    font-size: 12px;
    font-weight: bold;
    color: #034ea2;
}
.range {
    font-size: 12px;
    font-weight: 700;
    padding: 11px;
}
.form-range {
    width: 97%;
    padding-left: 3%;
}
.btn:hover {
    color: var(--bs-btn-hover-color);
    background-color: #d6f1f7 !important;
    border-color: #d6f1f7 !important;
}
.imgheight {
    height: 20px;
}
.ptactive {
    background-color: #30BD27;
    border: 2px solid #d6f1f7;
}

    .ptactive span {
        color: #fff !important;
    }
.btn.btn-toggle-depnt.active {
    background: #d6f1f7;
}

.dropdown-container {
    display: flex;
    justify-content: center;
    margin: 10px 0;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%; /* ✅ force match width of parent container */
    box-sizing: border-box;
    padding: 5px 0; /* no left/right padding here, move it to li */
    border: 1px solid #ccc;
    background: white;
    max-height: 350px;
    overflow-y: auto;
    list-style: none;
    z-index: 10;
}

    /* Style for each item */
    .dropdown-list li {
        padding: 5px 20px;
        font-size: 12px;
        cursor: pointer;
    }

        /* Hover effect */
        .dropdown-list li:hover {
            background-color: #22479a;
            color: white;
        }

.custom-font-size {
    font-weight: 550;
    font-size: 12px;
}

.button {
    margin: 5px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f9f9f9;
    cursor: pointer;
}

.btn-selected {
    background: #d6f1f7;
    color: black;
    border-color: #d6f1f7;
}

.btn-not-selected {
    background: white;
    color: black;
    border-color: #d6f1f7;
}

/* Slider wrapper */
.range-wrapper {
    width: 100%;
}

/* Range slider card treatment: keep labels/track tucked inside the panel */
.range-container {
    background: #f6f8fb;
    border: 1px solid #e0e6f2;
    border-radius: 12px;
    padding: 12px 14px 10px 14px;
    box-shadow: inset 0 1px 0 #ffffff;
}

.range-container .range {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    margin: 0 0 8px 0;
}

.range-container .custom-slider {
    width: 100%;
    margin: 0;
}

.range-container .range-labels {
    margin-top: 8px;
    padding: 0 2px;
    font-size: 11px;
    color: #4a5668;
}

.range-container .range-labels span {
    flex: 1;
    text-align: center;
}

/* Base slider */
.custom-slider {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    transition: background 0.3s ease-in-out;
}

    /* Dynamic fill color handled by Angular inline style */
    .custom-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
        height: 18px;
        width: 18px;
        border-radius: 50%;
        background: #007bff; /* Bootstrap primary */
        cursor: pointer;
        border: 2px solid white;
        box-shadow: 0 0 2px rgba(0,0,0,0.3);
    }

    .custom-slider::-moz-range-thumb {
        height: 18px;
        width: 18px;
        border-radius: 50%;
        background: #007bff;
        cursor: pointer;
        border: 2px solid white;
    }

.marker-info-box {
    padding: 15px;
    background: #f9f9f9;
    border-left: 4px solid #007bff;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.garage-list div {
    cursor: pointer;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

    .garage-list div:hover {
        background: #f1f1f1;
    }

.marker-info-container {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    margin-bottom: 15px;
}

.marker-info-image {
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
}

    .marker-info-image img {
        width: 100%;
        max-width: 320px;
        height: auto;
        max-height: 200px;
        object-fit: contain;
        border-radius: 8px;
        background: #f5f7fb;
        padding: 8px;
        margin: 0 auto;
    }

.marker-info-details h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: bold;
}

.btn.btn-toggle-depnt.active {
    background: #d6f1f7;
}

.dropdown-container {
    display: flex;
    justify-content: center;
    margin: 10px 0;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%; /* ✅ force match width of parent container */
    box-sizing: border-box;
    padding: 5px 0; /* no left/right padding here, move it to li */
    border: 1px solid #ccc;
    background: white;
    max-height: 350px;
    overflow-y: auto;
    list-style: none;
    z-index: 10;
}

    /* Style for each item */
    .dropdown-list li {
        padding: 5px 20px;
        font-size: 12px;
        cursor: pointer;
    }

        /* Hover effect */
        .dropdown-list li:hover {
            background-color: #22479a;
            color: white;
        }

.custom-font-size {
    font-weight: 550;
    font-size: 12px;
}

.button {
    margin: 5px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f9f9f9;
    cursor: pointer;
}

.btn-selected {
    background: #d6f1f7;
    color: black;
    border-color: #d6f1f7;
}

.btn-not-selected {
    background: white;
    color: black;
    border-color: #d6f1f7;
}

/* Slider wrapper */
.range-wrapper {
    width: 100%;
}

/* Base slider */
.custom-slider {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    transition: background 0.3s ease-in-out;
}

    /* Dynamic fill color handled by Angular inline style */
    .custom-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
        height: 18px;
        width: 18px;
        border-radius: 50%;
        background: #007bff; /* Bootstrap primary */
        cursor: pointer;
        border: 2px solid white;
        box-shadow: 0 0 2px rgba(0,0,0,0.3);
    }

    .custom-slider::-moz-range-thumb {
        height: 18px;
        width: 18px;
        border-radius: 50%;
        background: #007bff;
        cursor: pointer;
        border: 2px solid white;
    }

.marker-info-box {
    padding: 15px;
    background: #f9f9f9;
    border-left: 4px solid #007bff;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.garage-list div {
    cursor: pointer;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

    .garage-list div:hover {
        background: #f1f1f1;
    }

.marker-info-container {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    margin-bottom: 15px;
}

.marker-info-image {
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
}

    .marker-info-image img {
        width: 100%;
        height: auto;
        max-height: 200px; /* limit height */
        object-fit: cover;
        border-radius: 8px;
    }

.marker-info-details h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: bold;
}

.marker-info-details p {
    margin: 4px 0;
    font-size: 14px;
    color: #444;
}

.range-wrapper {
    width: 100%;
    margin: 10px 0;
}

    .range-wrapper input[type=range] {
        width: 100%;
    }

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 12px;
    color: #333;
}

/* ================= Garage Mobile Enhancements (scoped) ================= */
@media (max-width: 992px) {
    .gr-layout .gr-row { flex-direction: column; }
    .gr-layout .panel-width-left, .gr-layout .panel-width-right { width:100%; max-width:100%; }
    .gr-layout .panel-width-left { order:2; padding:0 0 12px 0; }
    .gr-layout .panel-width-right { order:1; background: #034ea2; border-top:none; padding:0 0 8px 0; }

    /* Map sizing: further reduced panel height (original 130px -> 85px -> now ~65px) */
    .gr-layout #map { width:100%; height: calc(100vh - 65px); min-height:360px; }
    .gr-panel-content { color:#fff; }

    .gr-search-with-filter { display:flex; flex-direction:column; align-items:stretch; gap:4px; padding:4px 8px 4px 8px; background:#034ea2; position:relative; z-index:5; }
    .gr-search-block-wrapper { flex:1; min-width:0; }
    .gr-search-block { flex:1; }
    .gr-search-row-with-button { display:flex; align-items:center; gap:8px; }
    .gr-inline-search { flex:1; position:relative; }
    .gr-inline-search .search-input { width:100%; border-radius:28px; padding:8px 14px; font-size:13px; }
    .gr-inline-search #search-btn { position:absolute; right:6px; top:50%; transform:translateY(-50%); width:34px; height:34px; border-radius:50%; background:#ffffff; border:1px solid #0b5193; color:#0b5193; display:flex; align-items:center; justify-content:center; }
    .gr-inline-search #search-btn:hover { background:#eef5fb; }

    /* Fix: suggestion list text was inheriting white and became invisible on white background */
    .gr-panel-content .dropdown-list { 
        background:#ffffff !important; 
        color:#2f3b4b !important; 
        border:1px solid #e5e7eb !important; 
        box-shadow:0 8px 24px rgba(0,0,0,0.08);
        z-index: 1000; /* ensure above inputs/panel */
    }
    .gr-panel-content .dropdown-list li { 
        color:#2f3b4b !important; 
        background:#ffffff !important; 
    }
    .gr-panel-content .dropdown-list li:hover { 
        background-color:#22479a !important; 
        color:#ffffff !important; 
    }
    /* Ensure input text and placeholder remain readable in blue panel */
    .gr-panel-content .search-input { color:#1f2937 !important; }
    .gr-panel-content .search-input::placeholder { color:#7c8da6 !important; }

    /* Circular filter button to match Network Hospital style */
    .gr-circle-btn { width:40px; height:40px; min-width:40px; min-height:40px; border-radius:50%; padding:0; background:rgba(255,255,255,0.92); border:1px solid #c6d9ec; display:flex; align-items:center; justify-content:center; color:#064a8f; box-shadow:0 3px 8px rgba(0,0,0,0.06); }
    .gr-circle-btn svg { pointer-events:none; }
    .gr-circle-btn:hover { background:#ffffff; transform:scale(1.05); }
    .gr-circle-btn.active { background:#e2efff; border-color:#95c3f5; }
    .gr-search-block .search-input { width:100%; font-size:14px; }
    .gr-search-block .dropdown-container { margin:4px 0; }

    /* Legacy rectangular filter button suppressed after switch to .gr-circle-btn */
    .gr-mobile-filter-btn { display:none !important; }
    .gr-mobile-filter-btn.active, .gr-mobile-filter-btn:active { display:none !important; }
    .gr-mobile-filter-btn svg { display:none !important; }
    .gr-filter-text { line-height:1; }

    /* Collapsible container */
    .gr-mobile-filters-content { display:none; background:#fff; color:#000; padding:10px 12px 40px 12px; border-top:1px solid #e0e7ef; box-shadow:0 4px 10px rgba(0,0,0,0.08); max-height:62vh; overflow-y:auto; -webkit-overflow-scrolling:touch; }
    .gr-mobile-filters-content.show { display:block; animation:gr-slideDown .28s ease; }
    @keyframes gr-slideDown { from { opacity:0; transform:translateY(-6px);} to { opacity:1; transform:translateY(0);} }

    /* Refine existing accordion spacing for mobile */
    .gr-mobile-filters-content .accordion-button { padding:8px 10px; }
    .gr-mobile-filters-content .accordion-body { padding:8px 4px 4px 4px; }
    .gr-mobile-filters-content .btn { margin:2px; font-size:11px; }

    /* Prevent heading/button text clipping and overlap in accordion header */
    .gr-mobile-filters-content .accordion-button {
        height: auto !important;      /* override fixed base height */
        min-height: 40px;             /* ensure tappable area */
        line-height: 1.2;
    }
    .gr-mobile-filters-content .accordion-button .acc-title {
        margin: 0;                    /* remove default H4 margins */
        line-height: 1.2;
    }

    /* Payment Type & Garage Type chips: ensure icon and text spacing, no overlap */
    .gr-mobile-filters-content .accordion-body .btn {
        display: inline-flex;         /* lay out icon + text cleanly */
        align-items: center;
        gap: 6px;                     /* space between icon and text (for element siblings) */
        padding: 6px 10px;            /* room around text to avoid crowding */
        line-height: 1.2;             /* tighter but readable */
        max-width: 100%;
        white-space: nowrap;          /* keep each chip on one line */
    }
    .gr-mobile-filters-content .accordion-body .btn img,
    .gr-mobile-filters-content .accordion-body .btn .imgheight {
        height: 18px;                 /* slightly smaller icons on mobile */
        width: auto;
        margin-right: 6px;            /* always create separation before text */
    }

    /* Range slider spacing */
    .gr-mobile-filters-content .range-wrapper { margin-top:6px; }

    /* List cards */
    .gr-mobile-filters-content .location-search-list .card { margin-bottom:6px; border:1px solid #e5ecf4; border-radius:10px; }
    .gr-mobile-filters-content .location-search-list .card-body { padding:10px 10px; }
    .gr-mobile-filters-content .title-cls { font-size:14px; font-weight:600; }
    .gr-mobile-filters-content .card-text { font-size:11px; line-height:1.2; }

    /* When filters are expanded, reduce map height a bit (JS not required; just rely on viewport scroll) */
    /* Adjust expanded state map offset slightly since header shrank */
    .gr-mobile-filters-content.show + #map { height: calc(100vh - 285px); }
}

/* Desktop retains original layout: ensure new controls hidden */
@media (min-width: 993px) {
    .gr-mobile-filter-btn, .gr-circle-btn { display:none !important; }
    .gr-mobile-filters-content { display:block !important; background:transparent; padding:0; box-shadow:none; max-height:calc(100vh - 140px); overflow-y:auto; overflow-x:visible; }
    .gr-layout #map { height:100%; min-height:600px; }
}

/* Ensure Google Places suggestions appear above overlays on garage page */
.pac-container { 
    z-index: 3000 !important; 
}
.pac-container .pac-item, 
.pac-container .pac-item .pac-item-query, 
.pac-container .pac-matched {
    color: #1f2937 !important; /* readable dark text */
}
