html, body {
    height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    font-family: 'Lora', serif;
}

h1 {
    /* Improved fluid typography scaling */
    font-size: clamp(1.5rem, 2.5vw, 1.5rem);
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
}

.container {
    width: 85%; /* Leave 15% space on sides */
    min-height: 65vh; /* Leave 15% space on bottom */
    margin: 0 auto;
    padding: clamp(10px, 2vw, 20px);
}

.title {
    text-align: center;
    color: #333;
    margin: clamp(0.5rem, 1vw, 1rem) 0;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: clamp(10px, 2vw, 20px);
    margin: clamp(10px, 2vw, 20px) auto;
    height: 65vh; /* Consistent height */
}

#map {
    height: 100%;
    width: 100%;
    border-radius: 4px;
}

.the-button {
    padding: 12px 24px;
    font-family: 'Lora', serif;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin: 12px;
    display: block;
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.the-button:hover {
    transform: translateY(-1px);
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.the-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1000;
    opacity: 0;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    width: 70%;
    max-width: 500px;
    max-height: 80vh; /* Limit height to 80% of viewport height */
    overflow-y: auto; /* Enable vertical scrolling */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show .modal-content {
    opacity: 1;
}

.close-button {
    position: sticky; /* Keep close button visible while scrolling */
    float: right;
    top: 0;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    background-color: #fff; /* Ensure button has background */
    padding: 0 5px;
    z-index: 10; /* Keep button above other content */
}

.modal-title {
    margin-top: 0;
    color: #333;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.modal-body {
    line-height: 1.6;
    color: #666;
}

.text-bold {
    font-weight: bold;
}