/* Map container */
#californiaMap {
    height: 75vh;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive map */
@media screen and (max-width: 600px) {
    #californiaMap {
        height: 300px;
    }
}

/* Icons for legend */
.icon-regulatory-site-high {
    width: 10px;
    height: 10px;
    background-color: red;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    margin-left: 4px;
    border-radius: 50%;
    border: 2px solid black;
}

.icon-hms-fire {
    width: 10px;
    height: 10px;
    background-color: #DD571C;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    margin-left: 4px;
    border-radius: 50%;
    border: 2px solid orange;
}

.modal-content {
  background-color: #ffffff !important;
  color: #000000 !important;
}

/* Slow the fade-in/out of the backdrop */
.modal-backdrop.fade {
    transition: opacity 0.5s linear !important;  /* default is .15s */
}

/* Slow the fade-in/out of the modal panel */
.modal.fade .modal-dialog {
    transition: transform 0.5s ease-out !important; /* default is .3s */
}

/* Tables & lists */
.table-container {
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
}

th,
td {
    padding: 12px;
    border: 1px solid #ddd;
}

th {
    background-color: #f4f4f4;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

li {
    margin: 4px 0;
}

/* Popup text */
.popup-header {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.popup-section {
    margin-bottom: 10px;
}

.popup-label {
    font-weight: bold;
}

/* Bordered sections */
.content-with-border {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
}

/* Print button (if you use it) */
.print-button {
    background-color: #007bff;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    transition-duration: 0.4s;
}

.print-button:hover {
    background-color: #1d1f96;
}

/* Image card overlay */
.image-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.image-container img {
    width: 100%;
    height: auto;
}

.overlay-icon {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    opacity: 0.8;
}

.image-container:hover .overlay-icon {
    opacity: 1;
    color: #ff6f61;
}

/* Hero banner */
.hero-banner {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    box-shadow: 0 6px 8px rgba(0,0,0,0.2);
    border-radius: 12px;
}

.hero-banner p {
    color: white;
    margin-bottom: 0.5rem;
}

/* Error box */
.error-box {
    display: none;
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1055;
    background: white;
    border: 2px solid red;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Leaflet legend styling */
.info.legend {
    font-size: 13px;
    line-height: 1.4;
}

/* Optional text label styling for distance markers */
.text-label {
    white-space: nowrap;
    font-size: 12px;
    font-weight: bold;
}

/* Home button */
.home-button .leaflet-control-home-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
