/* style.css - Design Premium BetterHomes */

/* Utilities */
.mb-4 { margin-bottom: 1.5rem; }

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

:root {
    --primary-color: #D31221; /* Vermelho do logótipo */
    --primary-hover: #b00f1c;
    --secondary-color: #0B132B; /* Navy Escuro Premium */
    --text-color: #333333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --border-color: #e5e5e5;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden; /* Proibição total de scroll horizontal */
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 90px; /* Compensa o header fixo */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Header */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    gap: 20px; /* Garante espaço entre logo, nav e ações */
}

.logo {
    flex-shrink: 0;
    margin-right: 40px; /* Mais espaço entre logo e menu */
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
    mix-blend-mode: multiply; /* Remove fundo branco se existir no ficheiro */
}

.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.main-nav > ul {
    display: flex;
    gap: 15px; /* Reduzido de 25px para evitar quebra de layout */
}

.main-nav a {
    font-weight: 500;
    font-size: 0.85rem; /* Ligeiramente menor para caber em mais idiomas */
    color: var(--secondary-color);
    transition: var(--transition);
    display: block;
    padding: 10px 2px;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a.active {
    border-bottom: 2px solid var(--primary-color);
}

/* Ajustes Responsivos para o Header - Evita quebra de layout em diferentes idiomas */
@media (max-width: 1200px) {
    .header-container {
        gap: 10px;
    }
    .logo {
        margin-right: 15px;
    }
    .main-nav > ul {
        gap: 10px;
    }
    .main-nav a {
        font-size: 0.8rem;
        padding: 10px 1px;
    }
}

@media (max-width: 1100px) {
    /* Ativa o menu mobile mais cedo para evitar sobreposição */
    .main-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: block !important;
    }
    .header-container {
        height: 70px;
    }
}

body {
    padding-top: 90px;
}

@media (max-width: 1100px) {
    body {
        padding-top: 70px;
    }
}

/* Dropdown Styles */
.main-nav li {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    min-width: 200px;
    border-radius: 4px;
    z-index: 1000;
    padding: 10px 0;
    list-style: none;
}

.dropdown li {
    width: 100%;
    display: block;
}

.dropdown a {
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 400;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown li:last-child a {
    border-bottom: none;
}

.dropdown a:hover {
    background-color: var(--light-bg);
    padding-left: 25px; /* Efeito de deslize ao passar o rato */
}

.main-nav li:hover > .dropdown {
    display: block;
}

/* Icone de seta para dropdowns */
.has-dropdown > a::after {
    content: ' \25BE';
    font-size: 0.8rem;
}

/* Lang Selector */
.lang-selector {
    position: relative;
}

.lang-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    color: var(--secondary-color);
    padding: 10px;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 4px;
    min-width: 120px;
    overflow: hidden;
}

.lang-selector:hover .lang-dropdown {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 10px 15px;
    color: var(--secondary-color);
    transition: var(--transition);
}

.lang-dropdown a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

/* Hero Slider */
.hero-slider {
    height: 600px;
    position: relative;
    overflow: hidden;
    background-color: #333;
}

.slider-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    max-width: 95%; /* Aumentado para permitir uma linha única */
    width: 100%;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 450px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
        padding: 0 20px;
    }
}

/* Search Component Redesign - Premium Refinement */
.search-wrapper {
    margin-top: -60px;
    position: relative;
    z-index: 20;
}

.search-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: -1px;
}

.tab-btn {
    padding: 14px 35px;
    border: none;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background: rgba(240, 240, 240, 0.9);
    color: var(--secondary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 -5px 15px rgba(211, 18, 33, 0.2);
}

.search-box-new {
    background: #fff;
    padding: 15px 25px;
    border-radius: 0 15px 15px 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.search-grid {
    display: flex;
    gap: 0;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.search-field {
    flex: 1;
    border-right: 1px solid #eee;
}

.search-field select {
    width: 100%;
    border: none !important;
    background: #fff !important;
    padding: 15px !important;
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23555' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    box-shadow: none !important;
}

.search-field-main {
    flex: 2;
    padding-left: 15px;
}

.search-field-main input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 15px 0;
    font-size: 0.95rem;
    outline: none;
    color: #333;
}

.btn-search-main {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 45px;
    margin: 8px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(211, 18, 33, 0.2);
}

.btn-search-main:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(211, 18, 33, 0.3);
}

@media (max-width: 992px) {
    .search-grid {
        flex-direction: column;
        border: none;
    }
    .search-field, .search-field-main {
        width: 100%;
        border: 1px solid #eee;
        margin-bottom: 10px;
        border-radius: 8px;
    }
    .search-field-main {
        padding-left: 15px;
    }
    .btn-search-main {
        width: 100%;
        margin: 0;
    }
}

/* Fim da Secção de Pesquisa */

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.property-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.property-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.property-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(211, 18, 33, 0.4);
    z-index: 2;
}

.property-type-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    z-index: 2;
}

.property-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.property-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a; /* Dark premium color instead of pure primary */
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    letter-spacing: -0.2px;
}

.property-title {
    font-size: 1.05rem;
    color: #4b5563;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-card:hover .property-title {
    color: var(--primary-color);
}

.property-location {
    color: #9CA3AF;
    font-size: 0.75rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.property-location i {
    color: var(--primary-color);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.property-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 10px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
    margin-top: auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-item i {
    color: #a0a5b1;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.feature-text strong {
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a1a;
}

.feature-text span {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.3px;
    font-weight: 600;
}

/* Footer */
.main-footer {
    background-color: #f1f3f5; /* Cinza Suave Premium - Ligeiramente mais escuro */
    color: #4b5563; /* Cinza Escuro para texto */
    padding: 80px 0 30px;
    margin-top: 0; /* Remove top margin to stick to sections if needed */
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 25px;
    mix-blend-mode: multiply; /* Remove o fundo branco do logotipo */
    filter: none;
}

.footer-col p {
    color: #374151; /* Cinza Escuro para máxima visibilidade */
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.footer-col h3 {
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a1a; /* Títulos em preto */
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #374151;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-property-list li {
    margin-bottom: 15px;
    position: relative;
}

.footer-has-dropdown > a::after {
    content: ' \25BE';
    font-size: 0.8rem;
    color: #9ca3af;
    transition: var(--transition);
}

.footer-has-dropdown:hover > a::after {
    color: var(--primary-color);
}

.footer-sublinks {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 5px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-5px);
}

.footer-property-list li:hover .footer-sublinks {
    max-height: 50px;
    opacity: 1;
    transform: translateY(0);
}

.footer-sublinks a {
    font-size: 0.8rem !important;
    color: #6b7280 !important;
    display: inline-block;
}

.footer-sublinks a:hover {
    color: var(--primary-color) !important;
    padding-left: 0 !important;
    text-decoration: underline;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    color: #374151;
    font-size: 0.95rem;
}

.footer-contact-item i {
    color: var(--primary-color);
    margin-top: 4px;
}

.footer-contact-item a {
    color: #374151;
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact-item a:hover {
    color: var(--primary-color);
}

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

.social-links a {
    width: 36px;
    height: 36px;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #374151;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #9ca3af;
}

.dev-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.dev-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .main-nav {
        display: none; /* Seria substituído por menu mobile */
    }
}

/* Custom Language Selector */
.custom-lang-selector {
    position: relative;
    display: inline-block;
}

.custom-lang-selector .lang-btn {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 50px; /* Estilo arredondado premium */
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.custom-lang-selector .lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.custom-lang-selector .lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: transparent; /* Fundo transparente para o container para evitar gap */
    padding-top: 10px; /* Cria o espaço visual sem perder o hover */
    min-width: 160px;
    z-index: 2000;
}

/* O conteúdo real do dropdown com fundo branco */
.custom-lang-selector .lang-dropdown-content {
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 8px 0;
}

.custom-lang-selector:hover .lang-dropdown {
    display: block;
}

.custom-lang-selector .lang-dropdown li {
    list-style: none;
}

.custom-lang-selector .lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--secondary-color);
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.custom-lang-selector .lang-dropdown a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

/* Google Translate - Remoção Forçada da Barra */
.goog-te-banner-frame.skiptranslate, 
.goog-te-banner-frame, 
#goog-gt-tt, 
.goog-te-balloon-frame, 
.goog-te-gadget-icon {
    display: none !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

body {
    top: 0px !important;
    position: static !important;
}

iframe.skiptranslate {
    display: none !important;
}

/* Mas não esconder o nosso seletor customizado! */
.custom-lang-selector .skiptranslate,
#google_translate_element {
    display: none !important;
}

.custom-lang-selector {
    display: inline-block !important;
}
/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--secondary-color);
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition);
}

.page-btn.active, .page-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-btn.next, .page-btn.prev {
    margin: 0 5px;
}

/* Testimonials Section - Ultra Premium Design */
.testimonials-section {
    background-color: #fafbfc;
    padding: 70px 0 60px 0;
    position: relative;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 340px;
    background: linear-gradient(135deg, #0B132B 0%, #1a2238 100%); /* Elegant dark navy */
    z-index: 0;
}

.testimonials-section .container {
    position: relative;
    z-index: 2;
}

.testimonials-section .section-title {
    color: var(--white);
    margin-bottom: 50px;
}

.testimonials-section .section-title::after {
    background-color: var(--primary-color);
    height: 4px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease;
    z-index: 1;
}

.testimonial-card::before {
    content: '\201C';
    font-family: 'Inter', sans-serif;
    position: absolute;
    top: -20px;
    right: 30px;
    font-size: 12rem;
    color: var(--primary-color);
    opacity: 0.04;
    line-height: 1;
    z-index: -1;
}

.testimonial-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
}

.quote-icon {
    display: none; /* Hidden, using CSS pseudo-element instead */
}

.testimonial-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: normal;
    color: #555;
    margin-bottom: 40px;
    flex-grow: 1;
    position: relative;
    font-weight: 400;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: auto;
    position: relative;
}

.testimonial-author::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.testimonial-author img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 4px solid var(--white);
}

.testimonial-author div {
    display: flex;
    flex-direction: column;
}

.testimonial-author h4 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.3px;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Contact Section - Premium Design */
.contact-section {
    background-color: var(--white);
    padding: 60px 0 80px 0;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--white);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(135deg, #0B132B 0%, #1a2238 100%);
    color: var(--white);
    padding: 40px 40px;
    position: relative;
}

.contact-info h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white);
}

.contact-info p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 1.1rem;
    color: var(--white);
}

.contact-list li i {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-list li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list li a:hover {
    color: var(--primary-color);
}

.contact-form-container {
    flex: 1.5;
    min-width: 350px;
    padding: 40px 40px;
    background-color: var(--white);
}

.contact-form-container h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.premium-form .form-group {
    margin-bottom: 15px;
}

.premium-form input,
.premium-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e1e5eb;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #333;
    background-color: #fafbfc;
    transition: all 0.3s ease;
}

.premium-form input:focus,
.premium-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(211, 18, 33, 0.1);
}

.premium-form input::placeholder,
.premium-form textarea::placeholder {
    color: #a0a5b1;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background-color: #b50f1c; /* slightly darker primary */
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(211, 18, 33, 0.3);
}

@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
    }
    .contact-info, .contact-form-container {
        padding: 40px 30px;
    }
}

/* Property Detail Page */
.property-detail-wrapper {
    padding-bottom: 80px;
    background-color: var(--white);
}

.property-hero {
    margin-bottom: 40px;
}

.hero-image-main {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
}

.property-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.header-left h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 10px 0;
    color: var(--secondary-color);
}

.detail-badge {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.header-left .location {
    font-size: 1.1rem;
    color: #6b7280;
}

.detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    background: #fff5f5;
    padding: 10px 20px;
    border-radius: 12px;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    padding: 25px;
    background-color: #f9fafb;
    border-radius: 15px;
}

.stat-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-box i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-box strong {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.stat-box span {
    font-size: 0.9rem;
    color: #6b7280;
}

.detail-section {
    margin-bottom: 40px;
}

.detail-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sidebar Sidebar */
.sidebar-card {
    background-color: var(--white);
    border: 1px solid #f3f4f6;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    position: sticky;
    top: 110px;
}

.sidebar-card h3 {
    margin-bottom: 15px;
}

.sidebar-form .form-group {
    margin-bottom: 15px;
}

.sidebar-form input,
.sidebar-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-family: inherit;
}

.sidebar-form textarea {
    height: 100px;
    resize: none;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25d366;
    color: white;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
}

.share-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.share-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

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

@media (max-width: 1024px) {
    .property-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .property-header-info {
        flex-direction: column;
        gap: 20px;
    }
    .detail-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-image-main {
        height: 300px;
    }
    .header-left h1 {
        font-size: 1.8rem;
    }
}

/* Why Choose Us Section */
.why-choose-section {
    background-color: #f8fafc;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.why-item {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid transparent;
}

.why-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(211, 18, 33, 0.1);
}

.why-icon {
    width: 70px;
    height: 70px;
    background-color: #fff5f5;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 2rem;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.why-item:hover .why-icon {
    background-color: var(--primary-color);
    color: var(--white);
    transform: rotateY(360deg);
}

.why-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.why-item p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
    .why-item {
        padding: 30px 20px;
    }
}
