/* ================================
   MAP SECTION STYLES - Arsem Enerji
   Interactive Turkey Map with Project Locations
   ================================ */

/* Main Container */
.map-section {
  z-index: 101;
  background-color: #ececec;
  flex-wrap: wrap;
  margin-top: auto;
  padding: 4rem 5%;
  display: flex;
  position: relative;
  overflow: hidden;
}

/* Header Section */
.map-header {
  color: #575757;
  width: 100%;
  margin-bottom: 40px;
  margin-right: 0%;
}

.map-title-wrapper {
  color: rgba(87, 87, 87, 0.52);
  align-items: center;
  margin-bottom: 0px;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
}

.map-title {
  color: rgba(87, 87, 87, 0.52);
}

.map-subtitle-wrapper {
  justify-content: space-between;
  align-items: flex-start;
  display: flex;
}

.map-subtitle {
  color: rgba(0, 0, 0, 0.45);
  width: 55%;
  font-size: 1.8em;
  font-weight: 300;
  line-height: 1.2;
}

.map-subtitle .highlight {
  color: #000000;
  font-weight: 600;
}

/* Interactive Map Container */
.map-container {
  min-height: auto;
  margin-top: 2rem;
  position: relative;
  overflow: visible;
}

.map-image {
  width: 100%;
  max-width: none;
  position: static;
  inset: 0%;
}

.map-image.mobile {
  display: none;
}

/* Project Markers (Tooltip Content) */
.project-marker {
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0);
  border-radius: 0px;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  line-height: 24px;
  transition: 0.2s;
  display: flex;
  position: absolute;
}

.project-marker:hover {
  border-color: #dadadb;
}

/* Marker Icon Container */
.marker-icon {
  z-index: 1;
  background-color: #cd9bd4;
  border: 1px solid #000000;
  border-radius: 3px;
  width: 25px;
  min-width: 25px;
  height: 25px;
  min-height: 25px;
  position: absolute;
  overflow: hidden;
  box-shadow: 0px 11px 11px rgba(0, 0, 0, 0.18);
}

.marker-icon.solar {
  background-color: #cd9bd4;
  justify-content: center;
  align-items: center;
  width: 25px;
  min-width: 25px;
  height: 25px;
  min-height: 25px;
  display: flex;
}

/* Wind Turbine Icons */
.wind-turbine-container {
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
  bottom: -6px;
}

.wind-turbine-container.left {
  left: -12%;
}

.wind-turbine-container.right {
  width: 70%;
  height: 70%;
  position: absolute;
  left: 36%;
}

.turbine-blade {
  max-width: 67%;
  position: absolute;
  inset: -10% auto auto;
}

.turbine-pole {
  max-width: none;
  height: 70%;
}

/* Solar Icon */
.solar-icon {
  max-width: 80%;
  position: absolute;
  inset: auto;
}

/* SVG color for marker icons */
.marker-icon svg,
.marker-icon img {
  filter: brightness(0) invert(1);
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Tooltip */
.marker-tooltip {
  z-index: 3;
  background-color: rgba(0, 0, 0, 0);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 200px;
  margin-top: -173px;
  display: flex;
  position: absolute;
  opacity: 0;
  transform: translate3d(0px, 0px, 0px) scale3d(0, 0, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
  transform-style: preserve-3d;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-marker:hover .marker-tooltip {
  opacity: 1;
  transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
}

.tooltip-content {
  background-color: #ffffff;
  border: 0.5px solid #cecece;
  border-radius: 6px;
  display: block;
  overflow: hidden;
}

.tooltip-header {
  background-image: linear-gradient(158deg, #cd9bd4, rgb(117, 109, 193));
  color: #ffffff;
  border-bottom-style: none;
  justify-content: center;
  min-height: 30px;
  font-size: 1.3rem;
  font-weight: 600;
  border-bottom: 0.5px solid #e4e4e4;
  flex-direction: column;
  align-items: center;
  width: 200px;
  height: auto;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  display: flex;
}

.tooltip-header.solar {
  background-image: linear-gradient(158deg, #cd9bd4, rgb(117, 109, 193));
}

.tooltip-body {
  border-bottom: 0.5px solid #e4e4e4;
  flex-direction: column;
  align-items: center;
  width: 200px;
  height: auto;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  display: flex;
}

/* Multi-project tooltip için dinamik scroll - 3'ten fazla proje varsa aktif */
.marker-tooltip.multi-project .tooltip-body {
  max-height: none;
  overflow-y: visible;
  gap: 0;
}

/* 4 veya daha fazla proje varsa scroll aktif olur */
.marker-tooltip.multi-project .tooltip-body:has(.tooltip-project-item:nth-child(4)) {
  max-height: 250px;
  overflow-y: auto;
}

/* Proje item container */
.tooltip-project-item {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.tooltip-project-item:last-child {
  border-bottom: none;
}

.tooltip-project-item:hover {
  background-color: #f8f8f8;
}

.tooltip-project-name {
  color: #000000;
  text-align: left;
  align-items: center;
  width: 100%;
  padding-left: 0px;
  padding-right: 0px;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  margin-bottom: 0.25rem;
}

.tooltip-capacity {
  color: var(--text-dark);
  text-align: left;
  width: 100%;
  padding-left: 0px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.8;
}

/* Scrollbar styling */
.marker-tooltip.multi-project .tooltip-body::-webkit-scrollbar {
  width: 4px;
}

.marker-tooltip.multi-project .tooltip-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.marker-tooltip.multi-project .tooltip-body::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.marker-tooltip.multi-project .tooltip-body::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.tooltip-arrow {
  z-index: 1;
  background-color: #ffffff;
  border-bottom: 0.5px solid #cecece;
  border-left: 1px solid #000000;
  border-right: 0.5px solid #cecece;
  border-radius: 0px 0px 2px;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  position: relative;
  transform: rotate(45deg);
}

/* Project Markers Position Classes */
.project-marker.ankara {
  top: 33%;
  right: 62%;
}

.project-marker.antalya {
  top: 72%;
  right: 68%;
}

.project-marker.mugla {
  top: 70%;
  right: 83%;
}

.project-marker.izmir {
  top: 54%;
  right: 87%;
}

.project-marker.istanbul {
  top: 15%;
  right: 77%;
}

.project-marker.edirne {
  top: 15%;
  right: 92%;
}

.project-marker.tokat {
  top: 27%;
  right: 42%;
}

.project-marker.rize {
  top: 18%;
  right: 20%;
}

.project-marker.agri {
  top: 34%;
  right: 9%;
}

.project-marker.igdir {
  top: 30%;
  right: 4%;
}

.project-marker.malatya {
  top: 50%;
  right: 34%;
}

.project-marker.mardin {
  top: 68%;
  right: 18%;
}

.project-marker.nigde {
  top: 63%;
  right: 51%;
}

.project-marker.gaziantep {
  top: 74%;
  right: 36%;
}

.project-marker.sanliurfa {
  top: 71%;
  right: 28%;
}

.project-marker.bilecik {
  top: 30%;
  right: 75%;
}

.project-marker.trabzon {
  top: 15%;
  right: 25%;
}

.project-marker.bayburt {
  top: 22%;
  right: 23%;
}

.project-marker.elazig {
  top: 49%;
  right: 26%;
}

/* Project Details Lists */
.project-details-section {
  color: #444444;
  background-color: #ffffff;
  border-width: 3px 0.5px 0.5px;
  border-style: solid;
  border-color: #e2e2e2;
  border-image: initial;
  border-radius: 5px;
  flex-direction: row;
  align-items: center;
  width: 100%;
  min-height: 300px;
  margin-top: 1rem;
  margin-bottom: 1rem;
  margin-right: 0px;
  padding: 2rem;
  text-decoration: none;
  transition: 0.2s;
  display: flex;
  opacity: 1;
  transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
  transform-style: preserve-3d;
}

.project-details-section:hover {
  border-top: 3px solid var(--primary-green);
  color: #444444;
  background-color: #ffffff;
  transform: scale(1.02);
  box-shadow: 0px 3px 15px #e2e2e2;
}

.project-details-wrapper {
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  height: auto;
  padding-right: 20px;
  display: flex;
}

.project-details-heading {
  color: #444444;
  width: 100%;
  margin-top: 0px;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8rem;
  opacity: 1;
  transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
  transform-style: preserve-3d;
}

.project-item-name {
  background-color: var(--primary-green);
  color: #ffffff;
  border-radius: 100px;
  margin-bottom: 1rem;
  padding: 0.25rem 1rem;
  font-size: 1rem;
  font-weight: 400;
}

.project-info-grid {
  background-color: #fafafa;
  border: 0.5px solid #e5e5e5;
  border-radius: 6px;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.5rem;
  display: flex;
}

.project-info-column {
  text-align: left;
  border-right: 0.5px solid #e5e5e5;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-right: 1rem;
  padding: 0.5rem;
  display: flex;
}

.project-info-column.last {
  border-right-style: none;
  margin-right: 0px;
}

.project-info-label {
  color: var(--primary-green);
  border-bottom: 0.5px solid #e2e2e2;
  align-items: flex-start;
  width: 100%;
  height: auto;
  margin-bottom: 0.5rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-size: 0.7rem;
  display: flex;
}

/* Responsive Design */
@media screen and (max-width: 991px) {
  .map-section {
    padding: 3rem 3%;
  }

  .map-subtitle {
    width: 100%;
    font-size: 1.4em;
  }

  .project-marker {
    width: 60px;
    height: 60px;
  }

  .marker-icon {
    width: 20px;
    min-width: 20px;
    height: 20px;
    min-height: 20px;
  }
}

@media screen and (max-width: 767px) {
  .map-section {
    padding: 2rem 1.5rem;
  }

  .map-image.web {
    display: none;
  }

  .map-image.mobile {
    display: block;
  }

  .map-subtitle {
    font-size: 1.2em;
  }

  .project-marker {
    width: 50px;
    height: 50px;
  }

  .marker-icon {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
  }

  .project-details-section {
    padding: 1.5rem;
    min-height: 250px;
  }

  .project-info-grid {
    flex-direction: column;
  }

  .project-info-column {
    border-right: none;
    border-bottom: 0.5px solid #e5e5e5;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .project-info-column.last {
    border-bottom: none;
    margin-bottom: 0;
  }
}

@media screen and (max-width: 479px) {
  .map-title-wrapper {
    font-size: 1rem;
  }

  .map-subtitle {
    font-size: 1em;
  }

  .project-details-heading {
    font-size: 1.2rem;
  }
}
