* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1f2937;
    background: #f8fafc;
    line-height: 1.6;
}

.container {
    display: flex;
    height: 100vh;
}

/* 検索パネル */
.search-panel {
    width: 420px;
    background: #ffffff;
    padding: 0;
    overflow-y: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-right: 1px solid #e5e7eb;
}

.panel-header {
    padding: 24px 24px 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.panel-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-header .icon {
    font-size: 32px;
}

.panel-header .subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* 検索セクション */
.search-section {
    padding: 24px;
    border-bottom: 1px solid #f3f4f6;
}

.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.search-input:focus {
    outline: none;
    border-color: #10b981;
    background: white;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.4);
}

.btn-location {
    width: 100%;
    background: #10b981;
    color: white;
    justify-content: center;
}

.btn-location:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-clear {
    width: 100%;
    background: #f59e0b;
    color: white;
    justify-content: center;
    margin-top: 12px;
}

.btn-clear:hover {
    background: #d97706;
}

.btn-icon {
    font-size: 18px;
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.info-icon {
    font-size: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.result-icon {
    font-size: 16px;
    margin-right: 6px;
    vertical-align: middle;
}

.distance-icon {
    font-size: 16px;
    margin-right: 4px;
    vertical-align: middle;
}

.btn-text {
    font-size: 13px;
}

/* コントロールセクション */
.controls-section {
    padding: 24px;
    border-bottom: 1px solid #f3f4f6;
}

.control-group {
    margin-bottom: 24px;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.label-icon {
    font-size: 16px;
    margin-right: 8px;
}

.range-value {
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.range-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.range-slider::-webkit-slider-track {
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #10b981;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
    margin-top: -7px;
}

.range-slider::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    border: none;
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #10b981;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.select-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.select-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    background: #f9fafb;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.select-input:focus {
    outline: none;
    border-color: #10b981;
    background: white;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6b7280;
}

/* 結果セクション */
.results-section {
    padding: 24px;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.results-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.result-badge {
    background: #10b981;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.result-list {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.result-list::-webkit-scrollbar {
    width: 6px;
}

.result-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.result-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.result-item {
    padding: 16px;
    margin-bottom: 12px;
    background: white;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.result-item:hover {
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
}

.result-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
    cursor: pointer;
}

.result-item h4:hover {
    color: #10b981;
}

.result-item p {
    font-size: 13px;
    color: #6b7280;
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    margin-top: 12px;
    transition: all 0.2s ease;
}

.detail-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* 地図 */
#map {
    flex: 1;
    height: 100vh;
}

/* カスタムポップアップ */
.custom-popup .leaflet-popup-content-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: none;
}

.custom-popup .leaflet-popup-content {
    margin: 15px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.custom-popup .leaflet-popup-tip {
    background: white;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


/* ハイライトピン */
.highlight-pin {
    background: none !important;
    border: none !important;
    font-size: 36px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ストリートビューパネル */
#streetview-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
}

#streetview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

#streetview-header h3 {
    margin: 0;
    font-size: 16px;
}

#close-streetview {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

#close-streetview:hover {
    color: #333;
}

#streetview-frame {
    border: none;
    border-radius: 0 0 8px 8px;
}

/* モーダル */
.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 24px 24px 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.pharmacy-detail h2 {
    color: #1f2937;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
}

.pharmacy-detail .info-item {
    margin-bottom: 16px;
    padding: 16px;
    background: #f0fdf4;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
}

.pharmacy-detail .info-label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pharmacy-detail .info-value {
    margin-top: 6px;
    font-size: 15px;
    color: #1f2937;
    font-weight: 500;
}

.nearby-list {
    margin-top: 20px;
}

.nearby-list h3 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nearby-item {
    padding: 16px;
    margin-bottom: 12px;
    background: #fef3c7;
    border-radius: 12px;
    border: 1px solid #fbbf24;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.nearby-item:hover {
    background: #fef08a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.nearby-item::after {
    content: 'local_pharmacy';
    font-family: 'Material Icons';
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 20px;
    opacity: 0.7;
    color: #10b981;
}

.nearby-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.nearby-number {
    background: #10b981;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.nearby-info {
    flex: 1;
}

.nearby-detail-btn {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.nearby-detail-btn:hover {
    background: #d97706;
    transform: translateY(-1px);
}

/* カテゴリーフィルター */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.category-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
}

.category-filter:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

.category-filter.active {
    border-color: #10b981;
    background: #10b981;
    color: white;
}

.category-filter .material-icons {
    font-size: 16px;
}

.category-filter input[type="checkbox"] {
    display: none;
}

.nearby-item .name {
    font-weight: 600;
    color: #1f2937;
    font-size: 15px;
    margin-bottom: 4px;
}

.nearby-item .distance {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ガイドオーバーレイ */
.guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.guide-content {
    background: white;
    padding: 32px;
    border-radius: 20px;
    max-width: 500px;
    text-align: center;
}

.guide-content h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #1f2937;
}

.guide-steps {
    margin-bottom: 24px;
}

.guide-step {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    text-align: left;
}

.step-number {
    background: #667eea;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-text {
    font-size: 14px;
    color: #374151;
}

/* レスポンシブ - モバイル最適化 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: 100vh;
    }
    
    .search-panel {
        width: 100%;
        height: auto;
        max-height: 45vh;
        overflow-y: auto;
        border-right: none;
        border-bottom: 2px solid #e5e7eb;
    }
    
    .panel-header {
        padding: 16px 20px 12px;
    }
    
    .panel-header h1 {
        font-size: 24px;
    }
    
    .panel-header .icon {
        font-size: 28px;
    }
    
    .search-section {
        padding: 16px 20px;
    }
    
    .input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-input {
        width: 100%;
        font-size: 16px; /* iOS zoom防止 */
        padding: 14px 16px;
    }
    
    .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        justify-content: center;
    }
    
    .btn-location {
        margin-top: 8px;
    }
    
    .controls-section {
        padding: 16px 20px;
        gap: 20px;
    }
    
    .control-group {
        margin-bottom: 16px;
    }
    
    .control-label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .range-slider {
        height: 8px;
    }
    
    .select-wrapper {
        margin-bottom: 12px;
    }
    
    .select-input {
        font-size: 16px; /* iOS zoom防止 */
        padding: 12px 16px;
    }
    
    .results-section {
        padding: 16px 20px;
        max-height: none;
    }
    
    .result-item {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .result-item h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .result-item p {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .detail-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    #map {
        height: 55vh;
        min-height: 300px;
    }
    
    /* モーダルのモバイル対応 */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 20px auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 16px 20px;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .pharmacy-name {
        font-size: 20px;
    }
    
    .pharmacy-category {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 0;
    }
    
    .info-label {
        font-size: 14px;
        min-width: auto;
    }
    
    .info-value {
        text-align: left;
        max-width: 100%;
        font-size: 14px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-btn {
        min-width: auto;
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .nearby-item {
        padding: 12px;
    }
    
    .nearby-info .name {
        font-size: 15px;
    }
    
    .nearby-info .distance {
        font-size: 13px;
    }
    
    .nearby-detail-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* 拡張モーダルスタイル */
.pharmacy-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.pharmacy-name {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.pharmacy-category {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #10b981;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.pharmacy-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.info-section {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #d1d5db;
}

.section-title .material-icons {
    color: #10b981;
    font-size: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #6b7280;
    min-width: 120px;
}

.info-icon {
    font-size: 18px !important;
    color: #10b981;
}

.info-value {
    text-align: right;
    color: #1f2937;
    font-weight: 500;
    max-width: 60%;
    word-break: break-all;
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    flex: 1;
    justify-content: center;
    min-width: 140px;
}

.action-btn.primary {
    background: #10b981;
    color: white;
}

.action-btn.primary:hover {
    background: #059669;
    transform: translateY(-1px);
}

.action-btn.secondary {
    background: #2196F3;
    color: white;
}

.action-btn.secondary:hover {
    background: #1976D2;
    transform: translateY(-1px);
}

.action-btn.tertiary {
    background: #f59e0b;
    color: white;
}

.action-btn.tertiary:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.action-btn .material-icons {
    font-size: 18px;
}

/* 最寄り薬局リストの改善 */
.nearby-list {
    background: #f0fdf4;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
    margin-top: 24px;
}

.nearby-list h3 {
    color: #059669 !important;
    margin-bottom: 16px !important;
}

.nearby-item {
    background: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #d1fae5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nearby-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #10b981;
}

.nearby-item:last-child {
    margin-bottom: 0;
}

.nearby-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.nearby-number {
    background: #10b981;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.nearby-info .name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.nearby-info .distance {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    font-size: 14px;
}

.distance-icon {
    font-size: 16px !important;
}

.nearby-detail-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s ease;
}

.nearby-detail-btn:hover {
    background: #059669;
}

.nearby-detail-btn .material-icons {
    font-size: 16px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .pharmacy-info-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        min-width: auto;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .info-value {
        text-align: left;
        max-width: 100%;
    }
}
/* 
タッチデバイス向け改善 */
@media (max-width: 480px) {
    .panel-header h1 {
        font-size: 22px;
    }
    
    .search-panel {
        max-height: 50vh;
    }
    
    #map {
        height: 50vh;
    }
    
    .btn {
        padding: 16px 20px;
        font-size: 17px;
        min-height: 48px; /* タッチターゲット最小サイズ */
    }
    
    .result-item {
        padding: 18px 16px;
    }
    
    .detail-btn {
        padding: 12px 18px;
        font-size: 15px;
        min-height: 44px;
    }
    
    .modal-content {
        width: 98%;
        margin: 10px auto;
        max-height: 95vh;
    }
    
    .action-btn {
        padding: 16px 20px;
        font-size: 17px;
        min-height: 48px;
    }
    
    .nearby-detail-btn {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 40px;
    }
    
    /* スクロール改善 */
    .search-panel {
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-body {
        -webkit-overflow-scrolling: touch;
    }
}

/* 横向きモバイル対応 */
@media (max-width: 768px) and (orientation: landscape) {
    .search-panel {
        max-height: 35vh;
    }
    
    #map {
        height: 65vh;
    }
    
    .modal-content {
        max-height: 85vh;
    }
}

/* ダークモード対応（システム設定に従う） */
@media (prefers-color-scheme: dark) {
    /* 必要に応じてダークモードスタイルを追加 */
}

/* 高コントラスト対応 */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .result-item {
        border: 1px solid #666;
    }
}

/* アニメーション無効化対応 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .center-pin {
        animation: none;
    }
}