/* =============================================================
   Property Area Taxonomy — Premium Frontend Styles
   Enqueued by maxx_area_styles() in prop-area-mb.php §10.
   Only loaded on is_tax('property_area') pages.
   Version: 2.1.0
   ============================================================= */

/* --- Scroll-reveal animation -------------------------------- */
@keyframes paFadeInUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pa-animate    { animation: paFadeInUp 0.60s ease both; }
.pa-animate-d1 { animation-delay: 0.10s; }
.pa-animate-d2 { animation-delay: 0.20s; }
.pa-animate-d3 { animation-delay: 0.30s; }

/* --- Outer wrapper ----------------------------------------- */
.property-area-overview-map-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
}

/* --- Section divider: gradient line between sections -------- */
.pa-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #c8e6d4 40%,
    #c8e6d4 60%,
    transparent
  );
  margin: 0 40px;
}


/* =============================================================
   §1  OVERVIEW SECTION
   Background: soft #F8FAFC — light without being plain white.
   ============================================================= */
.pa-overview {
  background: #F8FAFC;
  padding: 60px 40px;
}

/* Small uppercase label above main heading */
.pa-section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #0b6230;
  margin: 0 0 10px;
}

/* Main section heading */
.pa-overview-title {
  font-size: 30px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 14px;
  line-height: 1.3;
}

/* Microdata strip — live stat row between heading and badges.
   e.g. "142 Properties Available · Karachi · Residential Area" */
.pa-microdata {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 24px;
  line-height: 1.6;
}
.pa-microdata strong {
  color: #0b6230;
  font-weight: 600;
}

/* Trust / verification badge pills */
.pa-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.pa-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #c8e6d4;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: #0b6230;
  font-weight: 500;
  box-shadow: 0 1px 6px rgba(11, 98, 48, 0.07);
}
.pa-trust-badge::before {
  content: '✔';
  font-size: 11px;
}

/* Overview body text
   max-width: 720px prevents "wall of text" on wide viewports. */
.pa-overview-body {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.75;
  color: #4a5568;
}

/* Lead paragraph — larger size makes even short descriptions look
   substantial and creates a clear visual entry point. */
.pa-overview-body p:first-of-type {
  font-size: 18px;
  line-height: 1.8;
  color: #2d3748;
}

.pa-overview-body p           { margin-bottom: 18px; }
.pa-overview-body p:last-child { margin-bottom: 0; }

/* Vertical rhythm for headings generated in the WYSIWYG editor.
   Without this, h2/h3/h4 inside Area Information can bump up
   against the preceding paragraph with no breathing room. */
.pa-overview-body h2,
.pa-overview-body h3,
.pa-overview-body h4 {
  margin-top: 28px;
  margin-bottom: 12px;
}


/* =============================================================
   §2  AMENITIES SECTION
   Background: gradient white → light for visual separation.
   ============================================================= */
.pa-amenities {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  padding: 60px 40px;
}

.pa-section-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 40px;
  line-height: 1.3;
}

/* Force 3 equal columns on desktop so 3 categories sit side-by-side
   without an orphan row.  Falls back to fewer columns via media queries. */
.pa-amenity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card base */
.pa-amenity-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8edf3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Green gradient top accent bar — always visible as a subtle strip */
.pa-amenity-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0b6230, #22c55e);
  opacity: 0.35;
  transition: opacity 0.3s ease;
}
.pa-amenity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(11, 98, 48, 0.13);
}
.pa-amenity-card:hover::after { opacity: 1; }

/* Category icon + heading row — displayed inline */
.pa-amenity-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid #e8f5ee;
}

/* Category icon block — larger, more prominent */
.pa-amenity-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #e8f5ee, #d1fae5);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(11, 98, 48, 0.08);
}

/* Card heading */
.pa-amenity-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
  padding: 0;
  border: none;
}

/* List — capped at 240 px to prevent cards from growing unbounded
   when an area has 10+ amenities. Scrollbar appears only when
   the cap is actually reached. */
.pa-amenity-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c8e6d4 transparent;
}
.pa-amenity-card ul::-webkit-scrollbar       { width: 4px; }
.pa-amenity-card ul::-webkit-scrollbar-thumb { background: #c8e6d4; border-radius: 4px; }

.pa-amenity-card ul li {
  font-size: 14.5px;
  line-height: 1.55;
  color: #4a5568;
  padding: 9px 0;
  border-bottom: 1px solid #f0f4f8;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pa-amenity-card ul li:last-child { border-bottom: none; }

/* Green dot bullet */
.pa-amenity-card ul li::before {
  content: '';
  width: 7px;
  height: 7px;
  min-width: 7px;
  background: #0b6230;
  border-radius: 50%;
  display: inline-block;
  margin-top: 7px;
  flex-shrink: 0;
}

/* Travel time label */
.pa-travel-time {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  margin-left: auto;
  padding-left: 6px;
}

/* Empty state — styled panel so a missing category looks
   intentional rather than like a rendering bug. */
.pa-amenity-empty {
  font-size: 13px;
  color: #94a3b8;
  font-style: italic;
  margin: 0;
  padding: 20px;
  background: #f8fafc;
  border-radius: 10px;
  text-align: center;
}


/* =============================================================
   §3  MAP SECTION
   Background: soft off-white for contrast after the gradient above.
   ============================================================= */
.pa-map-section {
  background: #fafbfc;
  padding: 60px 40px;
}

.pa-map-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 32px;
  line-height: 1.3;
}

/* Map is always full-width — no side panel */
.pa-map-inner {
  display: block;
}

/* Map canvas wrapper */
.pa-map-canvas-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.10);
  min-height: 460px;
}
.pa-map-canvas-wrap .rwmb-map-canvas {
  height: 460px !important;
  border-radius: 0;
  display: block;
}

/* Location Highlights — horizontal row above map */
.pa-map-panel {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
  background: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
}
.pa-map-panel-title {
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 4px;
  padding: 0;
  border: none;
}
.pa-map-highlight {
  flex: 1 1 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.pa-map-highlight:hover {
  background: #f0f9f4;
  box-shadow: 0 4px 16px rgba(11, 98, 48, 0.1);
}

/* Category icon badge inside highlight row */
.pa-hl-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.pa-hl-icon.shopping   { background: #fef9c3; }
.pa-hl-icon.education  { background: #dbeafe; }
.pa-hl-icon.healthcare { background: #fee2e2; }

.pa-hl-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 3px;
}
.pa-hl-text span {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
}


/* =============================================================
   §4  RESPONSIVE
   ============================================================= */

/* Tablet — 2-col amenity grid, highlights wrap */
@media (max-width: 992px) {
  .pa-amenity-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .pa-map-highlight { flex: 1 1 calc(50% - 7px); }
}

/* Mobile — tighten padding, reduce font sizes, drop map height */
@media (max-width: 768px) {
  .pa-overview,
  .pa-amenities,
  .pa-map-section      { padding: 40px 20px; }
  .pa-divider          { margin: 0 20px; }
  .pa-overview-title,
  .pa-section-title,
  .pa-map-title        { font-size: 22px; }
  .pa-amenity-grid     { grid-template-columns: 1fr; }
  /* Lead paragraph falls back to standard size on small screens */
  .pa-overview-body p:first-of-type { font-size: 16px; }
  .pa-map-canvas-wrap  { min-height: 320px; }
  .pa-map-canvas-wrap .rwmb-map-canvas { height: 320px !important; }
  .pa-map-highlight    { flex: 1 1 100%; }
}
