/* Multi Location Google Maps - Styles */
:focus-visible {
  outline: none !important;
}
.gm-style-iw-chr {
  display: none;
}
/* Map Container */
.mlgm-map-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

/* Map Element */
.mlgm-map {
  width: 100%;
  height: 100%;
  min-height: 300px;
}

/* Info Window Styling */
.mlgm-info-window-content {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
  padding: 10px 0 0;
  max-width: 250px;
  text-align: center;
}

.mlgm-info-window-content h5 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
}

.mlgm-info-window-content p {
  margin: 5px 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.mlgm-info-window-content .mlgm-info-description {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.mlgm-info-window-content .mlgm-info-address {
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
}

.mlgm-info-window-content .mlgm-info-hq,
.mlgm-info-window-content .mlgm-info-office-contact,
.mlgm-info-window-content .mlgm-info-email {
  font-size: 13px;
  color: #666;
  margin: 8px 0;
  line-height: 1.5;
}

.mlgm-info-window-content .mlgm-info-email a {
  color: #1c944c;
  text-decoration: none;
}

.mlgm-info-window-content .mlgm-info-email a:hover {
  text-decoration: underline;
}

.mlgm-info-window-content .mlgm-view-on-google {
  display: inline-block;
  padding: 8px 16px;
  background-color: #1c944c;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  margin-top: 5px;
}

.mlgm-info-window-content .mlgm-view-on-google:hover {
  background-color: #156b38;
}

/* Custom Marker Styling */
.mlgm-custom-marker {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mlgm-custom-marker:hover {
  transform: scale(1.1);
}

/* Loading State */
.mlgm-map-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background-color: #f5f5f5;
  color: #666;
  font-size: 16px;
}

.mlgm-map-loading::before {
  content: "";
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #1c944c;
  border-radius: 50%;
  animation: mlgm-spin 1s linear infinite;
}

@keyframes mlgm-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Error State */
.mlgm-map-error {
  padding: 20px;
  background-color: #fee;
  color: #c33;
  border-radius: 4px;
  border: 1px solid #fcc;
  margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mlgm-map-container {
    border-radius: 4px;
    margin: 15px 0;
  }

  .mlgm-map {
    min-height: 250px;
  }

  .mlgm-info-window-content {
    max-width: 200px;
  }

  .mlgm-info-window-content h3 {
    font-size: 14px;
  }

  .mlgm-info-window-content p {
    font-size: 12px;
  }

  .mlgm-info-window-content .mlgm-view-on-google {
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .mlgm-map {
    min-height: 200px;
  }

  .mlgm-info-window-content {
    max-width: 180px;
    padding: 8px;
  }

  .mlgm-info-window-content h3 {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .mlgm-info-window-content p {
    font-size: 11px;
  }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
  .mlgm-map-container {
    margin: 20px 0;
  }
}

/* Large Screens */
@media (min-width: 1440px) {
  .mlgm-info-window-content {
    max-width: 300px;
  }

  .mlgm-info-window-content h3 {
    font-size: 18px;
  }

  .mlgm-info-window-content p {
    font-size: 15px;
  }
}

/* Print Styles */
@media print {
  .mlgm-map-container {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .mlgm-info-window-content .mlgm-view-on-google {
    display: none;
  }
}

/* Accessibility */
.mlgm-map:focus {
  outline: 2px solid #1c944c;
  outline-offset: 2px;
}

/* RTL Support */
[dir="rtl"] .mlgm-info-window-content {
  text-align: right;
}

[dir="rtl"] .mlgm-info-window-content .mlgm-view-on-google {
  float: left;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .mlgm-map-container {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  .mlgm-map-loading {
    background-color: #2d2d2d;
    color: #ccc;
  }
}

/* Location Cards Container */
.mlgm-cards-container {
  margin-top: 30px;
  width: 100%;
}

.mlgm-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 15px;
}

/* Individual Location Card */
.mlgm-location-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mlgm-location-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  border-color: #1c944c;
}

/* Card Header */
.mlgm-card-header {
  background: linear-gradient(135deg, #1c944c 0%, #156b38 100%);
  padding: 15px;
  text-align: center;
}

.mlgm-card-title {
  color: white;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}

/* Card Body */
.mlgm-card-body {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mlgm-card-description {
  font-size: 13px;
  color: #666;
  margin: 0 0 12px 0;
  line-height: 1.5;
  flex: 1;
}

.mlgm-card-address {
  font-size: 12px;
  color: #999;
  margin: 0 0 12px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.mlgm-card-hq,
.mlgm-card-office-contact,
.mlgm-card-email {
  font-size: 12px;
  color: #666;
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.mlgm-card-email a {
  color: #1c944c;
  text-decoration: none;
}

.mlgm-card-email a:hover {
  text-decoration: underline;
}

.mlgm-card-address::before {
  content: "";
  flex-shrink: 0;
  font-size: 14px;
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%231c944c" xmlns="http://www.w3.org/2000/svg"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>') no-repeat center;
  background-size: contain;
}

/* Card Footer */
.mlgm-card-footer {
  padding: 12px 15px;
  border-top: 1px solid #f0f0f0;
  background-color: #fafafa;
}

.mlgm-card-link {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 8px 12px;
  background-color: #1c944c;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.mlgm-card-link:hover {
  color: white;
  background-color: #156b38;
}

/* Responsive Grid - Tablets (768px) */
@media (max-width: 1024px) {
  .mlgm-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* Responsive Grid - Mobile (480px) */
@media (max-width: 768px) {
  .mlgm-cards-container {
    margin-top: 25px;
    padding: 0 15px;
  }

  .mlgm-cards-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .mlgm-location-card {
    border-radius: 6px;
    margin-bottom: 8px;
  }

  .mlgm-card-header {
    padding: 12px;
  }

  .mlgm-card-title {
    font-size: 14px;
  }

  .mlgm-card-body {
    padding: 12px;
  }

  .mlgm-card-description {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .mlgm-card-address {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .mlgm-card-footer {
    padding: 10px 12px;
  }

  .mlgm-card-link {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .mlgm-cards-container {
    margin-top: 20px;
    padding: 0 12px;
  }

  .mlgm-cards-grid {
    gap: 12px;
  }

  .mlgm-location-card {
    margin-bottom: 6px;
  }

  .mlgm-card-header {
    padding: 10px;
  }

  .mlgm-card-title {
    font-size: 13px;
  }

  .mlgm-card-body {
    padding: 10px;
  }

  .mlgm-card-description {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .mlgm-card-address {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .mlgm-card-footer {
    padding: 8px 10px;
  }

  .mlgm-card-link {
    padding: 5px 8px;
    font-size: 11px;
  }
}

/* Dark Mode Support for Cards */
@media (prefers-color-scheme: dark) {
  .mlgm-location-card {
    background: #1e1e1e;
    border-color: #333;
  }

  .mlgm-location-card:hover {
    border-color: #2ecc71;
    box-shadow: 0 4px 16px rgba(28, 148, 76, 0.2);
  }

  .mlgm-card-body {
    background: #1e1e1e;
  }

  .mlgm-card-description {
    color: #bbb;
  }

  .mlgm-card-address {
    color: #999;
  }

  .mlgm-card-footer {
    background-color: #2a2a2a;
    border-top-color: #333;
  }
}
