/**
 * Map Plugin Styles
 * Contains all the styling for maps, markers, and info windows
 */

/* Import Open Sans font for the plugin */
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,800&display=swap');

/* Apply Open Sans to plugin containers */
.map-container,
.location-container,
.popup-container,
.map-legend,
.map-distance,
.map-otherlocations {
    font-family: 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Map Container Styles */
.map-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
    box-sizing: border-box;
}

/* Marker Styles */
.map-marker {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
}

/* Info Window Styles */
.popup-container {
    padding: 10px;
    max-width: 300px;
    font-family: 'Open Sans', 'Helvetica Neue', sans-serif;
}

.popup-header {
    margin-bottom: 10px;
    font-weight: bold;
}

.popup-title {
    font-size: 18px;
    margin: 0 0 5px 0;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.popup-title i {
    margin-right: 8px;
}

.popup-body {
    font-size: 14px;
    line-height: 1.4;
}

.popup-description {
    margin-bottom: 8px;
}

.popup-address {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
}

.popup-link {
    display: inline-block;
    padding: 5px 10px;
    background-color: #4285f4;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 5px;
}

.popup-link:hover {
    background-color: #3367d6;
    color: white;
    text-decoration: none;
}

/* Category Color Styles */
.map-marker.cafe { background-color: #795548; }
.map-marker.metro { background-color: #0277bd; }
.map-marker.store { background-color: #388e3c; }
.map-marker.restaurant { background-color: #e65100; }
.map-marker.location { background-color: #d9534f; }
.map-marker.hotel { background-color: #3f51b5; }
.map-marker.museum { background-color: #8d6e63; }
.map-marker.park { background-color: #43a047; }
.map-marker.beach { background-color: #ffc107; }
.map-marker.bar { background-color: #673ab7; }
.map-marker.shopping { background-color: #ff5722; }
.map-marker.airport { background-color: #546e7a; }
.map-marker.train { background-color: #1976d2; }
.map-marker.bus { background-color: #607d8b; }
.map-marker.attraction { background-color: #f44336; }

/* OVERRIDE STYLES FOR SPECIFIC MARKERS */
.popup-container:focus {
    outline-width: 0px !important;
    outline-style: solid;
}

/* Location Itinerary Styles (renamed from popup- to location-) */
.location-container {
   outline:solid 2px #f90;
    padding: 10px;
    max-width: 605px;
    font-family: 'Open Sans', 'Helvetica Neue', sans-serif;
    margin-bottom:10px;
}

.location-header {
    margin-bottom: 10px;
}

.location-title {
    font-size: 18px;
    margin: 0 0 5px 0;
    font-weight: bold;
    display: flex;
    align-items: center;
    font-size:1.1em;
    margin:0;
}

.location-title i {
    margin-right: 8px;
}

.location-custom-text {
    font-size: 14px;
    line-height: 1.4;
    font-size:0.95em;
}

.location-container:focus {
    outline-width: 0px !important;
    outline-style: solid;
}

.location-address{
    margin-top: 1rem;    
    font-style: italic;
    font-weight: bold;
    font-size: 1rem;
}

.location-website{
    margin-top: 1rem;
    font-style: italic;
    font-weight: bold;
    font-size: 1rem;
}
