/* HTK Floodline Detail Page Styles
 * ------------------------------------
 * HTK-specific overrides for the flood detail/info pages.
 * Kept separate from the SEPA template.css to avoid
 * future update conflicts.
 * ------------------------------------
 */

/* Detail page description content */
.detail-description {
    margin: 0 0 1.5rem 0;
}

.detail-description p {
    margin-bottom: 1rem;
}

/* Status line — prominent opening statement */
.detail-description__status {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

/* Body text — main description paragraphs */
.detail-description__body {
    margin-bottom: 1.25rem;
}

.detail-description__body p {
    margin-bottom: 1rem;
}

/* Update line — when the warning will next be reviewed */
.detail-description__update {
    margin-top: 1.25rem;
    margin-bottom: 1rem;
    color: #555;
}

/* Children / sub-areas list */
.detail-children-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.detail-children-list li {
    padding: 0.625rem 0;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.detail-children-list li:first-child {
    border-top: 1px solid #dee2e6;
}

.detail-children-list li a {
    color: var(--scottish-dark-teal);
    text-decoration: underline;
}

.detail-children-list li a:hover {
    color: var(--verdant-green);
}

/* Map section on detail page */
#current-warnings-and-alerts-map {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Remove margin on full-page map template */
.page-template-template-floodline-map #current-warnings-and-alerts-map {
    margin-top: 0;
    margin-bottom: 0;
}

#current-warnings-and-alerts-map .warning-text {
    margin-bottom: 1rem;
}

.map--holder {
    height: 100vh;
    width: 100%;
    position: relative;
    background: #becddc;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
}

.map--holder arcgis-map {
    width: 100%;
    height: 100vh;
}

/* Map help page - warning items (3-column grid, icon above text) */
.map-help--warnings-grid {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.map-help--warnings-grid .map-help--warning-item {
    text-align: left;
    margin-bottom: 1rem;
}

.map-help--warnings-grid .map-help--warning-item p {
    margin-bottom: 0;
}

.map-help--warnings-grid .map-help--warning-item img {
    display: block;
    margin: 0 auto 0.5rem;
    max-width: 100%;
    height: auto;
}

/* Map help page - control tool icon images */
.map-help--control-icon {
    vertical-align: middle;
    margin-right: 0.25rem;
}
