/**
 * 既存店登録アプリ スタイルシート
 */

/* 物件名オートコンプリート候補欄: スクロールバーを常に見える形で明示する
   （高さで隠れている候補があることに気づきにくい、というフィードバックへの対応）。 */
.object-suggestions-scroll {
    scrollbar-width: thin;
    scrollbar-color: #9ca3af #f3f4f6;
}
.object-suggestions-scroll::-webkit-scrollbar {
    width: 10px;
}
.object-suggestions-scroll::-webkit-scrollbar-track {
    background: #f3f4f6;
}
.object-suggestions-scroll::-webkit-scrollbar-thumb {
    background-color: #9ca3af;
    border-radius: 5px;
    border: 2px solid #f3f4f6;
}

/* ローディング表示 */
#loading {
    position: fixed;
    width: 100%;
    top: 112px;
    height: calc(100% - 112px);
    background: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-container {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 300px;
}

.loading-spinner {
    margin-bottom: 1rem;
}

.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.progress-container {
    width: 100%;
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #4f46e5;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 5px;
}

.progress-text {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.progress-status {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

#existingShopApp #registExistingShop {
    margin: 50px;
}

#map {
    height: 800px;
    width: 100%;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#output, #result {
    margin-top: 20px;
}

#registExistingShop .flex {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

#registExistingShop .flex:hover {
    background-color: #f9fafb;
}

@media (max-width: 768px) {
    #map {
        height: 500px;
    }
    #existingShopApp #registExistingShop {
        margin: 20px;
    }
}
