:root {
    --color-bg: #f7f4ee;
    --color-surface: #ffffff;

    --color-text: #1f1f1f;
    --color-muted: #6d6d6d;

    --color-primary: #f2a900;
    --color-primary-dark: #d78f00;

    --color-success: #21a366;
    --color-border: #ded8cd;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
}

* {
    box-sizing: border-box;
}

html {
    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

body {
    margin: 0;

    background: var(--color-bg);
    color: var(--color-text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

a {
    color: inherit;
}

.container {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}


/* HEADER */

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

    position: sticky;
    top: 0;

    z-index: 1000;
}

.site-header-content {
    min-height: 68px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 1.25rem;
    font-weight: 800;

    text-decoration: none;
}

.brand-mark {
    font-size: 1.4rem;
}

.main-nav a {
    text-decoration: none;
    font-weight: 700;
}

/* HOME */

.hero {
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    margin-bottom: 12px;
    font-size: clamp(2.5rem, 8vw, 5rem);
}

.hero p {
    margin: 0;
    font-size: 1.2rem;
}


/* BANQUINHA */

.stall-page {
    padding-bottom: 64px;
}

.stall-cover img {
    width: 100%;
    height: 100%;
    max-height: 520px;

    object-fit: cover;
    display: block;
}

.stall-header {
    padding: 40px 0 20px;
}

.stall-category {
    display: inline-block;

    margin-bottom: 8px;

    font-size: 0.9rem;
    font-weight: 700;

    text-transform: uppercase;
}

.stall-header h1 {
    margin: 0 0 12px;

    font-size: clamp(
        2rem,
        6vw,
        4rem
    );
}

.stall-description {
    max-width: 700px;

    margin: 0;

    font-size: 1.1rem;
    line-height: 1.6;
}


/* SECTIONS */

.stall-info,
.stall-story,
.stall-contact {
    margin-top: 32px;
}

.stall-info h2,
.stall-story h2 {
    margin-bottom: 16px;
}


/* BUTTON */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 13px 18px;

    border: 0;
    border-radius: var(--radius-md);

    background: var(--color-text);
    color: #fff;

    font-weight: 800;
    text-decoration: none;

    cursor: pointer;
}

.button:hover {
    opacity: 0.9;
}


/* MAP */

.map-hero {
    padding: 32px 0 16px;
}

.map-intro h1 {
    margin: 0 0 6px;

    font-size: clamp(
        2.2rem,
        7vw,
        4rem
    );
}

.map-intro p {
    margin: 0;

    color: var(--color-muted);
}

.map-section {
    width: 100%;
}

#map {
    width: 100%;
    height: calc(100vh - 180px);

    min-height: 500px;

    background: #ddd;
}

@media (max-width: 700px) {

    #map {
        height: 60vh;
        min-height: 420px;
    }

}

@media (max-width: 700px) {

    .container {
        width:
            min(
                100% - 24px,
                1100px
            );
    }

}

@media (max-width: 700px) {

    .map-intro h1 {
        font-size: 2.4rem;
    }

    .stall-header h1 {
        font-size: 2.3rem;
    }

}


.map-popup a {
    display: inline-block;

    margin-top: 8px;
    padding: 8px 12px;

    background: #111;
    color: #fff;

    border-radius: 6px;

    font-weight: 700;
    text-decoration: none;
}

/* MAP TOOLS */

.map-tools {
    padding: 0 0 20px;
}

.map-tools .container {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

#location-status {
    font-size: 0.95rem;
    color: #555;
}

.map-popup-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* STALL MAP */

.stall-map-section {
    margin-top: 40px;
}

.status-open {
    color: var(--color-success);
    font-weight: 800;
}

.status-closed {
    color: var(--color-muted);
    font-weight: 700;
}

/* SELLER */


.seller-dashboard h1 {
    margin-bottom: 8px;
}

.seller-status {
    margin: 24px 0;
}

.seller-actions {
    margin-top: 24px;
}

.seller-dashboard form {
    margin-top: 24px;
}


/* LOGIN */

.account-page {
    padding: 64px 0;
}

.account-card {
    width: min(460px, 100%);

    padding: 32px;

    background: #fff;

    border-radius: 12px;
}


/* MESSAGES */

.messages {
    width: min(
        1100px,
        calc(100% - 32px)
    );

    margin: 16px auto;
}

.message {
    padding: 12px 16px;

    border-radius: 8px;

    background: #eee;
}

.message.success {
    background: #dff3e5;
}

.message.error {
    background: #f8dddd;
}

/* MAP FILTERS */

.map-filters {
    padding-bottom: 20px;
}

.map-search {
    margin-bottom: 16px;
}

.map-search input {
    width: 100%;
    max-width: none;

    padding: 15px 18px;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);

    background: var(--color-surface);

    font-size: 1rem;
}

.map-search input:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.filter-buttons {
    display: flex;
    gap: 8px;

    overflow-x: auto;

    padding-bottom: 6px;

    scrollbar-width: thin;
}

.filter-button {
    flex: 0 0 auto;
}

.filter-button:hover {
    background: #eee;
}

.filter-button.active {
    background: #111;
    color: #fff;

    border-color: #111;
}

.map-results-info {
    margin-top: 16px;

    font-size: 0.95rem;
    color: #555;
}

.leaflet-popup-content-wrapper {
    border-radius: var(--radius-md);
}

.map-popup {
    min-width: 180px;
}

.map-popup h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.map-popup p {
    margin: 6px 0;
}

.map-popup-actions a {
    display: block;

    padding: 10px 12px;

    border-radius: 8px;

    background: var(--color-text);
    color: #fff;

    text-align: center;
    text-decoration: none;
    font-weight: 700;
}

.stall-content-card {
    background: var(--color-surface);

    border-radius: var(--radius-lg);

    padding: 32px;

    margin-top: -30px;

    position: relative;
    z-index: 2;

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.06);
}

.stall-cover {
    width: 100%;
    height: 360px;

    overflow: hidden;

    background: #ddd;
}

.stall-cover img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

@media (max-width: 700px) {

    .stall-cover {
        height: 240px;
    }

}

@media (max-width: 700px) {

    .map-popup {
        min-width: 150px;
    }

}

.brand-logo {
    height: 42px;
    width: auto;
}

@media (max-width: 700px) {

    .brand-logo {
        height: 36px;
    }

}

.stall-story {
    margin-top: 36px;

    padding-top: 28px;

    border-top:
        1px solid
        var(--color-border);
}

.stall-story p {
    line-height: 1.7;
}

#stall-map {
    width: 100%;
    height: 320px;

    border-radius: var(--radius-md);

    overflow: hidden;
}

.seller-dashboard .container {
    max-width: 620px;
}

.seller-dashboard {
    padding: 40px 0;
}

.seller-dashboard .button {
    width: 100%;
    margin-top: 10px;
}

.seller-open-button {
    background: var(--color-success);
}

.seller-close-button {
    background: #b83a3a;
}

#seller-location-status {
    margin-top: 12px;

    font-size: 0.95rem;
    color: var(--color-muted);
}

#locate-me {
    background: var(--color-surface);
    color: var(--color-text);

    border:
        1px solid
        var(--color-border);
}

.filter-button {
    flex: 0 0 auto;

    padding: 9px 14px;

    border: 1px solid var(--color-border);
    border-radius: 999px;

    background: var(--color-surface);
    color: var(--color-text);

    font-size: 0.9rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.filter-button:hover {
    background: #eee;
}

.filter-button.active {
    background: var(--color-text);
    color: #fff;
    border-color: var(--color-text);
}

/* SUGGEST STALL */

.suggest-page {
    padding: 56px 0 80px;
}

.suggest-card {
    width: min(680px, 100%);
    margin: 0 auto;

    padding: 36px;

    background: var(--color-surface);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.suggest-header {
    margin-bottom: 32px;
}

.suggest-label {
    display: block;

    margin-bottom: 8px;

    color: var(--color-muted);

    font-size: 0.8rem;
    font-weight: 800;

    letter-spacing: 0.08em;
}

.suggest-header h1 {
    margin: 0 0 10px;

    font-size: clamp(
        2rem,
        6vw,
        3.2rem
    );
}

.suggest-header p {
    margin: 0;

    color: var(--color-muted);
    line-height: 1.6;
}

.suggest-form {
    display: grid;
    gap: 20px;
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-field label {
    font-weight: 700;
}

.form-field input:not([type="checkbox"]),
.form-field select,
.form-field textarea {
    width: 100%;

    padding: 13px 14px;

    border:
        1px solid
        var(--color-border);

    border-radius: var(--radius-sm);

    background: #fff;

    font: inherit;
}

.form-field textarea {
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline:
        2px solid
        var(--color-primary);

    outline-offset: 1px;
}

.checkbox-field {
    display: flex;
    align-items: center;

    gap: 10px;

    cursor: pointer;
}

.checkbox-field input {
    width: 18px;
    height: 18px;
}

.field-error {
    margin: 0;

    color: #b83a3a;

    font-size: 0.9rem;
}

.suggest-notice {
    padding: 16px;

    background: var(--color-bg);

    border-radius: var(--radius-md);
}

.suggest-notice p {
    margin: 5px 0 0;

    color: var(--color-muted);

    line-height: 1.5;
}

.suggest-submit {
    width: 100%;
}

@media (max-width: 700px) {

    .suggest-page {
        padding: 24px 0 48px;
    }

    .suggest-card {
        padding: 24px 18px;
    }

}

.suggest-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin: 24px 0;

    padding: 20px;

    background: var(--color-surface);

    border:
        1px solid
        var(--color-border);

    border-radius: var(--radius-md);
}

.suggest-cta p {
    margin: 5px 0 0;

    color: var(--color-muted);
}

@media (max-width: 700px) {

    .suggest-cta {
        align-items: stretch;
        flex-direction: column;
    }

}

/* SELLER PROFILE */

.seller-edit-page {
    padding: 48px 0 80px;
}

.seller-edit-card {
    width: min(680px, 100%);
    margin: 0 auto;

    padding: 32px;

    background: var(--color-surface);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.seller-edit-header {
    margin-bottom: 32px;
}

.seller-label {
    display: block;

    margin-bottom: 8px;

    color: var(--color-muted);

    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.seller-edit-header h1 {
    margin: 0 0 6px;

    font-size: 2.2rem;
}

.seller-edit-header p {
    margin: 0;

    color: var(--color-muted);
}

.seller-edit-form {
    display: grid;
    gap: 20px;
}

.seller-edit-actions {
    display: flex;
    gap: 10px;

    margin-top: 12px;
}

.button-secondary {
    background: var(--color-bg);
    color: var(--color-text);

    border:
        1px solid
        var(--color-border);
}

@media (max-width: 700px) {

    .seller-edit-page {
        padding: 24px 0 48px;
    }

    .seller-edit-card {
        padding: 24px 18px;
    }

    .seller-edit-actions {
        flex-direction: column;
    }

}

/* SELLER MANAGEMENT */

.seller-management {
    display: grid;
    gap: 16px;

    margin-top: 32px;
}

.seller-management-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    padding: 20px;

    background: var(--color-surface);

    border:
        1px solid
        var(--color-border);

    border-radius: var(--radius-md);
}

.seller-management-card h2 {
    margin: 5px 0 8px;
}

.seller-management-card p {
    margin: 0;

    color: var(--color-muted);
}

.seller-schedule-list {
    padding: 0;
    margin: 16px 0 0;

    list-style: none;
}

.seller-schedule-list li {
    display: flex;
    justify-content: space-between;

    gap: 20px;

    padding: 8px 0;

    border-bottom:
        1px solid
        var(--color-border);
}


/* SCHEDULE MANAGEMENT */

.schedule-management-list {
    display: grid;
    gap: 10px;

    margin: 24px 0;
}

.schedule-management-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 14px;

    background: var(--color-bg);

    border-radius: var(--radius-sm);
}

.schedule-management-item > div {
    display: grid;
    gap: 4px;
}

.schedule-delete {
    border: 0;
    background: transparent;

    color: #b83a3a;

    font-weight: 700;
    cursor: pointer;
}


@media (max-width: 700px) {

    .seller-management-card {
        align-items: stretch;
        flex-direction: column;
    }

}

/* QR MATERIAL */

.seller-qr-preview {
    margin-top: 18px;
}

.seller-qr-preview img {
    display: block;

    width: 150px;
    height: 150px;

    padding: 8px;

    background: #fff;

    border:
        1px solid
        var(--color-border);

    border-radius: var(--radius-sm);
}


.qr-material-page {
    padding: 48px 0 80px;
}

.qr-material-header {
    width: min(520px, 100%);
    margin: 0 auto 24px;
}

.qr-material-header h1 {
    margin: 6px 0;
}

.qr-material-header p {
    margin: 0;

    color: var(--color-muted);
}


/* PHYSICAL CARD */

.physical-card {
    width: min(420px, 100%);
    margin: 0 auto;

    overflow: hidden;

    background: #fff;

    border:
        1px solid
        var(--color-border);

    border-radius: var(--radius-lg);
}

.physical-card-brand {
    padding: 16px 20px;

    background: var(--color-text);
    color: #fff;

    font-size: 1.1rem;
    font-weight: 800;

    text-align: center;
}

.physical-card-content {
    display: flex;
    align-items: center;
    flex-direction: column;

    padding: 36px 28px;

    text-align: center;
}

.physical-card-content > span {
    font-size: 0.75rem;
    font-weight: 800;

    letter-spacing: 0.12em;

    color: var(--color-muted);
}

.physical-card-content h2 {
    margin: 4px 0 12px;

    font-size: 2rem;
}

.physical-card-content p {
    margin: 0 0 22px;

    color: var(--color-muted);

    line-height: 1.5;
}

.physical-card-qr {
    width: 220px;
    height: 220px;

    margin-bottom: 20px;
}

.physical-card-content strong {
    font-size: 1.25rem;
}

.physical-card-content small {
    display: block;

    margin-top: 8px;

    color: var(--color-muted);
}

.qr-material-actions {
    display: flex;
    justify-content: center;

    gap: 10px;

    margin-top: 24px;
}

@media print {

    body {
        background: #fff;
    }

    .site-header,
    .messages,
    .qr-material-header,
    .qr-material-actions {
        display: none !important;
    }

    .qr-material-page {
        padding: 0;
    }

    .qr-material-page .container {
        width: 100%;
        max-width: none;
    }

    .physical-card {
        width: 105mm;

        margin: 10mm auto;

        border: 1px solid #aaa;

        box-shadow: none;
    }

}

.physical-card-url {
    margin: 8px 0 0;

    font-size: 0.85rem;

    word-break: break-all;
}