/* ─── HN Widgets: Shared ──────────────────────────────────────────────────── */

.hn-section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--hn-gold, #b89a4a);
    margin: 0 0 12px;
}

/* ─── HN Advantages Widget ─────────────────────────────────────────────────── */

.hn-advantages {
    padding: 80px 0;
    background: transparent;
    overflow: hidden;
}

.hn-advantages-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hn-advantages-header {
    text-align: center;
    margin-bottom: 40px;
}

.hn-advantages-heading {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 600;
    color: #0d1e30;
    margin: 0;
    line-height: 1.3;
}

/* Slider */

.hn-advantages-slider {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
}

.hn-advantages-swiper {
    width: 100%;
    padding: 12px 0 48px;
    overflow: visible;
}

.hn-advantages-swiper .swiper-wrapper {
    padding: 20px 0;
}

.hn-advantages-swiper .swiper-slide {
    display: flex;
    justify-content: center;
}

/* Fact card */

.hn-fact-card {
    max-width: 400px;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 12px 40px rgba(13, 30, 48, 0.12);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    min-height: 100px;
}

.hn-fact-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--hn-gold, #b89a4a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d1e30;
}

.hn-fact-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.hn-fact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--hn-gold, #b89a4a);
}

.hn-fact-body {
    flex: 1;
    min-width: 0;
}

.hn-fact-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 6px;
    color: #0d1e30;
    line-height: 1.3;
}

.hn-fact-text {
    font-size: 13px;
    line-height: 1.55;
    color: #5a6a7a;
}

/* Footer: pagination + nav */

.hn-advantages-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 0 24px;
}

.hn-facts-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.hn-facts-bullet {
    width: 8px;
    height: 8px;
    background: rgba(13, 30, 48, 0.2);
    border-radius: 999px;
    transition: width 0.25s, background 0.25s;
    cursor: pointer;
}

.hn-facts-bullet-active {
    width: 24px;
    background: var(--hn-gold, #b89a4a);
}

.hn-facts-nav {
    display: flex;
    gap: 8px;
}

.hn-facts-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(13, 30, 48, 0.15);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    outline: none;
}

.hn-facts-btn span {
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #0d1e30;
    border-right: 2px solid #0d1e30;
}

.hn-facts-btn-prev {
    padding-left: 4px;
}

.hn-facts-btn-next {
    padding-right: 4px;
}

.hn-facts-btn-prev span {
    transform: rotate(-135deg);
}

.hn-facts-btn-next span {
    transform: rotate(45deg);
}

.hn-facts-btn:hover {
    background: var(--hn-gold, #b89a4a) !important;
    border-color: var(--hn-gold, #b89a4a) !important;
    transform: translateY(-1px);
    color: #fff !important;
}

.hn-facts-btn:hover span {
    border-color: #fff;
}

.hn-facts-btn:disabled {
    opacity: 0.3;
    cursor: default;
    transform: none !important;
}

.hn-facts-btn:focus,
.hn-facts-btn:focus-visible,
.hn-facts-btn:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Mobile */
@media (max-width: 640px) {
    .hn-fact-card {
        flex-direction: column;
        gap: 12px;
        min-height: auto;
    }
    .hn-advantages-header {
        padding: 0 16px;
    }
}

/* ─── HN Location Widget ───────────────────────────────────────────────────── */

.hn-location {
    background: transparent;
    padding: 80px 40px;
    overflow: hidden;
}

.hn-location-inner {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(40px, 6vw, 100px);
    max-width: none; /* follow the Elementor container width so the block lines up with the ones above */
    margin: 0 auto;
    align-items: center;
}

.hn-location-content {
    display: flex;
    flex-direction: column;
}

.hn-location-title {
    font-size: clamp(24px, 3vw, 44px);
    font-weight: 600;
    color: #0d1e30;
    line-height: 1.2;
    margin: 0 0 20px;
}

.hn-location-desc {
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.8;
    color: #5a6a7a;
    margin-bottom: 32px;
}

.hn-location-desc p {
    margin: 0 0 1em;
}

.hn-location-desc p:last-child {
    margin-bottom: 0;
}

.hn-location-actions {
    display: flex;
}

.hn-location-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    gap: 8px !important;
    width: max-content !important;
    box-sizing: border-box !important;
    padding: 14px 28px !important;
    margin: 0 !important;
    /* Translucent white overlay (same as the SP2 apartment cards) — adapts to any page background */
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em !important;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 2px;
    transition: background 0.25s ease;
    border: 1px solid rgba(255,255,255,0.07) !important;
    outline: none !important;
    cursor: pointer;
}

.hn-location-btn svg {
    flex-shrink: 0 !important;
    width: 16px !important;
    height: 16px !important;
    transform: none !important;
    transition: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
}

.hn-location-btn:hover {
    background: rgba(255,255,255,0.07); /* no !important — the widget's own "Фон кнопки (hover)" style control (background-color) must be able to win */
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    text-decoration: none !important;
    padding: 14px 28px !important;
    gap: 8px !important;
}

/* Map */

.hn-location-map-wrap {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.hn-location-map {
    width: 100%;
    height: 500px;
}

/* Leaflet overrides */
.hn-location-map .leaflet-tile-pane {
    filter: grayscale(15%) brightness(1.02);
}

.hn-location-map .leaflet-control-zoom {
    border: none !important;
    border-radius: 3px !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}

.hn-location-map .leaflet-control-attribution {
    font-size: 10px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    color: rgba(0, 0, 0, 0.4) !important;
}

/* Custom marker */
.hn-map-marker-icon {
    background: none;
    border: none;
}

.hn-map-marker-pin {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--hn-gold, #b89a4a);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Popup */
.hn-map-popup {
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.5;
}

.hn-map-popup strong {
    display: block;
    font-weight: 600;
    color: #0d1e30;
    margin-bottom: 2px;
}

.hn-map-popup span {
    color: #5a6a7a;
}

/* Infrastructure points — dots on the map + collapsible list below it, mirrors
   shorelinesymphony.eu's .js-location-section. Neutral dark-navy-on-light palette to match
   this widget's own light-section default (--bg #eef2f7); --hn-poi-accent is set per
   instance by the widget's "Акцентный цвет точек" control. */
.hn-poi-marker-icon {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.hn-poi-marker-icon.is-dimmed {
    opacity: 0.15;
}

.hn-poi-marker-dot {
    width: 8px;
    height: 8px;
    background: #0d1e30;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.hn-poi-marker-icon.is-focused .hn-poi-marker-dot {
    transform: scale(2);
    background: var(--hn-poi-accent, var(--hn-gold, #b89a4a));
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--hn-gold, #b89a4a) 30%, transparent), 0 2px 8px color-mix(in srgb, var(--hn-gold, #b89a4a) 50%, transparent);
}

.hn-poi-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: rgba(10, 30, 48, 0.03) !important;
    border: none !important;
    border-top: 1px solid rgba(10, 30, 48, 0.08) !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(10, 30, 48, 0.55) !important;
    transition: background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

/* The Bauen theme styles every <button> globally (background #b19777, dark hover
   #323232, plus the browser's own default focus ring) — this widget's toggle/list are
   <button>s too, so every state needs an explicit, !important override here. */
.hn-poi-toggle:hover,
.hn-poi-toggle.is-open,
.hn-poi-toggle:focus,
.hn-poi-toggle:focus-visible,
.hn-poi-toggle:active {
    color: var(--hn-poi-accent, var(--hn-gold, #b89a4a)) !important;
    background: rgba(10, 30, 48, 0.05) !important;
    outline: none !important;
    box-shadow: none !important;
}

.hn-poi-toggle-chevron {
    transition: transform 0.32s ease;
    flex-shrink: 0;
    opacity: 0.5;
}

.hn-poi-toggle.is-open .hn-poi-toggle-chevron {
    transform: rotate(180deg);
    opacity: 0.8;
}

.hn-poi-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s ease;
    background: rgba(10, 30, 48, 0.03);
}

.hn-poi-list.is-open {
    max-height: 400px;
}

.hn-poi-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(10, 30, 48, 0.07) !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: background 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.hn-poi-list-item:hover,
.hn-poi-list-item:focus,
.hn-poi-list-item:focus-visible,
.hn-poi-list-item:active,
.hn-poi-list-item.is-active {
    background: color-mix(in srgb, var(--hn-gold, #b89a4a) 10%, transparent) !important;
    outline: none !important;
    box-shadow: none !important;
}

.hn-poi-list-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0d1e30;
    flex-shrink: 0;
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.hn-poi-list-item.is-active .hn-poi-list-dot {
    background: var(--hn-poi-accent, var(--hn-gold, #b89a4a));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--hn-gold, #b89a4a) 22%, transparent);
}

.hn-poi-list-name {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    color: #0d1e30;
    transition: color 0.18s ease;
}

.hn-poi-list-item.is-active .hn-poi-list-name {
    color: var(--hn-poi-accent, var(--hn-gold, #b89a4a));
    font-weight: 500;
}

/* Mobile */
@media (max-width: 960px) {
    .hn-location-inner {
        grid-template-columns: 1fr;
    }
    .hn-location-map {
        height: 380px;
    }
}

@media (max-width: 640px) {
    .hn-location {
        padding: 60px 20px;
    }
    .hn-location-map {
        height: 300px;
    }
    .hn-poi-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
