:root {
    --primary: #111111;
    --primary-soft: #232323;
    --accent: #a88a42;
    --accent-strong: #8c6f2d;
    --surface: rgba(255, 255, 255, 0.96);
    --bg: #f3efe7;
    --text: #1d1d1d;
    --muted: #5c5c5c;
    --success: #1d7f4f;
    --danger: #b42318;
    --border: #ddd3be;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        linear-gradient(rgba(243, 239, 231, 0.9), rgba(243, 239, 231, 0.98)),
        url('https://www.santaovaiavilapoucadabeira.pt/wp-content/uploads/2022/02/IMG_9277-2-1920x900.jpg') center/cover fixed;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #0f0f0f;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-crest {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px;
}

.topbar h1 {
    margin: 2px 0 0;
    font-size: 1.15rem;
    color: #fff;
}

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #d8c28d;
    font-weight: 700;
    font-size: 0.72rem;
}

.nav-strip {
    display: flex;
    gap: 10px;
    padding: 10px 16px 14px;
    background: linear-gradient(180deg, #111111 0%, #1b1b1b 100%);
    overflow-x: auto;
}

.nav-strip a {
    text-decoration: none;
    color: #f8f4ea;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 8px 12px;
    white-space: nowrap;
    font-size: 0.92rem;
}

.app-shell {
    max-width: 920px;
    margin: 0 auto;
    padding: 18px 16px 28px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 12px 28px rgba(28, 28, 28, 0.08);
    backdrop-filter: blur(4px);
}

.hero-card {
    background:
        linear-gradient(135deg, rgba(17, 17, 17, 0.93), rgba(42, 42, 42, 0.88)),
        url('https://www.santaovaiavilapoucadabeira.pt/wp-content/uploads/2022/03/1-IMG_9263-1750x900.jpg') center/cover;
    color: #fff;
    border: none;
}

.hero-copy h2 {
    margin: 8px 0;
    font-size: 1.7rem;
}

.hero-copy p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.88);
}

.hero-tag {
    display: inline-block;
    margin: 0 0 4px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(168, 138, 66, 0.22);
    color: #f4dfab;
    font-weight: 700;
    font-size: 0.82rem;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-chips span {
    background: rgba(255, 255, 255, 0.12);
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
}

.section-head h2 {
    margin: 0 0 4px;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

#map {
    height: 340px;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    margin: 14px 0;
    border: 1px solid var(--border);
}

.map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    color: var(--muted);
    font-size: 0.95rem;
}

form {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.field-help {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 400;
}

input,
textarea,
select,
button {
    font: inherit;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #d6ccb7;
    border-radius: 12px;
    background: #fffdfa;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(168, 138, 66, 0.22);
    border-color: var(--accent);
}

button {
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

button:hover {
    opacity: 0.97;
    transform: translateY(-1px);
}

button.primary,
.map-actions button,
#submitBtn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
    color: #fff;
}

button.secondary {
    background: #f4ead2;
    color: #1b1b1b;
}

.hidden {
    display: none;
}

.feedback {
    margin-top: 14px;
    padding: 12px;
    border-radius: 12px;
    background: #f6f1e7;
    color: var(--muted);
    border: 1px solid var(--border);
}

.feedback.success {
    background: #e9f7ef;
    color: var(--success);
    border-color: #b7dec7;
}

.feedback.error {
    background: #fdf0ee;
    color: var(--danger);
    border-color: #efc1b8;
}

@media (max-width: 640px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand-crest {
        width: 42px;
        height: 42px;
    }

    .hero-copy h2 {
        font-size: 1.35rem;
    }

    #map {
        height: 280px;
    }
}
