/* ============================================================
   exeter-maps.css
   Location: /assets/css/exeter-maps.css
   Loaded after show-detail.css on show-map.php
   ============================================================ */

/* Large, full-width interactive map — deliberately NOT using an
   id ending in "-leaflet-map" so it doesn't inherit the small
   200px snippet-map sizing from show-detail.css used on
   attraction/accommodation/event detail pages. */
.exeter-full-map {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    border: 1px solid var(--bd);
    margin-bottom: 1.5rem;
    z-index: 1;
}

@media (max-width: 767px) {
    .exeter-full-map {
        height: 300px;
    }
}

/* ============================================================
   MAP PIN TOGGLES — show/hide nearby markers on the map itself
   ============================================================ */
.map-pin-toggles {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.map-pin-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s;
    border: 1.5px solid var(--bd);
    background: var(--wh);
    color: var(--mu);
}

.map-pin-toggle:hover {
    border-color: var(--pr);
    color: var(--pr);
}

.map-pin-toggle-acc.active {
    background: var(--pr);
    border-color: var(--pr);
    color: #fff;
}

.map-pin-toggle-att.active {
    background: var(--ac);
    border-color: var(--ac);
    color: #fff;
}

/* ============================================================
   CUSTOM MAP PINS — used for nearby accommodation/attraction
   markers plotted on the large map
   ============================================================ */
.nearby-pin {
    background: transparent;
    border: none;
}

.nearby-pin-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    border: 2px solid #fff;
}

.nearby-pin-dot i {
    transform: rotate(45deg);
    color: #fff;
    font-size: 0.8rem;
}

.nearby-pin-main-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: var(--pr);
    box-shadow: 0 0 0 5px rgba(26, 82, 118, 0.22), 0 3px 10px rgba(0,0,0,0.4);
    border: 3px solid #fff;
}

.nearby-pin-main-dot i {
    transform: rotate(45deg);
    color: #fff;
    font-size: 1.15rem;
}

/* ============================================================
   WHAT'S NEARBY — static two-column list
   ============================================================ */
.nearby-col-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mu);
    margin-bottom: 0.6rem;
}

.nearby-empty {
    font-size: 0.83rem;
    color: var(--mu);
    font-style: italic;
    margin: 0;
}

.nearby-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--bd);
    border-radius: 8px;
    text-decoration: none;
    color: var(--tx);
    font-size: 0.85rem;
    transition: all 0.15s;
    margin-bottom: 0.5rem;
}

.nearby-item:last-child { margin-bottom: 0; }

.nearby-item:hover {
    border-color: var(--pr);
    background: var(--pr-l);
    color: var(--pr);
}

.nearby-item i {
    color: var(--ac);
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.nearby-item-name {
    flex: 1;
    min-width: 0;
}

.nearby-item-dist {
    font-size: 0.75rem;
    color: var(--mu);
    flex-shrink: 0;
    white-space: nowrap;
}

.nearby-discover-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pr);
    text-decoration: none;
    margin-top: 0.5rem;
}

.nearby-discover-more:hover {
    color: var(--ac);
    text-decoration: underline;
}

.nearby-discover-more i {
    font-size: 0.7rem;
}

/* ============================================================
   INLINE LINKS within muted/disclaimer-style paragraphs
   ============================================================ */
.map-inline-link {
    color: var(--pr);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--bd);
    text-underline-offset: 2px;
    transition: color 0.15s, text-decoration-color 0.15s;
}

.map-inline-link:hover {
    color: var(--ac);
    text-decoration-color: var(--ac);
}

.detail-disclaimer {
  font-size: 0.78rem;
  color: var(--mu);
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--bd);
  font-style: italic;
}

/* ============================================================
   HEADER AD SLOT — fills blank space beside hero header text.
   ============================================================ */
.detail-header-ad {
    flex-shrink: 0;
    width: 350px;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem 1rem 0;
}

/* ============================================================
   MAP HUB PAGE — horizontal scroll strips (matches the featured-
   events pattern on exeter-events.php) rather than a tall grid,
   so the map stays close by while browsing cards. Organised into
   tabs (below) so only one strip shows at a time.
   ============================================================ */
.map-hub-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--bd) transparent;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.map-hub-scroll::-webkit-scrollbar { height: 4px; }
.map-hub-scroll::-webkit-scrollbar-thumb { background: var(--bd); border-radius: 2px; }

/* Bordered panel framing the active tab's content, connecting
   seamlessly below the tab strip — was previously missing, making
   the content look like it was floating with no boundary. */
.map-hub-tab-content {
    position: relative;
    border: 1px solid var(--bd);
    border-top: none;
    border-radius: 0 0 10px 10px;
    background: var(--wh);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.map-hub-tab-content::after {
    content: "";
    position: absolute;
    top: 1rem;
    right: 1rem;
    bottom: 1.5rem;
    width: 32px;
    background: linear-gradient(to right, rgba(255,255,255,0), var(--wh));
    pointer-events: none;
}

.map-hub-scroll-card {
    min-width: 150px;
    max-width: 150px;
    height: 160px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--bd);
    border-radius: 10px;
    overflow: hidden;
    background: var(--wh);
    text-decoration: none;
    color: var(--tx);
    transition: all 0.15s;
}

/* Fixed-height image zone — full clarity, no overlay/wash. Falls
   back to a plain icon placeholder when no image exists, same
   footprint either way so every card is the same size. */
.map-hub-scroll-img {
    width: 100%;
    height: 90px;
    flex-shrink: 0;
    background: var(--pr-l);
    overflow: hidden;
}

.map-hub-scroll-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.map-hub-scroll-card:hover .map-hub-scroll-img img,
.map-hub-card-active .map-hub-scroll-img img {
    transform: scale(1.06);
}

.map-hub-scroll-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--pr);
    opacity: 0.55;
}

/* Text zone — plain solid background, independent of the image
   above, so legibility is never a trade-off against showing photos. */
.map-hub-scroll-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.15rem;
    padding: 0.5rem 0.6rem;
}

.map-hub-scroll-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tx);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.map-hub-scroll-type {
    font-size: 0.68rem;
    color: var(--mu);
}

.map-hub-scroll-card:hover,
.map-hub-card-active {
    border-color: var(--pr);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.map-hub-scroll-more {
    min-width: 110px;
    max-width: 110px;
    height: 160px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.4rem;
    padding: 1rem 0.5rem;
    border: 1.5px dashed var(--bd);
    border-radius: 10px;
    background: var(--bg);
    text-decoration: none;
    color: var(--pr);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    transition: all 0.15s;
}

.map-hub-scroll-more:hover {
    border-color: var(--pr);
    background: var(--pr-l);
    color: var(--pr);
}

/* ============================================================
   MAP HUB PIN — plain centred circular badge (not a teardrop),
   anchored dead-centre on its coordinate so it stays correctly
   positioned at any zoom level.
   ============================================================ */
.map-hub-pin {
    background: transparent;
    border: none;
}

.map-hub-pin-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    border: 2px solid #fff;
    transition: width 0.15s, height 0.15s;
}

.map-hub-pin-dot i {
    color: #fff;
}

/* ============================================================
   MAP HUB TABS — Bootstrap 5 nav-tabs, restyled to match site
   colours instead of the default blue.
   ============================================================ */
.map-hub-tabs {
    border-bottom: 2px solid var(--bd);
    margin-bottom: 1rem;
}

.map-hub-tabs .nav-link {
    color: var(--mu);
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 0.6rem 1rem;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}

.map-hub-tabs .nav-link:hover {
    color: var(--pr);
    border-color: var(--bd);
}

.map-hub-tabs .nav-link.active {
    color: var(--pr);
    background: transparent;
    border-color: var(--ac);
}

/* Each tab's active colour matches its own pin colour on the map,
   so the whole page reads consistently at a glance. */
#tab-landmarks.active {
    color: #1a5276;
    border-color: #1a5276;
}

#tab-attractions.active {
    color: #e67e22;
    border-color: #e67e22;
}

#tab-accommodation.active {
    color: #16a085;
    border-color: #16a085;
}

#tab-event.active {
    color: #8e44ad;
    border-color: #8e44ad;
}
