@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Roboto:wght@400;500;700&display=swap');

/* --- Reset e global --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
    color: #2b2b2b;
    background-color: #f8f6f1;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button, .btn {
    font-family: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* --- Container --- */
.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

/* --- Header --- */
header {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    background: rgba(248, 246, 241, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(57, 57, 57, 0.08);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}

.logo {
    max-height: 72px;
    width: auto;
}

nav {
    flex: 1;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
    justify-content: flex-end;
}

nav ul li a {
    color: #424242;
    font-weight: 500;
    transition: color 0.25s ease, transform 0.25s ease;
}

nav ul li a:hover {
    color: #0f4c5c;
    transform: translateY(-1px);
}

nav ul li a.active {
    color: #0f4c5c;
}

/* --- Header transparente sobre o banner (apenas na home) --- */
body.page-home header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
}

body.page-home header nav ul li a {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

body.page-home header nav ul li a:hover,
body.page-home header nav ul li a.active {
    color: #f0c674;
}

body.page-home main {
    padding-top: 0;
}

/* --- Hero --- */
.hero-section {
    position: relative;
    padding: clamp(64px, 8vw, 120px) 0 clamp(80px, 10vw, 160px);
    min-height: clamp(420px, 70vh, 720px);
    display: flex;
    align-items: center;
    color: #fff;
    background-image:
        linear-gradient(180deg, rgba(8, 22, 32, 0.55) 0%, rgba(8, 22, 32, 0.55) 100%),
        var(--hero-bg, linear-gradient(135deg, #0f4c5c 0%, #1a2a35 60%, #0c3140 100%));
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #1a2a35;
}

/* Banner full-bleed: ocupa 100% da largura da viewport mesmo dentro de container,
   e na home ainda passa por baixo do header (margem negativa compensa o header). */
.hero-fullbleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

body.page-home .hero-fullbleed {
    /* O header na home é position:absolute (transparente sobre o banner),
       então o banner ocupa o topo. Reservamos espaço para o cabeçalho. */
    padding-top: clamp(140px, 14vw, 220px);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 70%, rgba(248,246,241,1) 100%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    text-align: center;
}

.hero-content {
    max-width: 760px;
    margin: 0 auto 36px;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-content h1 span {
    color: #d1b266;
}

.hero-content p {
    color: #f0eee8;
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    max-width: 720px;
    margin: 0 auto;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-search {
    position: relative;
    margin: 28px auto 0;
    max-width: 1080px;
}

.hero-search-eyebrow {
    color: #fff;
    font-weight: 600;
    margin: 0 0 16px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* --- Search card (estilo: abas douradas com a ativa branca, igual ao print) --- */
.search-card {
    position: relative;
    background: #ffffff;
    padding: 22px 26px;
    border-radius: 14px;
    box-shadow: 0 28px 60px rgba(14, 33, 48, 0.25);
    text-align: left;
    color: #2b2b2b;
}

/* Abas no topo, centralizadas, "espreitando" para fora do cartão */
.search-card-tabs {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0;
    margin: -42px auto 18px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

.search-tab {
    border: 0;
    background: #d1b266;
    color: #2b2b2b;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 26px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    margin: 0 4px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.08);
}

.search-tab:hover:not(.active) {
    background: #c0a358;
    transform: translateY(-1px);
}

.search-tab.active {
    background: #ffffff;
    color: #1f1f1f;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.08);
    cursor: default;
    transform: translateY(2px);
    padding-bottom: 14px;
}

/* Grade dos campos */
.search-card-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
    gap: 14px;
    align-items: end;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.search-field span {
    font-size: 0.74rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    text-align: left;
}

.search-card input,
.search-card select {
    width: 100%;
    min-width: 0;
    border: 1px solid #d8d6d0;
    border-radius: 8px;
    padding: 11px 12px;
    font-size: 0.95rem;
    color: #2b2b2b;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-card input::placeholder { color: #b9b9b9; }

.search-card input:focus,
.search-card select:focus {
    outline: none;
    border-color: #d1b266;
    box-shadow: 0 0 0 3px rgba(209, 178, 102, 0.25);
}

.search-submit {
    background: #d1b266;
    color: #1f1f1f;
    border: 0;
    border-radius: 8px;
    padding: 13px 26px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    height: 44px;
    align-self: end;
}

.search-submit:hover { background: #b59950; transform: translateY(-1px); }

/* Versão compacta usada nas listagens */
.search-card-compact {
    margin-top: 28px;
    padding: 18px 22px;
    box-shadow: 0 12px 40px rgba(14, 33, 48, 0.08);
}
.search-card-compact .search-card-grid { gap: 10px; }
.search-card-compact input, .search-card-compact select { padding: 10px 12px; }
.search-card-compact .search-submit { padding: 11px 22px; height: 42px; }

/* --- Featured / listing helpers --- */
.featured-section {
    padding: 56px 0 24px;
}

.featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.featured-header h2 {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    color: #1f1f1f;
}

.featured-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.featured-link {
    color: #0f4c5c;
    font-weight: 600;
    border-bottom: 1px dashed rgba(15, 76, 92, 0.5);
}
.featured-link:hover { color: #d1b266; border-color: #d1b266; }

.listing-search { padding: 28px 0 0; }
.listing-search .page-title { margin-bottom: 8px; }

.listing-intro {
    color: #555;
    font-size: 1rem;
    max-width: 820px;
    margin: 0 0 18px;
}

.listing-results { padding: 16px 0 40px; }

/* --- Conteúdo SEO da home --- */
.seo-content {
    padding: 24px 0 56px;
    max-width: 880px;
}

.seo-content h2 {
    font-family: 'Montserrat', sans-serif;
    color: #1f1f1f;
    margin: 0 0 12px;
}

.seo-content p {
    color: #4a4a4a;
    font-size: 1rem;
    margin: 0 0 16px;
}

.seo-bullets {
    list-style: disc;
    padding-left: 22px;
    color: #4a4a4a;
}

.seo-bullets li {
    margin-bottom: 6px;
}

.listing-filter-info {
    background: #fff8e6;
    border: 1px solid #f0d683;
    color: #5b4615;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 0.92rem;
}

.listing-filter-info a {
    margin-left: 8px;
    color: #5b4615;
    text-decoration: underline;
    font-weight: 600;
}

/* Card badge */
.property-card-image { position: relative; }
.property-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background: rgba(15, 76, 92, 0.95);
    backdrop-filter: blur(4px);
}
.property-card-badge-rent { background: rgba(209, 178, 102, 0.95); color: #1f1f1f; }

/* --- Propriedade Cards --- */
.property-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.property-card {
    background: #ffffff;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    box-shadow: 0 18px 55px rgba(14, 33, 48, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 90px rgba(14, 33, 48, 0.14);
}

.property-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.property-card-body {
    padding: 26px 24px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.property-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: #1f1f1f;
    margin: 0;
}

.property-card-code {
    font-size: 0.82rem;
    color: #6a6a6a;
    margin: 4px 0 0;
    line-height: 1.3;
}

.property-card-location,
.property-card-price {
    color: #5d5d5d;
    font-size: 0.97rem;
}

.property-card-price {
    font-family: 'Montserrat', sans-serif;
    color: #0f4c5c;
    font-size: 1.1rem;
}

.property-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.property-card-features li {
    background: #f3f2ee;
    color: #545454;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.92rem;
}

.property-card-description {
    color: #6d6d6d;
    font-size: 0.96rem;
    line-height: 1.75;
    flex: 1;
}


.property-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-primary,
.btn-success,
.button,
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 16px;
    padding: 12px 18px;
    font-weight: 600;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.btn-primary {
    background: #0f4c5c;
    color: #fff;
}

.btn-primary:hover {
    background: #0b3946;
    transform: translateY(-1px);
}

.btn-success,
.btn-whatsapp {
    background: #d1b266;
    color: #1f1f1f;
}

.btn-success:hover,
.btn-whatsapp:hover {
    background: #b59950;
    transform: translateY(-1px);
}

.btn-share {
    background: transparent;
    color: #1f1f1f;
    border: none;
    padding: 0;
    gap: 6px;
}

.btn-share:hover {
    background: transparent;
    transform: none;
}

.share-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 22, 34, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.share-modal-overlay.open {
    display: flex;
}

.share-modal {
    width: min(560px, 100%);
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.16);
    overflow: hidden;
}

.share-modal-header {
    padding: 24px 28px 16px;
    border-bottom: 1px solid #e4e4e4;
}

.share-modal-header h2 {
    margin: 0;
    font-size: 1.35rem;
    color: #1f1f1f;
}

.share-modal-body {
    padding: 24px 28px;
}

.share-modal-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.share-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid #dcdcdc;
    background: #f7f7f7;
    font-weight: 600;
    color: #1f1f1f;
    text-decoration: none;
    cursor: pointer;
}

.share-option i {
    font-size: 1rem;
}

.share-link-box {
    margin-top: 20px;
    border: 1px solid #e2e2e2;
    border-radius: 14px;
    padding: 16px 18px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.share-link-box span {
    color: #545454;
    font-size: 0.95rem;
    word-break: break-all;
}

.share-link-box button {
    min-width: 120px;
}

.share-modal-close {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #dcdcdc;
    background: #ffffff;
    color: #1f1f1f;
    cursor: pointer;
}

.share-modal-close:hover {
    background: #f5f5f5;
}

/* --- Página de detalhes --- */
.property-detail-page {
    padding: 48px 0 80px;
}

.property-detail-page .page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 4px;
    color: #1f1f1f;
}

.property-detail-page .property-code {
    font-size: 0.9rem;
    color: #6a6a6a;
    margin: 0 0 16px;
    line-height: 1.3;
}

.property-location {
    color: #6a6a6a;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}

.property-gallery {
    --gallery-unit: 88px;
    --gallery-gap: 8px;
    margin-bottom: 36px;
}

.property-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--gallery-unit), max-content));
    justify-content: center;
    gap: var(--gallery-gap);
    max-width: 100%;
}

.gallery-frame {
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
    background: #eef1f3;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.gallery-frame:hover {
    box-shadow: 0 8px 24px rgba(14, 33, 48, 0.14);
    transform: translateY(-1px);
}

.gallery-frame:focus-visible {
    outline: 3px solid #0f4c5c;
    outline-offset: 2px;
}

/* Mesma escala: lado curto = --gallery-unit; lado longo = 4/3 do curto */
.gallery-frame--portrait {
    width: var(--gallery-unit);
    height: calc(var(--gallery-unit) * 4 / 3);
}

.gallery-frame--landscape {
    width: calc(var(--gallery-unit) * 4 / 3);
    height: var(--gallery-unit);
}

.gallery-frame--square {
    width: var(--gallery-unit);
    height: var(--gallery-unit);
}

.gallery-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
}

.property-gallery:not(.property-gallery--ready) .property-gallery-grid {
    visibility: hidden;
    min-height: calc(var(--gallery-unit) * 4 / 3 * 2 + var(--gallery-gap));
}

.property-gallery.property-gallery--ready .property-gallery-grid {
    visibility: visible;
    overflow: hidden;
}

.property-gallery.property-gallery--ready {
    transition: opacity 0.2s ease;
}

/* Lightbox da galeria de detalhes */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10, 14, 20, 0.92);
    padding: 24px 72px;
}

.gallery-lightbox.open {
    display: flex;
}

.gallery-lightbox-content {
    position: relative;
    max-width: min(1200px, 100%);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.gallery-lightbox-content img {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox-counter {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.gallery-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 2;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gallery-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.gallery-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.gallery-lightbox-prev {
    left: 20px;
}

.gallery-lightbox-next {
    right: 20px;
}

.property-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

.property-details-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.property-main-info {
    background: #ffffff;
    border-radius: 30px;
    padding: 32px;
    box-shadow: 0 24px 70px rgba(14, 33, 48, 0.07);
}

.property-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #0f4c5c;
    margin-bottom: 24px;
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.property-features span {
    background: #f3f2ee;
    color: #4a4a4a;
    border-radius: 999px;
    padding: 12px 16px;
    font-size: 0.95rem;
}

.property-main-info h2,
.property-main-info h3 {
    margin-top: 0;
}

.property-main-info p {
    color: #5e5e5e;
    font-size: 1rem;
    line-height: 1.85;
}

.property-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-agent-box {
    background: #0f4c5c;
    color: #fff;
    border-radius: 28px;
    padding: 28px;
    display: grid;
    gap: 18px;
}

.contact-agent-box h3 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
}

.contact-agent-box p {
    margin: 0;
    color: rgba(255,255,255,0.9);
}

.contact-agent-box .button {
    background: #d1b266;
    color: #1f1f1f;
}

.contact-agent-box .button:hover {
    background: #b59950;
}

/* --- Textos auxiliares --- */
.message-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(14, 33, 48, 0.06);
}

.message-box.info {
    border-left: 4px solid #0f4c5c;
}

.message-box.error {
    border-left: 4px solid #d15844;
}

/* --- Footer --- */
footer {
    padding: 32px 0;
    background: #121212;
    color: #d7d7d7;
}

footer p {
    margin: 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem 0.75rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    line-height: 1.4;
}

.footer-brand p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}

/* Logo proporcional ao texto do rodapé (pequeno, não domina a linha) */
.footer-brand .footer-brand-logo {
    max-height: 1.35em;
    max-width: 6.5rem;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* --- Media queries --- */
@media (max-width: 1024px) {
    .property-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 1024px) {
    .search-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .search-submit { grid-column: span 3; width: 100%; }
}

@media (max-width: 820px) {
    .container {
        width: min(100%, calc(100% - 32px));
    }

    .hero-section {
        padding: 56px 0 64px;
        min-height: auto;
        background-attachment: scroll;
    }

    .hero-search { margin-top: 22px; }

    .search-card { padding: 18px 18px; }
    .search-card-tabs { margin-top: -36px; flex-wrap: wrap; max-width: 100%; }
    .search-tab {
        padding: 10px 18px;
        font-size: 0.88rem;
        flex: 1 1 auto;
        margin: 0 2px;
    }

    .search-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .search-submit { grid-column: span 2; width: 100%; }

    .property-grid {
        grid-template-columns: 1fr;
    }

    .property-details-section {
        grid-template-columns: 1fr;
    }

    .gallery-lightbox {
        padding: 16px 56px;
    }

    .gallery-lightbox-prev {
        left: 8px;
    }

    .gallery-lightbox-next {
        right: 8px;
    }
}

@media (max-width: 520px) {
    .search-card { padding: 16px 14px; }
    .search-card-tabs {
        margin: -34px auto 14px;
        gap: 0;
        width: 100%;
        justify-content: center;
    }
    .search-tab {
        padding: 9px 12px;
        font-size: 0.82rem;
        margin: 0 2px;
    }
    .search-card-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .search-submit { grid-column: span 1; width: 100%; padding: 13px 18px; }
}

@media (max-width: 600px) {
    header .container {
        flex-direction: column;
        align-items: stretch;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }

    .property-card-body {
        padding: 22px;
    }

    .property-card-features {
        flex-direction: column;
        gap: 10px;
    }

}

@media (max-width: 420px) {
    .hero-content h1 {
        font-size: 2.4rem;
    }

    .property-card-actions,
    .property-features {
        gap: 10px;
    }
}

/* --- Admin do site --- */
.admin-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 0 48px;
}

.admin-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin: 0 0 8px;
    color: #1f1f1f;
}

.admin-toolbar {
    margin-bottom: 20px;
}

.admin-back {
    display: inline-block;
    margin-bottom: 12px;
    color: #0f4c5c;
    font-weight: 500;
}

.admin-muted {
    color: #666;
    font-size: 0.95rem;
    margin: 0 0 12px;
}

.admin-intro {
    margin-bottom: 20px;
}

.admin-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-login-card {
    max-width: 420px;
    margin: 40px auto;
}

.admin-form label {
    display: block;
    margin-bottom: 14px;
}

.admin-form label span {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}

.admin-form input[type="text"],
.admin-form input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.admin-btn-wide {
    width: 100%;
    margin-top: 8px;
}

.admin-alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.admin-alert-error {
    background: #fdecea;
    color: #611a15;
    border: 1px solid #f5c6cb;
}

.admin-alert-ok {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

.admin-table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #fafafa;
    font-weight: 600;
}

.admin-table-link {
    margin-right: 10px;
}

.admin-table-link-muted {
    color: #0f4c5c;
    font-size: 0.9rem;
    text-decoration: underline;
}

.admin-ga-path {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    color: #334155;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
    word-break: break-all;
}

/* --- Cartão de armazenamento (gráfico de uso de imagens) --- */
.storage-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 14px;
    padding: 20px 22px 22px;
    margin-bottom: 26px;
    box-shadow: 0 6px 18px rgba(15, 76, 92, 0.04);
}

.storage-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.storage-head h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    margin: 0 0 4px;
    color: #1f1f1f;
}

.storage-sub {
    margin: 0;
    font-size: 0.85rem;
}

.storage-sub code {
    background: #f4f1ea;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

.storage-refresh {
    margin-left: 8px;
    color: #0f4c5c;
    text-decoration: underline;
}

.storage-numbers {
    text-align: right;
    line-height: 1.15;
}

.storage-num {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f4c5c;
}

.storage-of {
    color: #666;
    font-size: 0.9rem;
    margin-top: 2px;
}

.storage-bar {
    position: relative;
    height: 18px;
    background: #f1eee6;
    border-radius: 999px;
    margin: 8px 0 36px;
}

.storage-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2ecc71, #1f8f4d);
    transition: width 0.4s ease;
    max-width: 100%;
}

.storage-warn .storage-bar-fill {
    background: linear-gradient(90deg, #f1c40f, #e67e22);
}

.storage-critical .storage-bar-fill {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.storage-bar-marker {
    position: absolute;
    top: -8px;
    bottom: -8px;
    width: 2px;
    background: #1f1f1f;
    transform: translateX(-1px);
    pointer-events: none;
}

.storage-bar-marker-label {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1f1f1f;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.storage-bar-marker-label::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #1f1f1f;
}

.storage-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    color: #555;
    font-size: 0.9rem;
}

.storage-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.storage-tag.storage-ok {
    background: #e7f7ec;
    color: #1f8f4d;
}

.storage-tag.storage-warn {
    background: #fff5d6;
    color: #b07a00;
}

.storage-tag.storage-critical {
    background: #fdecea;
    color: #c0392b;
}

.storage-path {
    color: #999;
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    font-family: 'Roboto Mono', Menlo, monospace;
}

.storage-alert {
    background: #fdecea;
    color: #c0392b;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .storage-numbers {
        text-align: left;
    }
}

.admin-section {
    background: #fff;
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    margin: 0 0 10px;
}

.admin-sortable {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.admin-sort-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    cursor: grab;
}

.admin-sort-item:active {
    cursor: grabbing;
}

.admin-sort-ghost {
    opacity: 0.45;
}

.admin-drag-hint {
    color: #999;
    font-size: 1.1rem;
    user-select: none;
}

.admin-sort-name {
    flex: 1;
    font-size: 0.9rem;
    color: #444;
    word-break: break-word;
}

.admin-sort-item img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
}

.admin-checkboxes .admin-check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.admin-check-row input {
    margin-top: 4px;
}
