.at-map {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ececec;
  background: #f5f5f5;
}

.at-map-card {
  padding: 1.5rem;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fcfcfd;
}

.at-map-card__title {
  font-family: var(--wp--preset--font-family--geist-mono, monospace);
  font-size: 1rem;
  margin: 0 0 1rem;
}

.at-map .flat-marker {
  background: transparent;
  border: none;
}

.at-map .flat-marker-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.at-map .flat-marker-dot:hover {
  transform: scale(1.3);
  opacity: 1 !important;
}

.leaflet-popup-advicedtrip .leaflet-popup-content-wrapper {
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-advicedtrip .leaflet-popup-content {
  margin: 0;
}

.at-popup {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #fff;
  color: #1a1a1a;
  min-width: 200px;
  max-width: 300px;
}

.at-popup-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8e8e8;
}

.at-popup-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.at-popup-city {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
}

.at-popup-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.at-popup-meta {
  font-size: 12px;
  color: #666;
}

.at-popup-cta {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #0066cc;
  text-decoration: none;
}

.at-popup-cta:hover {
  text-decoration: underline;
}

/* Map section (homepage) */
.at-map-section {
  margin: 2.5rem 0;
}

.at-map-section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.at-map-section__title {
  font-family: var(--wp--preset--font-family--geist-mono, monospace);
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
}

.at-map-section__subtitle {
  margin: 0;
  color: #666;
  font-size: 1rem;
}

.at-map-section__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0066cc;
  text-decoration: none;
  border: 1px solid #0066cc;
  border-radius: 999px;
  padding: 0.45rem 1rem;
}

.at-map-section__link:hover {
  background: #0066cc;
  color: #fff;
}

/* Full map page */
.at-map-page__layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .at-map-page__layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

.at-map-page__authors {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 70vh;
  overflow-y: auto;
}

.at-map-page__author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fcfcfd;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.at-map-page__author:hover {
  border-color: #0066cc;
}

.at-map-page__author-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.at-map-page__author-name {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
}

.at-map-page__author-count {
  font-size: 0.75rem;
  color: #888;
}

.at-map-page__canvas {
  min-height: 420px;
}

@media (min-width: 900px) {
  .at-map-page__canvas {
    min-height: 560px;
  }
}

/* City / guide two-column layouts */
.at-city-page__layout,
.at-single-guide__layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .at-city-page__layout,
  .at-single-guide__layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

.at-city-page__sidebar,
.at-country-page__sidebar,
.at-single-guide__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-self: start;
}

@media (min-width: 900px) {
  .at-city-page__sidebar,
  .at-country-page__sidebar,
  .at-single-guide__sidebar {
    position: sticky;
    top: 1.5rem;
  }
}

.at-author-page__map {
  margin: 1.5rem 0 2rem;
}

.at-country-page__map-card {
  margin-bottom: 1.25rem;
}

/* Guide single sidebar */
.at-guide-sidebar__image-link {
  display: block;
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
}

.at-guide-sidebar__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.at-guide-sidebar__image-link:hover .at-guide-sidebar__image,
.at-guide-sidebar__image-link:focus-visible .at-guide-sidebar__image {
  filter: grayscale(0%);
}

@media (prefers-reduced-motion: reduce) {
  .at-guide-sidebar__image {
    transition: none;
  }

  .at-guide-sidebar__image-link:hover .at-guide-sidebar__image,
  .at-guide-sidebar__image-link:focus-visible .at-guide-sidebar__image {
    filter: grayscale(100%);
  }
}

.at-guide-sidebar__city-name {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.at-guide-sidebar__city-name a {
  color: inherit;
  text-decoration: none;
}

.at-guide-sidebar__city-name a:hover,
.at-guide-sidebar__city-name a:focus-visible {
  color: #0066cc;
}

.at-guide-sidebar__country {
  font-weight: 400;
  color: #666;
}

.at-guide-sidebar__meta {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: #666;
}

.at-guide-sidebar__explore {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0066cc;
  text-decoration: none;
}

.at-guide-sidebar__explore:hover,
.at-guide-sidebar__explore:focus-visible {
  text-decoration: underline;
}

.at-guide-sidebar__related {
  list-style: none;
  margin: 0;
  padding: 0;
}

.at-guide-sidebar__related-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #ececec;
}

.at-guide-sidebar__related-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.at-guide-sidebar__related-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1a1a1a;
  text-decoration: none;
}

.at-guide-sidebar__related-title:hover,
.at-guide-sidebar__related-title:focus-visible {
  color: #0066cc;
}

.at-guide-sidebar__related-excerpt {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
