:root {
    --primary: #2563eb;
    --secondary: #111827;
    --light: #f9fafb;
    --dark: #0f172a;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--light);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-menu a {
    font-weight: 600;
    color: var(--text);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.hero {
    padding: 70px 0;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    text-align: center;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 54px);
    margin: 0 0 15px;
}

.hero p {
    font-size: 18px;
    opacity: .95;
}

.section {
    padding: 45px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .06);
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card-body {
    padding: 16px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
}

.site-footer {
    background: var(--secondary);
    color: #fff;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

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

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-menu {
        display: none;
    }
}

@media (max-width: 560px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        height: 62px;
    }

    .hero {
        padding: 45px 0;
    }

    .footer-inner {
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .card-body div[style*="grid-template-columns:repeat(4,1fr)"],
    .card-body div[style*="grid-template-columns:repeat(2,1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

.ilan-grid-view {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.ilan-list-view {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.ilan-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .06);
}

.ilan-card img,
.ilan-no-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ilan-card-body {
    padding: 14px;
}

.ilan-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.35;
}

.ilan-price {
    display: block;
    color: #dc2626;
    font-size: 22px;
    margin: 8px 0;
}

.favori-btn {
    margin-top: 10px;
    padding: 9px 12px;
    border: none;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

.ilan-detail-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.ilan-detail-gallery img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border);
}

@media (max-width: 1000px) {
    .ilan-grid-view {
        grid-template-columns: repeat(2, 1fr);
    }

    section .container > div[style*="grid-template-columns:2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    .ilan-grid-view {
        grid-template-columns: 1fr;
    }

    .ilan-detail-gallery {
        grid-template-columns: 1fr;
    }

    .ilan-detail-gallery img {
        height: 240px;
    }

    form div[style*="grid-template-columns:repeat(4,1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

.user-menu {
    position: relative;
}

.user-menu-btn {
    padding: 10px 14px;
    border: none;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 42px;
    min-width: 210px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .15);
    overflow: hidden;
    z-index: 100;
}

.user-menu-dropdown a {
    display: block;
    padding: 12px 14px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.user-menu-dropdown a:hover {
    background: #f3f4f6;
}

.user-menu-dropdown {
    display: none;
}

.user-menu.active .user-menu-dropdown {
    display: block;
}

.profile-cover {
    height: 260px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    overflow: hidden;
}

.profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-section {
    margin-top: -80px;
    position: relative;
    z-index: 2;
}

.profile-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    gap: 22px;
    align-items: flex-start;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .12);
}

.profile-avatar {
    width: 140px;
    height: 140px;
    flex: 0 0 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    background: #e5e7eb;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .18);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 58px;
    font-weight: bold;
}

.profile-info h1 {
    margin: 8px 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blue-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #1d9bf0;
    color: #fff;
    border-radius: 50%;
    font-size: 15px;
    font-weight: bold;
}

.profile-stats {
    display: flex;
    gap: 20px;
    margin: 18px 0;
    flex-wrap: wrap;
}

.profile-stats span {
    background: #f9fafb;
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 12px;
}

.profile-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    .profile-cover {
        height: 190px;
    }

    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-info h1 {
        justify-content: center;
    }

    .profile-stats {
        justify-content: center;
    }
}

.firma-grid-view {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.firma-list-view {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.firma-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .06);
}

.firma-logo-box {
    width: 100%;
    height: 180px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.firma-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
}

.firma-logo-placeholder {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: bold;
}

.firma-card-body {
    padding: 14px;
}

.firma-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

@media (max-width: 1000px) {
    .firma-grid-view {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .firma-grid-view {
        grid-template-columns: 1fr;
    }
}