/* ==================== TEMEL AYARLAR & DEĞİŞKENLER ==================== */
:root {
  /* Modern Yeşil Renk Paleti */
  --color-primary: #198754; /* Deniz yeşili - Ana renk */
  --color-primary-dark: #276749; /* Daha koyu yeşil */
  --color-primary-light: #48bb78; /* Daha açık yeşil */
  --color-primary-pale: #c6f6d5; /* Soluk yeşil */
  --color-primary-rgb: 46, 139, 87;

  /* Nötr Renkler */
  --color-white: #ffffff;
  --color-light: #f8f9fa;
  --color-light-gray: #e2e8f0;
  --color-gray: #a0aec0;
  --color-dark-gray: #4a5568;
  --color-dark: #2d3748;
  --color-black: #1a202c;

  /* Aksent Renkleri */
  --color-secondary: #4299e1; /* Mavi */
  --color-success: #38a169; /* Yeşil */
  --color-warning: #dd6b20; /* Turuncu */
  --color-danger: #e53e3e; /* Kırmızı */
  --color-info: #3182ce; /* Açık mavi */

  /* Metin Renkleri */
  --color-text: var(--color-dark);
  --color-text-light: var(--color-white);
  --color-text-muted: var(--color-gray);

  /* Geçişler */
  --transition-default: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;

  /* Gölgeler */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-focus: 0 0 0 3px rgba(46, 139, 87, 0.3);

  /* Kenarlık */
  --border-radius-sm: 0.125rem;
  --border-radius-md: 0.25rem;
  --border-radius-lg: 0.5rem;
  --border-radius-xl: 1rem;
  --border-radius-full: 9999px;

  /* Tipografi */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', var(--font-sans);
  --font-mono: 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', monospace;

  /* Boyutlar */
  --space-unit: 1rem;
  --space-xs: calc(0.5 * var(--space-unit));
  --space-sm: calc(0.75 * var(--space-unit));
  --space-md: var(--space-unit);
  --space-lg: calc(1.5 * var(--space-unit));
  --space-xl: calc(2 * var(--space-unit));

  /* Genişlikler */
  --max-width-xs: 20rem;
  --max-width-sm: 24rem;
  --max-width-md: 28rem;
  --max-width-lg: 32rem;
  --max-width-xl: 36rem;
  --max-width-2xl: 42rem;
  --max-width-3xl: 48rem;
  --max-width-full: 100%;

  /* Yükseklikler */
  --height-header: 4rem;
  --height-footer: 6rem;
}

.form-control:readonly {
  background-color: #e9ecef !important;
  opacity: 1;
}

/* ==================== GENEL STİLLER ==================== */

html,
body {
  height: 100%; /* HTML ve Body'nin tam ekran yüksekliğini almasını sağlar */
  margin: 0;
  padding: 0;
}

#page-container {
  display: flex; /* Flexbox kullan */
  flex-direction: column; /* Öğeleri dikey olarak sırala */
  min-height: 100vh; /* Minimum yüksekliği ekran yüksekliği kadar yap */
}

#content-wrap {
  flex-grow: 1; /* Ana içeriğin mümkün olan tüm boş alanı kaplamasını sağlar */
  /* Footer'ın yukarı kaymasını engeller */
}

/* Footer stilleri (mevcut stiliniz) */
footer {
  /* background-color, padding gibi mevcut footer stilleriniz buraya gelir */
  flex-shrink: 0; /* Footer'ın küçülmemesini sağlar */
}

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

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text) !important;
  background-color: var(--color-light) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

a {
  color: var(--color-primary) !important;
  text-decoration: none !important;
  transition: var(--transition-default);
  cursor: pointer !important;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul,
ol {
  list-style: none;
  padding-left: 0;
  margin-bottom: var(--space-md);
}

/* ==================== YARDIMCI SINIFLAR ==================== */
/* Spacing */
.m-0 {
  margin: 0 !important;
}
.mt-0 {
  margin-top: 0 !important;
}
.mb-0 {
  margin-bottom: 0 !important;
}
.mt-1 {
  margin-top: var(--space-xs) !important;
}
.mt-2 {
  margin-top: var(--space-sm) !important;
}
.mt-3 {
  margin-top: var(--space-md) !important;
}
.mt-4 {
  margin-top: var(--space-lg) !important;
}
.mt-5 {
  margin-top: var(--space-xl) !important;
}

.p-0 {
  padding: 0 !important;
}
.pt-0 {
  padding-top: 0 !important;
}
.pb-0 {
  padding-bottom: 0 !important;
}
.py-2 {
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}
.py-3 {
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

/* Text */
.text-center {
  text-align: center !important;
}
.text-left {
  text-align: left !important;
}
.text-right {
  text-align: right !important;
}
.text-white {
  color: var(--color-white) !important;
}
.text-primary {
  color: var(--color-primary) !important;
}
.text-muted {
  color: var(--color-gray) !important;
}
.font-bold {
  font-weight: 700 !important;
}
.font-semibold {
  font-weight: 600 !important;
}
.font-medium {
  font-weight: 500 !important;
}
.leading-normal {
  line-height: 1.5 !important;
}
.leading-relaxed {
  line-height: 1.625 !important;
}

/* Background */
.bg-white {
  background-color: var(--color-white) !important;
}
.bg-primary {
  background-color: var(--color-primary) !important;
}
.bg-primary-light {
  background-color: var(--color-primary-light) !important;
}
.bg-primary-pale {
  background-color: var(--color-primary-pale) !important;
}
.bg-light {
  background-color: var(--color-light) !important;
}
.bg-dark {
  background-color: var(--color-dark) !important;
}

/* Border */
.border {
  border: 1px solid var(--color-light-gray) !important;
}
.border-0 {
  border: 0 !important;
}
.border-primary {
  border-color: var(--color-primary) !important;
}
.rounded-sm {
  border-radius: var(--border-radius-sm) !important;
}
.rounded {
  border-radius: var(--border-radius-md) !important;
}
.rounded-lg {
  border-radius: var(--border-radius-lg) !important;
}
.rounded-xl {
  border-radius: var(--border-radius-xl) !important;
}
.rounded-full {
  border-radius: var(--border-radius-full) !important;
}

/* Shadow */
.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}
.shadow {
  box-shadow: var(--shadow-md) !important;
}
.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}
.shadow-xl {
  box-shadow: var(--shadow-xl) !important;
}
.shadow-none {
  box-shadow: none !important;
}

/* Display */
.block {
  display: block !important;
}
.inline-block {
  display: inline-block !important;
}
.flex {
  display: flex !important;
}
.inline-flex {
  display: inline-flex !important;
}
.hidden {
  display: none !important;
}

/* Flexbox */
.flex-col {
  flex-direction: column !important;
}
.justify-center {
  justify-content: center !important;
}
.justify-between {
  justify-content: space-between !important;
}
.items-center {
  align-items: center !important;
}
.items-start {
  align-items: flex-start !important;
}
.flex-wrap {
  flex-wrap: wrap !important;
}

/* Width & Height */
.w-full {
  width: 100% !important;
}
.w-auto {
  width: auto !important;
}
.h-full {
  height: 100% !important;
}
.h-screen {
  height: 100vh !important;
}
.min-h-screen {
  min-height: 100vh !important;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden !important;
}
.overflow-auto {
  overflow: auto !important;
}

/* Z-index */
.z-10 {
  z-index: 10 !important;
}
.z-20 {
  z-index: 20 !important;
}
.z-30 {
  z-index: 30 !important;
}
.z-40 {
  z-index: 40 !important;
}
.z-50 {
  z-index: 50 !important;
}

/* ==================== BİLEŞENLER ==================== */
/* Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  transition: var(--transition-default);
  cursor: pointer;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-dark) !important;
  border-color: var(--color-primary-dark) !important;
}

.btn-outline {
  background-color: transparent !important;
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}

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

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-check:checked + .btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check) + .btn:active {
  opacity: var(--bs-btn-disabled-opacity);
}

.btn.disabled,
.btn:disabled,
fieldset:disabled .btn {
  opacity: var(--bs-btn-disabled-opacity);
}

/* Kartlar */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: var(--color-white) !important;
  background-clip: border-box;
  border: 1px solid var(--color-light-gray);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition-default);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-img-top {
  width: 100%;
  height: 350px;
  border-top-left-radius: calc(var(--border-radius-lg) - 1px);
  border-top-right-radius: calc(var(--border-radius-lg) - 1px);
}

.card-body {
  flex: 1 1 auto;
  padding: var(--space-md);
}

.card-title {
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
  font-weight: 600;
}

.card-text {
  margin-bottom: var(--space-sm);
  color: var(--color-gray) !important;
  font-size: 0.875rem;
}

/* Form Elemanları */
.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25;
  color: var(--color-dark) !important;
  background-color: var(--color-white) !important;
  background-clip: padding-box;
  border: 1px solid var(--color-light-gray);
  border-radius: var(--border-radius-md);
  transition: var(--transition-default);
}

.form-control:focus {
  border-color: var(--color-primary) !important;
  outline: 0;
  box-shadow: var(--shadow-focus);
}

.input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}

.input-group > .form-control {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-gray) !important;
  text-align: center;
  white-space: nowrap;
  background-color: var(--color-light) !important;
  border: 1px solid var(--color-light-gray);
}

/* Navbar */
.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  z-index: 1030;
}

.navbar-brand {
  display: inline-block;
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
  margin-right: 1rem;
  font-size: 1.25rem;
  line-height: inherit;
  white-space: nowrap;
}

.navbar-brand img {
  max-height: 2.5rem;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-light) !important;
  transition: var(--transition-default);
}

.nav-link:hover {
  color: var(--color-white) !important;
}
.nav-icon:not(.active) {
  background-color: #999 !important;
}
/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  float: left;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: 0.875rem;
  color: var(--color-dark) !important;
  text-align: left;
  list-style: none;
  background-color: var(--color-white) !important;
  background-clip: padding-box;
  border: 1px solid var(--color-light-gray);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.5rem 1.5rem;
  clear: both;
  font-weight: 400;
  color: var(--color-dark) !important;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent !important;
  border: 0;
  transition: var(--transition-default);
}

.dropdown-item:hover {
  background-color: var(--color-light) !important;
  color: var(--color-primary) !important;
}

/* Header Banner */
.header-banner {
  position: relative;
  width: 100%;
  height: 24rem;
  overflow: hidden;
}

.header-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-menu {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95) !important;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-full);
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  bottom: 0;
  z-index: 2;
  box-shadow: var(--shadow-md);
  max-width: 100%;
  text-align: center;
}

/* Property Search */
.property-search-modern {
  position: relative;
  z-index: 10;
}

.search-tabs .nav-tabs {
  border: none;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.search-tabs .nav-link {
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius-full);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-dark) !important;
  border: none;
  background-color: var(--color-light) !important;
  transition: var(--transition-default);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.search-tabs .nav-link.active {
  background-color: var(--color-primary) !important;
  color: var(--color-white) !important;
  box-shadow: var(--shadow-md);
}

.tab-content {
  background-color: var(--color-white) !important;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}

/* ==================== ANİMASYONLAR ==================== */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 139, 87, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(46, 139, 87, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 139, 87, 0);
  }
}

/* ==================== MEDIA QUERIES ==================== */
@media (min-width: 640px) {
  .sm\:block {
    display: block !important;
  }
  .sm\:flex {
    display: flex !important;
  }
  .sm\:hidden {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .md\:block {
    display: block !important;
  }
  .md\:flex {
    display: flex !important;
  }
  .md\:hidden {
    display: none !important;
  }

  .navbar-nav {
    flex-direction: row;
  }

  .header-banner {
    height: 28rem;
  }
}

@media (min-width: 1024px) {
  .lg\:block {
    display: block !important;
  }
  .lg\:flex {
    display: flex !important;
  }
  .lg\:hidden {
    display: none !important;
  }

  .header-banner {
    height: 32rem;
  }
}

@media (min-width: 1280px) {
  .xl\:block {
    display: block !important;
  }
  .xl\:flex {
    display: flex !important;
  }
  .xl\:hidden {
    display: none !important;
  }
}
