/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1e3a5f;
    --primary-dark: #152840;
    --accent: #d4af37;
    --accent-dark: #b8962f;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --text: #1a1a1a;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #3b82f6;
    --error: #ef4444;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 90px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-dark);
}

.nav-link.nav-button {
    background: rgb(212, 175, 55);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-link.nav-button:hover {
    background: rgb(190, 155, 45);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 400px;
    background: linear-gradient(rgba(30, 58, 95, 0.8), rgba(30, 58, 95, 0.8)), url('../images/hero-real-estate.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}

.hero-content {
    text-align: center;
    width: 100%;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.search-grid .btn-search {
    white-space: nowrap;
    padding: 0.875rem 1.5rem;
}

@media (max-width: 768px) {
    .search-grid {
        grid-template-columns: 1fr;
    }
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    color: var(--text-light);
}

/* Sections */
.section {
    padding: 2rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    color: var(--primary);
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.property-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
}

.property-content {
    padding: 1.5rem;
}

.property-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    color: white;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.property-badge-venda {
    background: #10b981;
}

.property-badge-locacao {
    background: #3b82f6;
}

.property-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.property-location {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.property-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 1rem;
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.property-features span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.property-features i {
    color: var(--primary);
    font-size: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--accent-dark);
}

.btn-ver-imoveis {
    background: var(--accent-dark);
    color: white;
    border: 2px solid var(--accent-dark);
}

.btn-ver-imoveis:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-light {
    background: white;
    color: var(--primary);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

/* Input */
.input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Page Header */
.page-header {
    background: var(--primary);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Filters */
.filters-container {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}

.filters-panel {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary);
}

.filters-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.results-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.results-count {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0;
    margin-top: 0;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

/* Pagination */
.pagination-container {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    background: white;
    color: var(--primary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-dots {
    padding: 0 0.5rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.logo-img-white {
    height: 70px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-subtitle {
    margin-bottom: 1rem;
}

.footer-text {
    opacity: 0.8;
    margin-bottom: 1rem;
}

/* Links rápidos removidos */

.footer-contact {
    list-style: none;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-contact-item > i {
    color: var(--accent);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.footer-contact-item span,
.footer-contact-item a {
    color: white;
    text-decoration: none;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
    width: 100%;
}

.footer-contact-link:hover {
    opacity: 0.8;
}

.footer-contact-link i {
    color: var(--accent);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.social-link:hover {
    background: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-social {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    z-index: 999;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 5rem 0;
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary);
}

.map-container {
    margin-top: 3rem;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 0.8;
}

.login-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-light);
}

.tab {
    padding: 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    color: var(--text-light);
}

.tab.active {
    background: white;
    color: var(--primary);
    font-weight: 600;
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.tab-description {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-light);
}

/* Dashboard */
.dashboard-container {
    padding: 2rem;
    background: var(--bg-light);
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card-dash {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin: 0.5rem 0;
}

.stat-progress {
    height: 4px;
    background: var(--bg-light);
    border-radius: 2px;
    margin: 0.5rem 0;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
}

.stat-change {
    font-size: 0.875rem;
}

.stat-change.positive {
    color: var(--success);
}

.stat-icon-dash {
    font-size: 2.5rem;
    color: var(--accent);
    opacity: 0.2;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dashboard-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 2px solid var(--border);
    color: var(--primary);
}

.data-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-warning { background: #fef3c7; color: #92400e; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-info { background: #dbeafe; color: #1e40af; }

.btn-icon {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.btn-icon:hover {
    color: var(--accent);
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.activity-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.activity-icon.success { color: var(--success); }
.activity-icon.info { color: var(--info); }
.activity-icon.warning { color: var(--warning); }

.activity-text {
    font-weight: 500;
}

.activity-time {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Property Detail */
.property-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.property-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.main-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    transition: none;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.gallery-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.gallery-btn:hover {
    background: white;
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 miniaturas por linha em telas maiores */
    gap: 0.5rem;
}

/* Ajustes responsivos para miniaturas */
@media (max-width: 1200px) {
    .thumbnails { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
    .thumbnails { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .thumbnails { grid-template-columns: repeat(2, 1fr); }
}

.thumbnail {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.thumbnail.active,
.thumbnail:hover {
    opacity: 1;
}

.property-header-detail {
    margin-bottom: 2rem;
}

.property-header-detail > div {
    width: 100%;
}

.property-title-detail {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0.5rem 0;
}

.property-location-detail {
    color: var(--text-light);
    margin-top: 0.5rem;
}

.property-address {
    color: var(--text-light);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Botões de Compartilhamento */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-share {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none !important;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: white;
    min-width: 50px;
    height: 50px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    position: relative;
    z-index: 1;
    touch-action: manipulation;
}

.btn-share-primary {
    background: var(--primary) !important;
    color: white !important;
    gap: 0.5rem;
}

.btn-share-primary:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.btn-share-facebook {
    background: #1877f2 !important;
    color: white !important;
    font-size: 1.2rem;
}

.btn-share-facebook:hover {
    background: #166fe5 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.btn-share-whatsapp {
    background: #25d366 !important;
    color: white !important;
    font-size: 1.2rem;
}

.btn-share-whatsapp:hover {
    background: #1fa855 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

@media (max-width: 768px) {
    .btn-share {
        min-width: 45px !important;
        height: 45px !important;
        padding: 0.5rem 1rem !important;
    }
    
    .btn-share-primary {
        font-size: 0.875rem !important;
    }
    
    .btn-share-facebook,
    .btn-share-whatsapp {
        font-size: 1.1rem !important;
    }
    
    .share-buttons {
        justify-content: flex-start;
        gap: 0.5rem;
    }
}

.property-price-detail {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent);
    margin: 1rem 0;
}

.property-features-detail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.feature-item-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.feature-item-detail i {
    color: var(--accent);
}

.property-description,
.property-features-list,
.property-proximities {
    margin-bottom: 2rem;
}

.property-costs {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cost-item:last-child {
    border-bottom: none;
}

.cost-item strong {
    color: var(--primary);
}

.property-description h2,
.property-features-list h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.features-grid-detail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-check i {
    color: var(--success);
}

.contact-form-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

/* Forçar prioridade quando combinado com .form-row */
.form-row.form-row-5 {
    grid-template-columns: repeat(5, 1fr) !important;
}

@media (max-width: 1200px) {
    .form-row.form-row-5 { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 768px) {
    .form-row.form-row-5 { grid-template-columns: 1fr !important; }
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.3s;
}

.back-button:hover {
    color: var(--accent);
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.about-text-rounded {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.value-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.mission-card,
.vision-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.reason-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
}

.reason-item i {
    font-size: 1.5rem;
    color: var(--success);
    flex-shrink: 0;
}

/* Utilities */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 2rem; }
.bg-light { background: var(--bg-light); }
.link-primary { color: var(--primary); text-decoration: none; transition: color 0.3s; }
.link-primary:hover { color: var(--accent); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* Responsive */
@media (max-width: 768px) {
    .nav { display: none; }
    .menu-toggle { display: block; }
    .hero-title { font-size: 2rem; }
    .search-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .property-detail { grid-template-columns: 1fr; }
    .property-gallery { position: static; }
    .about-content { grid-template-columns: 1fr; }
    .mission-vision { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    /* When mobile menu is opened via JS we add .open to .nav */
    .nav.open {
        display: flex !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 9999;
    }
}

/* Correções de mobile para o herói (evitar corte do título e do box de busca) */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 420px;
        padding: 2.5rem 0 2rem;
        align-items: flex-start;
    }
    .hero-content { width: 100%; }
    .hero-title { font-size: 1.75rem; margin-bottom: 1rem; }
    .search-card { width: 100%; padding: 1rem; }
}

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.admin-sidebar {
    width: 250px;
    background: var(--primary);
    color: white;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(0,0,0,0.1);
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
}

.admin-sidebar.collapsed {
    transform: translateX(-250px);
}

.admin-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    background-color: white;
}

.admin-sidebar-header img {
    max-width: 150px;
    height: auto;
}

.sidebar-user {
    margin: 0;
    color: var(--primary);
    background: #fff;
    border-radius: 6px;
    padding:  0;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.35;
}

.admin-sidebar-nav {
    padding: 1rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.admin-sidebar-nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

.admin-sidebar-nav a.active {
    background-color: white;
    color: var(--primary);
}

.admin-sidebar-nav i {
    width: 20px;
    margin-right: 0.75rem;
    text-align: center;
}

.admin-main {
    flex: 1;
    margin-left: 250px;
    transition: margin-left 0.3s ease;
}

.admin-main.sidebar-collapsed {
    margin-left: 0;
}

.admin-footer.sidebar-collapsed {
    margin-left: 0;
    width: 100%;
}

.admin-header {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-content {
    padding: 2rem;
    min-height: calc(100vh - 120px);
}

.admin-footer {
    background: var(--bg-light);
    padding: 1rem 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-left: 250px;
    width: calc(100% - 250px);
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: var(--bg-light);
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-250px);
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    color: var(--text);
}

.card-body {
    padding: 1.5rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

.table th:first-child {
    text-align: left;
}

.table th:last-child {
    text-align: right;
}

.table td {
    vertical-align: middle;
    text-align: center;
}

.table td:first-child {
    text-align: left;
}

.table td:last-child {
    text-align: right;
}

.table tbody tr:hover {
    background-color: var(--bg-light);
}

.table .btn-icon {
    margin: 0 0.125rem;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
}

/* Buttons */
.btn-icon {
    background: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    margin: 0 0.25rem;
}

.btn-icon:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.3);
}

.btn-icon.btn-danger {
    background-color: var(--error);
    border-color: var(--error);
    color: white;
}

.btn-icon.btn-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-icon.btn-success {
    background-color: var(--success);
    border-color: var(--success);
    color: white;
}

.btn-icon.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-icon.btn-warning {
    background-color: var(--warning);
    border-color: var(--warning);
    color: white;
}

.btn-icon.btn-warning:hover {
    background-color: #d97706;
    border-color: #d97706;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-icon.btn-info {
    background-color: var(--info);
    border-color: var(--info);
    color: white;
}

.btn-icon.btn-info:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert .alert-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text);
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-group .input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group .input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-group select.input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    appearance: none;
    cursor: pointer;
}

/* Dashboard Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 2rem;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    color: white;
    font-size: 1.5rem;
}

.dashboard-card h3 {
    margin: 0 0 1rem 0;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.metric-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1.2;
    text-align: center;
}

.table-responsive {
    margin-top: 1rem;
}

.table {
    margin-top: 0;
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos para formulários de configuração */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group:last-child {
    margin-bottom: 0;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 2rem 0;
    border: none;
}

.form-section h4 {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
    display: inline-block;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Estilos para login */
.login-logo-container {
    text-align: center;
    padding: 1.5rem 1.5rem 0;
}

.login-logo-container img {
    width: 250px;
    height: auto;
}

.login-error {
    color: #ef4444;
    margin-top: 1rem;
    text-align: center;
}

.form-options.flex-end {
    justify-content: flex-end;
}

/* Estilos para imagem em quem-somos */
.quem-somos-foto {
    max-width: 400px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Estilos para painel/imoveis.php - Filtros */
.filters-section {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filters-form .filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filters-form .filter-group {
    display: flex;
    flex-direction: column;
}

.filters-form .filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.filters-form .filter-group .input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.form-row-4 {
    grid-template-columns: repeat(4, 1fr);
}

.form-row-6 {
    grid-template-columns: repeat(6, 1fr);
}

.form-row-7 {
    grid-template-columns: repeat(7, 1fr);
}

@media (max-width: 1200px) {
    .form-row-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-row-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    .form-row-7 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .form-row-4 {
        grid-template-columns: 1fr;
    }
    .form-row-6 {
        grid-template-columns: 1fr;
    }
    .form-row-7 {
        grid-template-columns: 1fr;
    }
}


.form-group textarea.input {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Tabela de imóveis */
.photo-code-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.no-photo {
    width: 120px;
    height: 90px;
    background: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 1.5rem;
}

.imovel-thumb {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.property-code {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.value-cell {
    font-size: 0.9rem;
}

.status-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.status-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.75rem;
    color: #666;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.photo-item {
    position: relative;
}

.photo-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    display: block;
}

.photo-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    justify-content: center;
    align-items: center;
}

.photo-actions .btn {
    padding: 6px;
    font-size: 12px;
    line-height: 1;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-actions .btn-sm {
    padding: 6px;
    font-size: 12px;
}

.photo-actions .btn-outline {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #cbd5e1;
    color: #111827;
}

.photo-actions .btn-outline:hover {
    background: #fff;
    border-color: #94a3b8;
}

.photo-actions .btn-danger {
    background: #ef4444;
    border: 1px solid #ef4444;
    color: #fff;
}

.photo-actions .btn-capa-ativa {
    background: #fbbf24 !important;
    border-color: #f59e0b !important;
    color: #fff !important;
}

.photo-actions .btn-capa-ativa:hover {
    background: #f59e0b !important;
    border-color: #d97706 !important;
}

/* Paginação */
.admin-content .pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.pagination-info {
    font-size: 0.875rem;
    color: #6b7280;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 0.75rem;
    min-width: auto;
    font-size: 0.875rem;
}

.pagination-numbers {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    margin: 0 0.5rem;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination-number:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}

.pagination-number.pagination-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    cursor: default;
}

.pagination-number.pagination-active:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Responsivo - Painel Imóveis */
@media (max-width: 768px) {
    .filters-form .filter-row {
        grid-template-columns: 1fr;
    }
    
    .filter-actions,
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination-controls {
        justify-content: center;
        width: 100%;
    }
    
    .pagination-numbers {
        order: -1;
        margin: 0;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination-number {
        min-width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }
}

/* Utilitários para estilos inline removidos */
.form-group-full-width {
    grid-column: 1 / -1;
}

.text-center {
    text-align: center;
}

.text-gray {
    color: #999;
}

.iframe-map {
    border: 0;
    border-radius: 8px;
}

.photos-hint { display: inline-block; margin-left: 8px; font-size: 12px; color: #666; }
.photo-index-inline { display: inline-block; font-weight: 600; margin-right: 6px; color: #333; }
.photo-box img { width: 100%; height: auto; display: block; }
.photos-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: start; }
.photos-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: start; }
.photo-box { border: 1px solid #ddd; padding: 8px; margin: 8px; text-align: center; position: relative; }
.photo-position-box { position: absolute; top: -10px; left: -10px; background: #f0f0f0; border: 1px solid #ddd; padding: 2px 6px; border-radius: 4px; font-size: 12px; }

/* Watermark overlay for property gallery (only affects imovel.php watermark-gallery) */
.watermark-gallery .main-image {
  position: relative;
}
.watermark-gallery .main-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/imoveis/marca-dagua.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: normal;
}
.watermark-gallery .thumbnails .thumb-wrap {
  position: relative;
  display: block;
  margin: 0;
}
.watermark-gallery .thumbnails .thumb-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/imoveis/marca-dagua.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  opacity: 0.5;
  pointer-events: none;
}