:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 0; /* Removed since we have margin-top on hero section */
}

main {
    flex: 1 0 auto;
}

/* Hero Section */
.hero-section {
    min-height: 550px;
    background: url('/img/mardin-background.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    margin-top: 56px; /* For fixed navbar */
    padding: 2rem 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    z-index: 10;
}

/* Ensure hero logo keeps its natural aspect ratio (CSS-only fix) */
.hero-logo {
    display: block;
    height: auto !important;
    width: auto;
    max-height: none !important;
    max-width: 500px;
    object-fit: contain;
    margin: 0 auto; /* center block image */
}

/* Property Images - Ana sayfa için optimize edilmiş fotoğraf stilleri */
.property-image-container {
    height: 240px;
    overflow: hidden;
    border-radius: 0.375rem 0.375rem 0 0;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-image {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    aspect-ratio: 4 / 3; /* Reserve space to reduce CLS */
}

.property-card:hover .property-image {
    transform: scale(1.02);
}

/* Team Images - Ekip fotoğrafları için optimize edilmiş stil */
.team-image-container {
    height: 280px;
    overflow: hidden;
    border-radius: 0.375rem 0.375rem 0 0;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.team-image {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    aspect-ratio: 1 / 1; /* Reserve space to reduce CLS */
}

.team-card:hover .team-image {
    transform: scale(1.05);
}

/* Property Cards */
.property-card {
    transition: all 0.3s ease;
}

    .property-card:hover {
        transform: translateY(-5px);
    }

/* Alternatif görüntü modu - Eğer fotoğraf çok geniş ise */
.property-image.wide-image,
.team-image.wide-image {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
}

/* Responsive kurallar */
@media (max-width: 768px) {
    .property-image-container {
        height: 200px;
    }
    
    .team-image-container {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .property-image-container {
        height: 180px;
    }
    
    .team-image-container {
        height: 220px;
    }
}

/* Team Cards */
.team-image {
    position: relative;
    overflow: hidden;
}

.team-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 0;
    transition: all 0.3s ease;
}

.team-card:hover .team-social {
    bottom: 0;
}

.team-social a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    background: #fff;
    color: #333;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

    .team-social a:hover {
        background: #0d6efd;
        color: #fff;
    }

/* Section Titles */
.section-title span {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
}

/* Statistics Section */
.stat-item i {
    opacity: 0.8;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

    .navbar .nav-link {
        font-weight: 500;
        padding: 0.5rem 1rem !important;
        transition: var(--transition);
    }

        .navbar .nav-link:hover {
            color: var(--accent-color) !important;
        }

.dropdown-item:active {
    background-color: var(--primary-color);
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
}

    footer .hover-effect:hover {
        color: var(--accent-color) !important;
        padding-left: 5px;
        transition: var(--transition);
    }

.social-links a {
    font-size: 1.5rem;
    transition: var(--transition);
}

    .social-links a:hover {
        color: var(--accent-color) !important;
        transform: translateY(-3px);
    }

/* Back to top button */
#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 99;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    line-height: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    background: #0d6efd;
    color: #fff;
    padding: .5rem .75rem;
    border-radius: .25rem;
    z-index: 1100;
}

/* Cookie consent banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(33, 37, 41, 0.95);
    color: #fff;
    z-index: 999;
    display: none;
}

/* No Image Placeholder */
.no-image-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 3rem;
    height: 250px;
    border: 2px dashed #dee2e6;
}

.no-image-placeholder i {
    opacity: 0.5;
}

/* Upload Area Styles */
.upload-area {
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 120px;
}

.upload-area:hover {
    background-color: #e9ecef;
    border-color: #0d6efd !important;
}

.upload-area.dragover {
    background-color: #cfe2ff;
    border-color: #0d6efd !important;
}

.image-preview-card {
    position: relative;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.image-preview-card:hover {
    border-color: #0d6efd;
    transform: translateY(-2px);
}

.image-preview-card.main-image {
    border-color: #198754;
    background-color: #d1e7dd;
}

.image-preview-card .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.9);
    border: none;
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-card .main-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #198754;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
}

/* Logo Styles */
.navbar-brand img {
    max-width: none;
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .navbar-brand img {
    height: 30px !important;
    width: auto !important;
    }
    
    .navbar-brand span {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
    height: 25px !important;
    width: auto !important;
    }
    
    .navbar-brand span {
        font-size: 0.9rem;
    }
}

/* Footer logo styles */
footer .col-lg-4 img {
    transition: var(--transition);
}

footer .col-lg-4:hover img {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 450px;
    }
    
    .hero-logo {
        max-width: 280px !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .hero-content .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 400px;
        padding: 1rem 0;
    }
    
    .hero-logo {
        max-width: 220px !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .hero-content .btn {
        font-size: 0.85rem;
        padding: 0.45rem 0.8rem;
        width: 100%;
        max-width: 200px;
    }
    
    .hero-content .d-flex {
        gap: 0.5rem !important;
    }
}

/* Admin Sayfaları için özel stiller */
.admin-page {
    margin-top: 76px; /* Fixed navbar için boşluk */
}

/* Admin sayfalarındaki container'lar için */
.admin-page .container,
.admin-page .container-fluid {
    padding-top: 0;
}

/* Admin sayfalarında navbar altındaki boşluk için */
.admin-content {
    margin-top: 76px;
}
