/*! SVG Türkiye Haritası | CSS | MIT Lisans | dnomak.com */

:root {
  --primary-color: #1094F6;
  --bg-color: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.8);
  --text-color: #333333;
  --text-muted: #666666;
  --surface-color: #f9f9f9;
  --border-color: #eeeeee;
  --card-bg: #ffffff;
  --card-shadow: 0 4px 10px rgba(0,0,0,0.05);
  --card-shadow-hover: 0 8px 15px rgba(0,0,0,0.1);
  --map-fill: #a0a0a0;
  --toggle-bg: #eeeeee;
}

.dark-theme {
  --bg-color: #121212;
  --header-bg: rgba(18, 18, 18, 0.8);
  --text-color: #e0e0e0;
  --text-muted: #aaaaaa;
  --surface-color: #1e1e1e;
  --border-color: #333333;
  --card-bg: #1e1e1e;
  --card-shadow: 0 4px 10px rgba(0,0,0,0.3);
  --card-shadow-hover: 0 8px 20px rgba(0,0,0,0.5);
  --map-fill: #444444;
  --toggle-bg: #333333;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  transition: background-color 0.3s, color 0.3s;
}

/* Site Header Styles */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  margin-bottom: 20px;
}

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

.header-left h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-color);
  font-family: 'Open Sans', sans-serif;
  letter-spacing: -0.5px;
}

.header-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.header-toggle-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--toggle-bg);
  padding: 4px;
  border-radius: 10px;
}


.icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-btn:hover {
  background: rgba(128, 128, 128, 0.1);
  color: var(--primary-color);
  transform: translateY(-1px);
}

.icon-btn.active {
  background: var(--card-bg);
  color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dark-theme .icon-btn.active {
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.user-btn-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-display-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
  font-family: 'Open Sans', sans-serif;
  white-space: nowrap;
  display: none;
}

.user-logout-btn:hover {
  color: #e53935 !important;
  background: rgba(229, 57, 53, 0.08) !important;
}


.svg-turkiye-haritasi {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.svg-turkiye-haritasi svg {
  width: 100%;
  height: auto;
}
.il-isimleri {
  position: absolute;
  z-index: 2;
}
.il-isimleri div {
  font-family: 'Open Sans';
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 8px 16px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}
#svg-turkiye-haritasi path {
  cursor: pointer;
  fill: var(--map-fill);
}
#svg-turkiye-haritasi path:hover {
  fill: var(--primary-color);
}
#guney-kibris, #kibris {
  display: none;
  pointer-events: none;
}

hr.divider {
  border: 0;
  height: 2px;
  background: var(--border-color);
  margin: 40px auto;
  width: 100%;
  max-width: 1200px;
}

.city-details-container {
  max-width: 1200px;
  margin: 0 auto 40px auto;
  font-family: 'Open Sans', sans-serif;
  display: none;
}

.city-title {
  text-align: center;
  font-size: 22px;
  color: var(--text-color);
  margin-bottom: 30px;
  font-weight: 600;
}

.places-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start; /* Ensure left alignment for precise 4-column block */
}

.place-card {
  width: calc(33.333% - 14px); /* 3 columns with gap */
  min-width: 250px;
  box-sizing: border-box;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, width 0.3s ease;
}

/* List View Mode (1 per row) */
.places-grid.list-view .place-card {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.places-grid.list-view .place-card img {
  width: 200px;
  height: 120px;
  flex-shrink: 0;
}

.places-grid.list-view .place-card .card-content {
  padding: 15px;
  text-align: left;
}

.place-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.place-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  background-color: #f5f5f5;
  display: block;
}

.place-card h3 {
  margin: 10px 10px 5px 10px;
  font-size: 14px;
  color: var(--text-color);
}

.place-card p {
  padding: 0 10px 10px 10px;
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.card-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin: 2px 10px 8px 10px;
  text-transform: capitalize;
  display: block;
}

.card-meta a {
  color: inherit;
  text-decoration: none;
}

.card-meta a:hover {
  text-decoration: underline;
  color: #1094F6;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-top: 1px solid var(--border-color);
  background-color: var(--surface-color);
  gap: 10px;
}

.action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  text-decoration: none;
}

.action-btn:hover {
  background-color: var(--card-bg);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  color: var(--primary-color);
}

.action-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-btn.visited-btn.active {
  background-color: #1b5e20;
  color: #ffffff;
  border-color: #1b5e20;
}

.dark-theme .action-btn.visited-btn.active {
  background-color: #2e7d32;
  color: #ffffff;
  border-color: #1b5e20;
}

.action-btn.visited-btn.active svg {
  stroke-width: 3.5;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #444;
}

.filter-btn:hover {
  background-color: #e0e0e0;
}

.filter-btn.active {
  background-color: #1094F6;
  color: #fff;
  border-color: #1094F6;
}

.main-filter-bar {
  max-width: 1200px;
  margin: 30px auto;
  padding: 20px;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
  align-items: center;
  font-family: 'Open Sans', sans-serif;
}

.filter-inputs-group {
  display: flex;
  flex: 1;
  gap: 15px;
  align-items: center;
  min-width: 0;
}


.filter-input {
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  background-color: var(--card-bg);
  color: var(--text-color);
  transition: border-color 0.2s;
}

.filter-input:focus {
  border-color: #1094F6;
}

/* Footer Styles */
.site-footer {
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  padding: 50px 0;
  margin-top: 80px;
  color: var(--text-muted);
  font-family: 'Open Sans', sans-serif;
  transition: background-color 0.3s, border-color 0.3s;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.footer-info {
  flex: 1 1 300px;
}

.footer-brand {
  font-weight: 800;
  font-size: 20px;
  color: var(--primary-color);
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.footer-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  gap: 30px;
}

.footer-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

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

.footer-copy {
  font-size: 13px;
  opacity: 0.7;
  flex: 1 1 100%;
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(128, 128, 128, 0.1);
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-nav {
    justify-content: center;
  }
}

