/* Globe Section Styles */
/* Ana Container */
.globe-container {
  position: relative;
  display: flex;
  height: auto;
  width: 100%;
}

/* Globe Section */
.globe-section {
  position: relative;
  width: 100%;
  height: 100%;
  transform: translateX(-30%); /* Dünyayı sola kaydır */
  margin-right: 400px; /* Info panel için yer aç */
}

#globeViz {
  width: 100%;
  height: 100%;
}

/* Info Panel - Desktop only */
@media (min-width: 1025px) {
  .globe-container .info-panel {
    width: 55%;
    background: linear-gradient(135deg, #3e3f40 0%, #212121 100%);
    padding: 0;
    position: absolute;
    right: 0;
    z-index: 1;
    height: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: row; /* info-left ve info-right'ı yan yana yerleştirir */
  }
}

.info-close { display: none; }

/* Kapat butonu (sadece panel içi, sağ üst) */
.info-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}

.info-close i { font-size: 18px; }
.info-close:hover { background: rgba(255,255,255,0.18); }

.globe-container .info-detail-location {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.location-info {
  padding: 20px;
  color: white;
  position: relative;
}

.location-info h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #fff;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.location-info h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: white;
}

.location-info p { display: none; }

.location-info img {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.5s ease;
}

.location-info > a { display: none; }

.coordinates { display: none; }

.nav-buttons {
  display: flex;
  justify-content: left;
  margin-bottom: 20px;
  padding: 0 30px;
  padding-top: 30px;
  gap: 20px;
}

/* Bayilerimiz başlığı */
.dealers-title {
  color: #fff;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 24px 30px 0;
  font-size: 18px;
  opacity: .9;
}

.nav-button {
  background: rgb(169 169 169 / 10%);
  border: 1px solid rgb(141 141 141 / 51%);
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-button:hover {
  background: rgba(76, 201, 240, 0.3);
  transform: scale(1.1);
}

.nav-button i {
  font-size: 15px;
}

.dealer-row a, .dealer-row span {
  font-size: 17px;
}

/* Info Right */
.info-right {
  display: flex;
  justify-content: right;
  align-items: center;
}

.info-right-image {
  height: 100%;
}

.info-right-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

/* Dealer detayları */
.dealer-details {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.dealer-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 10px;
  color: #b8c2cc;
}

.dealer-row i { color: white; margin-top: 7px; font-size: 16px; }
.dealer-row a { color: #b8c2cc; text-decoration: none; }
.dealer-row a:hover { color: #fff; }

.info-left {
  flex: 1; /* Sol tarafın genişliğini esnek yapar */
  padding: 20px;
}

.info-right {
  flex: 1; /* Sol tarafın genişliğini esnek yapar */
}

.globe-after {
  margin-top: -300px;
}

/* Animation classes */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.slide-in-left {
  animation: slideInLeft 0.5s ease forwards;
}

.slide-in-right {
  animation: slideInRight 0.5s ease forwards;
}

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

@keyframes slideInLeft {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Globe Section Responsive */
@media (max-width: 1024px) {
  .globe-container {
    flex-direction: column;
  }
  
  .globe-section {
    transform: none;
    margin-right: 0;
    height: clamp(400px, 52vh, 560px);
  }

  .info-right-image {
    height: 100%;
    width: 100%;
    padding: 35px;
  }

  /* Mobil/Tablet: info panel başlangıçta gizli (off-canvas) */
  .globe-container .info-panel,
  .globe-container #infoPanel {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    transform: translateX(100%) !important;
    transition: transform 420ms cubic-bezier(.22,.61,.36,1) !important;
    box-shadow: none !important;
    z-index: 9999 !important;
    flex-direction: column !important;
    display: flex !important;
    background: linear-gradient(135deg, #3e3f40 0%, #212121 100%) !important;
    padding: 0 !important;
  }
  
  .globe-container .info-panel.is-open,
  .globe-container #infoPanel.is-open {
    transform: translateX(0%) !important;
  }
  
  /* Kapat butonu mobilde görünür, masaüstünde (varsayılan) gizli kalsın */
  .info-close { display: flex !important; top: 36px; right: 40px; }
}

@media (min-width: 1025px) {
  .info-close {
    display: none;
  }
}

/* Tablet specific styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .globe-container .info-panel,
  .globe-container #infoPanel {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    transform: translateX(100%) !important;
    transition: transform 420ms cubic-bezier(.22,.61,.36,1) !important;
    box-shadow: none !important;
    z-index: 9999 !important;
    flex-direction: column !important;
    display: flex !important;
    background: linear-gradient(135deg, #3e3f40 0%, #212121 100%) !important;
    padding: 0 !important;
  }
  .globe-container .info-panel.is-open,
  .globe-container #infoPanel.is-open {
    transform: translateX(0%) !important;
  }
  .info-close { 
    display: flex !important; 
    top: 36px; 
    right: 40px; 
  }

  .globe-after {
    margin-top: 0px;
  }
}

@media (max-width: 768px) {
  .globe-section {
    height: 56vh;
  }
  .globe-container .info-panel,
  .globe-container #infoPanel {
    flex-direction: column !important;
    overflow: hidden !important;
    z-index: 1001 !important;
  }
  .info-right-image { height: 200px; padding: 0; }
  .nav-buttons { justify-content: left; padding: 16px; gap: 16px; margin: 0; }
  .dealers-title {padding: 16px;}
  .location-info { padding: 20px; }
  .location-info h2{ 
    font-size: 20px;
    margin: 0;
   }

  .location-info p { font-size: 14px; }

  .info-close {
    position: absolute;
    top: 33px;
    right: 27px;
  }

  .globe-after {
    margin-top: -50px;
  }
}

@media (max-width: 480px) {
  .globe-section { height: 56vh; }
  .info-right-image { height: 200px; padding: 0; }
  .nav-button { width: 36px; height: 36px; }
}

.info-right {
  justify-content: center;
}
