@charset "UTF-8";

/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --color-navy: #0B1F3B;
    --color-navy-light: #163155;
    --color-gold: #D4AF37;
    --color-gold-hover: #C5A02E;
    --color-gold-light: rgba(212, 175, 55, 0.12);
    --color-gold-dark: #8E7019;
    --color-whatsapp: #25D366;
    --color-whatsapp-dark: #1FBA57;
    --color-bg-light: #F8FAFC;
    --color-text-body: #334155;
    --color-text-muted: #64748B;
    --color-border: #E2E8F0;
    
    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;
}

/* ==========================================================================
   BASE STYLES & TYPOGRAPHY
   ========================================================================== */
body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-light);
    color: var(--color-text-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-navy);
}

.font-serif {
    font-family: var(--font-serif);
}

.text-navy {
    color: var(--color-navy);
}

.bg-navy {
    background-color: var(--color-navy);
}

.text-gold-dark {
    color: var(--color-gold-dark);
}

.bg-gold-light {
    background-color: var(--color-gold-light);
}

.bg-gold {
    background-color: var(--color-gold);
}

.icon-gold {
    color: var(--color-gold);
}

.icon-gold-inline {
    color: var(--color-gold);
    display: inline-block;
    vertical-align: middle;
}

.text-xs {
    font-size: 0.75rem;
}

.fs-xs {
    font-size: 0.8rem;
}

.tracking-wider {
    letter-spacing: 0.08em;
}

.leading-relaxed {
    line-height: 1.75;
}

.max-w-600 {
    max-width: 600px;
}

.max-w-500 {
    max-width: 500px;
}

.text-muted-opacity {
    opacity: 0.2;
}

.scroll-offset {
    scroll-margin-top: 80px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    font-weight: 500;
    border-radius: 12px;
    padding: 12px 24px;
    transition: var(--transition-smooth);
}

.btn-gold-primary {
    background-color: var(--color-gold);
    border: 2px solid var(--color-gold);
    color: var(--color-navy) !important;
    font-weight: 600;
}

.btn-gold-primary:hover, .btn-gold-primary:focus {
    background-color: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
}

.btn-gold-primary:disabled {
    background-color: var(--color-border);
    border-color: var(--color-border);
    color: var(--color-text-muted) !important;
    transform: none;
    box-shadow: none;
}

.btn-navy-primary {
    background-color: var(--color-navy);
    border: 2px solid var(--color-navy);
    color: white !important;
    font-weight: 600;
}

.btn-navy-primary:hover, .btn-navy-primary:focus {
    background-color: var(--color-navy-light);
    border-color: var(--color-navy-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 31, 59, 0.25);
}

.btn-navy-primary:disabled {
    background-color: var(--color-border);
    border-color: var(--color-border);
    color: var(--color-text-muted) !important;
    transform: none;
    box-shadow: none;
}

.btn-outline-navy {
    background-color: transparent;
    border: 2px solid var(--color-navy);
    color: var(--color-navy) !important;
}

.btn-outline-navy:hover, .btn-outline-navy:focus {
    background-color: var(--color-navy);
    color: white !important;
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white !important;
}

.btn-outline-white:hover, .btn-outline-white:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: var(--color-whatsapp);
    border: 2px solid var(--color-whatsapp);
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover, .btn-whatsapp:focus {
    background-color: var(--color-whatsapp-dark);
    border-color: var(--color-whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-header {
    background-color: var(--color-whatsapp);
    color: white !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.15);
}

.btn-whatsapp-header:hover {
    background-color: var(--color-whatsapp-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.25);
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */
.main-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    z-index: 1030;
    transition: var(--transition-smooth);
}

.logo-brand {
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background-color: var(--color-navy);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(11, 31, 59, 0.1);
}

.logo-icon.bg-gold-icon {
    background-color: var(--color-gold);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-navy);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.62rem;
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
    font-weight: 600;
    line-height: 1;
    margin-top: 1px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, #0B1F3B 0%, #15345B 100%);
    padding: 80px 0;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    box-shadow: 0 15px 40px rgba(11, 31, 59, 0.15);
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 1;
}

.hero-bg-shapes .shape-1 {
    width: 300px;
    height: 300px;
    background-color: var(--color-gold);
    top: -50px;
    left: -50px;
}

.hero-bg-shapes .shape-2 {
    width: 400px;
    height: 400px;
    background-color: #3b82f6;
    bottom: -100px;
    right: -100px;
}

.badge-hero {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 30px;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ==========================================================================
   WIZARD SECTION
   ========================================================================== */
.bg-light-section {
    background-color: #F1F5F9;
}

.wizard-card {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(11, 31, 59, 0.04) !important;
}

.wizard-progress {
    background-color: #E2E8F0;
}

.step-label {
    font-size: 0.75rem;
    color: var(--color-gold-dark);
    letter-spacing: 0.08em;
}

.step-number {
    font-size: 0.8rem;
    font-weight: 500;
}

.small-subtitle {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Priority Card Grid */
.priority-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.priority-card {
    cursor: pointer;
    background-color: white;
    border: 2px solid var(--color-border);
    border-radius: 16px;
    padding: 16px 12px;
    transition: var(--transition-smooth);
    user-select: none;
    position: relative;
    overflow: hidden;
}

.priority-card:hover {
    border-color: #CBD5E1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 31, 59, 0.03);
}

.priority-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.priority-icon-circle {
    width: 48px;
    height: 48px;
    background-color: #F1F5F9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--color-navy-light);
    transition: var(--transition-smooth);
}

.priority-icon-circle i {
    width: 20px;
    height: 20px;
}

.priority-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--color-navy);
    line-height: 1.2;
    margin-bottom: 4px;
}

.priority-desc {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    line-height: 1.3;
}

/* Active Preference Card State */
.priority-card.active {
    border-color: var(--color-gold);
    background-color: var(--color-navy);
}

.priority-card.active .priority-title {
    color: white;
}

.priority-card.active .priority-desc {
    color: rgba(255, 255, 255, 0.6);
}

.priority-card.active .priority-icon-circle {
    background-color: var(--color-gold);
    color: var(--color-navy);
    transform: scale(1.05);
}

/* Special Investor Card styling */
.priority-card.investor-card.active {
    border-color: var(--color-gold);
    background: linear-gradient(135deg, #0B1F3B 0%, #1e3a63 100%);
}

/* Form Inputs */
.custom-select, .custom-input {
    border-radius: 10px;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    font-size: 0.95rem;
    color: var(--color-navy);
    transition: var(--transition-fast);
}

.custom-select:focus, .custom-input:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    outline: none;
}

.small-subtitle-inner {
    font-size: 0.85rem;
}

/* ==========================================================================
   RESULTS & MAP
   ========================================================================== */
.map-card {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(11, 31, 59, 0.05) !important;
}

.map-filters-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-filter-pill {
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-fast);
}

.btn-filter-pill:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

.btn-filter-pill.active {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-navy);
    font-weight: 600;
}

/* Map Popup customization */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 2px;
    box-shadow: 0 8px 20px rgba(11, 31, 59, 0.15);
    font-family: var(--font-primary);
}

.leaflet-popup-content {
    margin: 12px 14px;
    line-height: 1.4;
}

.map-popup-title {
    font-weight: 700;
    color: var(--color-navy);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.map-popup-price {
    font-weight: 600;
    color: var(--color-gold-dark);
    font-size: 0.85rem;
}

/* Property Result Card */
.property-card-result {
    border-radius: 16px;
    border: 1px solid var(--color-border);
    background-color: white;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.property-card-result:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(11, 31, 59, 0.06);
    border-color: #CBD5E1;
}

.property-card-result.highlighted-match {
    border-left: 5px solid var(--color-gold);
}

.property-score-badge {
    background-color: var(--color-navy);
    color: white;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.property-score-badge .score-val {
    color: var(--color-gold);
}

.property-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-uppercase;
    color: var(--color-gold-dark);
    letter-spacing: 0.05em;
}

.property-title-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
}

.property-meta-icon {
    color: var(--color-text-muted);
}

.property-conveniency-item {
    font-size: 0.75rem;
    background-color: #F1F5F9;
    color: var(--color-navy-light);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.property-conveniency-item i {
    width: 12px;
    height: 12px;
}

.btn-card-whatsapp {
    background-color: #F8FAFC;
    border: 1px solid var(--color-border);
    color: var(--color-navy);
    border-radius: 10px;
    font-size: 0.88rem;
    padding: 10px 16px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-card-whatsapp:hover {
    background-color: var(--color-whatsapp);
    border-color: var(--color-whatsapp);
    color: white;
}

/* Call to Action Results */
.cta-results-card {
    background: linear-gradient(135deg, #0B1F3B 0%, #173663 100%);
    border-radius: 20px;
}

/* ==========================================================================
   AUTHORITY SECTION
   ========================================================================== */
.small-title-section {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.broker-image-frame {
    width: 260px;
    height: 330px;
    background: linear-gradient(135deg, #0B1F3B 0%, #1D3D68 100%);
    border-radius: 24px;
    padding: 6px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.broker-img {
    border-radius: 18px;
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}

.avatar-gradient {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--color-gold) 0%, #F5D76E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 3.5rem;
    color: var(--color-navy);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.25);
    margin-bottom: 20px;
}

.broker-overlay-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.broker-contact-grid {
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
}

.broker-contact-grid i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ==========================================================================
   GUIDES / SEO SECTION
   ========================================================================== */
.guide-card {
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(11, 31, 59, 0.08) !important;
}

.guide-image-wrapper {
    overflow: hidden;
}

.guide-card-header-icon {
    color: rgba(255, 255, 255, 0.06);
}

.btn-guide-read {
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.btn-guide-read:hover {
    color: var(--color-gold-dark) !important;
}

.btn-guide-read i {
    transition: var(--transition-fast);
}

.btn-guide-read:hover i {
    transform: translate(2px, -2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 4px solid var(--color-gold);
}

.footer .logo-icon {
    width: 36px;
    height: 36px;
}

.footer .brand-name {
    font-size: 1.05rem;
}

.social-links {
    margin-bottom: 12px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--color-gold);
    color: var(--color-navy);
    transform: translateY(-2px);
}

.social-icon i {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (min-width: 576px) {
    .priority-grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .priority-grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero-section {
        padding: 110px 0;
        border-bottom-left-radius: 48px;
        border-bottom-right-radius: 48px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 992px) {
    .priority-grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .priority-grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   CUSTOM LEAFLET MAP MARKERS
   ========================================================================== */
.clear-leaflet-marker {
    background: transparent !important;
    border: none !important;
}

.custom-map-marker-poi {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.custom-map-marker-poi:hover {
    transform: scale(1.15);
    z-index: 1000 !important;
}

.custom-map-marker-poi i {
    width: 12px;
    height: 12px;
}

.custom-map-marker-property {
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: -5px;
    left: -2px;
    transition: var(--transition-smooth);
}

.custom-map-marker-property:hover {
    transform: rotate(-45deg) scale(1.1);
    z-index: 1001 !important;
}

.property-marker-num {
    transform: rotate(45deg);
    font-weight: 800;
    font-size: 0.95rem;
    display: block;
    margin-top: -2px;
    margin-left: -2px;
}

/* Leaflet Popup Customizations */
.small-popup {
    text-align: left;
}

.property-popup {
    text-align: left;
}

.property-popup .map-popup-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-navy);
    margin-bottom: 2px;
}

.property-popup .map-popup-price {
    font-weight: 700;
    color: var(--color-gold-dark);
}

.leaflet-container a.leaflet-popup-close-button {
    color: var(--color-text-muted) !important;
    font-size: 16px;
    padding: 6px;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: var(--color-navy) !important;
    background: transparent;
}

