:root {
    --primary: #78BE00;
    --secondary: #169AEF;
    --accent: #009933;
    --background: #F8FAFB;
    --surface: #FFFFFF;
    --text: #263238;
    --text-light: #607D8B;
    --border: #DCE3E7;
    --success: #2E7D32;
    --warning: #F4B400;
    --danger: #D93025;
    --bs-primary: var(--primary);
    --bs-primary-rgb: 120, 190, 0;
    --bs-body-bg: var(--background);
    --bs-body-color: var(--text);
    --bs-border-color: var(--border);
    --bs-link-color: var(--accent);
    --bs-link-hover-color: var(--secondary);
}

body {
    background: var(--background);
    color: var(--text);
    font-family: "Inter", "Roboto", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

body.map-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.map-page .map-main {
    display: flex;
    flex: 1;
    min-height: 0;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    width: 100%;
}

.map-page .map-section {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex: 1;
    min-height: 0;
    padding: 0 !important;
}

.map-page .map-section h1 {
    position: absolute;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
    width: 1px;
}

.map-page .site-footer {
    display: none;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.site-brand {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.site-nav-link {
    color: var(--text-light);
    font-weight: 500;
    text-decoration: none;
}

.site-nav-link:hover,
.site-nav-link:focus {
    color: var(--accent);
}

.page-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

h1,
h2,
h3 {
    color: var(--text);
    font-weight: 600;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    border: 1px solid var(--border);
    border-radius: 8px;
    box-sizing: border-box;
    font: inherit;
    padding: 12px;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(22, 154, 239, 0.15);
    outline: none;
}

.honeypot-field {
    height: 1px;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    top: auto;
    width: 1px;
}

.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--accent);
    --bs-btn-hover-border-color: var(--accent);
    --bs-btn-active-bg: var(--accent);
    --bs-btn-active-border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

.site-footer {
    color: var(--text-light);
    font-size: 0.875rem;
}

#map-widget {
    border: 1px solid var(--border);
    border-radius: 8px;
    height: 360px;
    overflow: hidden;
}

.map-page #map-widget {
    border: 0;
    border-radius: 0;
    flex: 1;
    height: auto;
    min-height: 0;
    width: 100%;
}

.photo-dropzone {
    align-items: center;
    background: #f2f8ec;
    border: 2px dashed var(--primary);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    justify-content: center;
    margin: 1rem 0;
    min-height: 140px;
    padding: 1.5rem;
    text-align: center;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.photo-dropzone:hover,
.photo-dropzone:focus,
.photo-dropzone.is-dragging {
    background: #e6f4d8;
    border-color: var(--accent);
    outline: none;
}

.photo-dropzone small {
    color: var(--text-light);
}

.camera-panel {
    background: #1f2933;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    padding: 1rem;
}

.camera-panel video {
    background: #000;
    display: block;
    max-height: 60vh;
    object-fit: contain;
    width: 100%;
}

.camera-controls {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    padding-top: 1rem;
}

.photo-form {
    border-top: 1px solid var(--border);
    padding: 1rem 0;
}

.photo-form input[type="file"] {
    padding: 0.5rem;
}

.photo-preview {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.photo-preview-image {
    border-radius: 6px;
    height: 72px;
    object-fit: cover;
    width: 72px;
}

.heritage-pin-wrapper {
    background: transparent;
    border: 0;
}

.heritage-pin {
    background: var(--pin-color);
    border: 2px solid #fff;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    display: block;
    height: 22px;
    position: relative;
    transform: rotate(-45deg);
    width: 22px;
}

.heritage-popup-image {
    display: block;
    height: 120px;
    margin-bottom: 0.5rem;
    object-fit: cover;
    width: 180px;
}
