/* Home Page Styles - Enhanced Modern Design */

/* ===== CSS VARIABLES ===== */
:root {
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    --secondary-50: #f0f9ff;
    --secondary-100: #e0f2fe;
    --secondary-200: #bae6fd;
    --secondary-300: #7dd3fc;
    --secondary-400: #38bdf8;
    --secondary-500: #0ea5e9;
    --secondary-600: #0284c7;
    --secondary-700: #0369a1;
    --secondary-800: #075985;
    --secondary-900: #0c4a6e;

    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --success-50: #f0fdf4;
    --success-500: #22c55e;
    --success-600: #16a34a;
    --warning-50: #fffbeb;
    --warning-500: #f59e0b;
    --error-50: #fef2f2;
    --error-500: #ef4444;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #1e40af 100%);
    padding: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.2;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

/* Animation Classes */
.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HOME SEARCH SECTION ===== */
.home-search-section {
    background: transparent;
    padding: 0 0 2rem 0;
    margin-top: 0;
    position: relative;
    z-index: 3;
}

.shadow-soft {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    border: 1px solid var(--gray-200);
}

.home-search-section .card {
    background: white;
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.home-search-section .card-body {
    padding: 1.5rem;
}

.home-search-section .text-gradient {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.75rem;
}

.form-group {
    margin-bottom: 0.75rem;
}


.form-label {
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: white;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Enhanced form-select styling for better selection visibility */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-select:hover {
    border-color: var(--primary-400);
    background-color: #f8fafc;
}

/* Temporary highlight animation for dropdown container */
@keyframes highlightDropdown {
    0% {
        border-color: var(--primary-500);
        background-color: #f0f7ff;
        color: var(--primary-700);
        font-weight: 600;
    }

    100% {
        border-color: var(--gray-200);
        background-color: white;
        color: var(--gray-800);
        font-weight: normal;
    }
}

/* Highlight dropdown when animation class is added */
.form-select.highlight-animation {
    animation: highlightDropdown 2s ease-out forwards;
}

.form-select option {
    padding: 0.5rem 1rem;
    background: white;
    color: var(--gray-800);
    font-weight: 500;
}


/* Temporary highlight animation for selected options */
@keyframes highlightSelection {
    0% {
        background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
        color: white;
        font-weight: 600;
    }

    100% {
        background: white;
        color: var(--gray-800);
        font-weight: 500;
    }
}

/* Highlight options when parent has animation class */
.form-select.highlight-animation option:selected {
    animation: highlightSelection 2s ease-out forwards;
}

.form-select.highlight-animation option:checked {
    animation: highlightSelection 2s ease-out forwards;
}

.form-select option:hover {
    background: #f1f5f9;
    color: var(--primary-600);
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FEATURED SECTION ===== */
.featured-section {
    padding: 2rem 0;
    background: white;
}

.featured-section .text-gradient {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 2.5rem;
}

/* ===== PROPERTY CARD STYLES (MATCHING SEARCH PAGE) ===== */
.property-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
    position: relative;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.property-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--gray-100);
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.bg-gradient-light {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-gradient-light i {
    color: var(--gray-400);
    font-size: 3rem;
}

.property-card .card-body {
    padding: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bg-primary {
    background: var(--primary-600) !important;
}

.bg-success {
    background: var(--success-600) !important;
}

.property-card .card-title {
    display: none;
}

.property-card .location {
    display: none;
}

.property-card .features {
    display: none;
}

.property-card .price {
    display: none;
}

/* Property Card Specific Styles */
.property-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.property-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.property-placeholder i {
    font-size: 3rem;
}

.property-badges {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
}

.badge-featured {
    background: #ff6b6b;
    color: white;
}

.badge-type {
    background: #4ecdc4;
    color: white;
}

.property-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-header {
    margin-bottom: 10px;
}

.property-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-location-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.property-price {
    font-size: 1rem;
    font-weight: 800;
    color: #1e40af;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.8rem;
    flex: 1;
    margin-bottom: 0;
}

.property-location i {
    color: var(--primary-500);
}

.property-features {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.property-features .feature:first-child {
    text-align: left;
}

.property-features .feature:last-child {
    text-align: right;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
}

.feature i {
    color: var(--primary-500);
    width: 16px;
}

.property-footer {
    margin-top: auto;
}

.btn-view-details {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.btn-view-details:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
    text-decoration: none;
}

.btn-outline-primary {
    border: 2px solid #1e40af;
    color: #1e40af;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-primary:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: white;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
    text-decoration: none;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}


/* ===== POPULAR CITIES ===== */
.bg-light {
    background: var(--gray-50) !important;
}

.city-card {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-normal);
    display: block;
}

.city-card:hover {
    transform: translateY(-8px);
    text-decoration: none;
    color: inherit;
}

.city-card .card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
    background: white;
    overflow: hidden;
    height: 100%;
}

.city-card:hover .card {
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.15);
    border: 1px solid rgba(30, 64, 175, 0.1);
}

.city-card .card-body {
    padding: 2rem 1.5rem;
    position: relative;
    text-align: center;
}

.city-card .card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.city-card:hover .card-body::before {
    transform: scaleX(1);
}

.city-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 50%;
    transition: all var(--transition-normal);
    margin-bottom: 1rem;
}

.city-card:hover .city-icon-wrapper {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    transform: scale(1.1);
}

.city-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
}

.city-card:hover .city-name {
    color: #1e40af;
}

.property-count {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.property-count i {
    font-size: 0.8rem;
    color: #1e40af;
}

.popular-cities .card {
    border: none;
    border-radius: 20px;
    transition: all var(--transition-normal);
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.popular-cities .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.15);
    border: 1px solid rgba(30, 64, 175, 0.1);
}

.popular-cities .text-primary {
    color: #1e40af !important;
}

.popular-cities .card-title {
    color: var(--gray-800);
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
    transition: color var(--transition-fast);
}

.popular-cities .card:hover .card-title {
    color: #1e40af;
}

.popular-cities .card-body {
    padding: 2rem 1.5rem;
    position: relative;
}

.popular-cities .card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.popular-cities .card:hover .card-body::before {
    transform: scaleX(1);
}

.city-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.popular-cities .card:hover .city-icon-wrapper {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    transform: scale(1.1);
}

.property-count {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.property-count i {
    font-size: 0.8rem;
    color: #1e40af;
}

/* ===== WHY CHOOSE US ===== */
.bg-gradient-light {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-50) 100%);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.shadow-soft {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.why-choose-us .text-gradient {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 2.5rem;
}

.why-choose-us .bg-gradient-primary {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.why-choose-us h5 {
    color: var(--gray-800);
    font-weight: 700;
    margin-bottom: 1rem;
}

.why-choose-us p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .text-gradient {
        font-size: 2.2rem;
    }

    .home-search-section {
        margin-top: 0;
        padding: 0 0 1.5rem 0;
    }

    .home-search-section .card-body {
        padding: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 0.25rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }


    .featured-section {
        padding: 2rem 0;
    }


    .featured-section .text-gradient {
        font-size: 1.8rem;
    }

    .why-choose-us .text-gradient {
        font-size: 1.8rem;
    }

    .why-choose-us .bg-gradient-primary {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 576px) {
    .text-gradient {
        font-size: 1.8rem;
    }

    .home-search-section {
        padding: 0 0 1rem 0;
    }

    .home-search-section .card-body {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }


    .property-card .card-body {
        padding: 1rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

}

/* ===== UTILITY CLASSES ===== */
.rounded-xl {
    border-radius: 1rem !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.text-center {
    text-align: center !important;
}

.text-decoration-none {
    text-decoration: none !important;
}

.text-dark {
    color: var(--gray-800) !important;
}

.text-muted {
    color: var(--gray-600) !important;
}

.text-white {
    color: white !important;
}

.border-0 {
    border: none !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.gap-3 {
    gap: 1rem !important;
}

.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.top-0 {
    top: 0 !important;
}

.start-0 {
    left: 0 !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

.opacity-10 {
    opacity: 0.1 !important;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.me-1 {
    margin-right: 0.25rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.fa-2x {
    font-size: 2em !important;
}

.fa-3x {
    font-size: 3em !important;
}

/* ===== MULTIPLE LOCATION SELECTION STYLES ===== */
.location-selector {
    position: relative;
    width: 100%;
}

.selected-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    min-height: 20px;
}

.selected-location-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-100);
    color: var(--primary-700);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--primary-200);
    transition: all 0.2s ease;
}

.selected-location-tag:hover {
    background: var(--primary-200);
    transform: translateY(-1px);
}

.selected-location-tag i {
    font-size: 12px;
}

.remove-location {
    background: none;
    border: none;
    color: var(--primary-600);
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-location:hover {
    background: var(--primary-300);
    color: var(--primary-800);
    transform: scale(1.1);
}

.location-input-group {
    position: relative;
}

.location-input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.location-input-group input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.location-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.location-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--gray-100);
}

.location-option:last-child {
    border-bottom: none;
}

.location-option:hover {
    background: var(--primary-50);
    color: var(--primary-700);
}

.location-option i {
    color: var(--primary-500);
    font-size: 14px;
}

.location-option span {
    font-weight: 500;
}

/* Mobile responsiveness for location selector */
@media (max-width: 768px) {
    .selected-location-tag {
        font-size: 13px;
        padding: 5px 10px;
    }

    .location-input-group input {
        padding: 10px 14px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .location-option {
        padding: 10px 14px;
    }
}

/* Animation for adding/removing locations */
.selected-location-tag {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Loading state for dropdown */
.location-dropdown.loading {
    display: block;
}

.location-dropdown.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-200);
    border-top: 2px solid var(--primary-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ===== RADIO BUTTON STYLES ===== */
.radio-group {
    display: flex;
    flex-direction: column;
    margin: 5px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}


.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    background: white;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.radio-option:hover .radio-custom {
    border-color: var(--primary-400);
}

.radio-option input[type="radio"]:checked+.radio-custom {
    border-color: var(--primary-500);
    background: var(--primary-500);
}

.radio-option input[type="radio"]:checked+.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

.radio-option input[type="radio"]:checked~.radio-label {
    color: var(--primary-700);
    font-weight: 600;
}

.radio-label {
    font-size: 14px;
    color: var(--gray-700);
    transition: all 0.2s ease;
    user-select: none;
}

.radio-option input[type="radio"]:focus+.radio-custom {
    box-shadow: 0 0 0 3px var(--primary-100);
}

/* Mobile responsiveness for radio buttons */
@media (max-width: 768px) {
    .radio-option {
        padding: 6px 10px;
    }

    .radio-custom {
        width: 16px;
        height: 16px;
    }

    .radio-option input[type="radio"]:checked+.radio-custom::after {
        width: 5px;
        height: 5px;
    }

    .radio-label {
        font-size: 13px;
    }
}

/* ===== HOME PAGE SPECIFIC STYLES ===== */
/* Hero Section Overrides */
.hero-section {
    background: transparent;
    color: #1e40af;
    padding: 50px 0;
    margin-bottom: 0;
    /* Remove margin to allow search-section overlap */
    position: relative;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 2px;
}

/* Location Select Wrapper */
.location-select-wrapper {
    position: relative;
    z-index: 1050;
}

.location-input-group {
    position: relative;
    z-index: 1051;
}

.location-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
    z-index: 2;
}

#locationSearchInput {
    padding-right: 40px;
}

/* Location Suggestions - Hidden by default */
.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 250px;
    overflow-y: auto;
    z-index: 3000 !important;
    display: none;
    margin-top: -2px;
}

.location-suggestions.show {
    display: block;
}

.location-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-suggestion-item:last-child {
    border-bottom: none;
}

.location-suggestion-item:hover {
    background: #f8fafc;
    color: #1e40af;
}

.location-suggestion-item.selected {
    background: #dbeafe;
    color: #1e40af;
}

.location-suggestion-item i {
    color: #1e40af;
    font-size: 14px;
}

.selected-locations-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    min-height: 24px;
}

.location-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #93c5fd;
}

.location-tag .remove-tag {
    background: none;
    border: none;
    color: #1e40af;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
    font-size: 14px;
    line-height: 1;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.location-tag .remove-tag:hover {
    background: #93c5fd;
    color: #1e3a8a;
}

/* Fix card overflow to show dropdown */
.home-search-section .card {
    overflow: visible !important;
}

.home-search-section .card-body {
    overflow: visible !important;
    position: relative;
    z-index: 1;
}

/* Home Location Select - Hidden by default */
#homeLocationSelect {
    display: none;
}

/* Responsive styles for hero section */
@media (max-width: 768px) {
    .hero-section {
        padding: 35px 0;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .hero-title::after {
        width: 60px;
        height: 3px;
    }
}