/* 2:3 のアスペクト比を維持し、幅は親要素に合わせる */
img.aspect-2-3 {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    /* アスペクト比を維持しつつ領域を埋める */
}

/* header-tabsのスクロールバー非表示とドラッグスクロール */
.header-tabs {
    -ms-overflow-style: none;
    /* IE, Edge 対応 */
    scrollbar-width: none;
    /* Firefox 対応 */
    cursor: grab;
}

.header-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari 対応 */
}

.header-tabs:active {
    cursor: grabbing;
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
}

/* ジオコーダーのサジェストリストのスタイル */
.leaflet-control-geocoder .leaflet-control-geocoder-alternatives {
    background-color: #fff !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    margin-top: 5px !important;
    max-height: 300px !important;
    overflow-y: auto !important;
}

.leaflet-control-geocoder .leaflet-control-geocoder-alternatives li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.leaflet-control-geocoder .leaflet-control-geocoder-alternatives a {
    color: #333 !important;
    display: block !important;
    padding: 8px 12px !important;
    text-decoration: none !important;
}

.leaflet-control-geocoder .leaflet-control-geocoder-alternatives a:hover {
    background-color: #f5f5f5 !important;
}

.leaflet-control-geocoder .leaflet-control-geocoder-alternatives .leaflet-control-geocoder-selected {
    background-color: #e6e6e6 !important;
}

.leaflet-control-geocoder .leaflet-control-geocoder-alternatives .leaflet-control-geocoder-address-context {
    color: #666 !important;
    font-size: 0.9em !important;
}

.leaflet-control-geocoder .leaflet-control-geocoder-error {
    color: #ff0000 !important;
    padding: 8px 12px !important;
}

#trip-location-map {
    height: 70%;
    width: 100%;
}

#published-location-map {
    height: 70%;
    width: 100%;
}

.location-save-btn {
    margin: 10px 0;
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.location-save-btn:hover {
    background-color: #45a049;
}