/* Emlak.az - Əsas Stil Faylı */

/* CSS Variables */
:root {
    --primary-color: #1a5f7a;
    --secondary-color: #159895;
    --accent-color: #ff6b35;
    --accent-hover: #e55a2b;
    --text-dark: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}
@media (max-width: 768px) {

    .container {
        padding: 0 12px;
    }

    .header-main {
        padding: 12px 0;
        gap: 10px;
    }

    .logo-main {
        font-size: 18px;
    }

    .logo-sub {
        font-size: 9px;
    }

    .header-actions {
        gap: 8px;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .search-container {
        padding: 15px;
    }

    .search-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .search-tab {
        padding: 8px 14px;
        font-size: 14px;
    }

    .search-form {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .form-group {
        width: 100%;
    }

    .form-group label {
        margin-bottom: 6px;
        font-size: 13px;
    }

    .form-control,
    .search-btn {
        width: 100%;
        min-width: 100%;
        height: 48px;
        padding: 12px 14px;
        font-size: 16px;
        box-sizing: border-box;
    }

    .search-btn {
        padding: 12px;
    }

    select.form-control {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        white-space: normal;
    }

    .hero {
        padding: 50px 0 70px;
    }

    .hero h1 {
        font-size: 20px;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 25px;
    }

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

    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .listings {
        padding: 50px 0;
    }

    .listings-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

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

    .listing-image {
        height: 220px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 45px;
        height: 45px;
    }
}
#rentTypeBox {
    display: none;
}
a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.districtBox,
.metroBox {
    display: none;
}
.btn-primary {
    background: var(--accent-color);
    color: white;
}
.roomsBox {
    display: none;
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,53,0.3);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 15px 35px;
    font-size: 16px;
}

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary-color);
    color: white;
    padding: 10px 0;
    font-size: 13px;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact span {
    margin-right: 20px;
}

.header-contact i {
    margin-right: 5px;
}

.header-links {
    display: flex;
    gap: 20px;
}

.header-links a {
    color: white;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.header-links a:hover {
    opacity: 1;
}

.language-dropdown {
    position: relative;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--primary-color);
}

.logo i {
    font-size: 32px;
    color: var(--accent-color);
}

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

.logo-main {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.logo-sub {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav {
    display: block;
}

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

.nav-menu a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: left 0.3s;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

.mobile-nav {
    padding: 20px 0;
}

.mobile-nav a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.mobile-nav a i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 80px 0 100px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png');
    opacity: 0.1;
}

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

.hero h1 {
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 24px;
    opacity: 0.95;
    margin-bottom: 40px;
}

/* Search Container */
.search-container {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    max-width: 1000px;
    margin: 0 auto;
}

.search-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.search-tab {
    background: none;
    border: none;
    padding: 10px 25px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-light);
    position: relative;
    transition: var(--transition);
    border-radius: var(--radius);
}

.search-tab:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.search-tab.active {
    color: var(--primary-color);
    font-weight: 600;
}

.search-tab.active::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26,95,122,0.1);
}

.search-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    height: fit-content;
}

.search-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,53,0.3);
}

/* Stats Section */
.stats {
    background: var(--bg-white);
    padding: 50px 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
    opacity: 0.8;
}

.stat-item h3 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-item p {
    color: var(--text-light);
    font-size: 15px;
}

/* Categories */
.categories {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-light);
    font-size: 18px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 35px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: white;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.category-card span {
    color: var(--text-muted);
    font-size: 14px;
}

/* Listings Section */
.listings {
    padding: 80px 0;
    background: var(--bg-white);
}

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

.view-all {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.view-all:hover {
    color: var(--accent-color);
    gap: 12px;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.listing-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.listing-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.listing-card:hover .listing-image img {
    transform: scale(1.1);
}

.listing-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: white;
    padding: 6px 15px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.listing-badge.rent {
    background: var(--primary-color);
}

.listing-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--bg-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.listing-favorite:hover,
.listing-favorite.active {
    background: var(--accent-color);
    color: white;
}

.listing-content {
    padding: 25px;
}

.listing-price {
    font-size: 26px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.listing-price span {
    font-size: 14px;
    color: var(--text-light);
    font-weight: normal;
}

.listing-title {
    font-size: 17px;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    height: 48px;
    overflow: hidden;
}

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

.listing-location i {
    color: var(--accent-color);
}

.listing-features {
    display: flex;
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.feature {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 14px;
}

.feature i {
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-section .btn {
    background: var(--accent-color);
    color: white;
    font-size: 18px;
    padding: 18px 40px;
}

.cta-section .btn:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-brand p {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-contact {
    margin-bottom: 25px;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--accent-color);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    font-size: 18px;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 20px;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #aaa;
    transition: var(--transition);
    display: inline-block;
}

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 24px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
}
