@import url('https://fonts.googleapis.com/css2?family=Source+Serif+Pro:wght@400;500;600;700&display=swap');

:root {
    --bg-paper: #FEF7E0;
    --text-primary: #1E293B;
    --text-muted: #475569;
    --line: #D1D5DB;
    --accent: #B91C1C;
    --button: #000;
    --surface: rgba(255, 255, 255, 0.95);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    min-height: 100%;
    /* background-image: url('../public/images/gray-texture.jpg'); */
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-primary);
    font-family: 'Source Serif Pro', Georgia, 'Times New Roman', serif;
    line-height: 1.7;
    position: relative;
     
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-repeat: repeat;
    background-size: 700px auto;
    background-position: top center;
    opacity: 0.95;
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

img,
video {
    max-width: 100%;
    height: auto;
}

body *:not(button):not(.button):not(.secondary-button):not(.back-button):not(.search-button):not(.navbutton):not(.profile-button):not(.profile-menu):not(.profile-menu *):not(.site-footer):not(.site-footer *) {
    background: transparent !important;
    background-color: transparent !important;
}

main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Source Serif Pro', Georgia, 'Times New Roman', serif;
    color: var(--text-primary);
    margin-top: 0;
}

h1 {
    font-size: clamp(2rem, 2.5vw, 3rem);
    line-height: 1.05;
}

p,
label,
input,
select,
textarea,
button,
a,
li {
    font-family: 'Source Serif Pro', Georgia, 'Times New Roman', serif;
}

a {
    color: var(--button);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
.button,
.secondary-button,
.back-button {
    margin: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

button:hover,
.button:hover,
.secondary-button:hover,
.back-button:hover {
    transform: translateY(-1px);
}


.secondary-button {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--line);
}

button:focus,
.button:focus,
.secondary-button:focus,
.back-button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(190, 24, 93, 0.15);
}

button.small,
.button.small,
.secondary-button.small {
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
}

.navbar {
    position: relative;
    padding: 1rem 1rem 0.5rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
}

.navbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    border-bottom: solid 2px;
}

.navbar-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    border-bottom: solid 2px;
}

.navbar-left,
.navbar-center,
.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-left {
    flex: 1 1 180px;
}

.navbar-center {
    flex: 2 1 320px;
    justify-content: center;
}

.navbar-right {
    flex: 1 1 220px;
    justify-content: flex-end;
    gap: 0.75rem;
}

.navbar-title a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.03em;
}

.data-hora {
    display: inline-block;
    max-width: 100%;
    font-size: 0.95rem;
    color: var(--text-muted);
    background: #ffffff;
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    line-height: 1.35;
    text-align: center;
}

.navbar-right button,
.navbar-right .profile-button {
    min-width: 120px;
}

.navbar-right button {
    white-space: nowrap;
}

.navbar-profile {
    position: relative;
}

.profile-button {
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: #ffffff;
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-button:hover,
.profile-button:focus {
    background: rgba(30, 58, 138, 0.06);
    outline: none;
}

.profile-icon {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    overflow: hidden;
    background: var(--line);
    align-items: center;
    justify-content: center;
}

.profile-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 0.95rem;
    font-weight: 700;
}

.profile-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.75rem);
    margin: 0;
    padding: 0.45rem 0;
    list-style: none;
    min-width: 230px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
    border-radius: 10px;
    display: none;
    z-index: 20;
    overflow: hidden;
}

.navbar-profile[open] .profile-menu {
    display: block;
}

.profile-menu li {
    margin: 0;
}

.profile-menu li + li {
    border-top: 1px solid #eceff3;
}

.profile-menu li a,
.profile-menu li button {
    display: block;
    width: 100%;
    padding: 0.85rem 1.15rem;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    border: none;
    background: #ffffff;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease, padding-left 0.16s ease;
}

.profile-menu li a:hover,
.profile-menu li button:hover,
.profile-menu li a:focus,
.profile-menu li button:focus {
    background: #f8fafc;
    color: #000;
    padding-left: 1.3rem;
    outline: none;
}


.navbar-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 1 1 auto;
}

.navbar-lista li {
    margin: 0;
}

.navbar-lista li a,
.navbutton,
.profile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.navbar-lista li a:hover,
.navbutton:hover,
.profile-button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.12);
}

.navbar-lista li a:focus,
.navbutton:focus,
.profile-button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(30, 41, 59, 0.12);
}


@media (max-width: 900px) {

    .navbar {
        padding: 0.9rem 0.8rem 0.55rem;
    }

    .navbar-top,
    .navbar-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .navbar-top {
        gap: 0.55rem;
    }

    .navbar-center {
        justify-content: center;
    }

    .data-hora {
        font-size: 0.83rem;
        padding: 0.45rem 0.7rem;
        border-radius: 0.75rem;
        white-space: normal;
    }

    .navbar-lista {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .navbar-lista li a,
    .navbutton,
    .profile-button {
        width: 100%;
        min-height: 44px;
    }

    .navbar-right {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        justify-content: stretch;
    }

    .navbar-right button,
    .navbar-right .profile-button {
        width: 100%;
        min-width: 0;
    }

    .navbar-profile {
        width: 100%;
    }

    .profile-menu {
        left: 0;
        right: 0;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .navbar-title a {
        font-size: 1.6rem;
    }

    .navbar-lista,
    .navbar-right {
        grid-template-columns: 1fr;
    }

    .profile-menu {
        position: static;
        margin-top: 0.4rem;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
    }
}

@media (max-width: 1024px) {
    main {
        padding: 1.2rem 0.9rem 2rem;
    }

    h1 {
        font-size: clamp(1.75rem, 4.4vw, 2.35rem);
    }

    h2 {
        font-size: clamp(1.2rem, 2.5vw, 1.65rem);
    }

    p,
    li,
    label,
    input,
    select,
    textarea,
    button,
    a {
        font-size: 0.98rem;
    }

    .classifieds-layout {
        grid-template-columns: 1fr;
    }

    .classifieds-sidebar {
        border-right: none;
        border-bottom: 1px solid #000;
        padding-right: 0;
        padding-bottom: 0.8rem;
        margin-bottom: 0.35rem;
    }

    .classifieds-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
    }

    .classifieds-sidebar a {
        border: 1px dotted #333;
        padding: 0.25rem 0.55rem;
    }

    .search-input {
        min-width: 0;
    }

    .form-card,
    .profile-card,
    .card-panel,
    .announcement-detail-card,
    .announcement-description-card,
    .announcement-gallery-empty {
        padding: 1.15rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.8rem 0.65rem;
    }
}
.input-card {
    border: solid 1px #000;
}

.auth-page,
.page-content,
.form-card,
.profile-card,
.table-responsive,
.card-panel {
    display: grid;
    gap: 1.5rem;
}

.form-card,
.profile-card,
.card-panel {
    background: var(--surface);
    border: 1px solid #000;
    padding: 1.5rem;
}


label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: var(--text-primary);
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='number'],
input[type='file'],
select,
textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    margin-bottom: 10px;
    border: 1px solid #000;
    background: #fff;
    font-size: 1rem;
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

button[type='submit']{
    background-color: #000;
    color: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--button);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.08);
}

textarea {
    min-height: 140px;
}

.form-status,
.form-error,
.form-errors {
    margin-top: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    background: #ffffff;
}

.form-status {
    border: 1px solid #84cc16;
    color: #166534;
}

.form-error,
.form-errors {
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

.page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table th,
.data-table td {
    padding: 1rem 0.8rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.data-table thead th {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.9);
}

.title-page,
.login-page,
.register-page,
.profile-form,
.login-form,
.register-form {
    display: grid;
    gap: 1rem;
}

.login-actions,
.login-help {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.login-help {
    font-size: 0.98rem;
    color: var(--text-muted);
}

.login-help a {
    color: var(--button);
}

.back-button {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--line);
}

.profile-icon img {
    width: 32px;
    height: 32px;
}

.classifieds-newspaper {

    border-bottom: 4px double #000;
    padding: 1rem 0.75rem 1.5rem;
    background: #fff;
}

.classifieds-header {
    text-align: center;
    border-bottom: 2px solid #000;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}

.classifieds-header h1 {
    margin: 0.25rem 0;
    letter-spacing: 0.14em;
}

.classifieds-edition,
.classifieds-subtitle {
    margin: 0;
    color: #111;
    font-size: 0.9rem;
}

.classifieds-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1rem;
}

.classifieds-sidebar {
    border-right: 1px solid #000;
    padding-right: 0.8rem;
}

.classifieds-sidebar h2 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.classifieds-sidebar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.classifieds-sidebar a {
    display: block;
    color: #000;
    border-bottom: 1px dotted #333;
    padding: 0.35rem 0;
    text-decoration: none;
}

.classifieds-sidebar a.active,
.classifieds-sidebar a:hover {
    font-weight: 700;
}

.classifieds-search {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.search-input,
.search-select {
    border: 1px solid #000;
    border-radius: 0;
    padding: 0.55rem 0.7rem;
    background: #fff;
    color: #000;
    font-size: 0.95rem;
}

.search-input {
    flex: 1;
    min-width: 220px;
}

.search-button {
    border: 1px solid #000;
    border-radius: 0;
    background: #000;
    color: #fff;
    padding: 0.55rem 0.9rem;
    font-weight: 700;
}

.search-button:hover,
.search-button:focus {
    transform: none;
    background: #fff;
    color: #000;
}

.classifieds-summary {
    margin: 0.35rem 0 0.85rem;
    font-size: 0.92rem;
    border-bottom: 1px solid #000;
    padding-bottom: 0.45rem;
}

.classifieds-list {
    columns: 2;
    column-gap: 1rem;
}

.classified-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.classified-link:hover {
    text-decoration: none;
}

.classified-item {
    break-inside: avoid;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px dotted #000;
}

.classified-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border: 1px solid #000;
    margin-bottom: 0.55rem;
}

.classified-item h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    line-height: 1.25;
}

.classified-type {
    font-size: 0.72rem;
    border: 1px solid #000;
    padding: 0.1rem 0.25rem;
    margin-right: 0.25rem;
    vertical-align: middle;
}

.classified-description,
.classified-meta {
    margin: 0;
    font-size: 0.92rem;
    color: #111;
}

.classified-meta {
    margin-top: 0.25rem;
    font-style: italic;
}

.classifieds-empty {
    border: 1px solid #000;
    padding: 0.8rem;
}

.classifieds-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid #000;
    margin-top: 0.75rem;
    padding-top: 0.6rem;
    font-size: 0.92rem;
}

.classifieds-pagination a {
    color: #000;
    font-weight: 700;
}

.classifieds-pagination .disabled {
    color: #666;
}

.announcement-detail-page {
    display: grid;
    gap: 1.5rem;
}

.announcement-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid #000;
    padding-bottom: 1rem;
}

.announcement-detail-kicker {
    margin: 0 0 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.announcement-detail-subtitle {
    margin: 0.35rem 0 0;
}

.announcement-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.announcement-gallery-shell {
    display: grid;
    gap: 0.85rem;
}

.announcement-gallery-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    height: clamp(300px, 40vw, 400px);
    padding: 1rem 3.5rem;
    border: 1px solid #000;
    background: #fff;
}

.announcement-gallery-open {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
}

.announcement-gallery-image {
    width: 100%;
    height: 100%;
    max-width: 500px;
    max-height: 400px;
    object-fit: contain;
    background: #fff;
}

.announcement-gallery-control,
.announcement-gallery-lightbox-control,
.announcement-gallery-lightbox-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid #000;
    background: rgba(255, 255, 255, 0.92);
    color: #000;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.announcement-gallery-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.announcement-gallery-control.prev {
    left: 0.85rem;
}

.announcement-gallery-control.next {
    right: 0.85rem;
}

.announcement-gallery-thumbnails {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.announcement-gallery-thumb {
    width: 96px;
    height: 76px;
    padding: 0.25rem;
    border: 1px solid #000;
    background: #fff;
    cursor: pointer;
}

.announcement-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.announcement-gallery-thumb.is-active {
    box-shadow: inset 0 0 0 2px #000;
}

.announcement-gallery-lightbox {
    display: none;
}

.announcement-gallery-lightbox:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.85);
}

.announcement-gallery-lightbox img {
    width: auto;
    height: auto;
    max-width: min(92vw, 1200px);
    max-height: 88vh;
    object-fit: contain;
    background: #fff;
}

.announcement-gallery-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
}

.announcement-gallery-lightbox-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.announcement-gallery-lightbox-control.prev {
    left: 1rem;
}

.announcement-gallery-lightbox-control.next {
    right: 1rem;
}

body.gallery-lightbox-open {
    overflow: hidden;
}

.announcement-gallery-empty,
.announcement-detail-card,
.announcement-description-card {
    border: 1px solid #000;
    padding: 1rem;
    background: #fff;
}

.announcement-detail-card h2,
.announcement-description-card h2 {
    margin-bottom: 0.75rem;
}

.announcement-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.announcement-description-card p {
    margin: 0;
    white-space: pre-line;
}

@media (max-width: 768px) {
    main {
        padding: 0.95rem 0.8rem 1.6rem;
    }

    h1 {
        font-size: clamp(1.5rem, 6.2vw, 2rem);
        line-height: 1.12;
    }

    h2 {
        font-size: clamp(1.1rem, 4.8vw, 1.45rem);
        line-height: 1.2;
    }

    p,
    li,
    label,
    input,
    select,
    textarea,
    button,
    a {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    button,
    .button,
    .secondary-button,
    .back-button {
        margin: 0;
        min-height: 44px;
    }

    .classifieds-layout {
        grid-template-columns: 1fr;
    }

    .classifieds-sidebar {
        border-right: none;
        border-bottom: 1px solid #000;
        padding-right: 0;
        padding-bottom: 0.8rem;
    }

    .classifieds-list {
        columns: 1;
    }

    .classifieds-search {
        flex-direction: column;
        gap: 0.45rem;
        margin-bottom: 0.8rem;
    }

    .search-input,
    .search-select,
    .search-button {
        width: 100%;
    }

    .classifieds-pagination {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 0.45rem;
    }

    .classifieds-pagination a,
    .classifieds-pagination .disabled {
        display: block;
        width: 100%;
        padding: 0.35rem 0;
    }

    .announcement-detail-header,
    .announcement-detail-layout {
        grid-template-columns: 1fr;
        display: grid;
    }

    .announcement-detail-header {
        gap: 0.8rem;
        padding-bottom: 0.8rem;
    }

    .announcement-detail-subtitle {
        font-size: 0.9rem;
    }

    .announcement-gallery-stage {
        min-height: 260px;
        height: auto;
        padding: 0.65rem 2.4rem;
    }

    .announcement-gallery-image {
        max-width: 100%;
        max-height: 320px;
    }

    .announcement-gallery-thumbnails {
        justify-content: center;
    }

    .announcement-gallery-thumb {
        width: 82px;
        height: 68px;
    }

    .announcement-gallery-lightbox {
        padding: 1rem;
    }

    .page-header,
    .navbar-top,
    .navbar-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .page-header {
        gap: 0.7rem;
        padding-bottom: 0.8rem;
    }

    .page-actions,
    .login-actions {
        justify-content: stretch;
        gap: 0.55rem;
    }

    .page-actions .button,
    .page-actions .secondary-button,
    .login-actions a,
    .back-button {
        width: 100%;
    }

    .table-responsive {
        overflow: visible;
    }

    .data-table thead {
        display: none;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table tr {
        border: 1px solid var(--line);
        padding: 0.75rem 0.85rem;
        margin-bottom: 0.8rem;
        background: #fff;
        border-radius: 0.6rem;
    }

    .data-table td {
        border-bottom: 1px dashed #e5e7eb;
        padding: 0.45rem 0;
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 0.8rem;
        text-align: right;
    }

    .data-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #111827;
        text-align: left;
    }

    .data-table td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .data-table td.table-actions {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        text-align: right;
    }

    .data-table td.table-actions::before {
        margin-right: auto;
    }

    .data-table td.table-actions .button,
    .data-table td.table-actions .secondary-button {
        margin: 0;
    }
}

@media (max-width: 480px) {
    body {
        line-height: 1.6;
    }

    .navbar-title a {
        font-size: 1.35rem;
        letter-spacing: 0.02em;
    }

    .data-hora {
        font-size: 0.78rem;
        padding: 0.4rem 0.55rem;
    }

    .form-card,
    .profile-card,
    .card-panel,
    .announcement-detail-card,
    .announcement-description-card,
    .announcement-gallery-empty {
        padding: 0.9rem;
    }

    .classified-item h3 {
        font-size: 0.95rem;
    }

    .classified-description,
    .classified-meta {
        font-size: 0.88rem;
    }

    .announcement-gallery-stage {
        min-height: 220px;
        padding: 0.55rem 2rem;
    }

    .announcement-gallery-control,
    .announcement-gallery-lightbox-control,
    .announcement-gallery-lightbox-close {
        width: 2.35rem;
        height: 2.35rem;
        font-size: 1.2rem;
    }

    .announcement-gallery-lightbox img {
        max-height: 82vh;
    }
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
    margin-top: auto;
    border-top: 1px solid #000;
    background: #fff;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.site-footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2rem 1.5rem 1.5rem;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.site-footer-logo {
    display: block;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
}

.site-footer-tagline {
    margin-top: 0.35rem;
    color: #555;
}

.site-footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.15s;
}

.site-footer-nav a:hover {
    opacity: 0.6;
}

.site-footer-bottom {
    border-top: 1px solid #e5e5e5;
    padding: 0.85rem 1.5rem;
    text-align: center;
    color: #777;
    font-size: 0.8rem;
}

@media (max-width: 480px) {
    .site-footer-inner {
        flex-direction: column;
        gap: 1.5rem;
    }
}