/* ==========================================================================
   Park Model Nation - Locations Map & Showroom Cards
   Style matching visual mockup: 3-column layout (Toledo | Map | Spokane Valley)
   Fully compatible with Elementor Typography & Style Controls
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&family=Poppins:wght@500;600;700;800&family=Roboto:wght@400;500;700&display=swap');

:root {
  --pmn-navy-bg: #071c2d;
  --pmn-navy-dark: #051421;
  --pmn-navy-border: #1a3249;
  --pmn-red: #e5251f;
  --pmn-red-hover: #c41c17;
  --pmn-white: #ffffff;
  --pmn-text-light: #dbe4ee;
  --pmn-text-dim: #94a3b8;
  --pmn-font-heading: 'Poppins', sans-serif;
  --pmn-font-body: 'Roboto', sans-serif;
  --pmn-font-script: 'Caveat', cursive;
}

/* Master Wrapper */
.pmn-showrooms-container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  box-sizing: border-box;
  font-family: var(--pmn-font-body);
}

/* 3-Column Main Grid (Card 1 | Map | Card 2) */
.pmn-showrooms-grid {
  display: grid;
  grid-template-columns: 340px 1fr 340px;
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

/* Individual Location Card */
.pmn-card {
  background: var(--pmn-navy-bg);
  border-radius: 12px;
  padding: 32px 24px 28px;
  color: var(--pmn-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(7, 28, 45, 0.25);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--pmn-navy-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pmn-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(7, 28, 45, 0.35);
}

/* Pine Tree Graphic on Outer Edges */
.pmn-card-pine-left,
.pmn-card-pine-right {
  position: absolute;
  bottom: 0;
  width: 55px;
  height: 120px;
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
}

.pmn-card-pine-left {
  left: 4px;
}

.pmn-card-pine-right {
  right: 4px;
}

.pmn-card-pine-left svg,
.pmn-card-pine-right svg {
  fill: #ffffff;
}

/* Card Header */
.pmn-card-header {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.pmn-card-title {
  font-family: var(--pmn-font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--pmn-white);
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.pmn-card-accent-line {
  width: 42px;
  height: 3px;
  background: var(--pmn-red);
  margin: 0 auto;
  border-radius: 2px;
}

/* Details Section (Icons & Text) */
.pmn-card-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 26px;
  position: relative;
  z-index: 2;
}

.pmn-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14.5px;
  color: var(--pmn-text-light);
  line-height: 1.45;
}

.pmn-detail-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pmn-detail-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--pmn-white);
}

.pmn-detail-content {
  flex: 1;
}

.pmn-detail-address {
  color: var(--pmn-text-light);
  font-size: 14.5px;
  line-height: 1.45;
}

.pmn-detail-phone a {
  color: var(--pmn-text-light);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.pmn-detail-phone a:hover {
  color: var(--pmn-red);
}

.pmn-hours-title {
  display: block;
  font-weight: 600;
  color: var(--pmn-white);
  font-size: 14.5px;
}

.pmn-hours-days {
  display: block;
  color: var(--pmn-text-light);
  font-size: 14px;
}

.pmn-closed-tag {
  color: #f87171;
  font-size: 13.5px;
  display: block;
  margin-top: 2px;
}

/* Action Buttons */
.pmn-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.pmn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 18px;
  font-family: var(--pmn-font-heading);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  box-sizing: border-box;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
}

/* Red Directions Button */
.pmn-btn-directions {
  background-color: var(--pmn-red);
  color: var(--pmn-white);
  border: 1.5px solid var(--pmn-red);
}

.pmn-btn-directions:hover {
  background-color: var(--pmn-red-hover);
  border-color: var(--pmn-red-hover);
  color: var(--pmn-white);
  box-shadow: 0 4px 14px rgba(229, 37, 31, 0.4);
}

.pmn-btn-directions svg {
  width: 17px;
  height: 17px;
  stroke: var(--pmn-white);
  fill: none;
  stroke-width: 2;
}

/* Dark Outline View Models Button */
.pmn-btn-models {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--pmn-white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.pmn-btn-models:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--pmn-white);
  color: var(--pmn-white);
}

/* Center Map Column */
.pmn-map-column {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(7, 28, 45, 0.15);
  border: 1px solid #cbd5e1;
  background: #d6e8d2;
  min-height: 480px;
}

.pmn-leaflet-canvas {
  width: 100%;
  height: 100%;
  min-height: 480px;
  z-index: 1;
}

/* Custom Marker Callout */
.pmn-marker-container {
  background: transparent;
  border: none;
}

.pmn-marker-callout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: translate(-30px, -48px);
  cursor: pointer;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
  transition: transform 0.2s ease;
}

.pmn-marker-callout:hover {
  transform: translate(-30px, -52px) scale(1.05);
}

.pmn-marker-pin-svg {
  width: 36px;
  height: 44px;
  flex-shrink: 0;
}

.pmn-marker-box {
  background: #ffffff;
  border-radius: 8px;
  padding: 6px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
  border: 1px solid #e2e8f0;
}

.pmn-marker-box-title {
  font-family: var(--pmn-font-heading);
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.pmn-marker-box-sub {
  font-family: var(--pmn-font-body);
  font-size: 11px;
  font-weight: 500;
  color: #475569;
  line-height: 1.2;
}

/* Floating Script Tagline */
.pmn-map-script-tagline {
  position: absolute;
  bottom: 16px;
  right: 20px;
  z-index: 400;
  pointer-events: none;
  text-align: right;
  transform: rotate(-3deg);
}

.pmn-tagline-text {
  font-family: var(--pmn-font-script);
  font-size: 27px;
  font-weight: 700;
  color: #0c4e7a;
  line-height: 1.05;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.9), -1px -1px 2px rgba(255, 255, 255, 0.9);
  display: block;
}

.pmn-tagline-underline {
  width: 110px;
  height: 4px;
  background-color: var(--pmn-red);
  margin-left: auto;
  margin-top: 2px;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(229, 37, 31, 0.3);
}

/* Responsive Behavior */
@media (max-width: 1100px) {
  .pmn-showrooms-grid {
    grid-template-columns: 310px 1fr 310px;
    gap: 12px;
  }
}

@media (max-width: 960px) {
  .pmn-showrooms-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "map map"
      "card1 card2";
  }

  .pmn-map-column {
    grid-area: map;
    min-height: 400px;
  }

  .pmn-card:first-of-type {
    grid-area: card1;
  }

  .pmn-card:last-of-type {
    grid-area: card2;
  }
}

@media (max-width: 640px) {
  .pmn-showrooms-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "map"
      "card1"
      "card2";
    gap: 16px;
  }

  .pmn-map-column {
    min-height: 340px;
  }

  .pmn-card {
    padding: 24px 18px;
  }

  .pmn-tagline-text {
    font-size: 22px;
  }

  .pmn-tagline-underline {
    width: 80px;
  }
}
