/* ===== CSS Variables ===== */
:root {
    --white: #ffffff;
    --beige: #f8f6f1;
    --beige-dark: #e8e0d0;
    --soft-blue: #e8f0fe;
    --soft-blue-dark: #c5d9f0;
    --light-gray: #f4f4f6;
    --gray: #8888a0;
    --dark: #1a1a2e;
    --gold: #c9a84c;
    --gold-light: #dfc878;
    --gold-dark: #a8882e;
    --shadow: 0 10px 40px rgba(0,0,0,0.06);
    --shadow-hover: 0 20px 60px rgba(0,0,0,0.1);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --glass-bg: rgba(255,255,255,0.7);
    --glass-border: rgba(255,255,255,0.3);
    --glass-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea {
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    line-height: 1.25;
    font-weight: 600;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.8;
}

.section-header.light h2 { color: var(--white); }
.section-header.light p { color: rgba(255,255,255,0.7); }

.gold-text {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Container ===== */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    padding: 14px 32px;
    box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201,168,76,0.4);
}

.btn-outline {
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 12px 30px;
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 38px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; padding: 16px; }

.btn i { font-size: 0.9em; }

/* ===== Section ===== */
.section {
    padding: 100px 0;
}

.section-footer {
    text-align: center;
    margin-top: 50px;
}

.section-footer .btn {
    color: var(--dark);
    border-color: var(--dark);
    background: transparent;
    border: 2px solid var(--dark);
    padding: 14px 36px;
}

.section-footer .btn:hover {
    background: var(--dark);
    color: var(--white);
}

/* ===== Glass Card ===== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
}

/* ===== Loader ===== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--beige);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 2px 30px rgba(0,0,0,0.06);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.navbar.scrolled .logo { color: var(--dark); }

.logo i {
    color: var(--gold);
    font-size: 1.3rem;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

.navbar.scrolled .nav-links a { color: var(--dark); }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--gold); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar .btn-sm {
    color: var(--white);
    padding: 8px 20px;
}

/* ===== Hamburger ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .hamburger span { background: var(--dark); }

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) { opacity: 0; }

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

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

.hero-content {
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.2);
    padding: 8px 22px;
    border-radius: 50px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    color: var(--white);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 550px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-indicators span {
    width: 40px;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
}

.hero-indicators span.active {
    background: var(--gold);
    width: 60px;
}

/* ===== Search Section ===== */
.search-section {
    margin-top: -80px;
    position: relative;
    z-index: 10;
    padding-bottom: 60px;
}

.search-container {
    padding: 40px;
}

.search-container h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
    color: var(--dark);
}

.search-form {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.search-group {
    flex: 1;
    min-width: 160px;
}

.search-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    margin-bottom: 8px;
}

.search-group label i {
    margin-right: 4px;
    color: var(--gold);
}

.search-group input,
.search-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--light-gray);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--dark);
    transition: var(--transition);
}

.search-group input:focus,
.search-group select:focus {
    border-color: var(--gold);
    background: var(--white);
}

.btn-search {
    min-width: 140px;
    height: 48px;
    justify-content: center;
}

/* ===== Property Grid ===== */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.property-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

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

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

.property-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--gold);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.property-gallery-nav {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-dot.active { background: var(--white); }

.property-gallery-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    opacity: 0;
    transition: var(--transition);
}

.property-card:hover .property-gallery-arrows { opacity: 1; }

.gallery-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--dark);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gallery-arrow:hover {
    background: var(--gold);
    color: var(--white);
}

.property-body {
    padding: 24px;
}

.property-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.property-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--gray);
}

.property-address {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 16px;
}

.property-address i {
    margin-right: 6px;
    color: var(--gold);
}

.property-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--dark);
}

.property-features {
    display: flex;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--light-gray);
}

.property-features span {
    font-size: 0.85rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-features i {
    color: var(--gold);
}

/* ===== Virtual Tour Section ===== */
.virtual-tour-section {
    background: linear-gradient(135deg, var(--dark) 0%, #2a2a4a 100%);
    position: relative;
    overflow: hidden;
}

.virtual-tour-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(201,168,76,0.03) 0%, transparent 70%);
    pointer-events: none;
}

.tour-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.tour-card {
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.tour-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.12);
}

.tour-thumb {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 16px;
    aspect-ratio: 16/10;
}

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

.tour-card:hover .tour-thumb img { transform: scale(1.05); }

.tour-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(201,168,76,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.tour-card:hover .tour-play {
    background: var(--gold);
    transform: translate(-50%, -50%) scale(1.1);
}

.tour-card h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.tour-card p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Tour Modal */
.tour-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.tour-modal.active { display: flex; }

.tour-modal-content {
    max-width: 800px;
    width: 90%;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.tour-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

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

.tour-video-placeholder {
    background: linear-gradient(135deg, #1a1a2e, #2a2a4a);
    border-radius: var(--radius);
    padding: 80px 40px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.tour-video-placeholder i {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 24px;
}

.tour-video-placeholder h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.tour-video-placeholder p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 30px;
}

/* ===== Map Section ===== */
.map-section {
    background: var(--beige);
}

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

.map-placeholder {
    width: 100%;
    height: 500px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--soft-blue) 0%, var(--beige-dark) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-overlay-info {
    text-align: center;
    padding: 40px;
}

.map-overlay-info i {
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.map-overlay-info h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 12px;
}

.map-overlay-info p {
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.map-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.map-stat {
    font-size: 0.9rem;
    color: var(--gray);
}

.map-stat span {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

/* ===== Testimonials ===== */
.testimonials-section {
    background: var(--white);
}

.testimonial-carousel {
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: calc(33.333% - 20px);
    padding: 36px;
    background: var(--beige);
    border: none;
}

.testimonial-stars {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.testimonial-card p {
    color: var(--dark);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--gray);
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: var(--transition);
    font-size: 0.9rem;
}

.carousel-btn:hover {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--white);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dots span.active {
    background: var(--gold);
    transform: scale(1.2);
}

/* ===== Agents ===== */
.agents-section {
    background: var(--light-gray);
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.agent-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.agent-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.agent-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--beige);
}

.agent-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.agent-card .agent-title {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.agent-card .agent-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
}

.agent-card .agent-stats div span {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
}

.agent-card .agent-stats div small {
    font-size: 0.7rem;
    color: var(--gray);
}

.agent-card .agent-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.agent-card .agent-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 0.85rem;
    transition: var(--transition);
}

.agent-card .agent-social a:hover {
    background: var(--gold);
    color: var(--white);
}

/* ===== Mortgage ===== */
.mortgage-section {
    background: var(--white);
}

.mortgage-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    background: var(--beige);
    border: none;
}

.mortgage-form .form-group {
    margin-bottom: 20px;
}

.mortgage-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.input-group {
    position: relative;
}

.input-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-weight: 500;
}

.input-group input {
    padding-left: 32px;
}

.mortgage-form input,
.mortgage-form select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 0.95rem;
    color: var(--dark);
    transition: var(--transition);
}

.mortgage-form input:focus,
.mortgage-form select:focus {
    border-color: var(--gold);
}

.mortgage-result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.result-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.result-amount {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.result-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.result-details {
    width: 100%;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 0.9rem;
}

.result-item span { color: var(--gray); }
.result-item strong { color: var(--dark); }

.result-item.total {
    border-bottom: none;
    padding-top: 16px;
    font-size: 1rem;
}

.result-item.total span,
.result-item.total strong {
    font-weight: 700;
    color: var(--gold-dark);
}

/* ===== Contact ===== */
.contact-section {
    background: var(--light-gray);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.contact-info .section-tag { margin-bottom: 16px; }

.contact-info h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--gray);
    margin-bottom: 36px;
    font-size: 1.05rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item i {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-item a,
.contact-item p {
    font-size: 0.95rem;
    color: var(--gray);
}

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

.contact-social {
    display: flex;
    gap: 12px;
}

.contact-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 1rem;
    transition: var(--transition);
}

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

.contact-form {
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 0.9rem;
    color: var(--dark);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== FAQ ===== */
.faq-section {
    background: var(--white);
}

.faq-container {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover { border-color: var(--gold); }

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    background: var(--white);
    transition: var(--transition);
}

.faq-question i {
    font-size: 0.8rem;
    transition: var(--transition);
    color: var(--gray);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--gold);
}

.faq-item.active .faq-question {
    color: var(--gold);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ===== Blog ===== */
.blog-section {
    background: var(--beige);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.blog-image {
    height: 220px;
    overflow: hidden;
}

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

.blog-card:hover .blog-image img { transform: scale(1.05); }

.blog-body {
    padding: 24px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 12px;
}

.blog-meta span { display: flex; align-items: center; gap: 6px; }

.blog-meta i { color: var(--gold); }

.blog-body h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-body p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.blog-link {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-link:hover { gap: 10px; }

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--dark) 0%, #2a2a4a 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(201,168,76,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    margin-bottom: 36px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
    background: #111122;
    padding: 80px 0 0;
    color: rgba(255,255,255,0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand .logo { color: var(--white); margin-bottom: 16px; display: inline-flex; }

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-top: 16px;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--white);
}

.footer-links h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}

.footer-links a:hover { color: var(--gold); padding-left: 4px; }

.footer-newsletter h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-newsletter p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.newsletter-form:focus-within {
    border-color: var(--gold);
}

.newsletter-form input {
    flex: 1;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 0.9rem;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }

.newsletter-form button {
    padding: 14px 20px;
    background: var(--gold);
    color: var(--white);
    transition: var(--transition);
}

.newsletter-form button:hover { background: var(--gold-dark); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.3);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.3);
}

.footer-legal a:hover { color: var(--gold); }

/* ===== Scroll to Top ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(201,168,76,0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(201,168,76,0.4);
}

/* ===== Animation Classes ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 24px;
        transition: right 0.4s ease;
        box-shadow: -10px 0 40px rgba(0,0,0,0.06);
    }

    .nav-links.active { right: 0; }

    .nav-links a {
        color: var(--dark) !important;
        font-size: 1.1rem;
    }

    .hamburger { display: flex; }

    .navbar .btn-sm { display: none; }

    .tour-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .mortgage-container { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .testimonial-card { min-width: calc(100% - 0px); }
}

@media (max-width: 768px) {
    .section { padding: 70px 0; }

    .hero { min-height: 600px; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; justify-content: center; }

    .search-container { padding: 24px; }
    .search-form { flex-direction: column; }
    .btn-search { width: 100%; }

    .property-grid { grid-template-columns: 1fr; }
    .agents-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .search-section { margin-top: -40px; }

    .mortgage-container { padding: 24px; }
    .contact-form { padding: 24px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }

    .hero-content h1 { font-size: 1.8rem; }
    .result-circle { width: 160px; height: 160px; }
    .result-amount { font-size: 1.4rem; }

    .map-placeholder { height: 350px; }
    .map-stats { flex-direction: column; gap: 20px; }
}

/* ===== Smooth Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

.hero-content {
    animation: slideUp 1s ease forwards;
}

/* ===== Property Gallery Images Override ===== */
.property-image {
    position: relative;
}

.property-image .gallery-imgs {
    position: absolute;
    inset: 0;
}

.property-image .gallery-imgs img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.property-image .gallery-imgs img.active {
    opacity: 1;
}
