/* General Body Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header Styles */
header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

header h1 {
    margin: 0;
    font-size: 2em;
    letter-spacing: 1px;
}

/* Main Content Area */
.main-content {
    display: flex;
    flex-grow: 1;
    position: relative;
}

/* Map Container Styles */
#map {
    flex-grow: 1;
    height: calc(100vh - 70px); /* Adjust based on header height */
    width: 100%;
    position: relative;
    z-index: 1;
    border-right: 1px solid #ddd;
}

/* Leaflet Map Overrides */
.leaflet-container {
    background-color: #aadaff; /* Light blue for ocean */
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-content {
    font-size: 0.9em;
    color: #333;
}

.leaflet-popup-tip {
    background-color: #fff;
}

/* Hotel Details Panel Styles */
.hotel-details-panel {
    position: absolute;
    top: 0;
    right: -400px; /* Hidden by default */
    width: 400px;
    height: 100%;
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.hotel-details-panel.open {
    right: 0;
}

.hotel-details-panel h2 {
    color: #2c3e50;
    margin-top: 0;
    font-size: 1.8em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.hotel-details-panel p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.hotel-details-panel .close-btn {
    position: sticky;
    top: 10px;
    left: 100%;
    transform: translateX(-100%);
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 101;
}

.hotel-details-panel .close-btn:hover {
    background: #c0392b;
}

.hotel-details-panel .hotel-images {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px; /* For scrollbar */
}

.hotel-details-panel .hotel-images img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.hotel-details-panel .info-section {
    margin-bottom: 20px;
}

.hotel-details-panel .info-section h3 {
    color: #3498db;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.hotel-details-panel .info-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hotel-details-panel .info-section ul li {
    background-color: #ecf0f1;
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 5px;
    display: inline-block;
    margin-right: 5px;
    font-size: 0.9em;
}

.hotel-details-panel .pricing {
    background-color: #d4edda;
    border: 1px solid #28a745;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
    color: #155724;
}

.hotel-details-panel .pricing span {
    color: #28a745;
    font-size: 1.3em;
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 15px 20px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}