/*
 * Cormack Core Reactor - Cormack Core components
 * Google Maps ([cc_map]) and brochure buttons ([cc_brochure], [cc_brochures]).
 * Override in custom.css.
 */

/* Google Maps */
.cc-map {
    position: relative;
    width: 100%;
    min-height: 200px;
    background: #eef0f2;
}

.cc-map-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    padding: 20px;
    color: #555;
    text-align: center;
}

.cc-map-notice {
    padding: 16px;
    border: 1px dashed #c3c4c7;
    background: #fcf9e8;
    font-size: 14px;
}

.cc-map-info {
    max-width: 260px;
    font-size: 14px;
    line-height: 1.5;
    color: #222;
}

.cc-map-info-title {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.cc-map-info-body p {
    margin: 0 0 6px;
}

.cc-map-info-directions {
    display: inline-block;
    margin-top: 4px;
    font-weight: 600;
    text-decoration: underline;
}

/* Brochure buttons */
.cc-brochures {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cc-brochure-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 6px;
    background: #222;
    color: #fff;
    font-weight: 500;
    line-height: 1.2;
    transition: background 0.2s ease;
}

.cc-brochure-btn:hover,
.cc-brochure-btn:focus {
    background: #000;
}

.cc-brochure-icon {
    flex-shrink: 0;
}

.cc-brochure-count {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

/* Banner buttons keep the banner look from custom.css */
.brochure-link.cc-brochure-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
}
