* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f97316;
    --secondary-color: #dc2626;
    --dark-bg: #1e293b;
    --light-bg: #f8fafc;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--text-dark);
    line-height: 1.6;
}

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

/* HEADER STYLES */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.logo-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 12px;
    color: var(--text-light);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, #be123c 100%);
    color: white;
    padding: 30px 0 40px 0;
    min-height: auto;
}

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

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

/* SEARCH BOX */
.search-box {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    margin-top: 20px;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.search-field {
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.search-field select,
.search-field input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-dark);
    background: white;
    transition: all 0.3s;
}

.search-field select:focus,
.search-field input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.search-btn {
    width: 100%;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
    transform: translateY(-2px);
}

.search-btn:active {
    transform: translateY(0);
}

/* RESULTS SECTION */
.results-section {
    padding: 50px 0;
    background: linear-gradient(to bottom, #f8fafc, #e2e8f0);
    min-height: 600px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.results-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.results-header p {
    color: var(--text-light);
    font-size: 14px;
}

/* PROPERTIES GRID */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* PROPERTY CARD */
.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

/* PROPERTY IMAGE */
.property-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.property-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
    font-size: 20px;
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: var(--light-bg);
}

.favorite-btn.active {
    background: #fee2e2;
}

.favorite-btn.active::before {
    content: '❤️';
}

.favorite-btn::before {
    content: '🤍';
}

/* PROPERTY CONTENT */
.property-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.property-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
    flex: 1;
}

.property-rating {
    background: #fef3c7;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #a16207;
    display: flex;
    align-items: center;
    gap: 3px;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.property-location::before {
    content: '📍';
}

/* PROPERTY PRICE & SPECS */
.property-price-specs {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.property-price {
    display: flex;
    flex-direction: column;
}

.property-price-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.property-price-label {
    font-size: 11px;
    color: var(--text-light);
}

.property-specs {
    display: flex;
    gap: 20px;
    text-align: right;
}

.property-spec {
    display: flex;
    flex-direction: column;
}

.property-spec-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.property-spec-label {
    font-size: 11px;
    color: var(--text-light);
}

/* PROPERTY DESCRIPTION */
.property-description {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

/* VIEW DETAILS BUTTON */
.view-details-btn {
    margin-top: auto;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.view-details-btn:hover {
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.3);
    transform: translateY(-2px);
}

/* NO RESULTS */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-content p:first-child {
    font-size: 60px;
    margin-bottom: 15px;
}

.no-results-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.no-results-content p:last-child {
    color: var(--text-light);
    font-size: 16px;
}

.details-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    overflow-y: auto;
    z-index: 200;
}

.details-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Back Button */
.back-btn {
    position: sticky;
    top: 0;
    left: 20px;
    margin: 20px 0 0 0;
    padding: 12px 20px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.back-btn:hover {
    background: #e2e8f0;
    transform: translateX(-5px);
}

/* Details Content */
.details-content {
    padding: 0 20px 60px 20px;
}

/* Details Image */
.details-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Details Main */
.details-main {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-top: -40px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Details Header */
.details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.details-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.details-location {
    font-size: 16px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.details-location::before {
    content: '📍';
}

.details-favorite-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.details-favorite-btn:hover {
    border-color: var(--primary-color);
    background: #fff7ed;
    transform: scale(1.05);
}

.details-favorite-btn.active {
    border-color: #dc2626;
    background: #fee2e2;
}

.details-favorite-btn.active::before {
    content: '❤️';
}

/* Price Box */
.price-box {
    background: linear-gradient(135deg, #fff7ed, #fee2e2);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.price-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.price-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.spec-item {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.spec-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.spec-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Description Section */
.description-section {
    margin-bottom: 40px;
}

.description-section h2,
.landlord-section h2,
.contact-form-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.description-section p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

/* Landlord Section */
.landlord-section {
    margin-bottom: 40px;
}

.landlord-card {
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.landlord-info {
    flex: 1;
}

.landlord-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.landlord-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.landlord-contact {
    flex: 1;
}

.call-btn {
    width: 100%;
    padding: 15px 20px;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.call-btn:hover {
    background: #16a34a;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
}

/* Contact Form Section */
.contact-form-section {
    margin-bottom: 40px;
}

.contact-form-section form {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
}

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

.contact-form-section input,
.contact-form-section textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.contact-form-section input:focus,
.contact-form-section textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
    transform: translateY(-2px);
}

/* Safety Tips */
.safety-tips {
    background: #dbeafe;
    border-left: 4px solid #0284c7;
    border-radius: 8px;
    padding: 15px;
    font-size: 14px;
    color: #0c4a6e;
}

.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #cbd5e1;
    padding: 60px 0 0 0;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 50px 0;
}

/* Footer Column */
.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

/* Footer Logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.footer-logo h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 2px;
}

.footer-logo p {
    font-size: 11px;
    color: #94a3b8;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
}

/* Footer Links */
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Footer Contact */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-item {
    font-size: 14px;
    color: #cbd5e1;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #fb923c;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.3);
}

/* Footer Divider */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #475569, transparent);
    margin: 40px 0;
}

/* Footer Bottom */
.footer-bottom {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #334155;
}

.copyright {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.copyright a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.copyright a:hover {
    color: #fb923c;
}

.footer-tagline {
    font-size: 13px;
    color: #64748b;
    font-style: italic;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .hero {
        padding: 20px 0 30px 0;
    }

    .hero-content h2 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .nav {
        gap: 10px;
        font-size: 12px;
    }

    .search-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .search-field label {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .search-field select,
    .search-field input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .search-box {
        padding: 15px;
        margin-top: 15px;
        border-radius: 12px;
    }

    .search-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .property-card {
        margin-bottom: 15px;
    }

    .details-header {
        flex-direction: column;
    }

    .details-header h1 {
        font-size: 24px;
    }

    .price-value {
        font-size: 32px;
    }

    .landlord-card {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .details-main {
        padding: 15px;
    }

    .details-image {
        height: 250px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-bottom {
        padding: 15px 0;
    }
}

/* Scroll to Top Button Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer {
    animation: slideUp 0.6s ease-out;
}
