/* Map Container */
#map-container {
    width: 100%;
    height: auto;
    position: relative;
    margin-bottom: 20px;
}

#map {
    width: 100%;
    height: 500px;
    border: 1px solid #ddd;
}

/* Buttons */
#clear-markers,
#save-markers {
    display: inline-block;
    margin: 10px 5px;
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#clear-markers:hover,
#save-markers:hover {
    background-color: #0056b3;
}

/* Marker Info Section */
#marker-info {
    margin-top: 20px;
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
}

#marker-info h3 {
    margin-top: 0;
    font-size: 18px;
}

/* Marker List */
#marker-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#marker-list li {
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    word-break: break-word;
}

#marker-list li:last-child {
    border-bottom: none;
}


/* flightボタン */
#add-flight-btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#add-flight-btn:hover {
    background-color: #0056b3;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #ddd;
    width: 50%;
    border-radius: 10px;
}

.close-btn {
    color: red;
    float: right;
    font-size: 20px;
    cursor: pointer;
}

.close-btn:hover {
    color: darkred;
}

/* フライトリスト */
#flight-list {
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.flight-item {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}


/* ホテルボタン */
#add-hotel-btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#add-hotel-btn:hover {
    background-color: #0056b3;
}

/* 検索入力欄のスタイリング */
#hotel-name-input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* フォーカス時のスタイリング */
#hotel-name-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #ddd;
    width: 50%;
    border-radius: 10px;
}

.close-btn {
    color: red;
    float: right;
    font-size: 20px;
    cursor: pointer;
}

.close-btn:hover {
    color: darkred;
}

/* 検索結果 */
#search-results {
    margin-top: 20px;
}

.hotel-item {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin-bottom: 10px;
    cursor: pointer;
}

.hotel-item:hover {
    background-color: #e9ecef;
}




/*memo*/
#memo-container {
    margin-top: 20px;
    text-align: left;
}

#toggle-memo-btn {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#toggle-memo-btn:hover {
    background-color: #0056b3;
}

#memo-section {
    margin-top: 10px;
}

#memo-input {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none;
}

#save-memo-btn {
    margin-top: 10px;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#save-memo-btn:hover {
    background-color: #218838;
}






/* コンテナ全体のスタイル */
#flight-container {
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#add-flight-btn {
    background: #28a745;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#add-flight-btn:hover {
    background: #218838;
}

/* フライトリスト部分 */
#flight-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.flight-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid #e9ecef;
}

.flight-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    color: #343a40;
}

.flight-card-header .flight-route {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flight-card-header .flight-route i {
    font-size: 20px;
    color: #007bff;
}

.flight-card-header .status {
    background: #d4edda;
    color: #155724;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 5px;
}

.flight-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flight-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #495057;
}

.flight-info-row .time {
    font-size: 18px;
    font-weight: bold;
    color: #212529;
}

.flight-info-row .details {
    text-align: right;
    font-size: 14px;
    color: #6c757d;
}

/* フライト項目のスタイル */
.flight-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flight-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.flight-item p {
    margin: 0;
    font-size: 14px;
    color: #495057;
}

.flight-item p:first-child {
    font-weight: bold;
    color: #212529;
}

.delete-btn {
    background: #ff4d4d;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    align-self: flex-end;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, transform 0.2s ease;
}

.delete-btn:hover {
    background: #e60000;
    transform: scale(1.05);
}

/* モーダルの背景 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

/* モーダルコンテンツ */
.modal-content {
    background: #ffffff;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
    position: relative;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #333;
}

/* フォームのスタイル */
#flight-form label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

#flight-form input {
    width: calc(100% - 20px);
    padding: 8px 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

#flight-form input:focus {
    border-color: #8bc34a;
    outline: none;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
}

#flight-form button {
    background: linear-gradient(45deg, #ff5722, #ff7043);
    color: #fff;
    padding: 10px;
    width: 100%;
    font-size: 16px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#flight-form button:hover {
    background: linear-gradient(45deg, #ff7043, #ff5722);
    transform: scale(1.03);
}










.marker-info {
    margin-bottom: 10px;
    padding: 5px;
    font-size: 14px;
    color: #333;
}

.vertical-line {
    width: 2px;
    height: 20px;
    background-color: #ccc;
    margin: 0 auto;
}
