/* --- Header modification for sub-page --- */
.header-nav-only {
    background-color: var(--dark-green);
    color: var(--text-light);
    padding: 24px 80px;
}

/* --- Map Page Structural Split Layout --- */
.map-search-container {
    display: flex;
    height: calc(100vh - 85px); 
    overflow: hidden;
    background-color: #fcf9ee; /* ★全体を優しい薄い黄色に変更 */
}

/* --- Left Results Bar Panel --- */
.results-panel {
    width: 420px;
    min-width: 420px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(14, 61, 38, 0.1);
    background: #fbf8eb; /* ★サイドパネルも統一感のある薄い黄色に */
    z-index: 2;
}

.panel-header {
    padding: 24px;
    background: #fbf8eb;
    border-bottom: 1px solid rgba(14, 61, 38, 0.1);
}

.panel-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-green);
    margin-bottom: 4px;
}

.panel-header p {
    font-size: 0.9rem;
    color: var(--orange-primary, #ff7a00);
    font-weight: 700;
}

.restaurant-list {
    flex-grow: 1;
    overflow-y: auto; 
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* --- Interactive Item Cards --- */
.map-item-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #ffffff; /* カードは綺麗な白にして見やすく */
    border: 1px solid rgba(14, 61, 38, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* ホバー時 */
.map-item-card:hover {
    border-color: rgba(14, 61, 38, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* ★クリックしてアクティブになった時のオレンジ枠 */
.map-item-card.active {
    border:  solid var(--orange-primary, #ff7a00);
    background-color: #ffffff;
    box-shadow: 0 6px 16px rgba(255, 122, 0, 0.1);
    /* 2pxの太さでズレないように内側を少し調整 */
}

.card-img-box {
    width: 85px;
    height: 85px;
    min-width: 85px;
    border-radius: 14px;
    overflow: hidden;
    background: #f0f0f0;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.cuisine {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* ★徒歩表記（ディープグリーンをベースにした見やすいラベル） */
.walk-time {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--dark-green);
    background-color: rgba(14, 61, 38, 0.08);
    padding: 3px 8px;
    border-radius: 8px;
}

.card-info h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.status {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2b8a3e; /* 営業中はしっかり目立つ緑に */
}

/* --- Right Side Google Map Filling --- */
.map-view-area {
    flex-grow: 1;
    height: 100%;
}

.map-view-area iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .header-nav-only {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 768px) {
    .header-nav-only {
        padding-left: 20px;
        padding-right: 20px;
    }
    .map-search-container {
        flex-direction: column-reverse; 
        height: auto;
        overflow: visible;
    }
    .results-panel {
        width: 100%;
        min-width: 100%;
        height: 500px;
    }
    .map-view-area {
        width: 100%;
        height: 350px;
    }
}