body {
    font-family: Arial, sans-serif;
    margin: 40px auto;
    max-width: 1100px;
}

h1 {
    margin-bottom: 30px;
}

form input, form select {
    margin-right: 10px;
    padding: 5px;
}

button {
    padding: 6px 12px;
}

table {
    border-collapse: collapse;
    margin-bottom: 20px;
}

td {
    border: 1px solid #ddd;
    padding: 8px;
}

h2 {
    margin-top: 30px;
}

.form {
    margin-bottom: 30px;
}

.report-header {
    text-align: center;
    margin-bottom: 30px;
}

.address-box {
    background-color: #f2f2f2;
    padding: 15px;
    border-radius: 6px;
}

.sub-header {
    display: flex;
    justify-content: space-between;
    max-width: 850px;
    margin: 10px auto 0 auto;
    font-size: 14px;
    color: #555;
}

.property-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;

    max-width: 850px;
    margin: 0 auto 30px auto;
    align-items: stretch;
}

.property-left {
    display: flex;
    justify-content: center;
}

.property-right h2 {
    margin-top: 0;
}

.image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    border-radius: 6px;
}

.content-section {
    max-width: 850px;
    margin: 0 auto;
}

.content-section h2 {
    margin-top: 25px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.street-image {
    width: 100%;
    max-width: 350px;
    border-radius: 6px;
    
}

.image-module {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    max-width: 350px;
}

.thumb {
    width: 100%;
    height: auto;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
}

.thumb:hover {
    border: 2px solid #333;
}

.thumb.active {
    border: 2px solid #007BFF;
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 24px;
    width: 560px;
    border-radius: 8px;

    max-height: 80vh;
    overflow-y: auto;
}

/* Shelter modal rows */
#shelterList > div {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

#shelterList label {
    flex: 1;
    line-height: 1.5;
    cursor: pointer;
}

#shelterList button {
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

.flood-high {
    color: red;
}

.flood-moderate {
    color: orange;
}

.flood-minimal {
    color: green;
}

.flood-unknown {
    color: gray;
}

.form-error {
    color: red;
    margin-top: 10px;
    font-size: 14px;
}

.dev-affordable {
    color: green;
    font-weight: bold;
}

.dev-market {
    color: #888;
}

.political-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    background-color: #f9f9f9;
}

.political-card.advisory {
    border-left: 4px solid #888;
    background-color: #f5f5f5;
}

.advisory-badge {
    font-size: 11px;
    background-color: #888;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

.political-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 13px;
}

.political-table th {
    background-color: #f2f2f2;
    padding: 8px;
    text-align: left;
    border-bottom: 2px solid #ddd;
}

.political-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.stance-supportive { color: green; font-weight: bold; }
.stance-opposed    { color: red;   font-weight: bold; }
.stance-mixed      { color: orange; font-weight: bold; }
.stance-neutral    { color: #555; }
.stance-unknown    { color: #aaa; }

/* Map layout — side by side */
.map-interactive-panel {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.map3d-wrapper {
    flex: 0 0 65%;
    height: 420px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ddd;
}

#gmp-map-3d {
    width: 100%;
    height: 100%;
}

/* Controls panel */
.map-controls-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.map-controls-panel h3 {
    margin: 0 0 6px 0;
    font-size: 15px;
}

.map-control-group {
    margin-bottom: 8px;
}

.map-control-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 4px 0;
    letter-spacing: 0.5px;
}

.map-control-row {
    display: flex;
    gap: 6px;
}

.map-ctrl-btn {
    flex: 1;
    padding: 7px 10px;
    font-size: 13px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.map-ctrl-btn:hover {
    background: #f0f0f0;
}

.map-ctrl-reset {
    width: 100%;
}

.map-ctrl-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 8px 0;
}

.map-capture-btn {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    background: #2c5f2e;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.map-capture-btn:hover {
    background: #224a24;
}

.map-capture-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Captured image */
#capturedMapContainer {
    display: none; /* controlled by JS */
}

.captured-map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.captured-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.map-action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.map-save-status {
    font-size: 12px;
    color: green;
    margin-top: 6px;
    min-height: 18px;
}

.map-instructions {
    font-size: 12px;
    color: #666;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.capture-note {
    background: #f0f4f0;
    border-left: 3px solid #2c5f2e;
    padding: 7px 10px;
    border-radius: 3px;
}

.map-subsection {
    margin-top: 20px;
}

.login-container {
    max-width: 400px;
    margin: 120px auto;
    text-align: center;
    font-family: sans-serif;
}

.login-container h2 {
    margin-bottom: 24px;
}