:root {
    --brand-primary: #1c296c;
    /* Navy Blue (#1c296c) */
    /* Dark Blue - Navbar/Footer/Text */
    --brand-secondary: #2a3b8c;
    /* Lighter Blue - Hover/Secondary */
    --brand-accent: #E63946;
    /* Red - Urgent/CTA */
    --text-dark: #1D3557;
    --text-muted: #6c757d;
    --bg-light: #F1FAEE;
    --bg-white: #ffffff;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

a:hover {
    color: var(--brand-secondary);
}

/* Navbar */
.navbar {
    padding: 0 !important;
    background-color: #1c296c;
}

.navbar-brand {
    margin-right: 0;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 700;
    font-size: 0.88rem;
    /* Yazı boyutu tek satıra sığması için küçültüldü */
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    padding: 0.7rem 0.7rem !important;
    /* Boşluklar optimize edildi */
    border-radius: 4px;
    margin: 0 1px;
    position: relative;
    text-transform: uppercase;
    white-space: nowrap;
    /* Kesinlikle tek satırda kalması için */
}

/* Menü Öğeleri Arası Ayrım (Zarif Dikey Çizgi) */
.navbar-nav .nav-item:not(:last-child):not(.ms-lg-auto) {
    position: relative;
}

.navbar-nav .nav-item:not(:last-child):not(.ms-lg-auto)::after {
    content: "";
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    height: 12px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.12);
}

.navbar-dark .navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: white;
    border-radius: 2px;
}

/* Dropdown Şıklığı - Modern ve Zarif Tasarım */
.dropdown-menu {
    border-radius: 8px;
    margin-top: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    background-color: white;
    padding: 0.5rem;
    animation: fadeInDropdown 0.2s ease-out;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 992px) {
    .dropdown-menu::before {
        content: "";
        position: absolute;
        top: -10px;
        left: 0;
        width: 100%;
        height: 10px;
        background: transparent;
    }
}

/* Desktop Click Dropdown handled by Bootstrap */

/* Mobile Dropdown Integration */
@media (max-width: 991px) {
    .navbar-nav .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.08);
        border: none;
        box-shadow: none;
        padding: 0.5rem 1rem;
        margin-top: 0 !important;
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
}

.dropdown-item {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 5px;
    transition: all 0.2s ease;
}

/* Mobile individual link design */
@media (max-width: 991px) {
    .dropdown-item {
        color: rgba(255, 255, 255, 0.85);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .dropdown-item:last-child {
        border-bottom: none;
    }
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--bg-light);
    color: var(--brand-primary);
    transform: translateX(4px);
}

@media (max-width: 991px) {
    .dropdown-item:hover, .dropdown-item:focus {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
    }
}

.animated-btn {
    animation: pulse 2s infinite;
    font-weight: 800;
    letter-spacing: 1px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(230, 57, 70, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
    }
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    color: white;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Tabbed Search Box */
.search-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 2rem;
}

.search-tabs .nav-link {
    border-radius: 0;
    background: #f8f9fa;
    color: var(--text-dark) !important;
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
}

.search-tabs .nav-link.active {
    background: white;
    color: var(--brand-primary) !important;
    border-bottom: 3px solid var(--brand-primary);
}

.search-form {
    padding: 1.5rem;
}

.form-select,
.form-control {
    border: 1px solid #dee2e6;
    padding: 0.8rem;
    font-size: 0.9rem;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

/* Listings Tabs */
.nav-pills .nav-link {
    background: transparent;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.nav-pills .nav-link:hover {
    color: #00193d;
}

.nav-pills .nav-link.active {
    background: transparent;
    color: #1c296c;
    border-bottom: 3px solid #1c296c;
}

/* Property Cards */
.property-card {
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    overflow: hidden;
}

.property-card:hover {
    transform: translateY(-5px);
}

.card-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.property-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    color: white;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 3px;
    text-transform: uppercase;
}

.badge-sale {
    background-color: var(--brand-primary);
}

.badge-rent {
    background-color: #ffc107;
    color: #000;
}

.price-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 100%;
    padding: 8px 15px;
    font-weight: bold;
}

/* Promo Grid */
/* Promo Masonry Grid */
.promo-masonry-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.promo-text-block {
    padding: 20px 0;
    margin-bottom: 30px;
}

.promo-text-block h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.promo-text-block p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.promo-divider {
    width: 50px;
    height: 3px;
    background-color: #ddd;
    margin-bottom: 20px;
}

.promo-box {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0;
    /* Boşluklar gap ile yönetilecek */
    display: block;
    text-decoration: none;
}

.promo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.promo-box:hover img {
    transform: scale(1.1);
}

.promo-box-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
}

.promo-box-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-box-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.promo-box-arrow {
    position: absolute;
    bottom: 25px;
    right: 25px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: all 0.3s;
}

.promo-box:hover .promo-box-arrow {
    background-color: white;
    color: #333;
}

/* Height Utilities for Masonry - Mathematical Alignment */
.h-250 {
    height: 250px;
}

.h-300 {
    height: 300px;
}

.h-400 {
    height: 400px;
}

.h-530 {
    height: 530px;
    /* 250px * 2 + 30px gap */
}

/* Combined height approximation */

/* Slider Controls */
.slider-controls {
    display: flex;
    gap: 5px;
}

.slider-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    background: white;
    color: var(--brand-primary);
    transition: all 0.3s;
    cursor: pointer;
}

.slider-btn:hover {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

.slider-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
    padding-bottom: 10px;
    width: 100%;
    position: relative;
}

.slider-container .d-flex {
    width: max-content;
    display: flex;
    /* Ensure flex behavior */
    flex-wrap: nowrap;
    /* Prevent wrapping */
}

.slider-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Slider Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-caption h1,
.carousel-caption p,
.carousel-caption .btn {
    animation: fadeIn 1s ease-out forwards;
}

.carousel-caption h1 {
    animation-delay: 0.2s;
}

.carousel-caption p {
    animation-delay: 0.4s;
}

.carousel-caption .btn {
    animation-delay: 0.6s;
}

/* Contact Section (Blue Design) */
.contact-section {
    background-color: #1c296c;
    /* Deep Blue from image */
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.contact-title-large {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 60px;
    line-height: 1.4;
    text-transform: uppercase;
}

.contact-step {
    margin-bottom: 40px;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-step-number {
    font-size: 2.5rem;
    font-weight: 700;
    opacity: 0.5;
    line-height: 1;
    margin-bottom: 10px;
    display: block;
}

.contact-step-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.contact-step-desc {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
    line-height: 1.6;
    max-width: 300px;
}

.contact-form-card {
    background: white;
    padding: 40px;
    color: #333;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.contact-form-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1f3c5e;
}

.contact-form-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
}

.form-group-clean {
    margin-bottom: 20px;
}

.form-control-clean {
    display: block;
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    background-color: #fff;
    color: #495057;
}

.form-control-clean:focus {
    border-color: #00b4d8;
    /* Cyan accent */
    outline: none;
}

.form-check-clean {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 20px;
}

.btn-contact-submit {
    width: 100%;
    background-color: #00a8e8;
    /* Bright Cyan/Blue */
    color: white;
    font-weight: 700;
    padding: 12px;
    border: none;
    border-radius: 4px;
    text-transform: uppercase;
    transition: background 0.3s;
}

.btn-contact-submit:hover {
    background-color: #0096c7;
}

/* Investment Section */
.investment-section {
    padding: 80px 0;
    background-color: #fff;
    overflow: hidden;
}

.investment-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.investment-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.investment-link {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
    transition: all 0.3s;
}

.investment-link:hover {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
}

.investment-gallery {
    display: flex;
    gap: 15px;
    height: 400px;
    /* Fixed height for gallery */
}

.investment-item {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
    transition: flex 0.5s ease;
    cursor: pointer;
}

.investment-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.investment-item:hover {
    flex: 2;
    /* Expand on hover */
}

.investment-item:hover img {
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: var(--brand-primary);
    color: #fff;
    font-size: 0.9rem;
}

footer h5 {
    margin-bottom: 1.5rem;
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 4rem;
    text-align: center;
    opacity: 0.6;
    font-size: 0.85rem;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?auto=format&fit=crop&q=80&w=1920) center center no-repeat;
    background-size: cover;
}

/* Footer Statistics Banner */
.footer-stats-banner {
    position: relative;
    padding: 60px 0;
    /* Belirgin şekilde kısaltıldı */
    background-image: url('/images/izmir-saat-kulesi.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    overflow: hidden;
    border-top: 4px solid #ffc107;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(28, 41, 108, 0.85) 0%, rgba(28, 41, 108, 0.75) 100%);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.banner-subtitle {
    font-size: 0.85rem;
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto 30px auto;
    line-height: 1.4;
}

.banner-stat-group {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

.banner-stat-header {
    display: inline-block;
    border-bottom: 2px solid #ffc107;
    padding: 0 10px 5px 10px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #ffc107;
}

.banner-stat-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white !important;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.banner-stat-item:hover {
    transform: translateX(3px);
    color: #ffc107 !important;
}

.banner-stat-item i {
    font-size: 1.1rem;
    width: 25px;
}

.text-warning {
    color: #ffc107 !important;
}

@media (max-width: 991px) {
    .banner-title {
        font-size: 1.5rem;
    }

    .footer-stats-banner {
        padding: 40px 0;
    }

    .banner-stat-group {
        margin-bottom: 20px;
    }
}