/* Basic styling for the map and controls */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: transparent;
}
.container {
    position: relative;
    padding: 15px;
    max-width: 1400px;
    margin: 0 auto;
}
#map {
    height: 80vh;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.controls {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
    width: 320px;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#directions-panel {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
    width: 320px;
    max-height: calc(80vh - 60px);
    overflow-y: auto;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: none;
}

.controls input[type="text"], .controls select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 11px;
    box-sizing: border-box;
}

.controls select {
     -webkit-appearance: none; 
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.4-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right .7em top 50%;
    background-size: .65em auto;
    padding-right: 2.5em;
}

/* Styles for the full-screen notification overlay */
#notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Base styles for the "Newspaper Article" look */
.newspaper-article {
    padding: 20px;
    background-color: #fcfcfc; /* Parchment paper color */
    border: 1px solid #333;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.5);
    text-align: center;
    color: #f51818;
}
/* Styles for the article in the full-screen overlay */
#notification-content .newspaper-article {
    width: 90vw;
    max-width: 500px;
}
.newspaper-logo {
    width: 150px;
    display: block;
    margin: 0 auto 15px;
}
.newspaper-text {
    font-family: 'Bentham', serif;
    margin-top: 15px;
    margin-bottom: 0; 
    font-size: 18px;
    line-height: 1.4;
    color: #f51818;
}
.newspaper-video {
    width: 100%;
    max-height: 45vh;
    margin-top: 5px; 
    border: none;
}

.missing-text {
    font-family: 'Bentham', serif;
    color: red;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Styles for the on-click InfoWindow content */
.info-window-wrapper .newspaper-article {
    width: 280px;
    padding: 10px;
    border: none;
    box-shadow: none;
    background-color: #fcfcfc;
}
.info-window-wrapper .newspaper-logo {
    width: 100px;
}
.info-window-wrapper .newspaper-text {
    font-size: 14px;
}
.info-window-wrapper .newspaper-video {
    max-height: 150px;
}


/* Responsive adjustments */
@media (max-width: 1024px) {
    #directions-panel { display: none !important; }
}
@media (max-width: 768px) {
    .controls { width: calc(100% - 60px); max-width: 300px; }
    .missing-text { font-size: 28px; }
}
@media (max-width: 480px) {
    .container { padding: 10px; }
    .controls { top: 20px; left: 20px; width: calc(100% - 40px); max-width: none; }
    #map { height: 70vh; }
    .controls input[type="text"], .controls select { font-size: 16px; padding: 12px; }
    .newspaper-text { font-size: 16px; }
    .missing-text { font-size: 22px; margin-top: 20px; }
}
