/* Leaflet map product popups — shared by landing and hub maps */

.landing-map-popup-leaflet .leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.landing-map-popup-leaflet .leaflet-popup-content {
    margin: 0;
    width: 280px !important;
    max-width: 92vw;
}

.landing-map-popup {
    font-size: 0.875rem;
    line-height: 1.35;
    color: #1a1a1a;
}

.landing-map-popup__header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.45rem 0.75rem 0.4rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
}

.landing-map-popup__header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 1.1rem;
}

.landing-map-popup__header-cell--empty {
    flex: 1;
    min-width: 0;
}

.landing-map-popup__subtype {
    font-size: var(--font-size-xs, 0.75rem);
    font-weight: var(--font-weight-medium, 500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary, #6c757d);
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-map-popup__sponsor-label {
    flex-shrink: 0;
    font-size: 0.7rem;
    color: var(--color-text-secondary, #6c757d);
    white-space: nowrap;
    text-align: right;
}

.landing-map-popup__sponsor-name-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
    max-width: 58%;
}

.landing-map-popup__sponsor-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a1a1a;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.landing-map-popup__sponsor-visit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 6px;
    color: #1a1a1a;
    text-decoration: none;
    flex-shrink: 0;
}

.landing-map-popup__sponsor-visit:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #1a1a1a;
}

.landing-map-popup__media-link {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
}

.landing-map-popup__media-link:hover {
    color: inherit;
}

.landing-map-popup__visit-hint {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 67, 50, 0.55);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.landing-map-popup__media-link:hover .landing-map-popup__visit-hint {
    opacity: 1;
}

.landing-map-popup-swiper {
    position: relative;
    width: 100%;
    height: 96px;
    background: #e9ecef;
    overflow: hidden;
}

.landing-map-popup-swiper__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.landing-map-popup-swiper__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.landing-map-popup-swiper__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.landing-map-popup-swiper__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.landing-map-popup-swiper__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.landing-map-popup-swiper__nav--prev { left: 0.35rem; }
.landing-map-popup-swiper__nav--next { right: 0.35rem; }

.landing-map-popup-swiper__dots {
    position: absolute;
    bottom: 0.35rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    z-index: 4;
}

.landing-map-popup-swiper__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.landing-map-popup-swiper__dot.is-active {
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.landing-map-popup__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
}

.landing-map-popup__row--meta {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.landing-map-popup__name {
    font-weight: 600;
    color: #1a1a1a;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-map-popup__price {
    font-weight: 700;
    white-space: nowrap;
    color: #1a1a1a;
}

.landing-map-popup__unit {
    font-weight: 400;
    color: var(--color-text-secondary, #6c757d);
}

.landing-map-popup__id {
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-secondary, #6c757d);
}

.landing-map-popup__desc {
    padding: 0.35rem 0.75rem 0.45rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
}

.landing-map-popup__desc-short {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #1a1a1a;
}

.landing-map-popup__desc-ellipsis {
    color: var(--color-text-secondary, #6c757d);
}

.landing-map-popup__desc-full {
    font-size: 0.8rem;
    line-height: 1.45;
    margin-top: 0.35rem;
    white-space: pre-wrap;
    word-break: break-word;
    color: #1a1a1a;
}

.landing-map-popup__read-more {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0;
    border: none;
    background: none;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary, #6c757d);
    text-decoration: underline;
    cursor: pointer;
}

.landing-map-popup__read-more:hover {
    color: #1a1a1a;
}

.landing-map-popup__toolbar {
    display: flex;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem 0.65rem;
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.landing-map-popup__tool {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.35rem;
}

.landing-map-popup__tool i {
    font-size: 1.1rem;
}

.landing-map-popup__tool.is-spatial-active {
    background: var(--color-primary-500, #40916c);
    border-color: var(--color-primary-600, #2d6a4f);
    color: #fff;
}

.landing-map-popup__tool--disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}

.landing-map-popup__tool.is-favorite {
    color: var(--color-danger, #dc3545);
}

/* Toolbar click-cards (subset of legacy landing styles) */
.landing-map-popup__toolbar .landing-click-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    border-radius: var(--radius-lg, 0.75rem);
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: var(--color-bg-primary, #fff);
    font-weight: 600;
    color: var(--color-text-primary, #212529);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    user-select: none;
    box-sizing: border-box;
}

.landing-map-popup__toolbar button.landing-click-card {
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.landing-map-popup__toolbar .landing-click-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.18);
}

.landing-map-popup__toolbar .landing-click-card--outline {
    background: transparent;
    border: 2px solid var(--color-primary-500, #7b0a74);
    color: var(--color-primary-500, #7b0a74);
}

.landing-map-popup__toolbar .landing-click-card--outline:hover {
    background: rgba(123, 10, 116, 0.06);
}

.landing-map-popup__toolbar .landing-click-card--favorite {
    min-width: 2.1rem;
    padding: 0.35rem 0.45rem;
    border-color: rgba(220, 53, 69, 0.45);
    color: #dc3545;
    background: #fff;
}

.landing-map-popup__toolbar .landing-click-card--favorite.is-favorite {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.landing-map-popup__toolbar .landing-click-card--favorite.is-favorite i {
    color: #fff;
}

.landing-map-popup__meta-extra {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
    max-width: 46%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.landing-map-popup__meta-extra--place {
    font-weight: 500;
    color: var(--color-text-secondary, #6c757d);
}

.landing-map-popup__meta-extra--muted {
    font-weight: 400;
    color: var(--color-text-secondary, #6c757d);
}

.landing-map-popup__star {
    color: #f59e0b;
    font-size: 0.75rem;
}

.landing-map-popup__toolbar--single {
    justify-content: stretch;
}

.landing-map-popup__visit-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.25rem;
    text-decoration: none;
}

.landing-map-popup__visit-btn:hover {
    text-decoration: none;
}

.landing-map-popup__toolbar--visitkort {
    padding-top: 0;
    border-top: none;
    background: #f8f9fa;
}

.landing-map-popup__visitkort {
    flex: 1;
    width: 100%;
    min-height: 2.25rem;
    justify-content: center;
}

.landing-map-popup__visitkort.is-visitkort-saved {
    border-color: var(--color-primary-500, #40916c);
    color: var(--color-primary-600, #2d6a4f);
    background: rgba(64, 145, 108, 0.08);
    cursor: default;
}

.landing-map-popup__visitkort.is-visitkort-unavailable {
    opacity: 0.55;
    cursor: not-allowed;
}

.landing-map-popup__beacon-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 96px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.14), rgba(13, 110, 253, 0.04));
    color: var(--color-primary-600, #0d6efd);
    font-size: 2.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.landing-map-popup--beacon .landing-map-popup__row--beacon {
    flex-wrap: wrap;
    align-items: flex-start;
}

.landing-map-popup__meta-extra--beacon {
    width: 100%;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--color-text-secondary, #6c757d);
}

.landing-map-popup__beacon-company-link {
    text-decoration: none;
    color: inherit;
}

.landing-map-popup__beacon-company-link:hover {
    text-decoration: underline;
    color: var(--color-primary-600, #2d6a4f);
}
