html {
  font-size: 15px;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  background-color: #f8fafc;
  color: #334155;
  margin-bottom: 0;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Container-xl genişliği ve ferah kenar boşlukları */
.container-xl {
  max-width: 1360px;
  padding-left: 24px;
  padding-right: 24px;
}
@media (min-width: 1440px) {
  .container-xl {
    max-width: 1420px;
  }
}

/* Override old template line-heights and font styles inside main content */
main p, .property-card p, .modern-filter-card p {
  line-height: 1.5 !important;
  margin-bottom: 0.5rem;
}
main span, .property-card span, .modern-filter-card span {
  font-family: inherit !important;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

.toggleSwitch {
    display: none;
}

.switch-label {
    display: inline-block;
    width: 50px;
    height: 25px;
    background: #ccc;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
}

.toggleSwitch:checked + .switch-label {
    background: #4caf50;
}

.switch-label::before {
    content: "";
    position: absolute;
    width: 21px;
    height: 21px;
    left: 2px;
    top: 2px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggleSwitch:checked + .switch-label::before {
    transform: translateX(25px);
}

/* ==========================================================================
   Modern Real Estate Design System
   ========================================================================== */
:root {
    --esd-primary: #1e3a8a;
    --esd-primary-hover: #1e40af;
    --esd-accent: #f59e0b;
    --esd-accent-hover: #d97706;
    --esd-dark: #0f172a;
    --esd-muted: #64748b;
    --esd-bg-subtle: #f8fafc;
    --esd-border: #e2e8f0;
    --esd-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --esd-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* Hero Carousel */
.modern-carousel {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.modern-carousel .carousel-item {
    height: 440px;
    background-color: #0f172a;
}
.modern-carousel .carousel-item img {
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}
.modern-carousel .carousel-item.active img {
    transform: scale(1.05);
}
.modern-carousel .carousel-caption {
    background: linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(15,23,42,0.85) 80%);
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 40px 24px;
    text-align: left;
}
.modern-carousel .carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.modern-carousel .carousel-caption p {
    font-size: 1.05rem;
    color: #f1f5f9;
    font-weight: 500;
    margin: 0;
}

/* Modern Filter Card */
.modern-filter-card {
    border: 1px solid var(--esd-border);
    border-radius: 14px;
    box-shadow: var(--esd-card-shadow);
    background: #ffffff;
    overflow: hidden;
}
.modern-filter-card .card-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
    padding: 14px 18px;
    border-bottom: none;
}
.modern-filter-card .box {
    margin-bottom: 14px;
}
.modern-filter-card .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #475569;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}
.modern-filter-card .form-select {
    border-radius: 8px;
    border-color: #cbd5e1;
    font-size: 0.9rem;
    padding: 8px 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.modern-filter-card .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Modern Property Listing Card */
.property-card {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}
.property-card-img-wrapper {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
    background-color: #f1f5f9;
}
.property-card-img-wrapper img.property-card-img {
    width: 100% !important;
    height: 100% !important;
    max-height: 210px !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.property-card:hover .property-card-img {
    transform: scale(1.05);
}
.property-badge-type {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.property-badge-adno {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: #1e293b;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.12);
    z-index: 2;
}

.property-card-content {
    padding: 14px 16px 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.property-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
.property-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.7em;
}
.property-title a {
    color: #1e293b !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}
.property-title a:hover {
    color: #2563eb !important;
}
.property-location {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}
.property-location span {
    font-size: 0.85rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.property-features {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #f8fafc;
    border-radius: 8px;
    padding: 6px 10px;
    margin-top: auto;
    border: 1px solid #edf2f7;
}
.property-feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.82rem;
}
.property-feature-row:last-child {
    border-bottom: none;
}
.property-feature-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-weight: 500;
    font-size: 0.8rem;
}
.property-feature-value {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.82rem;
    text-align: right;
}
.property-card-footer {
    padding: 8px 16px 14px;
    background: #ffffff;
    border-top: none;
}
.btn-property-detail {
    width: 100%;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 14px;
    color: #1e3a8a;
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}
.btn-property-detail:hover {
    background: #1e3a8a;
    color: #ffffff !important;
    border-color: #1e3a8a;
}

/* Modern Search Box */
.modern-search-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 16px;
    padding: 36px 24px;
    color: #ffffff;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}
.modern-search-hero h1 {
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.modern-search-input-group {
    background: #ffffff;
    border-radius: 12px;
    padding: 6px;
    display: flex;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    max-width: 700px;
    margin: 0 auto;
}
.modern-search-input-group input {
    border: none;
    box-shadow: none !important;
    font-size: 1.05rem;
    padding: 10px 16px;
    color: #0f172a;
}
.modern-search-input-group button {
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
}

/* ============================================
   Detay Sayfası - Basit Resim Overlay (Lightbox)
   ============================================ */
#simple-img-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}
#simple-img-overlay .slo-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(4px);
}
#simple-img-overlay .slo-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#simple-img-overlay .slo-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    position: relative;
    z-index: 1;
}
#simple-img-overlay .slo-close {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 2;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
#simple-img-overlay .slo-close:hover {
    background: rgba(255,255,255,0.3);
}

/* Carousel thumbnail bar */
.carousel-thumnails {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 0;
}
.carousel-thumnails button {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
    cursor: pointer;
    transition: border-color 0.2s;
}
.carousel-thumnails button.active {
    border-color: #f59e0b;
}
.carousel-thumnails button img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    display: block;
}

/* ============================================
   Modern Admin & Management Styles
   ============================================ */
.admin-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.admin-card-header {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.admin-card-header h2, .admin-card-header h3, .admin-card-header .admin-card-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}
.admin-card-body {
    padding: 1.5rem;
}

/* Admin Table Design */
.admin-table-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.admin-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}
.admin-table thead th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}
.admin-table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 0.92rem;
}
.admin-table tbody tr:last-child td {
    border-bottom: none;
}
.admin-table tbody tr:hover {
    background-color: #f8fafc;
}
.admin-table .img-thumb {
    width: 70px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Nav Tabs for Admin */
.admin-tabs {
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
    gap: 8px;
}
.admin-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #64748b;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 0;
    transition: all 0.2s ease;
}
.admin-tabs .nav-link:hover {
    color: #1e3a8a;
    border-bottom-color: #cbd5e1;
}
.admin-tabs .nav-link.active {
    color: #1e3a8a;
    background: transparent;
    border-bottom-color: #1e3a8a;
    font-weight: 700;
}

/* ============================================
   Modern Spacious Navbar Styles
   ============================================ */
.modern-navbar {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    padding: 0.75rem 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.modern-navbar .navbar-brand img {
    max-height: 44px;
    transition: transform 0.2s;
}
.modern-navbar .navbar-brand:hover img {
    transform: scale(1.03);
}
.modern-navbar .navbar-search-form {
    width: 100%;
    max-width: 480px;
}
.modern-navbar .navbar-search-form .input-group {
    background: #ffffff;
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    overflow: hidden;
}
.modern-navbar .navbar-search-form input.form-control {
    border-radius: 50px 0 0 50px !important;
    padding-left: 1.25rem !important;
    font-size: 0.92rem;
    background: transparent !important;
    box-shadow: none !important;
}
.modern-navbar .navbar-search-form .btn {
    border-radius: 50px !important;
    font-weight: 600;
}
.modern-navbar .nav-link {
    color: #f1f5f9 !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem !important;
    transition: background 0.2s, color 0.2s;
}
.modern-navbar .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12) !important;
}
.modern-navbar .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px;
    margin-top: 8px;
}
.modern-navbar .dropdown-item {
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
}
.modern-navbar .dropdown-item:hover {
    background-color: #f1f5f9;
    color: #1e3a8a;
}

/* ============================================
   Modern Rich Footer Styles
   ============================================ */
.modern-footer {
    background: linear-gradient(180deg, #0f172a 0%, #090d16 100%) !important;
    color: #94a3b8;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 10;
}
.modern-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}
.modern-footer a:hover {
    color: #f59e0b;
    transform: translateX(3px);
}
.modern-footer .footer-title {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
    letter-spacing: -0.2px;
}
.modern-footer .footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: #f59e0b;
    border-radius: 2px;
}
.modern-footer .footer-text {
    line-height: 1.7;
    font-size: 0.95rem;
    color: #94a3b8;
}
.modern-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.modern-footer .footer-links li {
    margin-bottom: 0.75rem;
}
.modern-footer .footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}
.modern-footer .footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.modern-footer .footer-contact-item i {
    font-size: 1.2rem;
    color: #f59e0b;
    margin-top: 2px;
}
.modern-footer .social-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.modern-footer .social-badge:hover {
    background: #f59e0b;
    color: #0f172a !important;
    transform: translateY(-3px) !important;
    border-color: #f59e0b;
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.35);
}
.modern-footer .footer-bottom {
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem 0;
    margin-top: 3.5rem;
    font-size: 0.88rem;
    color: #64748b;
}
.modern-footer .footer-bottom a {
    color: #94a3b8;
}
.modern-footer .footer-bottom a:hover {
    color: #ffffff;
    transform: none;
}

