/* ============================================================
   attractions-map.css
   Shared styles for attraction map pages
   Version: 1.0 | Date: 25-06-2026
   ============================================================ */

/* ============================================================
   FILTER BAR
   ============================================================ */
.att-map-filter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--wh);
    border: 1px solid var(--bd);
    border-radius: 10px;
}

.att-map-chips {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    width: 100%;
}

.att-map-dropdown-wrap {
    width: 100%;
}

.att-map-dropdown {
    width: 100%;
}

@media (min-width: 768px) {
    .att-map-chips { width: auto; flex: 1; }
    .att-map-dropdown-wrap { width: auto; }
    .att-map-dropdown { width: auto; }
}

.att-map-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid var(--bd);
    background: var(--wh);
    color: var(--tx);
    transition: all 0.15s;
    white-space: nowrap;
}

.att-map-chip:hover { border-color: var(--pr); color: var(--pr); }

.att-map-chip.active {
    background: #c8f04a !important;
    border-color: #a0c030 !important;
    color: #1a2f00 !important;
    font-weight: 600;
}

.att-map-chip i { font-size: 0.8rem; }

.att-map-dropdown-wrap { flex-shrink: 0; }

.att-map-dropdown {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1.5px solid var(--bd);
    background: var(--wh);
    color: var(--tx);
    font-size: 0.82rem;
    cursor: pointer;
    transition: border-color 0.15s;
}

.att-map-dropdown:focus {
    border-color: var(--pr);
    outline: none;
}

.att-map-count {
    font-size: 0.78rem;
    color: var(--mu);
    white-space: nowrap;
    flex-shrink: 0;
}

.att-map-count span {
    font-weight: 700;
    color: var(--pr);
}

/* ============================================================
   MAP CONTAINER
   ============================================================ */
.att-map-container {
    width: 100%;
    height: 520px;
    border-radius: 10px;
    border: 1px solid var(--bd);
    margin-bottom: 1.5rem;
    z-index: 1;
}

@media (max-width: 767px) {
    .att-map-container { height: 350px; }
    .att-map-filter { gap: 0.5rem; }
    .att-map-chip { font-size: 0.78rem; padding: 4px 10px; }
}

/* ============================================================
   LEAFLET POPUP CUSTOM STYLE
   ============================================================ */
.att-map-popup {
    font-family: system-ui, -apple-system, sans-serif;
    min-width: 180px;
    max-width: 220px;
}

.att-map-popup-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ac);
    margin-bottom: 0.25rem;
}

.att-map-popup-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pr);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.att-map-popup-address {
    font-size: 0.78rem;
    color: var(--mu);
    margin-bottom: 0.5rem;
}

.att-map-popup-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--pr);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--pr-l);
    transition: background 0.15s;
}

.att-map-popup-link:hover {
    background: var(--pr);
    color: #fff;
}

/* ============================================================
   LIST VIEW
   ============================================================ */
.att-map-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bd);
}

.att-map-list-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--pr);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.att-map-list-count {
    font-size: 0.78rem;
    color: var(--mu);
}

.att-map-list-item { cursor: pointer; }

.att-map-locate {
    background: var(--bg);
    color: var(--mu);
    border: 1px solid var(--bd);
}

.att-map-locate:hover {
    background: var(--pr-l);
    color: var(--pr);
}

.att-list-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--bd);
    background: var(--wh);
    color: var(--pr);
    transition: all 0.15s;
    margin-bottom: 1rem;
}

.att-list-toggle:hover {
    border-color: var(--pr);
    background: var(--pr-l);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.detail-breadcrumb {
    padding: 0.75rem 0;
    font-size: 0.82rem;
    color: var(--mu);
    border-bottom: 1px solid var(--bd);
    margin-bottom: 0;
}

.detail-breadcrumb a { color: var(--pr); text-decoration: none; }
.detail-breadcrumb a:hover { text-decoration: underline; }
.detail-breadcrumb .sep { margin: 0 0.4rem; color: var(--bd); }
