/* Root değişkenler ve temel ayarlar */
:root {
  --primary-color: #00bcd4;
  --secondary-color: #008fa1;
  --accent-color: #FF9800;
  --text-color-light: #333;
  --text-color-dark: #f5f5f5;
  --bg-color-light: #f9f9f9;
  --bg-color-dark: #1a1a1a;
  --card-bg-light: #fff;
  --card-bg-dark: #2d2d2d;
  --card-shadow-light: 0 4px 8px rgba(0, 0, 0, 0.1);
  --card-shadow-dark: 0 4px 8px rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color-light);
  color: var(--text-color-light);
  transition: all 0.3s ease;
}

body.dark-theme {
  background-color: var(--bg-color-dark);
  color: var(--text-color-dark);
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

/* Modern Header Stilleri */
.modern-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

body.dark-theme .modern-header {
  background-color: #333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #00bcd4;
  transition: all 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo-icon {
  font-size: 2rem;
  margin-right: 0.8rem;
  color: #00bcd4;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00bcd4;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
  margin-left: 2rem;
}

.main-nav {
  flex-grow: 1;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin-right: 1.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  color: #333;
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-link.active {
  background-color: #e8f7fa;
  color: #008ba3;
}

body.dark-theme .nav-link {
  color: #f5f5f5;
}

body.dark-theme .nav-link.active {
  background-color: rgba(0, 188, 212, 0.2);
  color: #00bcd4;
}

.nav-link:hover {
  background-color: #e8f7fa;
  color: #008ba3;
  transform: translateY(-2px);
}

body.dark-theme .nav-link:hover {
  background-color: rgba(0, 188, 212, 0.2);
  color: #00bcd4;
}

.nav-icon {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

/* Nav Actions - Final Alignment Fix */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 30px;
}

/* Theme Toggle with exact positioning */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  line-height: 1;
  position: relative;
  top: 0px;

}

.fa-sun, .fa-moon {
  font-size: 16px;
  line-height: 1;
  margin: 0;
  padding: 0;
  position: relative;
  top: 0;
}

.fa-sun {
  color: #f39c12;
}

.fa-moon {
  color: #9b59b6;
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 50px;
  height: 24px;
  margin: 0;
  vertical-align: middle;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #00bcd4;
}

input:focus + .slider {
  box-shadow: 0 0 1px #00bcd4;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Language Selector with exact positioning */
.language-selector {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  line-height: 1;
  position: relative;
  top: -5px;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  top: -5px;
}

.lang-btn span {
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

body.dark-theme .lang-btn {
  color: #aaa;
}

.lang-btn.active {
  background-color: #00bcd4;
  color: white;
  border: none;
}

/* Inactive button - white background */
.lang-btn:not(.active) {
  background-color: white;
  border: 1px solid #e0e0e0;
  color: #333;
}

body.dark-theme .lang-btn:hover:not(.active) {
  background-color: #444;
}

.flag {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  vertical-align: middle;
  margin: 0;
  display: inline-block;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.hamburger-icon {
  position: relative;
  width: 100%;
  height: 0.25rem;
  background-color: #00bcd4;
  border-radius: 10px;
  transition: all 0.3s linear;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 0.25rem;
  background-color: #00bcd4;
  border-radius: 10px;
  transition: all 0.3s linear;
}

.hamburger-icon::before {
  transform: translateY(-8px);
}

.hamburger-icon::after {
  transform: translateY(8px);
}

.mobile-menu-toggle.is-active .hamburger-icon {
  background-color: transparent !important;
}

.mobile-menu-toggle.is-active .hamburger-icon::before {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.is-active .hamburger-icon::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Footer Stilleri */
footer {
  background-color: #f0f0f0;
  color: #333;
  padding: 30px 0 0 0;
  margin-top: 40px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-theme footer {
  background-color: #333;
  color: white;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
  padding: 0 15px;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.footer-section p {
  margin-bottom: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-icons a {
  color: #333;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

body.dark-theme .social-icons a {
  color: white;
}

.social-icons a:hover {
  color: var(--primary-color);
}

.footer-link {
  color: #333;
  text-decoration: underline;
  transition: color 0.3s ease;
}

body.dark-theme .footer-link {
  color: white;
}

.footer-link:hover {
  color: var(--primary-color);
}

.footer-bottom {
  background-color: #e0e0e0;
  text-align: center;
  padding: 15px 0;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #333;
}

body.dark-theme .footer-bottom {
  background-color: #222;
  color: white;
}

/* Hotels sayfasına özel stiller */
main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

h1 {
  text-align: center;
  margin-top: 50px;
  color: var(--primary-color);
  font-size: 2rem;
}

.search-container {
  max-width: 800px;
  margin: 30px auto;
  background-color: var(--card-bg-light);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--card-shadow-light);
}

body.dark-theme .search-container {
  background-color: var(--card-bg-dark);
  box-shadow: var(--card-shadow-dark);
}

.search-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.search-group {
  flex: 1;
  min-width: 250px;
}

label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-color-light);
  font-weight: bold;
}

body.dark-theme label {
  color: var(--text-color-dark);
}

select, input[type="text"], input[type="date"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
  box-sizing: border-box;
  background-color: #fff;
  color: var(--text-color-light);
}

body.dark-theme select, 
body.dark-theme input[type="text"], 
body.dark-theme input[type="date"] {
  background-color: #444;
  border-color: #555;
  color: var(--text-color-dark);
}

button {
  width: 100%;
  padding: 12px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: var(--secondary-color);
}

.results {
  max-width: 800px;
  margin: 20px auto;
  padding: 10px;
}

.hotel {
  background-color: var(--card-bg-light);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--card-shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark-theme .hotel {
  background-color: var(--card-bg-dark);
  box-shadow: var(--card-shadow-dark);
}

.hotel:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.hotel h3 {
  margin: 0;
  color: var(--primary-color);
}

.hotel p {
  margin: 5px 0 0 0;
  font-size: 14px;
  color: var(--text-color-light);
} 

body.dark-theme .hotel p {
  color: var(--text-color-dark);
}

/* Kişi sayısı dropdown stilleri */
.dropdown {
  position: absolute;
  z-index: 100;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 5px;
  width: 100%;
  transition: all 0.3s ease;
}

body.dark-theme .dropdown {
  background-color: #444;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dropdown.hidden {
  display: none;
}

.travelers-dropdown {
  padding: 15px;
}

.travelers-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

body.dark-theme .travelers-group {
  border-bottom-color: #555;
}

.travelers-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.travelers-type {
  font-weight: 500;
  font-size: 16px;
  color: var(--text-color-light);
}

body.dark-theme .travelers-type {
  color: var(--text-color-dark);
}

.counter {
  display: flex;
  align-items: center;
  gap: 12px;
}

.counter-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background-color: white;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
}

body.dark-theme .counter-btn {
  background-color: #555;
  border-color: #666;
  color: var(--text-color-dark);
}

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

.counter-value {
  font-size: 16px;
  font-weight: 500;
  min-width: 20px;
  text-align: center;
  color: var(--text-color-light);
}

body.dark-theme .counter-value {
  color: var(--text-color-dark);
}

/* Detay butonu stilleri */
.details-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  margin-top: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.details-btn:hover {
  background-color: var(--secondary-color);
}

body.dark-theme .details-btn {
  background-color: var(--primary-color);
}

body.dark-theme .details-btn:hover {
  background-color: var(--secondary-color);
}

/* Sonuç bilgisi stilleri */
.search-result-info {
  margin-bottom: 20px;
  padding: 10px 15px;
  background-color: rgba(0, 188, 212, 0.1);
  border-radius: 8px;
  font-size: 16px;
  color: var(--text-color-light);
}

body.dark-theme .search-result-info {
  background-color: rgba(0, 188, 212, 0.2);
  color: var(--text-color-dark);
}

.search-result-info p {
  margin: 0;
  font-weight: 500;
}

/* Form control */
.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
  background-color: #fff;
  color: var(--text-color-light);
  cursor: pointer;
}

body.dark-theme .form-control {
  background-color: #444;
  border-color: #555;
  color: var(--text-color-dark);
}

.search-group {
  position: relative;
}

/* Responsive Tasarım */
@media screen and (max-width: 992px) {
  .logo-text {
    font-size: 1.2rem;
  }
  
  .nav-link {
    padding: 0.4rem 0.6rem;
  }
  
  .theme-toggle,
  .language-selector {
    margin-right: 1rem;
  }
}

@media screen and (max-width: 768px) {
  .search-group {
    width: 100%;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    flex-direction: column;
    align-items: flex-start;
    background-color: #fff;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    padding: 4rem 1.5rem 2rem;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    z-index: 5;
    margin-left: 0;
  }
  
  body.dark-theme .nav-menu {
    background-color: #333;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
  }
  
  .nav-menu.nav-open {
    right: 0;
  }
  
  body.menu-open {
    overflow: hidden;
  }
  
  body.menu-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 4;
  }
  
  .main-nav {
    width: 100%;
    margin-bottom: 2rem;
  }
  
  .nav-list {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-item {
    margin-right: 0;
    margin-bottom: 1rem;
    width: 100%;
  }
  
  .nav-link {
    width: 100%;
    padding: 0.8rem;
  }
  
  .nav-actions {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: auto;
  }
  
  .theme-toggle,
  .language-selector {
    margin-right: 0;
    margin-bottom: 1.5rem;
    width: 100%;
    justify-content: flex-start;
    height: 40px;
  }
} 