/* ===== MAP WIDGET COMPONENT ===== */

.map-widget {
 position: relative;
 height: 635px;
}

.map-widget__map {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 z-index: 1;
 opacity: 1;
 transition: all 0.5s ease;
}

.map-widget__container {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 z-index: 2;
 display: flex;
 align-items: center;
 pointer-events: none;
}

.map-widget__content {
 width: 388px;
 max-width: 100%;
 display: flex;
 flex-direction: column;
 pointer-events: auto;
}

.map-widget__tabs {
 display: flex;
 background: white;
 border-radius: 15px 15px 0 0;
 padding: 0 25px;
 gap: 5px;
 justify-content: space-between;
 border-bottom: 1px solid #F0F0F0;
 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-widget__tab {
 padding: 17px 0;
 background: transparent;
 border: none;
 cursor: pointer;
 font-size: 15px;
 font-weight: 700;
 transition: all 0.3s ease;
 position: relative;
 overflow: visible;
 border-bottom: 1px solid transparent;
 color: rgba(0, 0, 0, 0.4);
 margin-bottom: -1px;
 z-index: 2;
}

.map-widget__tab::after {
 content: '';
 position: absolute;
 bottom: -1px;
 left: 50%;
 width: 0;
 height: 2px;
 background: #E63737;
 transition: all 0.3s ease;
 transform: translateX(-50%);
}

.map-widget__tab:hover {
 color: #E63737;
}

.map-widget__tab--active {
 color: #E63737;
}

.map-widget__tab--active::after {
 width: 100%;
}

.map-widget__tab-content {
 padding: 25px;
 border-radius: 0 0 15px 15px;
 background: #FFF;
 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-widget__tab-panel {
 display: none;
 opacity: 0;
 transform: translateY(10px);
 transition: opacity 0.4s ease, transform 0.4s ease;
}

.map-widget__tab-panel--active {
 display: block;
 animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
 0% {
  opacity: 0;
  transform: translateY(10px);
 }

 100% {
  opacity: 1;
  transform: translateY(0);
 }
}

.map-widget__contact-list {
 display: flex;
 flex-direction: column;
 gap: 25px;
}

.map-widget__contact-item {
 display: flex;
 gap: 14px;
 align-items: flex-start;
}

.map-widget__contact-icon {
 line-height: 0;
 flex-shrink: 0;
}

.map-widget__contact-icon svg {
 width: 30px;
 height: 30px;
 min-width: 30px;
}

.map-widget__contact-info {
 flex: 1;
}

.map-widget__contact-title {
 color: #000;
 font-size: 16px;
 font-weight: 500;
 line-height: 140%;
 transition: all 0.3s ease;
 text-decoration: none;
 position: relative;
}

a.map-widget__contact-title:hover {
 color: #E63737;
}

a.map-widget__contact-title::after {
 content: '';
 position: absolute;
 bottom: -2px;
 left: 0;
 width: 0;
 height: 1px;
 background-color: transparent;
 transition: width 0.3s ease;
}

a.map-widget__contact-title:hover::after {
 background-color: rgba(230, 55, 55, 0.3);
 width: 100%;
}

.map-widget__contact-info span {
 color: #787878;
 font-size: 13px;
 font-weight: 300;
 display: block;
 margin-top: 4px;
}

.map-widget__social {
 margin-top: 25px;
}

.map-widget__social-title {
 color: #000;
 font-size: 16px;
 font-weight: 500;
 line-height: 140%;
 margin-bottom: 10px;
}

.map-widget__social-list {
 display: flex;
 gap: 10px;
 flex-wrap: wrap;
}

.map-widget__social-item {
 line-height: 0;
 transition: transform 0.3s ease;
}

.map-widget__social-item:hover {
 transform: scale(1.04);
}

.map-widget__social-item svg,
.map-widget__social-item img {
 width: 35px;
 height: 35px;
 min-width: 35px;
 aspect-ratio: 1/1;
}

.map-widget__social-disclaimer {
 display: block;
 margin-top: 9px;
 color: #939393;
 font-size: 12px;
 font-weight: 300;
 line-height: 140%;
}

.map-widget__zoom-controls {
 position: absolute;
 top: 50%;
 transform: translateY(-50%);
 right: 20px;
 z-index: 1000;
 display: flex;
 flex-direction: column;
 gap: 5px;
}

.map-widget__zoom-btn {
 width: 40px;
 height: 40px;
 background: white;
 border: 2px solid #e0e0e0;
 border-radius: 8px;
 cursor: pointer;
 font-size: 24px;
 font-weight: 400;
 color: #333;
 display: flex;
 align-items: center;
 justify-content: center;
 transition: all 0.3s ease;
 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-widget__zoom-btn:hover {
 background: #f5f5f5;
 border-color: #E63737;
 color: #E63737;
}

.map-widget__zoom-btn:active {
 transform: scale(0.95);
}

@media (max-width: 900px) {
 .map-widget {
  height: 736px;
 }

 .map-widget__container {
  top: auto;
  bottom: 40px;
  left: 0;
  width: 100%;
  height: fit-content;
 }
}

@media (max-width: 768px) {
 .map-widget__zoom-controls {
  display: none;
 }

 .map-widget__tabs {
  padding: 0 20px;
  gap: 10px;
  overflow-x: auto;
  overflow-y: clip;
 }

 .map-widget__tab {
  font-size: 13px;
  white-space: nowrap;
 }

 .map-widget__tab-content {
  padding: 20px;
 }

 .map-widget__contact-title {
  color: #000;
  font-size: 14px;
 }

 .map-widget__contact-list {
  gap: 10px;
 }

 .map-widget__social {
  margin-top: 10px;
 }

 .map-widget__social-title {
  font-size: 14px;
 }
}