/* Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --gray-color: #95a5a6;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f8f9fa;
}

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

/* Header */
.header {
    background: white;
    box-shadow: var(--box-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    /* Increase logo a bit while keeping header compact */
    height: 80px; /* slightly larger for better appearance */
    width: auto;
    max-width: 220px; /* allow a bit more width without breaking layout */
    object-fit: contain;
}

/* Responsive logo */
@media (max-width: 768px) {
    .logo img {
        height: 48px;
        max-width: 160px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 40px;
        max-width: 140px;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
}

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

/* Butonlar */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

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

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    /* Reduce top padding and remove manual margin so content sits closer under header */
    padding: 80px 0 80px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Ensure main content is pushed below the fixed header */
.main-content {
    padding-top: 130px; /* adjust for slightly larger header */
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Arama Formu */
.search-form {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.hero-search {
    margin-bottom: 3rem;
}

.search-fields {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-search {
    padding: 1rem 2rem;
    white-space: nowrap;
}

/* İstatistikler */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Bölümler */
.section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.section-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* İlan Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.listing-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

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

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.listing-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.listing-content {
    padding: 1.5rem;
}

.listing-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.listing-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.listing-location {
    color: var(--gray-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.listing-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-color);
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.listing-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-color);
}

.listing-date {
    font-size: 0.8rem;
    color: var(--gray-color);
}

/* Şehir Grid */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.city-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.city-card:hover {
    transform: translateY(-5px);
}

.city-image {
    height: 200px;
    overflow: hidden;
}

.city-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.city-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1.5rem;
}

.city-info h3 {
    margin-bottom: 0.5rem;
}

.listing-count {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Özellikler Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.feature {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,250,0.98));
    border-radius: 12px;
    padding: 1.6rem;
    box-shadow: 0 6px 20px rgba(15,24,39,0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(15,24,39,0.10);
}

.feature-top {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), #6c8ef5);
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(52,152,219,0.12);
}

.feature h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--dark-color);
}

.feature p {
    margin: 0;
    color: var(--gray-color);
    font-size: 0.95rem;
}

.feature-cta {
    margin-top: auto;
    text-align: left;
}

.feature .btn-small {
    padding: 0.5rem 0.9rem;
    font-size: 0.88rem;
    border-radius: 8px;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}

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

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 2rem 0;
    text-align: center;
    color: var(--light-color);
}

/* Responsive */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        transition: var(--transition);
        padding: 2rem;
        z-index: 1002;
        pointer-events: none; /* kapalıyken tıklamaları engelleme */
    }
    
    .nav.active {
        left: 0;
        pointer-events: auto; /* açıkken tıklamalar aktif */
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .search-fields {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Listing Card Stilleri */
.listing-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

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

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.listing-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.listing-badge.featured {
    background: var(--accent-color);
}

.listing-content {
    padding: 1.5rem;
}

.listing-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.listing-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.listing-location {
    color: var(--gray-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.listing-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-color);
}

.listing-features .feature {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.listing-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-color);
}

.listing-date {
    font-size: 0.8rem;
    color: var(--gray-color);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--gray-color);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--light-color);
}

.no-results h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* No Results Stili */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 2rem 0;
}

.no-results i {
    font-size: 4rem;
    color: var(--light-color);
    margin-bottom: 1.5rem;
}

.no-results h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.no-results p {
    color: var(--gray-color);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.no-results .btn {
    margin: 0 0.5rem;
}

/* ./assets/css/style.css veya ./assets/css/admin.css dosyasına ekleyin */
.message-form-container {
    position: fixed;
    bottom: 0;
    left: 250px; /* Sidebar genişliği */
    right: 0;
    background: white;
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
    z-index: 1000;
    }

.message-form {
    display: flex;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    }

/* Kullanıcı Avatar Düzenlemeleri */
.listing-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.user-avatar {
    position: relative;
    width: 40px;
    height: 40px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a6cf7, #6a11cb);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    border: 2px solid #e9ecef;
}

.user-info {
    flex: 1;
}

.user-name {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.user-rating {
    font-size: 12px;
    color: #ffc107;
}

/* İlan Türü Badge Düzenlemeleri */
.listing-badge.type-sitter {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.listing-badge.type-adoption {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
}

/* Contact Page */
.contact-page .contact-layout {
    display: grid;
    grid-template-columns: 1fr minmax(360px, 520px);
    gap: 2rem;
    align-items: flex-start;
}

.contact-page .contact-info-block {
    color: var(--dark-color);
}

.contact-page .contact-info-block .contact-info {
    margin-top: 1rem;
}

.contact-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
}

/* Sağ tarafa yaslamak için: kartı sütun içinde sağa it */
.contact-card {
    margin-left: auto;
    max-width: 480px;
    border: 1px solid rgba(30,30,30,0.04);
    background: #ffffff;
    padding: 20px;
}

.contact-card-title {
    margin-bottom: 1rem;
}

.contact-form .hp {
    position: absolute;
    left: -5000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form .form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-form .form-group {
    flex: 1 1 220px;
    min-width: 220px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid #e1e5ea;
    border-radius: var(--border-radius);
    background: #fff;
    transition: var(--transition);
    font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.12);
}

.contact-form .form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

/* Alerts (basic) */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.alert-error {
    background: #fdeaea;
    color: #b42318;
    border: 1px solid #f7c5c0;
}
.alert-success {
    background: #eaf7ee;
    color: #1e7e34;
    border: 1px solid #c7e8d3;
}

@media (max-width: 992px) {
    .contact-page .contact-layout {
        grid-template-columns: 1fr;
    }
    .contact-card {
        max-width: 640px;
        margin: 0 auto;
    }
    .contact-page .contact-info-block {
        text-align: center;
    }
}

/* Hafif görsel iyileştirmeler */
.contact-card-title {
    text-align: left;
}
.contact-card .btn-primary {
    padding: 0.6rem 1.1rem;
}

/* Success modal styles for contact form */
.contact-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.contact-modal {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.contact-modal .icon {
    font-size: 40px;
    color: #16a34a;
    margin-bottom: 8px;
}
.contact-modal h3 {
    margin: 0 0 8px;
}
.contact-modal p {
    margin: 0 0 16px;
}