/* Base Styles (Desktop View) */

    /* Container holding the map and list */
    .app-container {
        display: flex;
        flex-direction: row;
        width: 100%;
        height: 100%;
        position: relative;
    }

    /* Map styles */
    .map {
    flex: 1;
    position: relative;
    height: 100%; /* Ensure the map fills its container vertically */
    } 

    .country-list {
        flex: 0 0 50%; /* Fixed width */
        height: 100%;
        overflow-y: auto;
        padding: 24px;
        box-sizing: border-box;
        display: block;
      }

/* Country item styles */
    .country-item {
    padding: 24px;
    margin: 16px 0;
    background-color: #e3ddd5;
    cursor: pointer;
    transition: background-color 0.3s;
    }

    .country-item h2 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
    }

    .country-item p {
    margin: 0;
    font-size: 18px;
    color: #2c2b26;
    }

    .country-item h2 {
    display: flex;
    align-items: center;
    margin: 0;
    }

    .photo-credit {
        font-size: 12px;
        color: #666;
        margin-top: 16px;
        text-align: right;
      }


/* Highlighted and selected styles for place cards*/
    .country-item.highlighted {
    background-color: #d1d1d1; /* Highlight color */
    }

    .country-item:hover {
    background-color: #e3ddd5;
    outline: 4px solid #737474;
    }

    .country-item.selected {
    background-color: #e3ddd5; /* Selected color */
    outline: 4px solid #521e22;    
    }

    .country-item:focus {
        outline: 4px solid #521e22;
    }
    
/* Place name container */
    .place-name-container {
    display: flex;
    margin: 0;
    padding-bottom: 8px;
    }

/* Place number */
    .place-number {
    font-weight: bold;
    margin-right: 8px;
    font-size: 20px;
    }

/* Place name */
    .place-name {
    font-weight: bold;
    font-size: 20px;
    }

    .featured-image {
        width: 100%;
        height: auto;
        margin-bottom: 10px;
        border-radius: 4px;
      }
      
      .place-category {
        font-size: 12px;
        color: #888;
        margin-top: 2px;
      }

/* Button Styles */
      .external-link-button {
        display: inline-block;
        padding: 8px 16px;
        background-color: #521e22;
        color: #fff;
        text-decoration: none;
        border-radius: 0px;
        text-align: center;
        margin-top: 10px;
      }

      .external-link-button:hover {
        background-color: #2c2b26;
      }
      

/* Map Popups */
      .mapboxgl-popup-content {
        background-color: #e3ddd5; /* Vintage lace Background */
        border-radius: 4px;
        padding: 10px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.15);
        color: #363534;
      }
      

/* Mobile View Styles */
@media screen and (max-width: 768px) {
    /* Stack map and list vertically */
    .app-container {
    flex-direction: column;
    }

    /* Map occupies 50% of viewport height */
    .map {
        height: 50% !important;
        width: 94%;
        margin-left: 2%;
        margin-right: 2%;
    }

    /* Country list occupies the remaining 50% and uses Flexbox */
    .country-list {
        width: 100% !important;
        height: 50% !important;
        overflow-x: scroll;
        overflow-y: clip !important;
        display: block;
        flex-direction: row;
        background-color: #f4f4f4;
        padding: 8px !important; 
        box-sizing: border-box;
    }

    /* Country items arranged horizontally */
    .country-item {
    flex: 0 0 auto;
    width: 100%;
    height: 100%;
    margin-right: 10px;
    padding: 10px;
    box-sizing: border-box;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    }

    /* Center text within country items */
    .place-name-container, .country-item p {
    text-align: left;
    }

    /* Adjust font sizes if necessary */
    .place-name-container {
    font-size: 1em;
    }
}

