<?php
/**
 * Dummy PHP header so this file can’t be accessed directly.
 * Real content is just CSS below.
 */
if (!defined('ABSPATH')) {
    exit;
}
?>
/* -----------------------------------------------------------
 * Donzella SEO Suite — Region Directory / Map Styles
 * File: inc/frontend/assets/css/dse-region-map.css
 *
 * Layout + styling for:
 * - .dse-hero--region (split hero with map panel)
 * - Region summary strip / helper bar
 * - Region directory grid & cards (light overrides)
 * -------------------------------------------------------- */

/* HERO LAYOUT – SHOP BY REGION
   -------------------------------------------------------- */

.dse-hero--region .dse-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: stretch;
}

@media (max-width: 960px) {
    .dse-hero--region .dse-hero__inner {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
}

/* Copy column */

.dse-hero--region .dse-hero__title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin-bottom: 0.75rem;
}

.dse-hero--region .dse-hero__lead {
    font-size: 0.98rem;
    line-height: 1.7;
    max-width: 40rem;
    margin-bottom: 0.4rem;
}

/* Map / panel column */

.dse-region-hero__map-panel {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.25rem 1.4rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.dse-region-hero__map-heading {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dse-region-hero__map-sub {
    font-size: 0.8rem;
    color: #666;
    margin: 0 0 0.4rem;
}

/* Map placeholder / SVG container */

#dse-region-map {
    position: relative;
    width: 100%;
    padding-bottom: 72%; /* aspect ratio box */
    border-radius: 18px;
    background: radial-gradient(circle at 10% 0%, #f7f7fb 0, #ececf5 35%, #e5e6f0 60%, #e0e2ee 100%);
    overflow: hidden;
    margin-bottom: 0.6rem;
}

/* Optional “drawn” Italy outline (SVG) */

#dse-region-map svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Clickable regions on the SVG / map */

.dse-region-map__area {
    cursor: pointer;
    transition: fill 0.18s ease, transform 0.18s ease;
}

.dse-region-map__area:hover {
    transform: translateY(-1px);
}

/* Active state driven by JS data attributes */
.dse-region-map__area.is-active {
    outline: 2px solid rgba(0, 0, 0, 0.16);
    outline-offset: 1px;
}

/* Quick links / legend */

.dse-region-map__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.1rem;
}

.dse-region-map__pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
    font-size: 0.78rem;
    border: 1px solid #ddd;
    background: #fafafa;
    cursor: pointer;
    gap: 0.35rem;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.1s ease;
}

.dse-region-map__pill:hover {
    background: #111;
    color: #fff;
    border-color: #111;
    transform: translateY(-1px);
}

.dse-region-map__pill.is-active {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* Small count badge inside the pill */

.dse-region-map__pill-count {
    font-size: 0.72rem;
    opacity: 0.9;
}

/* “X regions / Y wines” summary line */

.dse-region-map__summary {
    font-size: 0.8rem;
    color: #555;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* “Jump to list” link */

.dse-region-map__jump {
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
}

/* DIRECTORY GRID BASICS
   (Region-specific tweaks only; grape directory uses same base CSS)
   -------------------------------------------------------- */

.dse-directory--region {
    margin-top: 2.5rem;
}

.dse-region-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.75rem;
}

@media (min-width: 1024px) {
    .dse-region-directory-grid {
        gap: 2rem;
    }
}

/* Card hover tweaks – keep in sync with card-region.php markup */

.dse-region-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem 1.5rem 1.6rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.dse-region-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.10);
}

/* Optional colour ring accent on card (based on data-region-colour) */

.dse-region-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    border: 2px solid transparent;
    pointer-events: none;
    transition: border-color 0.16s ease;
}

/* These are toggled by JS when data-region-colour is known */

.dse-region-card.is-red::before {
    border-color: rgba(155, 33, 57, 0.25);
}

.dse-region-card.is-white::before {
    border-color: rgba(205, 190, 120, 0.28);
}

.dse-region-card.is-rose::before {
    border-color: rgba(220, 130, 150, 0.30);
}

.dse-region-card.is-sparkling::before {
    border-color: rgba(120, 170, 210, 0.30);
}

.dse-region-card.is-dessert::before {
    border-color: rgba(195, 140, 80, 0.30);
}

/* Simple “hidden by search/filter” state */

.dse-region-card.is-hidden {
    display: none !important;
}

/* REGION FILTER / HEADER BAR
   (filter-bar-region.php)
   -------------------------------------------------------- */

.dse-region-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    margin: 1.75rem 0 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: #f7f7fb;
}

.dse-region-header__title {
    font-size: 0.9rem;
    font-weight: 600;
}

.dse-region-header__search {
    flex: 1 1 220px;
    max-width: 340px;
}

.dse-region-header__search input[type="search"] {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #ddd;
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
}

.dse-region-header__search input[type="search"]:focus {
    outline: none;
    border-color: #111;
}
