.c-usda-map__header {
    background-color: #1a3a5c;
    color: #fff;
    padding: 24px 0;
}

.c-usda-map__title {
    margin: 0 0 8px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.c-usda-map__subtitle {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.85;
}

.c-usda-map__container {
    position: relative;
    width: 100%;
    height: calc(100vh - 180px);
    min-height: 500px;
}

#usda-map {
    width: 100%;
    height: 100%;
}

/* Custom address search */
.c-usda-map__search {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    width: 320px;
    display: flex;
    gap: 0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    overflow: hidden;
}

.c-usda-map__search-input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    font-size: 0.9rem;
    outline: none;
    min-width: 0;
}

.c-usda-map__search-input:focus {
    box-shadow: inset 0 0 0 2px #1a3a5c;
}

.c-usda-map__search-btn {
    background: #1a3a5c;
    color: #fff;
    border: none;
    padding: 0 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.c-usda-map__search-btn:hover {
    background: #243f63;
}

/* Legend */
.c-usda-map__legend {
    position: absolute;
    bottom: 40px;
    right: 12px;
    background: #fff;
    border-radius: 6px;
    padding: 14px 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 10;
    min-width: 180px;
}

.c-usda-map__legend-title {
    margin: 0 0 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #444;
}

.c-usda-map__legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: #333;
}

.c-usda-map__legend-item:last-child {
    margin-bottom: 0;
}

.c-usda-map__legend-swatch {
    display: inline-block;
    width: 22px;
    height: 14px;
    border-radius: 2px;
    flex-shrink: 0;
}

.c-usda-map__legend-swatch--ineligible {
    background-color: rgba(234, 179, 8, 0.5);
    border: 2px solid #ca8a04;
}

.c-usda-map__legend-swatch--eligible {
    background-color: rgba(255,255,255,0.6);
    border: 2px solid #aaa;
}

/* Eligibility status panel */
.c-usda-map__status {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    max-width: 340px;
}

.c-usda-status {
    background: #fff;
    border-radius: 6px;
    padding: 14px 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-left: 4px solid #aaa;
}

.c-usda-status strong {
    display: block;
    font-size: 0.82rem;
    color: #555;
    margin-bottom: 6px;
    line-height: 1.4;
}

.c-usda-status__badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.c-usda-status--eligible {
    border-left-color: #16a34a;
}

.c-usda-status--eligible .c-usda-status__badge {
    background-color: #dcfce7;
    color: #15803d;
}

.c-usda-status--ineligible {
    border-left-color: #ca8a04;
}

.c-usda-status--ineligible .c-usda-status__badge {
    background-color: #fef9c3;
    color: #854d0e;
}


/* Loading spinner inside status */
.c-usda-map__status p {
    margin: 0;
    font-size: 0.875rem;
    color: #555;
    padding: 12px 16px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
