/* RESET E VARIÁVEIS */
* {
    margin: 0;
    padding: 40;
    box-sizing: border-box;
}

:root {
    --primary-color: #636363;
    --secondary-color: #636363;
    --accent-color: #00d4ff;
    --text-color: #333;
    --light-text: #666;
    --border-color: #ddd;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* LOGO SECTION */
.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-section:hover {
    transform: scale(1.05);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 5px;
}

.logo img {
    width: auto;
    height: 100%;
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.company-name {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    letter-spacing: 1px;
}

.company-tagline {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* NAVEGAÇÃO */
.nav {
    display: flex;
    gap: 15px;
}

.nav-btn {
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    color: rgb(255, 254, 254);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-btn:hover,
.nav-btn.active {
    border-bottom-color: rgb(255, 196, 0);
    opacity: 1;
}

.nav-btn:not(.active) {
    opacity: 0.8;
}

/* MAIN */
.main {
    min-height:100vh;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.hero-section.active {
    padding: 0;
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HERO VIDEO CONTAINER */
.hero-video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.603), rgba(255, 255, 255, 0));
    z-index: 2;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    color: rgb(255, 254, 254);
    width: 100%;
    padding: 40px 20px;
}

/* HERO */
.hero {
    text-align: center;
    position: relative;
    z-index: 3;
    padding: 80px 20px;
    color: white;
    margin-bottom: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: auto;
    margin-top: 0;
}

.hero-content h2 {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 3px 3px 12px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
    font-weight: 300;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* BOTÕES */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: rgb(255, 255, 255);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,102,204,0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-small {
    padding: 8px 15px;
    font-size: 14px;
}

.btn-danger {
    background-color: var(--danger-color);
    color: rgb(0, 0, 0);
}

.btn-danger:hover {
    background-color: #c82333;
}

/* FEATURES */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: rgb(255, 255, 255);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,102,204,0.15);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 20px;
}

.feature-card p {
    color: var(--light-text);
    line-height: 1.6;
}

/* FILTROS */
.filters-section {
    background: rgba(255, 255, 255, 0.589);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.filters-section h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 28px;
}

.search-bar {
    margin-bottom: 20px;
}

.search-bar input {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0,102,204,0.2);
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.filter-group input,
.filter-group select {
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0,102,204,0.2);
}

/* LISTAGEM DE IMÓVEIS */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.listing-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.listing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,102,204,0.15);
    border-color: var(--primary-color);
}

.listing-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #e0e0e0;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.listing-card:hover .listing-image img {
    transform: scale(1.08);
}

.listing-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: bold;
}

.listing-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.listing-favorite:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
}

.listing-favorite.active {
    color: var(--danger-color);
}

.listing-info {
    padding: 20px;
}

.listing-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-color);
}

.listing-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.listing-location {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.listing-features {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--light-text);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    flex-wrap: wrap;
}

.listing-feature {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 12px 48px rgba(0,0,0,0.2);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: var(--text-color);
}

.modal-body h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 28px;
}

.modal-price {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.modal-gallery-main {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.modal-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: var(--bg-light);
    border-radius: 10px;
}

.thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    opacity: 0.7;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary-color);
    opacity: 1;
    box-shadow: 0 0 8px rgba(0,102,204,0.4);
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.modal-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-gallery img:hover {
    transform: scale(1.08);
}

.modal-features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.modal-features-list li {
    list-style: none;
    padding: 10px;
    background-color: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-features-list li:before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
    font-size: 18px;
}

.modal-agent {
    background: linear-gradient(135deg, rgba(0,102,204,0.05), rgba(0,168,232,0.05));
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.modal-agent h3 {
    margin-top: 0;
}

.modal-agent-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-agent-info p {
    margin: 0;
}

.modal-agent-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.modal-agent-info a:hover {
    text-decoration: underline;
}

/* PÁGINA CONTATO */
.contact-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.contact-section h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 32px;
}

.contact-intro {
    color: var(--light-text);
    margin-bottom: 40px;
    font-size: 18px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-card {
    background: linear-gradient(135deg, rgba(0,102,204,0.05), rgba(0,168,232,0.05));
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--light-text);
    margin: 0;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0,102,204,0.2);
}

/* MENSAGEM VAZIA */
.empty-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--light-text);
    font-size: 18px;
}

/* FOOTER */
.footer {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .nav-btn {
        flex: 1;
        text-align: center;
    }

    .hero-video-container {
        height: 100vh;
    }

    .hero {
        min-height: auto;
        margin-top: 0;
    }

    .hero-content h2 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .main-image {
        height: 250px;
    }

    .modal-gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }

    .thumbnail {
        height: 60px;
    }

    .modal-features-list {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-section {
        gap: 10px;
    }

    .logo {
        width: 50px;
        height: 50px;
    }

    .company-name {
        font-size: 22px;
    }

    .company-tagline {
        font-size: 10px;
    }

    .nav {
        gap: 5px;
    }

    .nav-btn {
        padding: 8px 10px;
        font-size: 12px;
    }

    .hero-video-container {
        height: 100vh;
        margin-bottom: 0;
    }

    .hero {
        padding: 30px 15px;
        min-height: auto;
        margin-top: 0;
    }

    .hero-content h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .filters-section {
        padding: 20px;
    }

    .listing-features {
        flex-direction: column;
        gap: 10px;
    }

    .footer-content {
        gap: 20px;
    }
}
