/* ================================================================
   送迎バス ピックアップスポット — フロントエンド
   ================================================================ */

.ps-pickup-spots {
/*     max-width: 1200px; */
    margin: 0 auto;
    font-family: "Helvetica Neue", "Noto Sans JP", sans-serif;
}

/* ================================================================
   方面タブ
   ================================================================ */
.ps-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
    gap: 6px;
    margin-bottom: 20px;
}

.ps-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    background: #f0f0f5;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ps-tab:hover {
    background: #e8e8f0;
    color: #1a1a2e;
}

.ps-tab--active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.ps-tab--active:hover {
    background: var(--accent-color);
    color: #fff;
    opacity: 0.85;
}

.ps-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.1);
    color: inherit;
}

.ps-tab--active .ps-tab__count {
    background: rgba(255, 255, 255, 0.2);
}

/* --- タブパネル --- */
.ps-tab-panel {
    display: none;
}

.ps-tab-panel--active {
    display: block;
}

/* ================================================================
   レイアウト（PC: 横並び / スマホ: 縦並び）
   ================================================================ */
.ps-layout {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.ps-layout__map {
    flex: 0 0 55%;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    height: fit-content;
}

.ps-layout__list {
    flex: 1;
    min-width: 0;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
    position: relative;
}

.ps-layout__list-wrap {
    position: relative;
}

.ps-layout__list-wrap::after {
    content: '↓ スクロールして続きを表示';
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.95));
    font-size: 11px;
    font-weight: 600;
    color: #999;
    padding-bottom: 6px;
    letter-spacing: 0.03em;
    transition: opacity 0.3s;
}

.ps-layout__list-wrap.is-scrolled-bottom::after {
    opacity: 0;
}

.ps-layout__list::-webkit-scrollbar {
    width: 5px;
}

.ps-layout__list::-webkit-scrollbar-track {
    background: transparent;
}

.ps-layout__list::-webkit-scrollbar-thumb {
    background: #d0d0dd;
    border-radius: 4px;
}

.ps-layout__list::-webkit-scrollbar-thumb:hover {
    background: #b0b0c0;
}

/* ================================================================
   Google Maps 地図セクション
   ================================================================ */
.ps-map-section {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 4px 24px rgba(0, 0, 0, 0.04);
}

.ps-map {
    width: 100%;
    height: 520px;
}

/* ================================================================
   カード一覧
   ================================================================ */
.ps-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ps-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.25s ease;
}

.ps-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 8px 28px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.ps-card--active {
    border-color: #1a1a2e;
    box-shadow: 0 2px 8px rgba(26, 26, 46, 0.12), 0 8px 28px rgba(26, 26, 46, 0.06);
}

.ps-card__marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.ps-card__body {
    flex: 1;
    min-width: 0;
}

.ps-card__name {
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
}

.ps-card__desc {
    margin: 0 0 4px;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.ps-card__address {
    margin: 0;
    font-size: 11px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ps-card__address i {
    color: #c0c0d0;
    font-size: 10px;
}

.ps-card__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #f0f0f5;
    color: #666;
    border-radius: 10px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 14px;
    align-self: center;
}

.ps-card__link:hover {
    background: #4285f4;
    color: #fff;
    transform: scale(1.08);
}

/* ================================================================
   InfoWindow
   ================================================================ */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    max-height: 260px !important;
}

.gm-style .gm-style-iw-d,
.gm-style .gm-style-iw-d > div,
.gm-style .gm-style-iw-d > div > div {
    overflow: hidden !important;
    padding: 0 !important;
    max-height: 260px !important;
}

.gm-style .gm-style-iw-c > div:first-child {
    padding: 0 !important;
}

.gm-style .gm-style-iw-chr {
    position: absolute !important;
    top: 4px;
    right: 4px;
    z-index: 1;
}

.gm-style .gm-style-iw-chr .gm-ui-hover-effect {
    background: #fff !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.gm-style .gm-style-iw-chr .gm-ui-hover-effect > span {
    margin: 4px !important;
}

/* ================================================================
   案内ボックス
   ================================================================ */
.ps-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 24px;
    background: #ecfdf5;
    border-radius: 14px;
    border-left: 4px solid #059669;
}

.ps-note > i {
    color: #059669;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ps-note__title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    color: #065f46;
}

.ps-note__text {
    margin: 0;
    font-size: 13px;
    color: #065f46;
    line-height: 1.7;
}

.ps-note__text strong {
    color: inherit;
}

/* ================================================================
   レスポンシブ
   ================================================================ */
@media screen and (max-width: 767px) {
    .ps-tabs {
        gap: 4px;
        margin-bottom: 16px;
    }

    .ps-tab {
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 10px;
    }

    .ps-tab__count {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
    }

    .ps-layout {
        flex-direction: column;
        gap: 16px;
    }

    .ps-layout__map {
        flex: none;
        position: static;
        width: 100%;
    }

    .ps-map-section {
        border-radius: 12px;
    }

    .ps-map {
        height: 350px;
    }

    .ps-layout__list {
        max-height: 220px;
    }

    .ps-cards {
        gap: 8px;
    }

    .ps-card {
        padding: 14px;
        border-radius: 12px;
    }

    .ps-card__marker {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .ps-card__name {
        font-size: 14px;
    }

    .ps-note {
        padding: 16px 18px;
        border-radius: 12px;
        gap: 12px;
    }

    .ps-note__title {
        font-size: 13px;
    }

    .ps-note__text {
        font-size: 12px;
    }
}
