/* =====================================================
   Heritage Showcase Widget v3 — heritage-showcase.css
   ===================================================== */

/* ── Wrap ─────────────────────────────────────────── */
.hs-wrap {
    background-color: #0d0d0d;
    color: #fff;
    padding: 60px 40px 80px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 0;
}

/* ── Header ──────────────────────────────────────── */
.hs-header {
    text-align: center;
    margin-bottom: 50px;
}
.hs-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c9a227;
    margin: 0 0 12px;
    padding: 0;
}
.hs-heading {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 800;
    margin: 0 0 14px;
    padding: 0;
    line-height: 1.1;
    color: #fff;
}
.hs-subheading {
    font-size: 16px;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
    padding: 0;
}

/* ── Circle base ─────────────────────────────────── */
.hs-circle {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: block;
    /* NO width/height here — set exclusively via inline style from PHP/JS */
}
.hs-circle:hover {
    transform: scale(1.06);
}
.hs-circle.hs-active {
    /* accent ring applied via JS inline style */
}
.hs-circle img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0; /* parent is already border-radius:50% + overflow:hidden */
    pointer-events: none;
}

/* ── Label — CENTERED ─────────────────────────────── */
.hs-circle-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 5px 12px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 2;
    text-align: center;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Small circle default size (overridden by Elementor slider CSS) ── */
.hs-circle-sm {
    width: 155px;
    height: 155px;
}

/* ── Center circle default size (overridden by Elementor slider CSS) ── */
.hs-circle-lg {
    width: 300px;
    height: 300px;
    flex-shrink: 0;
    margin: 0 auto;
}

/* ── Info panel ───────────────────────────────────── */
.hs-center-info {
    text-align: center;
    padding-top: 18px;
    width: 100%;
}
.hs-info-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    padding: 0;
    color: #fff;
}
.hs-info-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
    margin: 0 0 14px;
    padding: 0;
}
.hs-info-btn {
    display: inline-block;
    padding: 9px 22px;
    border: 2px solid #c9a227;
    color: #c9a227;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}
.hs-info-btn:hover {
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════
   LAYOUT 1 — GRID
═══════════════════════════════════════════════════ */
.hs-layout-grid .hs-grid-stage {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.hs-layout-grid .hs-col-left,
.hs-layout-grid .hs-col-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    flex-shrink: 0;
}
.hs-layout-grid .hs-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex: 1;
    min-width: 0;
}
.hs-layout-grid .hs-col-bottom {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════
   LAYOUT 2 — ORBITAL
   Stage is position:relative; items are absolute.
   JS calculates everything from real measured sizes.
═══════════════════════════════════════════════════ */
.hs-layout-circle .hs-orbit-stage {
    position: relative;
    margin: 0 auto;
    overflow: visible; /* items outside bounds visible */
}
.hs-orbit-center {
    position: absolute;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* top/left set by JS */
}
.hs-orbit-item {
    position: absolute;
    z-index: 5;
    /* top/left/transform set by JS */
}

/* Ensure Elementor container does not clip absolute orbit items */
.elementor-widget-heritage_showcase .elementor-widget-container {
    overflow: visible !important;
}

/* All widget images fill their circle */
.hs-wrap img {
    height: 100% !important;
}

/* ── Fade animation ──────────────────────────────── */
@keyframes hsFadeOut {
    from { opacity:1; transform:scale(1); }
    to   { opacity:0; transform:scale(0.92); }
}
@keyframes hsFadeIn {
    from { opacity:0; transform:scale(0.92); }
    to   { opacity:1; transform:scale(1); }
}
.hs-fading-out { animation: hsFadeOut 0.18s ease forwards; }
.hs-fading-in  { animation: hsFadeIn  0.26s ease forwards; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Grid layout only.
   Orbit is handled entirely by JS measuring live sizes.
   IMPORTANT: No !important on circle sizes — Elementor
   inline styles must win. Only layout flow changes here.
═══════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .hs-wrap { padding: 50px 24px 70px; }

    .hs-layout-grid .hs-grid-stage {
        flex-wrap: wrap;
        gap: 16px;
    }
    .hs-layout-grid .hs-col-left,
    .hs-layout-grid .hs-col-right {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        order: 2;
        flex-wrap: wrap;
    }
    .hs-layout-grid .hs-col-center {
        order: 1;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .hs-wrap { padding: 36px 16px 56px; }
    .hs-heading { font-size: 24px; }
    .hs-circle-label { font-size: 8px; padding: 4px 8px; letter-spacing: 1px; }
    .hs-info-title { font-size: 18px; }
    .hs-info-desc  { font-size: 13px; }
}

@media (max-width: 380px) {
    .hs-wrap { padding: 28px 10px 48px; }
    .hs-circle-label { font-size: 7px; padding: 3px 6px; letter-spacing: 0.7px; }
}
