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

html {
    margin: 0;
    padding: 0;
    height: auto;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    height: auto;
    overflow-x: hidden;
}

:root {
    --primary-red: #E30613;
    --dark-red: #B30510;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #333333;
    --text-gray: #666666;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #FFFFFF;
    padding-top: 140px;
    margin: 0;
    padding-bottom: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* SABIT HEADER - Daha Kompakt */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

header.scrolled {
    padding: 3px 0;
}

.header-top {
    background: var(--primary-red);
    padding: 12px 0;
    transition: all 0.3s ease;
}

header.scrolled .header-top {
    padding: 8px 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo {
    font-size: 2em;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

header.scrolled .logo {
    font-size: 1.6em;
}

.logo-icon {
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.logo-main {
    font-size: 1em;
    font-weight: 700;
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.4em;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.header-stats {
    display: flex;
    gap: 25px;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 1.5em;
    font-weight: bold;
    display: block;
    transition: all 0.3s ease;
}

header.scrolled .stat-number {
    font-size: 1.2em;
}

.stat-label {
    font-size: 0.8em;
    opacity: 0.9;
}

.header-bottom {
    background: white;
    padding: 10px 0;
    border-bottom: 1px solid var(--medium-gray);
}

.search-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 15px;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 10px 45px 10px 18px;
    border: 2px solid var(--medium-gray);
    border-radius: 50px;
    font-size: 0.95em;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}


/* MAIN CONTENT */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 20px 0;
    flex: 1;
    width: 100%;
}

.page-title {
    text-align: center;
    margin-bottom: 10px;
}

.page-title h1 {
    font-size: 1.8em;
    color: var(--dark-gray);
    margin-bottom: 3px;
}

.page-title h1 .highlight {
    color: var(--primary-red);
}

.page-subtitle {
    font-size: 0.95em;
    color: var(--text-gray);
}

.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 8px;
}

.map-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    height: 552px;
    border: 1px solid var(--medium-gray);
}

#map {
    height: 100%;
    width: 100%;
}

.products-panel {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    height: 552px;
    overflow-y: auto;
    border: 1px solid var(--medium-gray);
}

.panel-header {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--dark-gray);
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-red);
}

.product-count {
    color: var(--primary-red);
    font-size: 0.8em;
    font-weight: normal;
}

.product-card {
    background: white;
    border: 1px solid var(--medium-gray);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 4px solid var(--primary-red);
    display: flex;
    gap: 15px;
    align-items: center;
}

.product-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.15);
    border-left-width: 6px;
}

.product-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: var(--light-gray);
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.product-meta {
    display: flex;
    gap: 5px;              /* ✅ 8px → 5px */
    flex-wrap: wrap;
    margin-top: 8px;       /* ✅ 10px → 8px */
}

.badge {
    background: var(--light-gray);
    color: var(--text-gray);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    text-align: center;
}

.badge.city {
    background: var(--primary-red);
    color: white;
}

.badge.type {
    background: var(--dark-gray);
    color: white;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: var(--primary-red);
    color: white;
    padding: 35px 30px;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.modal-title {
    font-size: 2em;
    margin-bottom: 12px;
    font-weight: 600;
}

.modal-image-container {
    text-align: center;
    margin: 20px 0;
}

.modal-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.modal-body {
    padding: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.info-item {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-red);
}

.info-label {
    font-size: 0.85em;
    color: var(--text-gray);
    margin-bottom: 8px;
    font-weight: 500;
}

.info-value {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--dark-gray);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-weight: 300;
}

.close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.detail-section {
    margin-top: 30px;
    padding: 25px;
    background: var(--light-gray);
    border-radius: 10px;
}

.detail-section h3 {
    margin-bottom: 15px;
    color: var(--dark-gray);
    font-size: 1.3em;
}

.detail-section p {
    color: var(--text-gray);
    line-height: 1.6;
}

.action-button {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s;
}

.action-button:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 6, 19, 0.3);
}

/* Scrollbar */
.products-panel::-webkit-scrollbar {
    width: 8px;
}

.products-panel::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.products-panel::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 10px;
}

.products-panel::-webkit-scrollbar-thumb:hover {
    background: var(--dark-red);
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-gray);
}

.spinner {
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary-red);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* FOOTER - Tek Satır, Kompakt */
footer {
    background: var(--dark-gray);
    color: white;
    padding: 20px 20px 12px;
    margin-top: 15px;
    margin-bottom: 0;
    flex-shrink: 0;
    width: 100%;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-section h3 {
    margin-bottom: 5px;
    color: var(--primary-red);
    font-size: 0.95em;
}

.footer-section ul {
    list-style: none;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-section ul li {
    margin-bottom: 0;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
    font-size: 0.85em;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-section p {
    line-height: 1.3;
    opacity: 0.9;
    font-size: 0.85em;
    margin: 0;
}

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

.social-links a {
    display: inline-block;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
    font-size: 0.8em;
}

/* RESPONSIVE */
@media (max-width: 968px) {
    body {
        padding-top: 220px;
    }

    .header-stats {
        display: none;
    }

    .logo {
        font-size: 1.6em !important;
    }

    .search-container {
        flex-direction: column;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .map-container,
    .products-panel {
        height: 575px;
    }

    .product-image {
        width: 80px !important;
        height: 80px !important;
    }

    .page-title h1 {
        font-size: 1.8em;
    }

    .page-subtitle {
        font-size: 1em;
    }

    .modal-content {
        margin: 10px;
    }

    .modal-title {
        font-size: 1.5em;
    }

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

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

    .footer-section ul {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .logo-sub {
        display: none;
    }

    .filter-btn {
        font-size: 0.8em;
        padding: 8px 15px;
    }

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

    .product-image {
        width: 100% !important;
        height: 150px !important;
    }
}

/* Alt boşluk önleme */
body::after {
    content: '';
    display: block;
    height: 0;
    margin: 0;
    padding: 0;
}

footer::after {
    content: '';
    display: block;
    height: 0;
    margin: 0;
    padding: 0;
}