/* ==========================================================================
   Burton Roofing - Branch Selector Stylesheet
   ========================================================================== */

/* --- Header Widget --- */
.burton-header-branch-widget {
    display: inline-flex;
    align-items: center;
}

.burton-header-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.burton-header-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.burton-pin-icon {
    fill: #ffffff;
}

/* --- Floating Side Trigger (Right Edge) --- */
.burton-floating-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #e30614;
    color: #ffffff;
    padding: 16px 8px;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    z-index: 999998;
    box-shadow: -3px 0 12px rgba(0, 0, 0, 0.25);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    user-select: none;
    transition: background 0.2s ease, right 0.2s ease;
}

.burton-floating-btn:hover {
    background: #c40511;
}

/* --- Modal Overlay --- */
.burton-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* --- Modal Card --- */
.burton-modal-card {
    background: #072535;
    color: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 620px;
    padding: 24px 35px 30px !important;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    font-family: inherit;
}

/* Close Button (X in circle) */
.burton-modal-close {
    position: absolute;
    top: -15px;
    left: -15px;
    background: #ffffff;
    color: #072535;
    border: 2px solid #072535;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    padding: 0;
    margin: 0;
}

/* --- Headings & Typography --- */
.burton-modal-card .burton-modal-title,
.burton-modal-card .burton-modal-title-red {
    color: #e30614 !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.burton-modal-card .burton-modal-title::before,
.burton-modal-card .burton-modal-title::after,
.burton-modal-card .burton-modal-title-red::before,
.burton-modal-card .burton-modal-title-red::after {
    display: none !important;
    content: none !important;
}

.burton-modal-desc {
    font-size: 15px;
    line-height: 1.5;
    color: #e0e0e0;
    margin: 0 0 22px 0 !important;
    padding: 0 !important;
}

/* --- Form Elements --- */
.burton-search-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.burton-input-group {
    flex: 1 1 200px;
}

.burton-input-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 25px;
    border: 1.5px solid #4a6575;
    background: #0a1e2a;
    color: #ffffff;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}

.burton-input-group input:focus {
    border-color: #e30614;
}

/* --- Buttons --- */
.burton-btn-outline {
    background: #ffffff;
    color: #072535;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.burton-btn-outline:hover {
    opacity: 0.9;
}

.burton-btn-primary {
    background: #e30614;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.burton-btn-primary:hover {
    background: #c40511;
}

.burton-link-btn {
    color: #a0b2be;
    font-size: 13px;
    text-decoration: underline;
    display: inline-block;
    margin-top: 15px;
    cursor: pointer;
}

/* --- Branch Results List --- */
.burton-branches-list {
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 5px;
}

.burton-branch-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #16384d;
    gap: 15px;
}

.burton-branch-item:last-child {
    border-bottom: none;
}

.burton-branch-info {
    flex: 1;
}

.burton-branch-name {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.burton-branch-addr {
    font-size: 13px;
    color: #b0c2ce;
    line-height: 1.4;
}

.burton-branch-dist {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    min-width: 90px;
    text-align: center;
}

.burton-branch-select-btn {
    background: #e30614;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s ease;
}

.burton-branch-select-btn:hover {
    background: #c40511;
}

/* --- Active Branch Card & Alerts --- */
.burton-selected-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.burton-selected-info p {
    margin: 0 0 8px 0;
}

.burton-selected-info p:last-child {
    margin-bottom: 0;
}

.burton-error-msg {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(1px, 1px, 1px, 1px);
    overflow: hidden;
}