/* エリアマップセクション */
.area-map-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.area-map-section .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.area-map-section .section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

/* マップコンテナ */
.area-map-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* タブ */
.area-tabs {
    display: flex;
    background: #f0f0f0;
    border-bottom: 2px solid #e0e0e0;
}

.area-tab {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.area-tab:hover {
    background: rgba(255,255,255,0.5);
}

.area-tab.active {
    background: white;
    color: #333;
}

.area-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #4a90e2;
}

/* マップ表示 */
.map-display {
    display: none;
}

.map-display.active {
    display: block;
}

.map-content {
    display: flex;
    min-height: 500px;
}

/* SVGマップ */
.kyoto-overview-map,
.kyoto-central-map {
    flex: 1;
    max-width: 70%;
    padding: 2rem;
}

/* エリアシェイプ */
.area-shape {
    fill: #e8f4fd;
    stroke: #4a90e2;
    stroke-width: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.area-shape:hover {
    fill: #b3d9ff;
    stroke-width: 3;
}

/* 中心部エリアの特別スタイル */
.central-area {
    fill: #fff8dc;
    stroke: #ffc107;
}

.central-area:hover {
    fill: #ffe69c;
}

/* 詳細エリアのスタイル */
.detail-area {
    fill: #f0f8ff;
    stroke: #4a90e2;
}

.detail-area:hover {
    fill: #d6ebff;
}

/* エリアテキスト */
.area-text {
    font-size: 16px;
    font-weight: bold;
    text-anchor: middle;
    pointer-events: none;
    fill: #333;
}

.area-subtext {
    font-size: 12px;
    text-anchor: middle;
    pointer-events: none;
    fill: #666;
}

.area-shops {
    font-size: 11px;
    text-anchor: middle;
    pointer-events: none;
    fill: #999;
}

/* サイドパネル */
.map-side-panel {
    width: 30%;
    padding: 2rem;
    background: #fafafa;
    border-left: 1px solid #e0e0e0;
}

.map-side-panel h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.area-list-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.area-list-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.area-list-btn:hover {
    background: #f0f0f0;
    border-color: #4a90e2;
    transform: translateX(3px);
}

.area-list-btn.active {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.area-btn-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.area-btn-detail {
    font-size: 0.75rem;
    color: #ffc107;
    background: #fff8dc;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.area-list-btn.active .area-btn-detail {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* 戻るボタン */
.back-to-overview {
    width: 100%;
    padding: 0.75rem;
    background: #666;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.back-to-overview:hover {
    background: #555;
}

/* アクティブ状態 */
.area-clickable.active .area-shape {
    fill: #4a90e2;
    stroke: #2e7cd6;
    stroke-width: 3;
}

/* レスポンシブ */
@media (max-width: 992px) {
    .map-content {
        flex-direction: column;
    }
    
    .kyoto-overview-map,
    .kyoto-central-map {
        max-width: 100%;
        min-height: 400px;
    }
    
    .map-side-panel {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e0e0e0;
    }
}

/* エリア検索ページ専用スタイル */
.p-area-search {
    min-height: 70vh;
}

.p-area-search .page-header {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.p-area-search .page-title {
    font-size: 2.5rem;
    margin: 0 0 0.5rem;
    text-align: center;
}

.p-area-search .page-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    text-align: center;
}

.p-area-search .content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* パンくずリスト */
.breadcrumb {
    margin-bottom: 1rem;
    text-align: center;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: rgba(255,255,255,0.6);
}

.breadcrumb .current {
    color: white;
    font-weight: 600;
}

/* 検索情報 */
.search-info {
    text-align: center;
    margin-top: 1rem;
}

.hotpepper-code {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

/* 結果情報 */
.results-info {
    margin-bottom: 2rem;
    text-align: center;
}

.found-posts {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
}

/* 戻るボタン */
.back-to-search {
    text-align: center;
    margin-top: 3rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline {
    background: transparent;
    border: 2px solid #4a90e2;
    color: #4a90e2;
}

.btn-outline:hover {
    background: #4a90e2;
    color: white;
}

.btn-primary {
    background: #4a90e2;
    color: white;
    border: 2px solid #4a90e2;
}

.btn-primary:hover {
    background: #357abd;
    border-color: #357abd;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: 2px solid #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
    border-color: #545b62;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.no-results p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.no-results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ホットペッパーリンク */
.p-shop-card__hotpepper {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.hotpepper-link {
    font-size: 0.85rem;
    color: #ff6900;
    font-weight: 500;
}

@media (max-width: 768px) {
    .area-tabs {
        flex-direction: column;
    }
    
    .area-tab {
        width: 100%;
        text-align: center;
    }
    
    .area-text {
        font-size: 14px;
    }
    
    .area-subtext {
        font-size: 10px;
    }
    
    .p-area-search .page-title {
        font-size: 2rem;
    }
    
    .no-results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .no-results-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}