/* Recipe globe on the home page (see js/recipe-globe.js) */

.recipe-globe {
    margin: 30px 0 10px;
}

.recipe-globe-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.recipe-globe-count {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #404040;
}

.recipe-globe-surprise {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    background: #e8772e;
    border: 0;
    border-radius: 3px;
    padding: 8px 16px;
    cursor: pointer;
}

.recipe-globe-surprise:hover,
.recipe-globe-surprise:focus {
    background: #c95f1a;
}

#recipe-globe-map {
    width: 100%;
    height: 480px;
    border-radius: 6px;
    overflow: hidden;
    background: #f3f1ec;
}

@media (max-width: 767px) {
    #recipe-globe-map {
        height: 360px;
    }
}

/* "Back to globe" button, shown once zoomed in */
.rg-back {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 7px 14px;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #2b2b2b;
    background: #fff;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.rg-back:hover,
.rg-back:focus {
    color: #fff;
    background: #e8772e;
}

.recipe-globe-legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 8px;
    font-size: 13px;
    color: #808080;
}

.recipe-globe-legend span::before {
    content: "";
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-right: 6px;
    vertical-align: -1px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
}

.recipe-globe-legend .rg-key-pin::before { background: #e8772e; }
.recipe-globe-legend .rg-key-favorite::before { background: #f2b705; }
.recipe-globe-legend .rg-key-country::before {
    background: rgba(244, 162, 89, 0.5);
    border-radius: 2px;
}

/* Popups */
.recipe-globe-popup .maplibregl-popup-content {
    padding: 0;
    border-radius: 6px;
    overflow: hidden;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.recipe-globe-popup .maplibregl-popup-close-button {
    z-index: 1;
    width: 26px;
    height: 26px;
    font-size: 18px;
    color: #fff;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
}

.rg-card,
.rg-card:hover,
.rg-card:focus {
    display: block;
    color: #404040;
    text-decoration: none;
}

.rg-photo {
    display: block;
    height: 130px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
}

.rg-body {
    display: block;
    padding: 10px 12px 12px;
}

.rg-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.rg-meta {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #808080;
}

.rg-link {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #e8772e;
}

.rg-card:hover .rg-link {
    color: #c95f1a;
}

.rg-star {
    color: #f2b705;
}

.rg-country {
    padding: 12px 14px;
    max-height: 260px;
    overflow-y: auto;
}

.rg-country strong {
    font-size: 15px;
}

.rg-country ul {
    margin: 8px 0 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.6;
}
