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

/* Ana Container */
.sube-harita-container {
  display: flex;
  max-width: 1600px;
  margin: 0 auto;
  gap: 40px;
  padding: 30px;
  font-family: 'Open Sans', sans-serif;
  background: transparent;
  min-height: 100vh;
}

/* Sol Panel - Harita */
.harita-panel {
  flex: 1;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  overflow: hidden;
  position: relative;
}

.harita-baslik {
  background: linear-gradient(135deg, #AA0000 0%, #CC0000 100%);
  color: white;
  padding: 30px;
  text-align: center;
  position: relative;
}

.harita-baslik::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.harita-baslik h2 {
  margin: 0 0 15px 0;
  font-size: 28px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.harita-baslik p {
  margin: 0 0 20px 0;
  font-size: 16px;
  opacity: 0.95;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Eski buton stilleri kaldırıldı */

.svg-turkiye-haritasi {
  padding: 30px;
  position: relative;
  background: #fff;
}

.svg-turkiye-haritasi svg {
  width: 100%;
  height: auto;
  max-height: 600px;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.il-isimleri {
  position: absolute;
  z-index: 2;
}

.il-isimleri div {
  font-family: 'Open Sans', sans-serif;
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Şehir Tooltip */
.city-tooltip {
  position: absolute;
  background: linear-gradient(135deg, #AA0000 0%, #CC0000 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(170,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  animation: tooltipFadeIn 0.2s ease-out;
}

.city-tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #AA0000;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Harita Renkleri */
#svg-turkiye-haritasi path {
  cursor: pointer;
  fill: #e0e0e0;
  transition: all 0.3s ease;
  stroke: #fff;
  stroke-width: 1;
}

#svg-turkiye-haritasi path:hover {
  fill: #c0c0c0;
  stroke: #AA0000;
  stroke-width: 2;
}

/* Şubeli şehirler kırmızı */
#svg-turkiye-haritasi path.servisli {
  fill: #AA0000 !important;
}

#svg-turkiye-haritasi path.servisli:hover {
  fill: #CC0000 !important;
  stroke: #fff;
  stroke-width: 2;
}

#guney-kibris {
  pointer-events: none;
}

/* Sağ Panel - Şube Bilgileri */
.sube-bilgi-panel {
  flex: 1;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  overflow: hidden;
  position: relative;
}

.sube-bilgi-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 25px;
  border-bottom: 1px solid #e9ecef;
  position: relative;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.sube-bilgi-header h3 {
  margin: 0;
  color: #AA0000;
  font-size: 22px;
  font-weight: 700;
}

.tum-subeler-btn-minimal {
  background: linear-gradient(135deg, #AA0000 0%, #CC0000 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(170,0,0,0.3);
}

.tum-subeler-btn-minimal:hover {
  background: linear-gradient(135deg, #CC0000 0%, #EE0000 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(170,0,0,0.4);
}

.arama-alani {
  margin-bottom: 15px;
}

.arama-alani input {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: white;
}

.arama-alani input:focus {
  outline: none;
  border-color: #AA0000;
  box-shadow: 0 0 0 3px rgba(170,0,0,0.1);
}

.sehir-secimi {
  margin: 0;
  color: #666;
  font-size: 14px;
  font-style: italic;
}

.sube-listesi {
  padding: 25px;
  max-height: 700px;
  overflow-y: auto;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Şehir liste butonları */
.city-item {
  display: block;
  width: 100%;
  text-align: left;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  color: #AA0000;
}
.city-item:hover {
  background: #fff5f5;
  box-shadow: 0 4px 12px rgba(170,0,0,0.1);
}
.city-count {
  color: #666;
  font-weight: 400;
}

/* Şehir Grupları */
.sehir-grubu {
  margin-bottom: 30px;
}

.sehir-grubu-baslik {
  background: linear-gradient(135deg, #AA0000 0%, #CC0000 100%);
  color: white;
  padding: 15px 20px;
  margin: 0 0 15px 0;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 15px rgba(170,0,0,0.3);
}

/* Şube Accordion */
.sube-accordion {
  background: white;
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  overflow: hidden;
}
.sube-accordion-header {
  width: 100%;
  text-align: left;
  background: linear-gradient(135deg, #ffffff 0%, #f6f6f6 100%);
  border: none;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  color: #AA0000;
  cursor: pointer;
  border-left: 4px solid #AA0000;
}
.sube-accordion-header.open {
  background: #fff5f5;
}
.sube-accordion-body {
  display: none;
  padding: 18px;
}

.sehir-baslik {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 3px solid #AA0000;
  text-align: center;
}

.sehir-baslik h4 {
  margin: 0;
  color: #AA0000;
  font-size: 24px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sube-gorsel {
  margin-bottom: 20px;
  text-align: center;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.sube-gorsel img {
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sube-gorsel:hover img {
  transform: scale(1.05);
}

.sube-bilgileri h5 {
  margin: 0 0 20px 0;
  color: #AA0000;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  padding: 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  border-left: 4px solid #AA0000;
}

.sube-bilgileri p {
  margin: 12px 0;
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.sube-bilgileri p:last-child {
  border-bottom: none;
}

.sube-bilgileri strong {
  color: #AA0000;
  font-weight: 700;
  display: inline-block;
  min-width: 80px;
}

.sube-bilgileri a {
  color: #AA0000;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.sube-bilgileri a:hover {
  color: #CC0000;
  text-decoration: underline;
}

.harita-btn {
  display: inline-block;
  background: linear-gradient(135deg, #AA0000 0%, #CC0000 100%);
  color: white !important;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(170,0,0,0.3);
  border: none;
  cursor: pointer;
}

.harita-btn:hover {
  background: linear-gradient(135deg, #CC0000 0%, #EE0000 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(170,0,0,0.4);
}

/* Boş Durum */
.bos-durum {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.bos-durum p {
  margin: 0;
  font-size: 18px;
  font-style: italic;
  color: #888;
}

/* Responsive Tasarım */
@media screen and (max-width: 1200px) {
  .sube-harita-container {
    gap: 30px;
    padding: 20px;
  }
}

@media screen and (max-width: 1024px) {
  .sube-harita-container {
    flex-direction: column;
    gap: 25px;
    padding: 20px;
  }
  
  .harita-panel,
  .sube-bilgi-panel {
    flex: none;
  }
  
  .svg-turkiye-haritasi svg {
    max-height: 500px;
  }
  
  .sube-listesi {
    max-height: 500px;
  }
}

@media screen and (max-width: 768px) {
  .sube-harita-container {
    padding: 15px;
    gap: 20px;
  }
  
  .harita-baslik {
    padding: 20px;
  }
  
  .harita-baslik h2 {
    font-size: 24px;
  }
  
  .harita-baslik p {
    font-size: 14px;
  }
  
  .sube-bilgi-header {
    padding: 20px;
  }
  
  .sube-bilgi-header h3 {
    font-size: 20px;
  }
  
  .svg-turkiye-haritasi {
    padding: 20px;
  }
  
  .sube-listesi {
    padding: 20px;
    max-height: 400px;
  }
  
  .sube-karti {
    padding: 20px;
  }
  
  .il-isimleri {
    display: none;
  }
  
  .city-tooltip {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .tum-subeler-btn-minimal {
    padding: 6px 12px;
    font-size: 11px;
  }
}

@media screen and (max-width: 480px) {
  .sube-harita-container {
    padding: 10px;
    gap: 15px;
  }
  
  .harita-baslik {
    padding: 15px;
  }
  
  .harita-baslik h2 {
    font-size: 20px;
  }
  
  .harita-baslik p {
    font-size: 13px;
  }
  
  .sube-bilgi-header {
    padding: 15px;
  }
  
  .sube-bilgi-header h3 {
    font-size: 18px;
  }
  
  .svg-turkiye-haritasi {
    padding: 15px;
  }
  
  .sube-listesi {
    padding: 15px;
    max-height: 350px;
  }
  
  .sube-karti {
    padding: 15px;
  }
  
  .sube-gorsel img {
    height: 150px;
  }
  
  .sube-bilgileri h5 {
    font-size: 18px;
    padding: 12px;
  }
  
  .sube-bilgileri p {
    font-size: 14px;
  }
  
  .sehir-grubu-baslik {
    font-size: 16px;
    padding: 12px 15px;
  }
  
  .city-tooltip {
    font-size: 11px;
    padding: 5px 10px;
  }
  
  .tum-subeler-btn-minimal {
    padding: 5px 10px;
    font-size: 10px;
  }
}

/* Modal Stilleri */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
  position: relative;
  z-index: 1000000;
}

.modal-header {
  background: linear-gradient(135deg, #AA0000 0%, #CC0000 100%);
  color: white;
  padding: 20px 25px;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.modal-content .form-table {
  margin: 25px;
}

.modal-content .form-table th {
  width: 150px;
  padding: 15px 10px 15px 0;
  vertical-align: top;
  font-weight: 600;
  color: #333;
}

.modal-content .form-table td {
  padding: 15px 0;
}

.modal-content .regular-text {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.modal-content .regular-text:focus {
  outline: none;
  border-color: #AA0000;
  box-shadow: 0 0 0 3px rgba(170, 0, 0, 0.1);
}

.modal-content textarea {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  transition: all 0.3s ease;
}

.modal-content textarea:focus {
  outline: none;
  border-color: #AA0000;
  box-shadow: 0 0 0 3px rgba(170, 0, 0, 0.1);
}

.modal-content .description {
  margin: 5px 0 0 0;
  font-size: 12px;
  color: #666;
  font-style: italic;
}

.modal-content .submit {
  margin: 25px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.modal-content .button-primary {
  background: linear-gradient(135deg, #AA0000 0%, #CC0000 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(170, 0, 0, 0.3);
}

.modal-content .button-primary:hover {
  background: linear-gradient(135deg, #CC0000 0%, #EE0000 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(170, 0, 0, 0.4);
}

.modal-content .button-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.modal-content .button {
  background: #f8f9fa;
  color: #666;
  border: 1px solid #e9ecef;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-content .button:hover {
  background: #e9ecef;
  color: #333;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal Responsive */
@media screen and (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .modal-header {
    padding: 15px 20px;
  }
  
  .modal-header h2 {
    font-size: 20px;
  }
  
  .modal-content .form-table {
    margin: 20px;
  }
  
  .modal-content .form-table th {
    width: 120px;
    padding: 10px 5px 10px 0;
    font-size: 13px;
  }
  
  .modal-content .form-table td {
    padding: 10px 0;
  }
  
  .modal-content .submit {
    margin: 20px;
    flex-direction: column;
  }
  
  .modal-content .button-primary,
  .modal-content .button {
    width: 100%;
    margin-bottom: 10px;
  }
}
