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;
}

.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;
}

/*JM*/

body {
/*    font-family: 'Montserrat', sans-serif;*/
}

/*table.dataTable thead th.dt-type-numeric {
    text-align: center;
}*/

th {
    /*    background-color: #183966;*/
    background-color: #00aaff;
    color: white;
    height: 70px;
    text-align: center;
}

table, th, td {
    /*    border: 1px solid black;*/
    border: 1px solid #e2e8f0;
}


tr:nth-child(even) {
    /*    background-color: #D6EEEE;*/
/*    background-color: #1b3966;*/
    background-color: color-mix(in srgb, #1b3966 10%, transparent);
}

th, td {
    padding: 15px 10px;
}

tr:hover {
    /*    background: red;*/
    background: #77cc3e;
    /*    color: white;*/
    /*    background-color: color-mix(in srgb, #D6EEEE 60%, transparent);*/
    /*    color: black;*/
}


/*a {
    text-decoration: none;*/ /* No underline by default */
    /*color: black;
}*/

/*a:hover {
    text-decoration: underline;*/ /* Underline only on hover */
/*    color: white;*/
/*}*/

button.btn {
    margin: 0px;
    padding: 0px;
    background-color: gainsboro;
}

.btn:focus,
.btn:active:focus,
.btn.active:focus {
    outline: none !important;
    box-shadow: none !important;
}

.btn-close {
    /*    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");*/
    background: #ffffff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2377cc3e'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center / 1em auto no-repeat;
    /*    background: #CD1041 url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e")
    center / 1em auto no-repeat;*/
    /*    --bs-btn-close-bg: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e);*/
    /*    --bs-btn-close-color: white !important;
    --bs-btn-close-white-filter: invert(1) grayscale(100%) brightness(200%);*/
    position: absolute;
    right: 20px;
    top: 20px;
    opacity: 1;
    font-size: 15px;
    border-radius: 50%;
    padding: 15px;
    stroke-width: 6px;
    /*    background-color: #CD1041;*/
    /*    background-color: #CD1041;
    color: white;
    border-radius: 50%;
    padding: 20px;
    opacity: 1;
    stroke-width: 6px;*/
}

.btn-close:hover {
    opacity: 1;
}

.profile-direction-buttons {
    float: right;
}

.facility-column {
    display:flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}


/*Provider details page*/

.modal-header {
    background: #00aaff;
    color: white;
    padding: 1.5rem 3rem;
    text-align: center;
}

.provider-profile-modal-t1 {
    /*    border-bottom: 2px solid #CD1041;*/
    border-bottom: 2px solid #77cc3e;
    padding-bottom: 15px;
    /*text-transform: uppercase;*/
    display: inline-block;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.provider-profile-modal-t2 {
    margin-bottom: 1.2rem;
    font-weight: 800;
    /*text-transform: uppercase;*/
}

.section-title {
/*    border-bottom: 3px solid #77cc3e;*/
    padding-bottom: 15px;
    margin-bottom: 0px;
    /*text-transform: uppercase;*/
    /*    display: inline-block;*/
    /*    margin-bottom: 1.5rem;*/
    font-weight: 600;
    color: #00aaff;
}

.btn-primary {
    background-color: #77cc3e !important;
    color: white;
    border-color: #77cc3e !important;
    padding: 10px !important;
}

    .btn-primary:hover {
        /*    background-color: color-mix(in srgb, #CD1041 100%, transparent) !important;*/
        background-color: color-mix(in srgb, #77cc3e 80%, black) !important;
        /*    background-color: #CD1041 !important;*/
        color: white;
        border-color: #77cc3e;
        padding: 10px !important;
    }

.btn-secondary {
    background-color: #00aaff !important;
    color: white;
    border-color: #00aaff !important;
    padding: 10px !important;
}

.btn-secondary:hover {
    background-color: color-mix(in srgb, #00aaff 80%, black) !important;
    color: white;
    border-color: #00aaff;
    padding: 10px !important;
}

a.print-link {
    color: #CD1041;
    font-weight: 600;
    text-decoration: underline;
}

.map-panel {
    margin-bottom: 10px;
}

.address-panel {
    display: flex;
    flex-direction: column;
}

.left-panel, .right-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.address-phone-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.address, .actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.street-address, .emergency-actions {
    font-weight: bolder;
    font-size: 16px;
    color: #00aaff;
    padding-bottom: 10px;
}

.phone-link, .region {
    color: blue; /* Default link color */
    text-decoration: underline; /* Underlined text */
    cursor: pointer; /* Pointer cursor on hover */
}

.facility-information-table, .services-characteristics-table {
    border-top: 3px solid #183866;
}

provider-detail-header {
    background-color: #183966;
    color: white;
    padding: 32px 80px;

    &h2 {
        margin: 0px 0px 16px;
        font-size: 32px;
    }

    &h4 {
        margin: 0px 0px 16px;
        padding: 0px 0px 15px;
        font-size: 24px;
    }
}

provider-detail-footer {
    background-color: white;
    color: black;
}


table.table-provider-profile {
    width: 100%;
    border-collapse: collapse;
    /* Hover state for the whole table */
    &:hover {
        /* subtle shadow or tint when the table is hovered */
/*        box-shadow: 0 0 0 2px rgba(24, 57, 102, 0.1);*/
    }
    /* Header cells */
    & thead th {
        text-align: left;
        padding: 12px 16px;
        background: #183966;
        color: white;
    }
    /* Body cells */
    & tbody td {
        padding: 12px 16px;
        border-top: 1px solid #e5e7eb;
    }
    /* Hovering a row */
    & tbody tr:hover {
        /*background: #f1f5f9;*/ /* light highlight */
    }
    /* Focus-within (keyboard accessibility) */
    & tbody tr:focus-within {
        outline: 2px solid #2563eb; /* visible focus ring */
        outline-offset: -2px; /* align to row edges */
        background: #eef2ff;
    }
    /* Hover a specific column (e.g., first cell only) */
    & tbody tr:hover td:first-child {
        color: #183966;
        font-weight: 600;
    }
    /* Zebra striping with hover override */
    & tbody tr:nth-child(odd) {
        background: #fafafa;
    }

    & tbody tr:nth-child(odd):hover {
        background: #eef2f7;
    }
    /* Hover on header row (if interactive) */
    & thead tr:hover {
        background: #163257;
    }
}

.feedback-btn {
    position: fixed; /* Sticks to viewport */
    top: 50%; /* Vertically centered */
    right: 15px; /* Right edge */
    transform: translateY(-50%) rotate(-90deg); /* Rotate text vertically */
    transform-origin: right center; /* Pivot point for rotation */
    /*    background-color: #183966;*/
    background-color: #00aaff;
    color: white;
    border: none;
    /*    padding: 12px 20px;*/
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px 4px 0 0; /* Rounded top after rotation */
    z-index: 1000;
}

    .feedback-btn:hover {
        background-color: color-mix(in srgb, #00aaff 80%, black) !important;
    }

#scrollBtn {
    display: inline-block;
    position: fixed;
    bottom: 50px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    /*    background-color: #CD1041;*/
    background-color: #77cc3e;
    color: white;
    cursor: pointer;
    padding: 11px 10px;
    opacity: 0;
    visibility: hidden;
    width: 46px;
    height: 46px;
    border-radius: 50%;
}

#scrollBtn:hover {
    background-color: #555;
}

/* Base hidden state */
.back-to-top {
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms ease-in-out;
    z-index: 1050; /* Above content; below modals */
}
    /* Visible state */
    .back-to-top.show {
        opacity: 1;
        pointer-events: auto;
    }

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
}

#pageHeader {
    /*    background-color: #1B3966;*/
    background-color: #00aaff;
    color: white;
    padding: 2rem 5rem;
    text-align: center;
}

/*@media print {
    .print-page {
        margin: 5px;
    }
}*/

.modal-header {
    padding: 24px 15px !important;
}

svg {
    color: #00aaff;
}

/*button.page-link {
    color: #ffffff;
    background-color: #00aaff;
}*/

#map-container {
    height: 293px;
    width: 345px;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#map {
    height: 100%; 
    width: 100%;
    /*display: flex;*/ /* Optional: if you want to center children */
    /*align-items: center;*/ /* Optional: vertical centering */
    /*justify-content: center;*/ /* Optional: horizontal centering */
}

@media print {
    /* Set page margins */
    @page {
        margin: 1mm; /* You can use mm, cm, in, or % */
    }

    /* Optional: Adjust body content for print */
    body {
        margin: 0; /* Remove default browser margins */
        padding: 0;
        font-size: 12pt;
    }

    #profileModal {
        margin: 0;
        padding: 0;
    }

    /* Example: Hide elements you don't want printed */
    .no-print {
        display: none !important;
    }
}

#mapFacilityProfile {
    display: flex;
    border-top: 3px solid #77cc3e;
    height: 288px;
    width: 345px;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
    color: red;
    font-weight: bold;
}

iframe {
/*    position: absolute;
    top: 0;
    left: 0;*/
    width: 100%;
    height: 100%;
    border: none; /* Remove default iframe border */
}

.top-border-green {
    border-top: 3px solid #77cc3e;
}

