/**
 * ATA EMLAK - Ana Stiller
 * Modern ve şık emlak sitesi tasarımı
 */

/* ===== CSS Variables ===== */
:root {
    --primary: #1e3a5f;
    --primary-dark: #152a45;
    --primary-light: #2a4f7a;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-dark: #0f172a;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-white: #ffffff;

    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-top: 1rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.logo i {
    font-size: 1.75rem;
    color: var(--accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.btn-nav span {
    display: none;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* ===== Search Box ===== */
.search-box {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 800px;
}

.search-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.search-tab {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-primary);
    transition: var(--transition);
}

.search-tab.active,
.search-tab:hover {
    background: var(--primary);
    color: var(--text-white);
}

.search-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.search-form .form-group {
    position: relative;
}

.search-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-form select,
.search-form input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: var(--transition);
}

.search-form select:focus,
.search-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.search-btn {
    grid-column: span 4;
}

/* ===== Stats Section ===== */
.stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Listings Section ===== */
.listings-section {
    padding: 5rem 0;
}

.listings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
}

.filter-tab {
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

/* ===== Property Cards ===== */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.property-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.property-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-satilik {
    background: var(--success);
    color: var(--text-white);
}

.badge-kiralik {
    background: var(--danger);
    color: var(--text-white);
}

.property-type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-white);
    backdrop-filter: blur(4px);
}

.property-content {
    padding: 1.5rem;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.property-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.property-location i {
    color: var(--accent);
}

.property-features {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.feature-item i {
    color: var(--primary);
}

/* ===== Detail Page ===== */
.detail-page {
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.detail-header {
    margin-bottom: 2rem;
}

.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.detail-breadcrumb a:hover {
    color: var(--primary);
}

.detail-breadcrumb i {
    font-size: 0.625rem;
}

.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.detail-title h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.detail-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.detail-location i {
    color: var(--accent);
}

.detail-price-box {
    text-align: right;
}

.detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.detail-ilan-no {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Gallery */
.gallery-section {
    margin-bottom: 2rem;
}

.gallery-main {
    height: 500px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 1rem;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 75px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 3px solid transparent;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
    border-color: var(--primary);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.detail-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.detail-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-card h3 i {
    color: var(--accent);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius);
}

.info-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Features List */
.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.feature-tag i {
    color: var(--success);
}

/* Description */
.description-text {
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Sidebar */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
}

.contact-card h3 {
    border: none;
    color: var(--text-white);
    justify-content: center;
    margin-bottom: 1rem;
    padding-bottom: 0;
}

.contact-card p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.contact-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-phone i {
    color: var(--accent);
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.contact-btn.whatsapp {
    background: #25D366;
    color: var(--text-white);
}

.contact-btn.whatsapp:hover {
    background: #128C7E;
}

.contact-btn.call {
    background: var(--accent);
    color: var(--text-white);
}

.contact-btn.call:hover {
    background: var(--accent-hover);
}

/* ===== Listings Page ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 8rem 0 3rem;
    margin-bottom: 3rem;
}

.page-header h1 {
    color: var(--text-white);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
}

.filters-bar {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filters-form .form-group {
    flex: 1;
    min-width: 200px;
}

.filters-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.filters-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.filters-form select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ===== Contact Page ===== */
.contact-section {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-info-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-info-content p {
    color: var(--text-secondary);
}

.contact-info-content a {
    color: var(--primary);
}

.contact-info-content a:hover {
    color: var(--accent);
}

.contact-form-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.contact-form-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--accent);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info li i {
    color: var(--accent);
    width: 20px;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .search-form {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-btn {
        grid-column: span 2;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-btn {
        display: block;
    }

    .btn-nav span {
        display: inline;
    }

    .hero {
        padding: 7rem 0 3rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .search-btn {
        grid-column: span 1;
    }

    .stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .stat-item {
        flex: 1;
        min-width: 100px;
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }

    .detail-title-row {
        flex-direction: column;
        gap: 1rem;
    }

    .detail-price-box {
        text-align: left;
    }

    .gallery-main {
        height: 300px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-info li {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* ===== No Image Placeholder ===== */
.no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
}

.no-image i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.no-image span {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    font-weight: 500;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.pagination a:hover,
.pagination span.active {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

/* ===== Alert Messages ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--info);
    color: var(--info);
}

/* ===== Hero Slider ===== */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-dark);
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 58, 95, 0.7) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 1rem;
    max-width: 700px;
    animation: fadeInUp 0.8s ease;
}

.slide-content h1 span {
    color: var(--accent);
}

.slide-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.slide-content .btn {
    animation: fadeInUp 0.8s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: var(--text-white);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.slider-nav:hover {
    background: var(--accent);
}

.slider-nav.prev {
    left: 2rem;
}

.slider-nav.next {
    right: 2rem;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot:hover,
.dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* Search Overlay */
.search-overlay {
    position: absolute;
    top: 50%;
    right: 3rem;
    transform: translateY(-50%);
    z-index: 10;
    width: 400px;
}

.search-overlay .container {
    padding: 0;
}

.search-overlay .search-box {
    max-width: 100%;
    margin: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
}

.search-overlay .search-tabs {
    margin-bottom: 1rem;
}

.search-overlay .search-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.search-overlay .search-form .form-group {
    width: 100%;
}

.search-overlay .search-btn {
    margin-top: 0.5rem;
}

/* Stats Section */
.stats-section {
    background: var(--bg-secondary);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-section .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stats-section .stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stats-section .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stats-section .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Logo Image Support */
.logo img {
    height: 45px;
    width: auto;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* No Image Placeholder */
.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: rgba(255, 255, 255, 0.5);
}

.no-image i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.no-image span {
    font-size: 0.875rem;
}

/* Responsive Slider */
@media (max-width: 1024px) {
    .search-overlay {
        width: 350px;
        right: 2rem;
    }
}

@media (max-width: 768px) {

    /* ===== Hero Slider Mobile ===== */
    .hero-slider {
        height: auto;
        min-height: auto;
    }

    .slide {
        position: relative;
        min-height: 60vh;
    }

    .slide:not(.active) {
        display: none;
    }

    .slide-content {
        padding: 100px 0 30px;
        min-height: 60vh;
    }

    .slide-content h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .slide-content p {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }

    .slide-content .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .slider-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .slider-nav.prev {
        left: 0.75rem;
    }

    .slider-nav.next {
        right: 0.75rem;
    }

    .slider-dots {
        bottom: 1rem;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    /* ===== Search Overlay Mobile ===== */
    .search-overlay {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        padding: 1.5rem;
        background: var(--primary-dark);
    }

    .search-overlay .container {
        padding: 0;
    }

    .search-overlay .search-box {
        background: var(--bg-secondary);
        border-radius: var(--radius-lg);
    }

    .search-tabs {
        display: flex;
        width: 100%;
    }

    .search-tab {
        flex: 1;
        text-align: center;
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .search-form {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .search-form .form-group {
        width: 100% !important;
    }

    .search-btn {
        width: 100% !important;
        margin-top: 0.5rem;
    }

    /* ===== Stats Section Mobile ===== */
    .stats-section {
        padding: 2rem 0;
    }

    .stats-section .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stats-section .stat-card {
        padding: 1rem;
    }

    .stats-section .stat-number {
        font-size: 1.75rem;
    }

    .stats-section .stat-label {
        font-size: 0.75rem;
    }

    /* ===== Listings Section Mobile ===== */
    .listings-section {
        padding: 3rem 0;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .section-title p {
        font-size: 0.9375rem;
    }

    .listings-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .filter-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .filter-tab {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    .listings-header .btn-outline {
        text-align: center;
        justify-content: center;
    }

    .listings-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .property-card {
        border-radius: var(--radius-lg);
    }

    .property-image {
        height: 200px;
    }

    .property-content {
        padding: 1.25rem;
    }

    .property-price {
        font-size: 1.25rem;
    }

    .property-title {
        font-size: 1rem;
    }

    .property-features {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .feature-item {
        font-size: 0.8125rem;
    }

    /* ===== Detail Page Mobile ===== */
    .detail-page {
        padding-top: 5rem;
        padding-bottom: 2rem;
    }

    .detail-breadcrumb {
        font-size: 0.75rem;
        flex-wrap: wrap;
    }

    .detail-title h1 {
        font-size: 1.375rem;
    }

    .detail-price {
        font-size: 1.5rem;
    }

    .gallery-main {
        height: 250px;
        border-radius: var(--radius-lg);
    }

    .gallery-thumbs {
        gap: 0.5rem;
    }

    .gallery-thumb {
        width: 70px;
        height: 52px;
    }

    .detail-card {
        padding: 1.25rem;
        border-radius: var(--radius-lg);
    }

    .detail-card h3 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .info-grid {
        gap: 0.75rem;
    }

    .info-item {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }

    .features-list {
        gap: 0.5rem;
    }

    .feature-tag {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }

    /* ===== Contact Page Mobile ===== */
    .contact-section {
        padding: 5rem 0 3rem;
    }

    .contact-grid {
        gap: 2rem;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .contact-icon {
        margin: 0 auto;
    }

    /* ===== Footer Mobile ===== */
    .footer {
        padding: 3rem 0 0;
    }

    .footer-grid {
        gap: 2rem;
    }

    .footer-logo img {
        max-height: 40px;
    }

    .footer-about p {
        font-size: 0.875rem;
    }

    .footer-col h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer-col ul li {
        margin-bottom: 0.5rem;
    }

    .footer-col ul a {
        font-size: 0.875rem;
    }

    /* ===== Buttons Mobile ===== */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    /* ===== Container Mobile ===== */
    .container {
        padding: 0 1rem;
    }

    /* ===== Typography Mobile ===== */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.125rem;
    }
}

/* ===== Extra Small Devices (phones < 480px) ===== */
@media (max-width: 480px) {
    .slide-content h1 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 0.875rem;
    }

    .stats-section .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .stats-section .stat-number {
        font-size: 1.5rem;
    }

    .property-features {
        justify-content: space-between;
    }

    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .filter-tab {
        flex-shrink: 0;
    }

    .detail-title h1 {
        font-size: 1.25rem;
    }

    .info-grid {
        grid-template-columns: 1fr !important;
    }

    .gallery-main {
        height: 200px;
    }

    .gallery-thumb {
        width: 60px;
        height: 45px;
    }

    .contact-card .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Fix for iOS Safari ===== */
@supports (-webkit-touch-callout: none) {
    .hero-slider {
        min-height: -webkit-fill-available;
    }

    .slide {
        min-height: -webkit-fill-available;
    }
}

/* ===== Print Styles ===== */
@media print {

    .navbar,
    .footer,
    .search-overlay,
    .slider-nav,
    .slider-dots {
        display: none !important;
    }

    .hero-slider {
        height: auto;
        min-height: auto;
    }

    .slide {
        position: relative;
        height: auto;
    }
}