﻿/* =========================
   SEARCH SECTION
========================= */
.search-container {
    background: #f8fafc;
    padding: 24px 20px;
    margin: 0;
}

.search-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid #e5e7eb;
}

.search-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 2px;
}

.search-form {
    display: grid;
    grid-template-columns: 1.2fr 2fr 200px;
    gap: 20px;
    align-items: flex-end;
}

.search-input-group {
    display: flex;
    flex-direction: column;
}

.search-input-group label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.form-input {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    color: #1f2937;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: #fff;
}

.form-input:hover:not(:focus) {
    border-color: #cbd5e1;
}

.form-input::placeholder {
    color: #9ca3af;
}

.search-button {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
    white-space: nowrap;
    min-height: 48px;
}

.search-button:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.search-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Tablet */
@media (max-width: 1024px) {
    .search-card {
        padding: 32px;
    }

    .search-form {
        grid-template-columns: 1fr 1.5fr 180px;
        gap: 16px;
    }

    .search-title {
        font-size: 16px;
        margin-bottom: 24px;
    }
}

/* Tablet Medium */
@media (max-width: 768px) {
    .search-container {
        padding: 20px 16px;
    }

    .search-card {
        padding: 20px;
        border-radius: 12px;
    }

    .search-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .search-input-group:last-child .search-button {
        width: 100%;
    }

    .search-title {
        font-size: 12px;
        margin-bottom: 16px;
    }

    .form-input {
        padding: 12px 12px;
        font-size: 14px;
    }

    .search-button {
        font-size: 14px;
        padding: 12px 28px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .search-container {
        padding: 16px 12px;
    }

    .search-card {
        padding: 16px;
        border-radius: 10px;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .search-title {
        font-size: 10px;
        margin-bottom: 12px;
    }

    .form-input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .search-button {
        width: 100%;
        font-size: 12px;
        padding: 10px 18px;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .search-card {
        padding: 16px;
    }

    .search-title {
        font-size: 10px;
        margin-bottom: 14px;
    }

    .form-input {
        font-size: 13px;
    }
}

.search-results-info {
    display: none;
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
}

    .search-results-info i {
        margin-right: 8px;
        color: #2563eb;
    }

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    border-radius: 0 0 10px 10px;
    animation: slideDown 0.2s ease;
}

.autocomplete-icon {
    color: #6b7280;
    width: 18px;
    text-align: center;
    font-size: 15px;
}

.autocomplete-type {
    color: #9ca3af;
    font-size: 12px;
    margin-left: auto;
    font-weight: 500;
}

.highlight {
    font-weight: 700;
    color: #1f2937;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
    background: #fff;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

/* Hover & Active */
.autocomplete-item:hover,
.autocomplete-item.active {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #1f2937;
}

.autocomplete-item:hover .autocomplete-text,
.autocomplete-item:hover .autocomplete-icon,
.autocomplete-item:hover .autocomplete-type,
.autocomplete-item.active .autocomplete-text,
.autocomplete-item.active .autocomplete-icon,
.autocomplete-item.active .autocomplete-type {
    color: #2563eb;
}

.autocomplete-item.active {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-left: 3px solid #2563eb;
    padding-left: 13px;
}

/* Text */
.autocomplete-text {
    flex: 1;
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   Search Results Info
========================= */
.search-results-info {
    display: none;
    width: 100%;
    margin-top: 15px;
    padding: 14px 18px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    animation: fadeIn .25s ease-in-out;
}

    .search-results-info i {
        margin-right: 8px;
        color: #2563eb;
        font-size: 16px;
    }

/* Tablet */
@media (max-width: 768px) {
    .search-results-info {
        margin-top: 12px;
        padding: 12px 14px;
        border-radius: 12px;
        font-size: 14px;
        line-height: 1.5;
    }

        .search-results-info i {
            font-size: 15px;
        }
}

/* Mobile */
@media (max-width: 576px) {
    .search-results-info {
        width: 100%;
        padding: 12px;
        margin-top: 10px;
        border-radius: 10px;
        font-size: 13px;
        line-height: 1.45;
        text-align: left;
    }

        .search-results-info i {
            font-size: 14px;
            margin-right: 6px;
        }
}

/* Small Mobile */
@media (max-width: 360px) {
    .search-results-info {
        padding: 10px;
        font-size: 12px;
        border-radius: 8px;
    }
}

/* Smooth Appearance */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   PROPERTIES GRID & CARDS
========================= */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.property-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
}

/* Property Image Container */
.property-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Property Content */
.property-content {
    display: flex;
    flex-direction: column;
    /*gap: 12px; */
    padding: 20px;
    flex: 1;
}

.property-type {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

.property-location i {
    color: #f97316;
    font-size: 13px;
}

/* Price Section */
    .property-price {
        display: flex;
        align-items: baseline;
     /*   gap: 6px;*/
        margin: 8px 0;
       /* padding: 12px 0;*/
        border-top: 1px solid #f3f4f6;
        border-bottom: 1px solid #f3f4f6;
    }

        .property-price span:first-child {
            font-size: 24px;
            font-weight: 800;
            color: #2563eb;
        }

    .property-price-label {
        font-size: 13px;
        color: #6b7280;
        font-weight: 500;
    }
    /* Features Grid */
    .property-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
    /*    gap: 12px;*/
      /*  margin: 12px 0;*/
    }

.property-price {
    display: flex;
    align-items: baseline;
    /*gap: 6px;*/
  /*  margin: 8px 0;*/
    /*padding: 12px 0;*/
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.property-price-amount {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.property-price-label {
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .feature {
        display: flex;
        align-items: center;
       /* gap: 8px;
        padding: 10px;*/
        background: #f9fafb;
        border-radius: 8px;
        text-align: left;
    }

        .feature i {
            color: #2563eb;
            font-size: 14px;
            min-width: 16px;
        }

        .feature span {
            font-size: 13px;
            color: #6b7280;
            font-weight: 500;
            line-height: 1.3;
        }
    /* Property Meta Info */
    .property-meta {
        display: flex;
        flex-direction: column;
    /*    gap: 8px;
        margin: 8px 0;*/
        font-size: 13px;
    }

    .meta-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 0;
        color: #6b7280;
    }

        .meta-item i {
            color: #2563eb;
            font-size: 13px;
            min-width: 14px;
        }

        .meta-item.negotiable {
            color: orangered;
        }

            .meta-item.negotiable i {
                color: orangered;
            }
    /* Action Buttons */
    .property-actions {
        display: flex;
        gap: 10px;
        margin-top: auto;
        /*padding-top: 12px;*/
    }

        .property-actions .btn {
            flex: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 16px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            border: none;
            transition: all 0.2s ease;
            cursor: pointer;
            text-decoration: none;
        }

        .property-actions .btn-primary {
            background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
            color: #fff;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
        }

            .property-actions .btn-primary:hover {
                background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
                transform: translateY(-2px);
                text-decoration: none;
                color: #fff;
            }
    /* Desktop */
    @media (max-width: 1200px) {
        .properties-grid {
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            padding: 32px 16px;
        }

        .property-image {
            height: 220px;
        }
    }
    /* Tablet */
    @media (max-width: 768px) {
        .properties-grid {
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 16px;
            padding: 24px 16px;
        }

        .property-content {
            padding: 16px;
            /*  gap: 10px;*/
        }

        .property-title {
            font-size: 16px;
        }

        .property-image {
            height: 200px;
        }

        .property-price span:first-child {
            font-size: 20px;
        }

        .property-features {
            grid-template-columns: 1fr 1fr;
        }
    }
    /* Mobile */
            @media (max-width: 576px) {
                .properties-grid {
                    grid-template-columns: 1fr;
                    /*  gap: 12px; */
                    padding: 16px;
                }

                .property-image {
                    height: 200px;
                }

                .property-content {
                    padding: 14px;
                    /* gap: 8px;*/
                }

                .property-title {
                    font-size: 15px;
                }

                .property-price {
                  /*  margin: 6px 0;
                    padding: 10px 0;*/
                }

                .property-features {
                    margin: 8px 0;
                }

                .property-actions .btn {
                    padding: 10px 14px;
                    font-size: 13px;
                }
            }
            /* Small Mobile */
                    @media (max-width: 360px) {
                        .properties-grid {
                            padding: 12px;
                            gap: 10px;
                        }

                        .property-image {
                            height: 180px;
                        }

                        .property-card:hover {
                            transform: translateY(-4px);
                        }

                        .property-price span:first-child {
                            font-size: 18px;
                        }

                        .feature,
                        .meta-item {
                            font-size: 12px;
                        }
                    }
                    /* Search input */
                    .search-input-group.position-relative {
                        position: relative;
                    }

                    #searchText {
                        padding-right: 45px;
                    }


                    .clear-location-btn {
                        position: absolute;
                        top: 50%;
                        right: 12px;
                        transform: translateY(-50%);
                        width: 28px;
                        height: 28px;
                        border: none;
                        border-radius: 50%;
                        background: #2563eb;
                        color: #fff;
                        display: none;
                        align-items: center;
                        justify-content: center;
                        cursor: pointer;
                        z-index: 9999;
                    }

                        .clear-location-btn i {
                            font-size: 12px;
                        }

                    .clear-location-btn {
                        background: #2563eb;
                        color: #fff;
                        box-shadow: 0 2px 8px rgba(37, 99, 235, .3);
                    }

                        .clear-location-btn:hover {
                            background: #1e40af;
                        }
                    /* =========================
   HERO SECTION
========================= */
                    .hero {
                        background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
                        position: relative;
                        padding: 10px 20px;
                        text-align: center;
                        color: #fff;
                        overflow: hidden;
                        min-height: auto;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
                    }
                        /* Subtle animated background pattern */
                        .hero::before {
                            content: '';
                            position: absolute;
                            top: 0;
                            left: 0;
                            right: 0;
                            bottom: 0;
                            background: radial-gradient(circle at 20% 50%, rgba(255,255,255,.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
                            pointer-events: none;
                            animation: shimmer 8s ease-in-out infinite;
                        }

                    .hero-title {
                        font-size: clamp(1.35rem, 3.5vw, 2.4rem);
                        font-weight: 800;
                        margin-bottom: 8px;
                        letter-spacing: -0.5px;
                        position: relative;
                        z-index: 1;
                        line-height: 1.1;
                    }

                    .hero-subtitle {
                        font-size: clamp(0.85rem, 1.8vw, 0.95rem);
                        margin-bottom: 28px;
                        color: rgba(255, 255, 255, 0.95);
                        position: relative;
                        z-index: 1;
                        font-weight: 400;
                        line-height: 1.4;
                        max-width: 600px;
                        margin-left: auto;
                        margin-right: auto;
                    }

                    .hero-actions {
                        display: flex;
                        justify-content: center;
                        flex-wrap: wrap;
                        gap: 16px;
                        position: relative;
                        z-index: 1;
                    }

                    .post-property-btn {
                        display: inline-flex;
                        align-items: center;
                        justify-content: center;
                        gap: 8px;
                        min-width: 160px;
                        padding: 14px 32px;
                        border-radius: 50px;
                        font-size: 15px;
                        font-weight: 700;
                        background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
                        border: 2px solid transparent;
                        color: #fff;
                        box-shadow: 0 6px 18px rgba(245, 158, 11, 0.25);
                        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                        cursor: pointer;
                        text-decoration: none;
                        white-space: nowrap;
                    }

                        .post-property-btn:hover {
                            background: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
                            color: #fff;
                            transform: translateY(-2px);
                            box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
                            text-decoration: none;
                        }

                        .post-property-btn:active {
                            transform: translateY(0);
                            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
                        }

                        .post-property-btn i {
                            font-size: 15px;
                        }
                    /* Animation for shimmer effect */
                    @keyframes shimmer {
                        0%, 100% {
                            opacity: 0.5;
                            transform: scale(1);
                        }

                        50% {
                            opacity: 0.8;
                            transform: scale(1.02);
                        }
                    }
                    /* Slide down animation */
                    @keyframes slideDown {
                        from {
                            opacity: 0;
                            transform: translateY(-10px);
                        }

                        to {
                            opacity: 1;
                            transform: translateY(0);
                        }
                    }
                    /* Fade in animation */
                    @keyframes fadeInUp {
                        from {
                            opacity: 0;
                            transform: translateY(12px);
                        }

                        to {
                            opacity: 1;
                            transform: translateY(0);
                        }
                    }
                    /* Pulse animation for interactive elements */
                    @keyframes pulse {
                        0%, 100% {
                            opacity: 1;
                        }

                        50% {
                            opacity: 0.8;
                        }
                    }
                    /* Tablet */
                    @media (max-width: 768px) {
                        .hero {
                            padding: 20px 16px;
                            min-height: auto;
                        }

                        .hero-subtitle {
                            margin-bottom: 20px;
                        }

                        .post-property-btn {
                            min-width: 130px;
                            padding: 12px 24px;
                            font-size: 13px;
                        }
                    }
                    /* Mobile */
                    @media (max-width: 576px) {
                        .hero {
                            padding: 16px 16px;
                            min-height: auto;
                        }

                        .hero-title {
                            margin-bottom: 4px;
                        }

                        .hero-subtitle {
                            margin-bottom: 16px;
                            font-size: 0.8rem;
                        }

                        .post-property-btn {
                            min-width: 120px;
                            padding: 12px 20px;
                            font-size: 12px;
                            width: auto;
                        }

                        .hero-actions {
                            flex-direction: column;
                            align-items: stretch;
                        }
                    }
                    /* Small Mobile */
                    @media (max-width: 360px) {
                        .hero {
                            padding: 20px 12px;
                            min-height: auto;
                        }

                        .hero-title {
                            margin-bottom: 4px;
                        }

                        .hero-subtitle {
                            margin-bottom: 10px;
                        }

                        .post-property-btn {
                            font-size: 11px;
                            padding: 8px 16px;
                            min-width: 120px;
                        }
                    }