/* ============================================================ */
/* YOUTH MAP PAGE — "Unde îmi duc copilul la handbal?"          */
/* Uses Pigment Design System variables from pgm-base.css       */
/* ============================================================ */

/* Full-height app layout */
.page-youth-map {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Prevent header/footer from shrinking */
.page-youth-map .pgm-header,
.page-youth-map .pgm-topbar,
.page-youth-map .pgm-flag,
.page-youth-map footer,
.page-youth-map .pgm-footer {
    flex-shrink: 0;
}

/* Main layout: sidebar + map */
.pgm-youth-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 560px;
}

/* ── SIDEBAR ── */
.pgm-youth-sidebar {
    width: 400px;
    background: #202f92;
    border-right: 1px solid #16226f;
    display: flex;
    flex-direction: column;
    z-index: 20;
}

.pgm-youth-results-sidebar {
    width: 360px;
    background: #19257a;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
    flex-direction: column;
    z-index: 15;
}

.pgm-youth-results-sidebar.is-open {
    display: flex;
}

.pgm-youth-results-header {
    padding: 1.35rem 1.1rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.pgm-youth-results-header h2 {
    margin: 0;
    font-family: var(--pgm-font);
    font-size: 1rem;
    font-weight: 800;
    color: #f3f6ff;
    letter-spacing: -0.01em;
}

.pgm-youth-sidebar-header {
    padding: 1.75rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    flex-shrink: 0;
}

.pgm-youth-sidebar-header h1 {
    font-family: var(--pgm-font);
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.03em;
}

.pgm-youth-subtitle {
    font-family: var(--pgm-font);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(236, 241, 255, 0.8);
    margin: 0;
}

/* ── SEARCH FORM ── */
.pgm-youth-search {
    padding: 1.25rem 1.5rem;
    background: #202f92;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    flex-shrink: 0;
}

.pgm-youth-input-group {
    margin-bottom: 0.85rem;
}

.pgm-youth-input-group:last-child {
    margin-bottom: 0;
}

.pgm-youth-label {
    display: block;
    font-family: var(--pgm-font);
    font-size: 0.65rem;
    font-weight: 700;
    color: #dce5ff;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pgm-youth-control {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1.5px solid rgba(217, 225, 255, 0.35);
    border-radius: 999px;
    font-family: var(--pgm-font);
    font-size: 0.9rem;
    color: #fff;
    background: rgba(17, 33, 109, 0.7);
    transition: border-color 0.2s;
}

.pgm-youth-control:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.16);
}

.pgm-youth-control::placeholder {
    color: rgba(255, 255, 255, 0.62);
    opacity: 1;
}

.pgm-youth-location-control {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.45rem;
}

.pgm-youth-locate-btn {
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(217, 225, 255, 0.35);
    border-radius: 999px;
    background: rgba(17, 33, 109, 0.7);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.pgm-youth-locate-btn:hover {
    border-color: #fff;
    background: rgba(17, 33, 109, 1);
}

.pgm-youth-locate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.pgm-youth-locate-btn.is-loading i {
    animation: pgm-spin 0.8s linear infinite;
}

@keyframes pgm-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pgm-youth-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.pgm-youth-radius-stepper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    gap: 0.4rem;
}

.pgm-youth-radius-step {
    flex: 0 0 auto;
    border: 1.5px solid rgba(217, 225, 255, 0.35);
    border-radius: 999px;
    background: rgba(17, 33, 109, 0.7);
    color: #eef2ff;
    font-family: var(--pgm-font);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.48rem 0.55rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pgm-youth-radius-step:hover {
    border-color: rgba(248, 249, 255, 0.75);
    background: rgba(248, 249, 255, 0.12);
}

.pgm-youth-radius-step.is-active {
    border-color: rgba(248, 249, 255, 0.95);
    background: rgba(248, 249, 255, 0.22);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(248, 249, 255, 0.25) inset;
}

.pgm-youth-category-stepper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    gap: 0.4rem;
}

.pgm-youth-category-step {
    flex: 0 0 auto;
    border: 1.5px solid rgba(217, 225, 255, 0.35);
    border-radius: 999px;
    background: rgba(17, 33, 109, 0.7);
    color: #eef2ff;
    font-family: var(--pgm-font);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.48rem 0.62rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pgm-youth-category-step:hover {
    border-color: rgba(248, 249, 255, 0.75);
    background: rgba(248, 249, 255, 0.12);
}

.pgm-youth-category-step.is-active {
    border-color: rgba(248, 249, 255, 0.95);
    background: rgba(248, 249, 255, 0.22);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(248, 249, 255, 0.25) inset;
}

.pgm-youth-btn {
    width: 100%;
    padding: 0.75rem;
    background: #f8f9ff;
    color: #1e2b85;
    border: 1.5px solid #f8f9ff;
    border-radius: 999px;
    font-family: var(--pgm-font);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.pgm-youth-btn:hover {
    background: #e6ecff;
}

.pgm-youth-btn-combo {
    margin-top: 0.65rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.45rem;
}

.pgm-youth-btn--combo-main {
    margin-top: 0;
}

.pgm-youth-btn-reset-icon {
    width: 46px;
    height: 46px;
    border: 1.5px solid rgba(248, 249, 255, 0.75);
    border-radius: 999px;
    background: transparent;
    color: #f8f9ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pgm-youth-btn-reset-icon:hover {
    background: rgba(248, 249, 255, 0.12);
    border-color: #f8f9ff;
}

.pgm-youth-btn--ghost {
    background: transparent;
    color: #f8f9ff;
    border-color: rgba(248, 249, 255, 0.6);
}

.pgm-youth-btn--ghost:hover {
    background: rgba(248, 249, 255, 0.12);
    border-color: #f8f9ff;
}

/* ── RESULTS LIST ── */
.pgm-youth-results-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    background: #19257a;
    scrollbar-color: #6f84df #1a277e;
    scrollbar-width: thin;
}

.pgm-youth-results-container::-webkit-scrollbar {
    width: 10px;
}

.pgm-youth-results-container::-webkit-scrollbar-track {
    background: #1a277e;
}

.pgm-youth-results-container::-webkit-scrollbar-thumb {
    background: #6f84df;
    border-radius: 999px;
    border: 2px solid #1a277e;
}

.pgm-youth-results-container::-webkit-scrollbar-thumb:hover {
    background: #8fa1ed;
}

.pgm-youth-club-card {
    position: relative;
    background: rgba(11, 25, 92, 0.7);
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

.pgm-youth-club-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #7e94ff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    mix-blend-mode: multiply;
    opacity: 0.08;
    z-index: 0;
}

.pgm-youth-club-card:hover {
    transform: translateX(6px);
}

.pgm-youth-club-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.pgm-youth-club-card.is-active {
    border-left: 3px solid #fff;
}

.pgm-youth-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.35rem;
    position: relative;
    z-index: 1;
}

.pgm-youth-card-title {
    font-family: var(--pgm-font);
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.3;
}

.pgm-youth-card-distance {
    font-family: var(--pgm-font);
    font-size: 0.65rem;
    font-weight: 700;
    color: #d9e3ff;
    white-space: nowrap;
    margin-left: 0.75rem;
    flex-shrink: 0;
}

.pgm-youth-card-address {
    color: #c4d0fb;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.4rem;
    align-items: baseline;
    position: relative;
    z-index: 1;
}

.pgm-youth-card-teams {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    position: relative;
    z-index: 1;
}

.pgm-youth-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

/* ── MAP ── */
.pgm-youth-map-wrapper {
    flex: 1;
    position: relative;
    background: #e8e4df;
}

#map {
    width: 100%;
    height: 100%;
}

/* ── EMPTY STATE ── */
.pgm-youth-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #d8e1ff;
}

.pgm-youth-empty i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
    opacity: 0.5;
}

.pgm-youth-empty p {
    font-size: 0.85rem;
    margin: 0;
}

.pgm-youth-empty--invite {
    text-align: left;
    padding: 1.25rem 1.1rem;
    margin: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(17, 31, 102, 0.62);
}

.pgm-youth-empty--invite i {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    opacity: 0.9;
}

.pgm-youth-empty--invite h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

.pgm-youth-empty--invite p {
    margin: 0;
    color: #dbe5ff;
    line-height: 1.5;
}

.pgm-youth-empty-title,
.pgm-youth-empty-copy {
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.pgm-youth-empty-title.is-fading,
.pgm-youth-empty-copy.is-fading {
    opacity: 0;
    transform: translateY(2px);
}

.pgm-youth-empty-note {
    margin-top: 0.55rem !important;
    color: rgba(219, 229, 255, 0.8) !important;
    font-size: 0.78rem !important;
}

/* ── MAP INFO WINDOW ── */
.pgm-iw {
    font-family: var(--pgm-font);
    min-width: 220px;
    max-width: 300px;
    padding: 0.5rem 2rem 0.5rem 0.5rem;
    line-height: 1.5;
}

.pgm-iw-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--pgm-navy);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.pgm-iw-name--home {
    color: var(--pgm-blue);
}

.pgm-iw-name--home i {
    margin-right: 0.25rem;
}

.pgm-iw-row {
    font-size: 0.8rem;
    color: #444;
    margin-bottom: 0.3rem;
}

.pgm-iw-icon {
    color: var(--pgm-red);
    margin-right: 0.3rem;
    font-size: 0.7rem;
}

.pgm-iw-phone {
    color: var(--pgm-blue);
    text-decoration: none;
    font-weight: 600;
}

.pgm-iw-phone:hover {
    text-decoration: underline;
}

.pgm-iw-phone i {
    margin-right: 0.25rem;
    font-size: 0.7rem;
}

.pgm-iw-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.pgm-iw-tag {
    display: inline-block;
    font-family: 'Cera Pro', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    background: var(--pgm-navy);
    color: #fff;
}

/* Google Maps InfoWindow overrides — remove default padding/chrome gap */
.gm-style .gm-style-iw-c {
    border-radius: 6px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    padding: 0 !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
    max-height: none !important;
}

.gm-style .gm-ui-hover-effect {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05) !important;
}

.gm-style .gm-ui-hover-effect span {
    margin: 0 !important;
}

.gm-style .gm-style-iw-tc::after {
    background: #fff !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .page-youth-map {
        height: auto;
        overflow-y: auto;
    }

    .pgm-youth-layout {
        flex-direction: column-reverse;
        height: auto;
        flex: none;
    }

    .pgm-youth-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        flex: none;
    }

    .pgm-youth-results-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        flex: none;
    }

    .pgm-youth-map-wrapper {
        height: 50vh;
        min-height: 320px;
        flex: none;
    }

    .pgm-youth-results-container {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .pgm-youth-sidebar-header h1 {
        font-size: 1.2rem;
    }
}
