/* =============================================================================
   HERO SEARCH SECTION - NEW DESIGN BASED ON MOCKUP
   ============================================================================= */

/* Hero Search Section - USER OPTIMIZED SPACING */
.hero-search {
    min-height: auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 0 0px; /* User solution: zero bottom padding */
    background: var(--bg-dark);
}

.hero-search .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Grid Pattern (like in mockup) */
.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(243, 159, 27, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(243, 159, 27, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
}

/* Hero Content - FIXED: Positioned close to top */
.hero-search .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 0 20px;
    margin-top: 0; /* Remove any additional top margin */
    transform: translateY(0); /* Ensure no vertical centering transforms */
}

/* Mobile hero positioning */
@media (max-width: 768px) {
    .hero-search {
        padding-top: 100px; /* Account for mobile header */
        min-height: calc(100vh - 90px); /* Mobile header height */
    }
    
    .hero-search .hero-content {
        padding: 0 15px;
    }
}

/* Logo Container - PERFECT RESPONSIVE CENTERING */
.logo-container {
    margin-bottom: 40px;
    display: flex; /* FIXED: Use flexbox for perfect centering */
    justify-content: center; /* Horizontal center */
    align-items: center; /* Vertical alignment */
    width: 100%; /* Full width for centering */
}

.torg-logo {
    display: flex; /* FIXED: Flexbox instead of inline-block */
    align-items: center;
    justify-content: center;
    background: rgba(43, 43, 43, 0.95);
    border: 2px solid rgba(243, 159, 27, 0.3);
    border-radius: 16px;
    padding: 16px 32px; /* 8px grid: 16px/32px padding */
    backdrop-filter: blur(10px);
    transition: all 0.2s ease; /* Faster professional transition */
    min-width: 200px; /* Consistent minimum width */
    text-align: center; /* Center text inside */
}

.torg-logo:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 0 20px rgba(243, 159, 27, 0.3);
}

.torg-logo .logo-text {
    font-size: clamp(1.5rem, 4vw, 2rem); /* RESPONSIVE: 1.5rem-2rem based on viewport */
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-primary);
    letter-spacing: -0.02em; /* Professional letter spacing */
    white-space: nowrap; /* Prevent text wrapping */
}

.torg-logo .logo-ai {
    font-size: clamp(1.5rem, 4vw, 2rem); /* MATCH parent size for consistency */
    font-weight: 700;
    color: var(--primary-orange);
    font-family: var(--font-primary);
    letter-spacing: -0.02em; /* Match parent spacing */
}

/* Navbar Logo */
.torg-logo-navbar {
    display: inline-block;
    background: rgba(43, 43, 43, 0.9);
    border: 1px solid rgba(243, 159, 27, 0.2);
    border-radius: 12px;
    padding: 8px 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.torg-logo-navbar:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 0 15px rgba(243, 159, 27, 0.2);
}

.torg-logo-navbar .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-primary);
}

.torg-logo-navbar .logo-ai {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-orange);
    font-family: var(--font-primary);
}

/* Hero Title */
.hero-search .hero-title {
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 60px;
    line-height: 1.2;
}

/* Search Form */
.search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.filter-dropdowns {
    display: flex;
    gap: 16px; /* 8px grid: 16px gap */
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px; /* 8px grid: 32px margin */
}

.filter-dropdown {
    width: 160px; /* FIXED: Equal width for all selects */
    min-width: 160px; /* Ensure consistency */
    max-width: 160px; /* Lock the width */
    padding: 16px; /* 8px grid: 16px padding */
    background: rgba(43, 43, 43, 0.9);
    border: 2px solid rgba(243, 159, 27, 0.2);
    border-radius: 8px; /* 8px grid: 8px radius */
    color: var(--text-primary);
    font-size: 14px; /* Professional size */
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease; /* Faster transition */
    text-align: center; /* Center text in selects */
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23F39F1B' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.filter-dropdown:hover {
    border-color: var(--primary-orange);
    background: rgba(43, 43, 43, 0.95);
}

.filter-dropdown:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(243, 159, 27, 0.1);
}

.filter-dropdown option {
    background: var(--bg-dark);
    color: var(--text-primary);
    padding: 10px;
}

/* Search Button */
.search-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff8c42 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 159, 27, 0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 159, 27, 0.4);
    background: linear-gradient(135deg, #ff8c42 0%, var(--primary-orange) 100%);
}

.search-btn:active {
    transform: translateY(0);
}

.search-icon {
    width: 20px;
    height: 20px;
}

/* Property List Styles */
.property-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.property-item {
    background: var(--bg-card);
    border: 1px solid rgba(243, 159, 27, 0.1);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.property-item:hover {
    border-color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 159, 27, 0.15);
}

.property-info {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.property-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.property-location {
    font-size: 14px;
    color: var(--text-muted);
}

.property-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-orange);
}

.property-area {
    font-size: 16px;
    color: var(--text-secondary);
}

.property-type {
    font-size: 11px; /* SUBTLE: Smaller for secondary info */
    color: rgba(243, 159, 27, 0.9); /* SUBTLE: Orange text instead of white */
    font-weight: 500; /* REDUCED: Less emphasis */
    padding: 4px 8px; /* MINIMAL: Compact badge padding */
    background: rgba(243, 159, 27, 0.08); /* SUBTLE: Very light background */
    border-radius: 4px; /* MINIMAL: Small radius for subtle badge */
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3px; /* REDUCED: Less spacing */
    display: inline-block; /* ENSURE: Proper inline behavior */
    /* REMOVED: box-shadow и border для subtlety */
}

.property-actions {
    display: flex;
    gap: 12px;
}

.property-btn {
    padding: 12px 20px; /* IMPROVED: Better touch target */
    border: 1px solid var(--primary-orange);
    border-radius: 8px; /* FIXED: 8px grid consistency */
    background: transparent;
    color: var(--primary-orange);
    font-size: 14px;
    font-weight: 600; /* IMPROVED: Professional weight */
    cursor: pointer;
    transition: all 0.2s ease; /* IMPROVED: Snappier transition */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* ADDED: Subtle depth */
    min-height: 40px; /* ADDED: Consistent touch target */
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-btn:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-1px); /* ADDED: Subtle lift effect */
    box-shadow: 0 4px 12px rgba(243, 159, 27, 0.3); /* ENHANCED: Orange glow */
}

.property-btn.primary {
    background: var(--primary-orange);
    color: white;
    box-shadow: 0 3px 8px rgba(243, 159, 27, 0.2); /* ADDED: Primary button depth */
}

.property-btn.primary:hover {
    background: #ff8c42;
    transform: translateY(-1px); /* CONSISTENT: Same lift effect */
    box-shadow: 0 6px 16px rgba(243, 159, 27, 0.4); /* ENHANCED: Stronger glow */
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-search .hero-title {
        font-size: 2rem;
    }
    
    .filter-dropdowns {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .filter-dropdown {
        width: 100%;
        min-width: unset;
    }
    
    .search-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .property-info {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: left;
    }
    
    .property-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .property-actions {
        justify-content: center;
    }
    
    .torg-logo .logo-text,
    .torg-logo .logo-ai {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-search {
        padding-top: 100px;
    }
    
    .hero-search .hero-title {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }
    
    .property-item {
        padding: 16px;
    }
    
    .property-actions {
        flex-direction: column;
    }
}
/* BEAUTIFUL SINGLE ROW STATISTICS */
.property-statistics {
    margin-top: 16px; /* REDUCED: Smaller gap from filter-dropdowns */
    margin-bottom: 0;
    padding: 16px 32px;
    background: rgba(43, 43, 43, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(243, 159, 27, 0.2);
    display: flex;
    align-items: center;
    justify-content: center; /* MATCH: Same centering как filter-dropdowns */
    gap: 12px;
    font-size: 15px;
    color: #ffffff;
    width: max-content; /* PRECISE: Content-based width */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.stat-separator {
    color: rgba(243, 159, 27, 0.6);
    margin: 0 6px;
    font-weight: 300;
}

.stat-count {
    color: #FF8C00;
    font-weight: 700;
}

.counter-pulse {
    width: 8px;
    height: 8px;
    background: #00FF00;
    border-radius: 50%;
    animation: pulse-live 2s ease-in-out infinite;
    flex-shrink: 0; /* PREVENT: Shrinking in flex layout */
}

@keyframes pulse-live {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 10px rgba(0, 255, 0, 0);
    }
}


/* Profit Pathway Logo Integration - ONLY FOR HERO SECTION */
.hero-search .torg-logo-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: rgba(43, 43, 43, 0.9);
    border: 2px solid rgba(243, 159, 27, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.profit-pathway-logo {
    height: 60px;
    width: auto;
    filter: brightness(1.1);
}

.hero-search .torg-logo-svg:hover {
    border-color: #FFA500;
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.4);
    transform: translateY(-2px);
}

