*,
*::before,
*::after {
  box-sizing: border-box;
}

:root { --primary-color: #007bff; --main-bg-color: #f9f9f9; --floor-nav-bg: #8E6C5C; --button-border-color: #ccc; --dot-color: #ff3b30; } 

html, body {
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    color: #333; 
    background-color: #e9e9e9;
} 

.app-container { 
    width: 100%; 
    height: 100%; 
    background-color: var(--main-bg-color); 
    box-shadow: none;
    border-radius: 0;
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
}

@media (min-width: 481px), (orientation: landscape) {
    html, body {
        height: auto;
        overflow: auto;
    }
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px 0;
    }
    .app-container {
        width: 375px;
        height: 600px;
        border-radius: 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    }
}

.floor-buttons-wrapper { background-color: var(--floor-nav-bg); padding: 8px 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; z-index: 10; flex-shrink: 0; } .floor-buttons { display: inline-flex; } .floor-button { padding: 8px 14px; margin: 0 4px; border: 1px solid #b49e91; border-radius: 18px; cursor: pointer; background-color: transparent; color: #f0f0f0; font-weight: bold; font-size: 0.9em; transition: all 0.2s ease-in-out; flex-shrink: 0; } .floor-button.active { background-color: #fff; color: var(--floor-nav-bg); border-color: #fff; } 

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.map-container { position: relative; min-height: 250px; text-align: center; padding: 15px; background-color: #fff; flex-shrink: 0; } 

.floor-map { 
    max-width: 100%; 
    height: auto; 
    margin: 0 auto; 
    display: none;
}
.floor-map.active {
    display: block;
}

#blinking-dot { position: absolute; width: 18px; height: 18px; background-color: var(--dot-color); border: 2px solid white; border-radius: 50%; box-shadow: 0 0 10px rgba(0,0,0,0.5); transform: translate(-50%, -50%); pointer-events: none; display: none; } #blinking-dot.blinking { display: block; animation: blink-animation 1.2s infinite; } @keyframes blink-animation { 0% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } } 

#search-container {
    flex-grow: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 15px 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #fff;
}
#search-container h2 { font-size: 1.1em; margin-top: 0; margin-bottom: 12px; color: #333; text-align: center; } .index-tabs { display: flex; margin-bottom: 15px; border: 1px solid var(--button-border-color); border-radius: 8px; overflow: hidden; } .index-tab { flex-grow: 1; text-align: center; padding: 8px 4px; font-size: 0.9em; border-right: 1px solid #eee; background-color: #fff; cursor: pointer; transition: all 0.2s ease; } .index-tab:last-child { border-right: none; } .index-tab.active { background-color: var(--primary-color); color: white; } #search-results ul { list-style-type: none; padding: 0; margin: 0; }

#search-results li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 12px; 
    border-bottom: 1px solid #eee; 
    cursor: pointer; 
    transition: background-color 0.2s;
}
#search-results .shop-floor { display: inline-block; font-size: 0.8em; font-weight: bold; color: var(--primary-color); background-color: #e7f3ff; padding: 2px 6px; border-radius: 4px; margin-left: 8px; }

.shop-info-button {
    padding: 4px 10px;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
    background-color: var(--primary-color);
    border-radius: 12px;
    text-decoration: none;
    margin-left: 10px;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.legend-container { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 8px 15px; background-color: #fff; border-top: 1px solid #e0e0e0; flex-shrink: 0; }
.legend-item img { height: 14px; width: auto; }