body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: fixed;
    width: 100%;
    font-family: Arial, sans-serif;
}

#map { 
    height: 100vh !important;
    width: 100vw !important;
    position: relative !important;
    z-index: 0 !important;
}

.leaflet-tooltip {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    font-weight: bold;
    font-size: 14px;
    padding: 5px;
    pointer-events: auto;
    cursor: pointer;
}

.leaflet-tooltip.centered-tooltip {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    font-weight: bold;
    font-size: 14px;
    padding: 6px 8px;
    pointer-events: auto;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    min-width: 120px;
}

.leaflet-tooltip.centered-tooltip::before {
    display: none;
}

/* Stile specifico per la categoria nel tooltip */
.leaflet-tooltip.centered-tooltip div:last-child {
    opacity: 1;
    margin-top: 2px;
}

/* Aumenta leggermente l'offset verticale per le tooltip più grandi */
.leaflet-tooltip-top:before {
    margin-bottom: -12px;
}


#buyCodeSection input[type="text"],
#buyCodeSection input[type="email"] {
    width: 80%;
    padding: 15px;
    font-size: 18px;
    margin: 15px auto;
    display: block;
    border: 1px solid #ccc;
    border-radius: 8px;
}

#buyCodeSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#buyCodeSection #button-row {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 15px;
}

#buyCodeSubmit,
#backToCodeInput {
    width: 150px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #f89b31;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    margin: 10px 0;
    text-align: center;
}

.current-position-tooltip {
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #f89b31;
    font-weight: bold;
}

#controls {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: white;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#audioSection {
    display: none;
    width: 100%;
}

#audioControls {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    width: 100%;
}

#otherControls {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    width: 100%;
}

#audioControls button, #otherControls button {
    width: 36px;
    height: 36px;
    background-color: white;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    color: #f89b31;
    cursor: pointer;
    margin: 0 2px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#audioControls button:hover, #otherControls button:hover {
    background-color: #f0f0f0;
}

#audioName {
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
}

#currentAudioName {
    font-size: 12px;
}

#categorySelector {
    width: 100%;
}

#categorySelect {
    width: 100%;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
}

#logoContainer {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    padding: 5px;
    border-radius: 5px;
}

#logoContainer img {
    width: 120px;
    height: auto;
}

#overlay, #codeOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.interface-container {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 300px;
    width: 90%;
    max-height: 80%;
    overflow-y: auto;
}

.poi-popup {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 80%;
    width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.poi-popup-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

.poi-gallery {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.poi-gallery img,
.poi-gallery video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.poi-gallery img.active,
.poi-gallery video.active {
    display: block;
}

.gallery-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
}

.gallery-control.prev {
    left: 10px;
}

.gallery-control.next {
    right: 10px;
}

.poi-popup p {
    margin-top: 10px;
    font-size: 16px;
    text-align: center;
    padding: 0 10px;
}

.poi-links {
    display: block;
    margin-top: 10px;
    color: #f89b31;
    text-decoration: none;
}

.poi-links:hover {
    text-decoration: underline;
}

.poi-discount {
    margin-top: 15px;
    font-size: 24px;
    font-weight: bold;
    color: red;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1;
}

#weatherContainer {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.weather-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
}

#weatherIcon {
    color: #FFD700;
    font-size: 40px;
}

#temperature {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-top: 5px;
}

#modeSelector {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 0 15px 15px 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.mode-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 5px 0;
    width: 60px;
    height: 60px;
    text-align: center;
}

.mode-button.active {
    background-color: #f89b31;
    color: white;
}

.mode-button i {
    font-size: 24px;
    margin-bottom: 5px;
}

.mode-button span {
    font-size: 10px;
    line-height: 1.2;
}

#modeSelector.hidden {
    transform: translateY(-50%) translateX(calc(-100% + 10px));
}

#modeSelector::after {
    content: '';
    position: absolute;
    top: 0;
    right: -5px;
    width: 5px;
    height: 100%;
    background-color: transparent;
    border-radius: 0 5px 5px 0;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}

#modeSelector.hidden::after {
    opacity: 1;
}

#walkingTourModal .modal-content {
    max-width: 300px;
}

#tourSelector {
    width: 100%;
    margin: 10px 0;
    padding: 5px;
}

#overlayLogo {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
}

#startButton, #submitCode, #buyCode, #submitCode, #showBuyCodeForm, #buyCodeSubmit, #backToCodeInput {
    padding: 10px 20px;
    font-size: 18px;
    background-color: #f89b31;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    margin: 10px 0;
}

#codeInput {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#socialIcons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

#socialIcons a {
    color: #f89b31;
    font-size: 24px;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 10px; /* Riduce lo spazio tra i pulsanti */
    margin-top: 20px;
    width: 100%;
}

#qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 20px;
    width: 100%;
}

.qr-code-button i {
    font-size: 24px;
    color: #007bff;
}

.qr-code-button span {
    font-size: 10px;
    margin-top: 5px;
    color: #007bff;
}

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

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#qrCodeDisplay {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

#button-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
}

#qrCodeDisplay img {
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

#accessCodeDisplay {
    margin-top: 10px;
    font-weight: bold;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    align-self: flex-end;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Stili per il walking tour */
.tour-image-container {
    width: 100%;
    max-width: 300px;
    max-height: 200px;
    overflow: hidden;
    margin-bottom: 15px;
}

.tour-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 200px;
}

#tourName {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.5em;
}

#tourDescription {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.6;
}

.tour-info {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin: 15px 0 !important;
}

.tour-info > * {
    flex: 1 1 33% !important; /* Distribuisce equamente lo spazio */
    text-align: center !important;
    font-size: 14px !important; /* Aumenta la dimensione del testo */
    white-space: nowrap !important; /* Previene il wrapping del testo */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.tour-info i {
    font-size: 18px !important; /* Aumenta la dimensione delle icone */
    margin-right: 5px !important;
}

#tourDifficulty span {
    color: #ffd700;
    letter-spacing: 2px;
}

.primary-button, .secondary-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    flex: 1;
    margin: 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.primary-button {
    background-color: #f89b31;
    color: white;
}

.secondary-button {
    background-color: #f0f0f0;
    color: #333;
}

.primary-button:hover {
    background-color: #f89b31;
}

.secondary-button:hover {
    background-color: #e0e0e0;
}

#startTourButton, #backToTourSelection {
    flex: 1 1 48% !important; /* Distribuisce equamente lo spazio */
    padding: 12px 5px !important;
    font-size: 16px !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    text-align: center !important;
    margin: 0 5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#startTourButton {
    background-color: #f89b31 !important;
    color: white !important;
}

#backToTourSelection {
    background-color: #f0f0f0 !important;
    color: #333 !important;
}


#startTourButton:hover {
    background-color: #f89b31;
}

#backToTourSelection:hover {
    background-color: #e0e0e0;
}

/* Media query per schermi più piccoli */
@media (max-width: 320px) {
    .tour-image-container {
        max-width: 100%;
        max-height: 150px;
    }

    .tour-image {
        max-height: 150px;
    }

    #tourName {
        font-size: 1.2em;
    }

     .tour-info > * {
        font-size: 12px !important;
    }

    .tour-info i {
        font-size: 16px !important;
    }

    .button-container {
        flex-direction: column;
    }

    .primary-button, .secondary-button {
        margin: 5px 0;
        width: 100%;
    }

    #startTourButton, #backToTourSelection {
        font-size: 14px !important;
        padding: 10px 3px !important;
    }
}

/* Stili per il modal del walking tour */
#walkingTourDetails .modal-content {
    max-width: 400px;
    width: 90%;
    padding: 20px;
    box-sizing: border-box;
}

#walkingTourDetails .tour-info {
    flex-wrap: nowrap;
    justify-content: space-between;
    margin: 15px 0;
}

#walkingTourDetails .tour-info p {
    flex: 1;
    text-align: center;
    font-size: 0.8em;
}

#walkingTourDetails .tour-info i {
    margin-right: 5px;
}

#walkingTourDetails .button-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 20px;
}

#walkingTourDetails .primary-button,
#walkingTourDetails .secondary-button {
    flex: 1;
    margin: 0 5px;
}

/* Responsive design per il modal del walking tour */
@media (max-width: 480px) {
    #walkingTourDetails .modal-content {
        width: 95%;
        padding: 15px;
    }

    #walkingTourDetails .tour-info {
        flex-direction: column;
    }

    #walkingTourDetails .tour-info p {
        width: 100%;
        text-align: left;
        margin: 5px 0;
    }

    #walkingTourDetails .button-container {
        flex-direction: column-reverse;
    }

    #walkingTourDetails .primary-button,
    #walkingTourDetails .secondary-button {
        width: 100%;
        margin: 5px 0;
    }
}

.walking-man-icon {
    background: none;
    border: none;
    font-size: 30px;
    text-align: center;
    line-height: 30px;
}

.walking-man-gif {
    width: 40px;  
    height: 40px; 
}

.tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
}

.tour-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.tour-item:hover {
    transform: scale(1.05);
}

.tour-icon {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 10px;
}

.tour-name {
    text-align: center;
    font-weight: bold;
}

#walkingTourModal .modal-content {
    max-width: 80%;
    width: auto;
}

.modal-content {
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
}

.tour-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 10px;
}

.tour-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.2s;
}

.tour-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tour-icon {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.tour-name {
    text-align: center;
    font-weight: bold;
    margin-top: 5px;
}

@media (max-width: 600px) {
    .tour-grid {
        grid-template-columns: 1fr;
    }
}

/* Stili per l'overlay di caricamento */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    margin-top: 10px;
    font-size: 18px;
}

.map-control-button {
    background-color: white;
    border: 2px solid #ccc;
    border-radius: 4px;
    padding: 5px 10px;
    margin: 5px;
    cursor: pointer;
    font-size: 16px;
}

.map-control-button:hover {
    background-color: #f0f0f0;
}

/* Stile esistente per il contenitore delle opzioni di lingua */
#languageOptions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

/* Stile esistente per ogni opzione di lingua */
.language-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 18px;
}

.language-option:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

.language-option .flag-icon {
    margin-right: 15px;
    font-size: 24px;
}

#languageModal .modal-content {
    max-height: 80vh;
    overflow-y: auto;
}

/* Media query per schermi più piccoli */
@media (max-width: 480px) {
    #languageModal .modal-content {
        width: 90%;
        max-width: 300px;
        padding: 15px;
        margin: 10% auto;
    }

    #languageOptions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .language-option {
        font-size: 16px;
        padding: 10px;
    }

    .language-option .flag-icon {
        font-size: 20px;
        margin-right: 10px;
    }
}

/* Media query per schermi molto piccoli */
@media (max-width: 320px) {
    #languageModal .modal-content {
        width: 95%;
        padding: 10px;
    }

    .language-option {
        font-size: 14px;
        padding: 8px;
    }

    .language-option .flag-icon {
        font-size: 18px;
        margin-right: 8px;
    }
}

.tour-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
    align-items: center;
}

.tag-label {
    font-weight: bold;
    margin-right: 5px;
}

.tour-tag {
    background-color: #f0f0f0;
    color: #333;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.tour-tag:hover {
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

.walking-man-icon {
    background: none;
    border: none;
}

.walking-man-gif {
    width: 40px;
    height: 40px;
}

.walking-time {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.route-info {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1000;
}

.route-stats {
    display: flex;
    gap: 20px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat i {
    color: #f89b31;
}

#allMode.active {
    background-color: #f89b31;
    color: white;
}

.walking-man-icon {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.walking-man-icon div {
    background: none !important;
    border: none !important;
}

.leaflet-marker-icon.walking-man-icon {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.marker-cluster {
    background-clip: padding-box;
    border-radius: 20px;
}

.marker-cluster div {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    text-align: center;
    border-radius: 15px;
    font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-cluster-small {
    background-color: rgba(74, 135, 238, 0.3);
}

.marker-cluster-small div {
    background-color: rgba(74, 135, 238, 0.7);
    color: white;
}

.marker-cluster-medium {
    background-color: rgba(74, 135, 238, 0.4);
}

.marker-cluster-medium div {
    background-color: rgba(74, 135, 238, 0.8);
    color: white;
}

.marker-cluster-large {
    background-color: rgba(74, 135, 238, 0.5);
}

.marker-cluster-large div {
    background-color: rgba(74, 135, 238, 0.9);
    color: white;
}

.leaflet-tooltip.centered-tooltip {
    padding: 8px 12px;
    background-color: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
    min-width: 150px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.poi-tooltip-container {
    text-align: left;
    line-height: 1.2;
}

.poi-tooltip-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.poi-tooltip-category {
    font-size: 12px;
    font-weight: 400;
    color: #666;
}

/* Rimuovi la freccia del tooltip */
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
    display: none;
}

/* Stile per i tooltip nei cluster */
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: white;
    color: #333;
    font-weight: 600;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Aggiusta l'offset verticale del tooltip */
.leaflet-tooltip {
    margin-top: -5px;
}

/* Effetto hover sul tooltip */
.leaflet-tooltip.centered-tooltip:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Stili base del form */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

/* Stili per la sezione privacy */
.privacy-section {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.consent-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.consent-option:last-child {
    margin-bottom: 0;
}

.consent-option input[type="checkbox"] {
    margin-top: 2px;
}

.consent-option label {
    font-size: 14px;
    line-height: 1.4;
}

/* Box informativo */
.info-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
}

.info-box h3 {
    font-size: 16px;
    margin: 0 0 8px 0;
}

.info-box p {
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
    color: #666;
}

/* Pulsanti */
.button-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn.primary {
    background-color: #f89b31;
    color: white;
}

.btn.secondary {
    background-color: #f0f0f0;
    color: #333;
}

.btn:hover {
    opacity: 0.9;
}

/* Link della privacy */
.privacy-link {
    color: #f89b31;
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* Info message */
.info-message {
    background-color: #f0f7ff;
    border-left: 4px solid #f89b31;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.4;
}

/* Versione mobile */
@media (max-width: 480px) {
    #buyCodeSection {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        margin: 0;
        padding: 15px 15px 60px 15px;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        background: white;
    }

    .form-title {
        font-size: 20px;
        font-weight: bold;
        margin: 0 0 8px 0;
    }

    .info-message {
        font-size: 13px;
        padding: 8px;
        margin-bottom: 10px;
        background-color: #f0f7ff;
        border-left: 3px solid #f89b31;
    }

    .form-input {
        height: 40px;
        padding: 0 12px;
        font-size: 14px;
    }

    .privacy-section {
        padding: 8px;
        margin: 5px 0;
    }

    .consent-option {
        margin-bottom: 5px;
    }

    .consent-option label {
        font-size: 13px;
    }

    .info-box {
        padding: 8px;
        margin: 5px 0;
        font-size: 13px;
    }

    .info-box h3 {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .info-box p {
        font-size: 13px;
    }

    .button-row {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 10px;
        background: white;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
        margin: 0;
        display: flex;
        gap: 10px;
    }

    .btn {
        height: 40px;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Ottimizzazioni per schermi molto piccoli */
@media (max-height: 600px) {
    #buyCodeSection {
        padding: 10px 10px 50px 10px;
    }

    .form-title {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .info-message {
        padding: 6px;
        margin-bottom: 8px;
        font-size: 12px;
    }

    .form-input {
        height: 36px;
    }

    .privacy-section {
        padding: 6px;
    }

    .consent-option label {
        font-size: 12px;
    }

    .info-box {
        padding: 6px;
    }

    .button-row {
        padding: 8px;
    }

    .btn {
        height: 36px;
        font-size: 13px;
    }
}


.search-input-container {
    position: relative;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    background: white;
    display: flex;
    align-items: center;
}


#searchInput:focus {
    border-color: #f89b31;
    background-color: white;
}

.close-search {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 2;
}

.close-search:hover {
    background-color: #f0f0f0;
    color: #333;
}

#searchInput::placeholder {
    color: #999;
    opacity: 1;
}

.search-results {
    overflow-y: auto;
    max-height: calc(80vh - 180px);
    padding: 8px 0;
}

.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.result-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 15px;
}

.result-category {
    font-size: 13px;
    color: #666;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
    font-size: 14px;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    z-index: 1500;
    -webkit-overflow-scrolling: touch; /* Per uno scrolling fluido su iOS */
}

.search-container {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-height: calc(80vh - 100px);
    display: flex;
    flex-direction: column;
    transform: translateZ(0); /* Previene problemi di rendering su mobile */
}

#searchInput {
    width: 100%;
    height: 40px;
    padding: 8px 40px 8px 12px;
    font-size: 16px !important; /* Previene lo zoom automatico su iOS */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    background-color: #f8f9fa;
    -webkit-appearance: none; /* Rimuove lo stile nativo su iOS */
    -moz-appearance: none;
    appearance: none;
}

@media (max-width: 480px) {
   
     .search-overlay {
        padding-top: 40px; /* Riduce il padding superiore su mobile */
        align-items: flex-start;
    }

    .search-container {
        height: auto;
        max-height: 80vh;
        margin: 0;
    }

    .search-results {
        max-height: calc(70vh - 60px);
        -webkit-overflow-scrolling: touch;
    }
    
    .search-input-container {
        padding: 8px 12px;
    }

    #searchInput {
        height: 36px;
        font-size: 15px;
        padding: 8px 35px 8px 10px;
    }

    .close-search {
        right: 15px;
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}

#modeSelector {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 0 15px 15px 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

.mode-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 5px 0;
    width: 60px;
    height: 60px;
    text-align: center;
}

.mode-button.active {
    background-color: #f89b31;
    color: white;
}

.mode-button i {
    font-size: 24px;
    margin-bottom: 5px;
}

.mode-button span {
    font-size: 10px;
    line-height: 1.2;
    font-weight: bold;
}

.control-button {
    background-color: white;
    border: 2px solid #f89b31;
    margin: 5px 0;
}

.control-button:hover {
    background-color: #f0f0f0;
}

#langSelect {
    padding: 8px;
}

#langSelect .flag-icon {
    font-size: 24px;
}

#centerMapButton {
    padding: 8px;
}

#centerMapButton i {
    margin: 0;
}

#langSelect, #centerMapButton {
    height: 40px !important; /* Altezza ridotta */
    min-height: 40px !important;
    padding: 5px !important;
    margin: 2px 0 !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    border: none !important;
}

#langSelect .flag-icon {
    font-size: 18px !important; /* Icona bandiera più piccola */
}

#centerMapButton i {
    font-size: 18px !important; /* Icona centraggio più piccola */
    margin: 0 !important;
    color: #f89b31 !important;
}

/* Stili per il pulsante di navigazione nel popup POI */
.poi-navigation-button {
    background-color: #f89b31;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.poi-navigation-button:hover {
    background-color: #f8ca2a;
    transform: translateY(-1px);
}

.poi-navigation-button:active {
    transform: translateY(0);
}

.poi-navigation-button i {
    font-size: 18px;
}

/* Stile per il pulsante quando il percorso è attivo */
.poi-navigation-button.active {
    background-color: #dc3545;
}

.poi-navigation-button.active:hover {
    background-color: #c82333;
}

/* Responsive design */
@media (max-width: 480px) {
    .poi-navigation-button {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .poi-navigation-button i {
        font-size: 16px;
    }
}

.premium-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border: 2px solid #f89b31;
    border-radius: 30px;
    width: 160px;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s;
}

.premium-button:hover {
    background-color: #f89b31;
}

.premium-button i {
    font-size: 24px;
    color: #f89b31;
    margin-bottom: 4px;
}

.premium-button span {
    font-size: 12px;
    color: #black;
}

.premium-button:hover i,
.premium-button:hover span {
    color: white;
}

.disabled-mode {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.tour-item.demo-locked {
    cursor: pointer;
    position: relative;
}

.tour-item.demo-locked:hover {
    transform: none;
    box-shadow: none;
}

.tour-item.demo-locked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.tour-item.demo-locked .fa-lock {
    font-size: 20px;
    z-index: 2;
}
.modal-close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 24px;
    cursor: pointer;
    color: #666;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(0,0,0,0.1);
    color: #333;
}

.interface-container {
    position: relative;
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 300px;
    width: 90%;
    max-height: 80%;
    overflow-y: auto;
}

.premium-button {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border: 2px solid #f89b31;
    border-radius: 30px;
    width: 100px; /* Ridotto da 160px a 100px */
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s;
    padding: 5px;
}

.premium-button i {
    font-size: 20px; /* Leggermente ridotto se necessario */
    color: #f89b31;
    margin-bottom: 2px;
}

.premium-button span {
    font-size: 11px; /* Ridotto da 12px a 11px */
    color: black;
    text-align: center;
    line-height: 1.2;
    white-space: normal; /* Permette il wrap del testo */
    width: 100%; /* Assicura che il testo usi tutta la larghezza disponibile */
}

#logoContainer {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    padding: 5px;
    border-radius: 5px;
}

#logoContainer img {
    width: 80px; /* Ridotto da 120px a 80px */
    height: auto;
}

.left-controls-up {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.left-controls-down {
    position: fixed;
    top: 80px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.control-button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-button:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 7px rgba(0,0,0,0.25);
}
/* Stili per i marker degli eventi */
.event-tooltip {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid #ff4444 !important;
    padding: 8px 12px !important;
}

.event-tooltip .poi-tooltip-name {
    color: #ff4444;
    font-weight: bold;
}

.event-tooltip .poi-tooltip-category {
    color: #666;
    font-size: 12px;
    margin-top: 2px;
}

/* Stili per il popup degli eventi */
.event-date {
    
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    display: inline-block;
    margin: 10px 0;
    font-size: 14px;
}

/* Stili per il pulsante degli eventi nel menu laterale */
#eventsMode.mode-button {
    position: relative;
}

#eventsMode.mode-button.active {
    
    color: white;
}

#eventsMode.mode-button i {
    font-size: 24px;
    margin-bottom: 5px;
}

/* Stili per il cluster di eventi */
.marker-cluster-event {
    background-color: rgba(255, 68, 68, 0.6);
}

.marker-cluster-event div {
    background-color: rgba(255, 68, 68, 0.8);
    color: white;
}

/* Animazione per gli eventi in arrivo */
.upcoming-event {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Stile per la galleria di immagini degli eventi */
.event-gallery {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin: 10px 0;
}

.event-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-gallery img:hover {
    transform: scale(1.05);
}

/* Stili per le date degli eventi */
.event-dates {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
    font-size: 14px;
}

.event-dates i {
    color: #ff4444;
}

/* Stili per il popup degli eventi */
.event-popup-content {
    max-width: 400px;
    padding: 20px;
}

.event-description {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 10px 0;
    text-align: justify;
}

.event-category {
    display: inline-block;
    background-color: #f0f0f0;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}




/* Contenitore per le informazioni dell'evento */
.event-info-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
}

/* Stili per la data dell'evento */
.event-dates {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background-color: white;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
}

/* Stili per il prezzo dell'evento */
.event-price {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background-color: #f89b31;
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.event-dates i,
.event-price i {
    font-size: 16px;
}




/* Stili per la galleria di immagini */
.poi-gallery {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin: 10px 0;
}

.poi-gallery img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    transition: opacity 0.3s ease;
}

.poi-gallery img.active {
    display: block;
}

.gallery-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.gallery-control:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.gallery-control.prev {
    left: 10px;
}

.gallery-control.next {
    right: 10px;
}
#todayButton {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center; /* Cambiato da flex-start a center */
    background-color: white;
    border: 2px solid #f89b31;
    border-radius: 25px;
    padding: 8px 15px; /* Ridotto il padding orizzontale */
    min-width: 120px; /* Ridotta la larghezza minima */
    height: 45px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    gap: 8px; /* Ridotto lo spazio tra icona e testo */
}

#todayButton i {
    font-size: 18px; /* Leggermente ridotta la dimensione dell'icona */
    color: #f89b31;
    display: flex; /* Assicura un migliore allineamento verticale */
    align-items: center;
}

#todayButton span {
    color: #f89b31;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    display: flex; /* Assicura un migliore allineamento verticale */
    align-items: center;
}

#todayButton:hover {
    background-color: #f89b31;
    transform: translateX(-50%) scale(1.02);
}

#todayButton:hover i,
#todayButton:hover span {
    color: white;
}

@media (max-width: 480px) {
    #todayButton {
        min-width: 110px; /* Ulteriormente ridotta per mobile */
        padding: 8px 12px;
        height: 40px;
    }

    #todayButton i {
        font-size: 16px;
    }

    #todayButton span {
        font-size: 13px;
    }
}

@media (max-width: 320px) {
    #todayButton {
        min-width: 90px;
        padding: 6px 10px;
    }

    #todayButton span {
        font-size: 12px;
    }
}

/* Aggiungi questi stili al tuo file style.css */

.event-list-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(60px);
    background-color: white;
    border: 2px solid #f89b31;
    border-radius: 25px;
    padding: 8px 15px;
    height: 45px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.event-list-button i {
    font-size: 18px;
    color: #f89b31;
}

.event-list-button span {
    color: #f89b31;
    font-size: 14px;
    font-weight: 500;
}

.event-list-button:hover {
    background-color: #f89b31;
}

.event-list-button:hover i,
.event-list-button:hover span {
    color: white;
}

.event-list-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
}

.event-list-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.event-list-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-list-title {
    font-size: 1.5em;
    font-weight: bold;
    margin: 0;
}

.event-list-sort {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 15px;
}

.event-list-close {
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.event-list-container {
    overflow-y: auto;
    flex-grow: 1;
    padding: 0;
}

.event-group-header {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    padding: 10px 20px;
    font-weight: bold;
    z-index: 1;
    border-bottom: 1px solid #eee;
}

.event-item {
    position: relative;
    height: 100px;
    cursor: pointer;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.event-item:hover {
    background-color: rgba(74, 135, 238, 0.05);
}

.event-item-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    background-size: cover;
    background-position: center;
}

.event-item-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, white, white 30%, transparent);
}

.event-item-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    color: #333;
}

.event-item-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 8px 0;
}

.event-item-date {
    font-size: 14px;
    color: #666;
}

@media (max-width: 480px) {
    .event-list-button {
        transform: translateX(50px);
        padding: 6px 12px;
        height: 40px;
    }

    .event-list-button i {
        font-size: 16px;
    }

    .event-list-button span {
        font-size: 13px;
    }

    .event-list-content {
        width: 95%;
        max-height: 90vh;
    }

    .event-item {
        height: 80px;
    }

    .event-item-title {
        font-size: 16px;
    }

    .event-item-date {
        font-size: 13px;
    }
}

.today-button {
    position: fixed;
    top: 20px; /* Cambiato da bottom a top */
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border: 2px solid #f89b31;
    border-radius: 25px;
    padding: 8px 15px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    min-width: 120px;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Aggiunto ombra leggera per migliore visibilità sulla mappa */
}

.today-button i {
    color: #f89b31;
    font-size: 18px;
}

.today-button span {
    color: #f89b31;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.today-button:hover {
    background-color: #f89b31;
}

.today-button:hover i,
.today-button:hover span {
    color: white;
}

/* Stili per schermi più piccoli */
@media (max-width: 480px) {
    .today-button {
        top: 10px; /* Ridotto il margine superiore su mobile */
        height: 40px;
        min-width: 100px;
        padding: 8px 12px;
    }
    
    .today-button span {
        font-size: 13px;
    }
    
 #todayButton {
        transform: translateX(calc(-50% - 45px)) !important; /* Ridotto per schermi piccoli */
    }
    
    #eventListButton {
        transform: translateX(calc(-50% + 45px)) !important; /* Ridotto per schermi piccoli */
    }
}

/* Stili per schermi molto piccoli */
@media (max-width: 360px) {
    .today-button {
        min-width: 90px;
        padding: 8px 10px;
    }
    
    .today-button span {
        font-size: 12px;
    }
    
    #todayButton {
        transform: translateX(calc(-50% - 30px)) !important; /* Ulteriormente ridotto per schermi molto piccoli */
    }
    
    #eventListButton {
        transform: translateX(calc(-50% + 30px)) !important; /* Ulteriormente ridotto per schermi molto piccoli */
    }
}

#todayButton {
    transform: translateX(calc(-50% - 65px)) !important; /* Aumentato da -60px a -80px */
}

#eventListButton {
    transform: translateX(calc(-50% + 65px)) !important; /* Aumentato da +60px a +80px */
}

/* Modifica l'opacità dell'immagine di sfondo nella lista eventi */
.event-item-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 90; /* Aumentato da 0.2 a 0.4 per rendere l'immagine più visibile */
    background-size: cover;
    background-position: center;
}

/* Assicuriamo che entrambi i pulsanti abbiano esattamente le stesse dimensioni e posizionamento */
.today-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border: 2px solid #f89b31;
    border-radius: 25px;
    padding: 8px 15px;
    height: 45px; /* Altezza fissa per entrambi i pulsanti */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    min-width: 120px;
    box-sizing: border-box; /* Importante per mantenere le dimensioni coerenti */
}

/* Assicuriamo che i contenuti dei pulsanti siano allineati allo stesso modo */
.today-button i,
.today-button span {
    line-height: 1; /* Allineamento coerente del testo e delle icone */
    display: flex;
    align-items: center;
}

@media (max-width: 480px) {
    .today-button {
        height: 40px; /* Altezza ridotta ma uguale per entrambi su mobile */
        min-width: 100px;
        padding: 8px 12px;
    }
    
    .today-button i {
        font-size: 16px; /* Dimensione icona coerente */
    }
    
    .today-button span {
        font-size: 13px; /* Dimensione testo coerente */
    }
}

/* Sistemazione sfumatura testo sull'immagine */
.event-item-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 0.95) 30%, 
        rgba(255, 255, 255, 0.6) 60%, 
        rgba(255, 255, 255, 0.4) 100%
    );
}

/* Stili per i pulsanti di ordinamento */
.sort-buttons {
    display: flex;
    gap: 10px;
    margin-right: 15px;
}

.sort-button {
    padding: 8px 16px;
    border: 2px solid #f89b31;
    border-radius: 20px;
    background-color: white;
    color: #f89b31;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sort-button.active {
    background-color: #f89b31;
    color: white;
}

/* Stili responsive */
@media (max-width: 480px) {
    .sort-button {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .event-list-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .sort-buttons {
        width: 100%;
        justify-content: center;
        margin-right: 0;
        order: 2;
    }
    
    .event-list-close {
        order: 1;
    }
}

/* Stili per il modal della lista eventi */
.event-list-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    box-sizing: border-box;
}

.event-list-content {
    position: relative;
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 300px;
}

.event-list-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.event-list-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    padding-right: 40px; /* Spazio per il pulsante di chiusura */
}

.event-list-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.event-list-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.sort-buttons {
    display: flex;
    gap: 10px;
    padding: 0 20px 15px;
    border-bottom: 1px solid #eee;
}

.sort-button {
    padding: 8px 16px;
    border: 2px solid #f89b31;
    border-radius: 20px;
    background-color: white;
    color: #f89b31;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sort-button.active {
    background-color: #f89b31;
    color: white;
}

.event-list-container {
    flex: 1;
    overflow-y: auto;
}

/* Stili responsive */
@media (max-width: 480px) {
    .event-list-content {
        width: 95%;
        max-height: 90vh;
        /* Manteniamo le stesse proprietà di posizionamento anche su mobile */
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .event-list-title {
        font-size: 20px;
    }

    .sort-button {
        padding: 6px 12px;
        font-size: 13px;
    }
}

.event-list-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
}

.event-list-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.event-list-header {
    padding: 20px;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.event-list-title {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.event-list-close {
    cursor: pointer;
    font-size: 24px;
    color: #666;
    margin-left: 20px;
}

.sort-buttons {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #eee;
    background: white;
}

.event-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}

/* Desktop styles */
@media (min-width: 481px) {
    .event-list-content {
        height: auto;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    .event-list-content {
        width: calc(100% - 40px); /* 20px padding on each side */
        max-height: 85vh;
    }
    
    .event-list-header {
        padding: 15px;
    }
    
    .event-list-title {
        font-size: 20px;
    }
    
    .sort-buttons {
        padding: 10px 15px;
    }
}

/* Sort buttons styles */
.sort-button {
    flex: 1;
    padding: 10px;
    border: 2px solid #f89b31;
    border-radius: 20px;
    background-color: white;
    color: #f89b31;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.sort-button.active {
    background-color: #f89b31;
    color: white;
}

.sort-button i {
    font-size: 16px;
}

@media (max-width: 480px) {
    .sort-button {
        padding: 8px;
        font-size: 13px;
    }
}

.event-list-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
}

.event-list-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.event-list-header {
    padding: 20px;
    background: white;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-list-title {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.event-list-close {
    cursor: pointer;
    font-size: 24px;
    color: #666;
}

.sort-buttons {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    background: white;
    border-bottom: 1px solid #eee;
    position: relative; /* Assicura che rimanga sotto l'header */
}

.sort-button {
    flex: 1;
    padding: 10px;
    border: 2px solid #f89b31;
    border-radius: 20px;
    background-color: white;
    color: #f89b31;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.sort-button.active {
    background-color: #f89b31;
    color: white;
}

.sort-button i {
    font-size: 16px;
}

.event-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}

/* Stili per mobile e desktop */
@media screen and (max-width: 480px) {
    .event-list-content {
        width: calc(100% - 40px);
        max-height: 85vh;
    }
    
    .event-list-header {
        padding: 15px;
    }
    
    .event-list-title {
        font-size: 20px;
    }
    
    .sort-buttons {
        padding: 10px 15px;
    }
    
    .sort-button {
        padding: 8px;
        font-size: 13px;
    }
}

.event-list-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0,5);
    z-index: 2000;
    display: none;
}

.event-list-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.event-list-content header {
    background: white;
    border-bottom: 1px solid #eee;
}

.event-list-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-list-title {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.event-list-close {
    cursor: pointer;
    font-size: 24px;
    color: #666;
}

.sort-buttons {
    padding: 0 20px 15px;
    display: flex;
    gap: 10px;
    background: white;
    margin: 0 auto; /* Centra i pulsanti */
    width: calc(100% - 40px); /* Larghezza controllata con padding */
    box-sizing: border-box; /* Include padding nel calcolo della larghezza */
}

.sort-button {
    flex: 1;
    padding: 10px;
    border: 2px solid #f89b31;
    border-radius: 20px;
    background-color: white;
    color: #f89b31;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
    white-space: nowrap; /* Previene il wrap del testo */
    min-width: 0; /* Permette ai pulsanti di ridursi se necessario */
}

.sort-button.active {
    background-color: #f89b31;
    color: white;
}

.event-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

@media screen and (max-width: 480px) {
    .event-list-content {
        width: calc(100% - 40px);
        max-height: 85vh;
    }
    
    .event-list-header {
        padding: 15px;
    }
    
    .event-list-title {
        font-size: 20px;
    }
    
    .sort-buttons {
        padding: 0 15px 10px;
        width: calc(100% - 30px);
    }
    
    .sort-button {
        padding: 8px;
        font-size: 13px;
    }
    
    /* Riduci la dimensione dell'icona se necessario */
    .sort-button i {
        font-size: 14px;
    }
}



/* Info container (data e prezzo) */
.event-info-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.event-dates {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.event-dates i {
    color: #f89b31;
    font-size: 18px;
}

.event-price {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white; /* Testo bianco */
    background-color: #f89b31; /* Sfondo blu */
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.event-price i {
    color: white; /* Icona bianca */
}

/* Descrizione */
.event-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Pulsante navigazione */
.poi-navigation-button {
    width: 100%;
    padding: 14px;
    background: #f89b31;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.poi-navigation-button:hover {
    background: #edc744;
}

/* Pulsante chiusura */
.close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 3;
}

@media (max-width: 480px) {
    .event-popup-content {
        padding: 15px;
    }
    
    .poi-gallery {
        height: 200px;
    }
    
    .poi-title {
        font-size: 20px;
        margin-bottom: 0px;
    }
    
    .event-info-container {
        flex-wrap: wrap;
        gap: 15px;
    }
}

.event-info-container {
    display: flex;
    flex-direction: column;
    background-color: #f5f7fa;
    border-radius: 10px;
    
}

/* Contenitore per data e prezzo */
.date-price-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.event-dates {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.event-dates i {
    color: #f89b31;
    font-size: 18px;
}

.event-price {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    background-color: #f89b31;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.event-price i {
    color: white;
}

.event-address {
    display: flex;
    align-items: flex-start;
    color: #666;
    
}

.event-address i {
    color: #f89b31;
    font-size: 18px;
}

@media (max-width: 480px) {
    .event-info-container {
        padding: 12px;
        gap: 8px;
    }
    
    .date-price-container {
        gap: 15px;
    }
}

.poi-popup-content {
    padding: 15px;
}

.poi-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #333;
}

.poi-gallery {
    width: 100%;
    height: 200px;  /* Ridotta l'altezza */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.event-info-container {
    padding: 12px;
    margin: 0 0 15px 0;
    background-color: #f5f7fa;
    border-radius: 8px;
}

.date-price-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.event-dates {
    font-size: 14px;
}

.event-price {
    font-size: 14px;
    padding: 4px 10px;
}

.event-address {
    
    font-size: 14px;
}

.event-description {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #666;
}

.poi-navigation-button {
    padding: 12px;
    margin: 0;
}

/* Riduce ulteriormente gli spazi su mobile */
@media (max-width: 480px) {
    .poi-popup-content {
        padding: 12px;
    }

    .poi-title {
        font-size: 20px;
        margin: 0 0 12px 0;
    }

    .poi-gallery {
        height: 180px;
        margin-bottom: 12px;
    }

    .event-info-container {
        padding: 10px;
        margin: 0 0 12px 0;
    }
}

.event-info-container {
    padding: 12px;
    margin: 0 0 15px 0;
    background-color: #f5f7fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px; /* Ridotto lo spazio tra gli elementi */
}

.date-price-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2px; /* Ridotto il margine inferiore */
}

.event-address {
        font-size: 14px;
}

.leaflet-control-zoom {
    display: none;
}

/* Ensure this doesn't affect other map controls */
.leaflet-control-attribution {
    display: block !important;
}

.leaflet-control-layers {
    display: block !important;
}

/* Contenitore del logo con altezza fissa */
#logoContainer {
    position: absolute;
    top: 110px;
    right: 10px;
    width: 120px;
    height: 40px; /* Altezza fissa per il contenitore */
    background: rgba(255, 255, 255, 0.7);
    padding: 5px;
    border-radius: 5px;
    z-index: 1000;
    box-sizing: border-box;
    overflow: hidden; /* Nasconde qualsiasi contenuto che eccede */
    display: flex;
    align-items: center;
    justify-content: center;
}

#logoContainer img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

#birthYear {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 16px;
}

#birthYear option {
    font-size: 16px;
    padding: 5px;
}
.voucher-acceptance-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0px;
    padding: 0px;
    background-color: #f8f9fa;
    border-radius: 6px;
    color: #f89b31;
    font-size: 14px;
}

.voucher-acceptance-info i {
    font-size: 16px;
}
.use-voucher-button {
    background-color: #f89b31;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    margin-top: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.use-voucher-button:hover {
    background-color: #f89b31;
    transform: scale(1.05);
}

.use-voucher-button i {
    font-size: 18px;
}
.use-voucher-button {
    background-color: #f89b31;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    margin-top: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.use-voucher-button:hover {
    background-color: #f89b31;
    transform: scale(1.02);
}

.use-voucher-button i {
    font-size: 18px;
}

/* Animazione per far apparire il pulsante */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.use-voucher-button {
    animation: fadeIn 0.3s ease-out;
}
.voucher-info {
    background-color: #f8f9fa;
    color: #f89b31;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.voucher-info i {
    font-size: 16px;
}
 .poi-ratings {
        display: flex;
        align-items: center;
        gap: 20px;
        margin: 15px 0;
        padding: 10px;
        background-color: #f8f9fa;
        border-radius: 8px;
    }

    .poi-like-button {
        display: flex;
        align-items: center;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        color: #666;
        transition: color 0.2s;
    }

    .poi-like-button.liked {
        color: #f89b31;
    }

    .poi-rating {
        display: flex;
        align-items: center;
        gap: 5px;
        cursor: pointer;
    }

    .poi-rating i {
        color: #ffd700;
    }

    /* Stili per il modal delle recensioni */
    .reviews-header {
        padding: 20px;
        border-bottom: 1px solid #eee;
    }

    .rating-summary {
        display: flex;
        gap: 30px;
        margin-top: 20px;
    }

    .average-rating {
        text-align: center;
    }

    .rating-number {
        font-size: 48px;
        font-weight: bold;
        color: #333;
    }

    .rating-bar-container {
        flex-grow: 1;
    }

    .rating-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 5px 0;
    }

    .bar-label {
        min-width: 20px;
    }

    .bar-outer {
        flex-grow: 1;
        background-color: #eee;
        height: 8px;
        border-radius: 4px;
    }

    .bar-inner {
        background-color: #f89b31;
        height: 100%;
        border-radius: 4px;
        transition: width 0.3s ease;
    }

    .bar-count {
        min-width: 40px;
        text-align: right;
    }

    .reviews-list {
        padding: 20px;
    }

    .review-item {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

    .review-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .review-author {
        font-weight: bold;
    }

    .review-date {
        color: #666;
        font-size: 0.9em;
    }

    .review-stars {
        color: #ffd700;
        margin-bottom: 5px;
    }

    .verified-review {
        display: inline-block;
        background-color: #f89b31;
        color: white;
        font-size: 0.8em;
        padding: 2px 6px;
        border-radius: 4px;
        margin-left: 8px;
    }

    /* Stili per la scrittura delle recensioni */
    .write-review-container {
        padding: 20px;
    }

    .star-rating {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .star-rating i {
        cursor: pointer;
        color: #ddd;
        transition: color 0.2s;
    }

    .star-rating i.active {
        color: #ffd700;
    }

    #reviewText {
        width: 100%;
        min-height: 100px;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        resize: vertical;
        margin-bottom: 10px;
    }

    .review-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .char-count {
        color: #666;
        font-size: 0.9em;
    }

    .submit-review-btn {
        background-color: #f89b31;
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .submit-review-btn:hover {
        background-color: #f89b31;
    }

    /* Responsive design */
    @media (max-width: 480px) {
        .rating-summary {
            flex-direction: column;
            gap: 15px;
        }

        .rating-number {
            font-size: 36px;
        }

        .review-controls {
            flex-direction: column;
            gap: 10px;
        }

        .char-count {
            order: 2;
        }
    }
    
    /* Stili per il sistema di recensioni in modalità demo */
.demo-mode .poi-ratings {
    pointer-events: none;
    opacity: 0.7;
}

.demo-mode .write-review-btn {
    display: none;
}

.demo-mode .poi-like-button {
    cursor: not-allowed;
}

/* Badge premium per le funzionalità bloccate */
.premium-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f89b31;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Animazioni per le interazioni */
.poi-like-button {
    transition: transform 0.2s, color 0.2s;
}

.poi-like-button:hover {
    transform: scale(1.1);
}

.poi-like-button.liked i {
    animation: heartBeat 0.3s ease-in-out;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Loading states */
.loading-reviews {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #666;
}

.loading-reviews::after {
    content: '';
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid #f89b31;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive design improvements */
@media (max-width: 480px) {
    .reviews-header {
        padding: 15px;
    }

    .rating-summary {
        flex-direction: column;
        align-items: center;
    }

    .reviews-list {
        padding: 15px;
    }

    .review-item {
        padding: 12px 0;
    }

    .write-review-container {
        padding: 15px;
    }

    .star-rating {
        font-size: 20px;
    }
}

/* Accessibility improvements */
.star-rating i:focus {
    outline: 2px solid #f89b31;
    border-radius: 4px;
}

.write-review-btn:focus,
.poi-like-button:focus {
    outline: 2px solid #f89b31;
    border-radius: 4px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .poi-ratings {
        background-color: #000;
        color: #fff;
    }

    .poi-like-button {
        color: #fff;
    }

    .review-stars i {
        color: #fff;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .poi-like-button,
    .poi-like-button.liked i {
        animation: none;
        transition: none;
    }
}
.poi-ratings {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 15px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    width: 100%; /* Assicurati che prenda tutta la larghezza */
}

.write-review-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #f89b31;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    margin-left: auto; /* Questo lo spingerà a destra */
}

.write-review-btn:hover {
    background-color: #f89b31;
}

.write-review-btn i {
    font-size: 16px;
}

/* Manteniamo gli stili esistenti per i like e le stelle */
.poi-like-button {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.poi-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.poi-rating i {
    color: #ffd700;
}
.poi-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.poi-rating:hover {
    opacity: 0.8;
}
/* Gallery controls styling */
.gallery-control {
    position: absolute;
    bottom: 10%;
    transform: none;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.gallery-control:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.gallery-control.prev {
    left: 20px;
}

.gallery-control.next {
    right: 20px;
}

/* Optional: Add a subtle transition when pressing the button */
.gallery-control:active {
    transform: translateY(-50%) scale(0.95);
}

/* Make sure the image container has relative positioning */
.popup-content {
    position: relative;
}

/* Optional: Add a fade effect for the buttons on hover over the image */
.popup-content:hover .gallery-control {
    opacity: 1;
}

.gallery-control {
    opacity: 0.7;
}

.premium-showcase {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.premium-price-banner {
    background-color: #f89b31;
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 100%;
}

.premium-price-banner .original-price {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

.premium-price-banner .current-price {
    font-size: 2em;
    font-weight: bold;
    margin: 5px 0;
}

.premium-features {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s;
}

.feature-item:hover {
    transform: translateY(-2px);
}

.feature-item i {
    color: #f89b31;
    font-size: 1.5em;
    margin-top: 2px;
}

.feature-item .feature-content {
    flex: 1;
}

.feature-item h3 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: #333;
}

.feature-item p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

.limited-offer {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
}

.limited-offer i {
    margin-right: 8px;
}

.proceed-button {
    background-color: #f89b31;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    margin-top: 10px;
}

.proceed-button:hover {
    background-color: #f89b31;
}

@media (max-width: 480px) {
    .premium-showcase {
        padding: 15px;
    }
    
    .feature-item {
        padding: 12px;
    }
    
    .premium-price-banner {
        padding: 15px;
    }
}

/* Animation for showcase appearance */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.premium-showcase {
    animation: slideIn 0.3s ease-out forwards;
}
.premium-showcase {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Stile specifico per la visualizzazione nel modal */
.interface-container .premium-showcase {
    padding: 0;
    margin: 20px 0;
    background: transparent;
    box-shadow: none;
    max-width: 100%;
}

/* Assicurati che il contenuto non si sovrapponga al pulsante di chiusura */
.modal-close + .premium-showcase {
    margin-top: 40px;
}

@media (max-width: 480px) {
    .interface-container .premium-showcase {
        margin: 10px 0;
    }
    
    .premium-showcase .feature-item {
        margin: 0 10px;
    }
}
.premium-showcase {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 15px;
    background: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px; /* Ridotto il gap tra gli elementi */
}

.premium-showcase img {
    width: 150px; /* Logo più piccolo di default */
    margin-bottom: 10px;
}

.premium-price-banner {
    background-color: #f89b31;
    color: white;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    width: 100%;
}

.premium-price-banner .current-price {
    font-size: 1.8em;
    font-weight: bold;
    margin: 2px 0;
}

.premium-price-banner p {
    margin: 2px 0;
    font-size: 0.9em;
}

.premium-features {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Gap ridotto tra le feature */
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    min-height: 0; /* Rimuove l'altezza minima */
}

.feature-item i {
    color: #f89b31;
    font-size: 1.2em;
    flex-shrink: 0;
}

.feature-item .feature-content {
    flex: 1;
}

.feature-item h3 {
    margin: 0;
    font-size: 0.9em;
    color: #333;
}

.feature-item p {
    margin: 2px 0 0 0;
    font-size: 0.8em;
    color: #666;
    line-height: 1.2;
}

.limited-offer {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    font-size: 0.85em;
}

.limited-offer p {
    margin: 0;
    line-height: 1.2;
}

.proceed-button {
    background-color: #f89b31;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    margin-top: 5px;
}

/* Ottimizzazioni specifiche per mobile */
@media (max-width: 480px) {
    .premium-showcase {
        padding: 10px;
        gap: 8px;
        margin: 10px 0;
    }

    .premium-showcase img {
        width: 120px; /* Logo ancora più piccolo su mobile */
        margin-bottom: 5px;
    }

    .premium-price-banner {
        padding: 8px;
    }

    .premium-price-banner .current-price {
        font-size: 1.6em;
    }

    .feature-item {
        padding: 6px 10px;
    }

    .feature-item i {
        font-size: 1.1em;
    }

    .feature-item h3 {
        font-size: 0.85em;
    }

    .feature-item p {
        font-size: 0.75em;
    }

    .limited-offer {
        padding: 6px 10px;
        font-size: 0.8em;
    }

    .proceed-button {
        padding: 10px 20px;
        font-size: 0.95em;
    }
}
.interface-container .premium-showcase {
    padding: 10px 15px;
    margin: 0; /* Rimosso il margine per sfruttare più spazio */
    gap: 10px;
    height: auto;
}

/* Riduci ulteriormente lo spazio occupato dal logo su mobile */
@media (max-width: 480px) {
    .premium-showcase img {
        width: 80px; /* Logo ancora più piccolo */
        margin-bottom: 5px;
    }

    .premium-showcase {
        gap: 8px; /* Gap ancora più piccolo tra gli elementi */
    }

    .feature-item {
        padding: 6px 8px; /* Padding ridotto */
    }

    .premium-price-banner {
        padding: 8px 6px;
    }
    
    .limited-offer {
        padding: 6px 8px;
        font-size: 0.75em; /* Testo leggermente più piccolo */
    }

    .proceed-button {
        padding: 10px;
        margin-top: 2px;
    }
}
.interface-container {
    width: 90%;
    max-width: 480px;
    padding: 15px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.premium-showcase {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    box-sizing: border-box;
    margin: 0;
}

.premium-price-banner,
.premium-features,
.feature-item,
.limited-offer,
.proceed-button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.feature-item {
    padding: 8px;
    margin: 0;
}

/* Gestione del testo lungo */
.feature-item h3,
.feature-item p,
.limited-offer p {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

@media (max-width: 480px) {
    .interface-container {
        width: 95%;
        padding: 10px;
    }

    .premium-showcase {
        padding: 5px;
    }

    .feature-item {
        padding: 6px;
    }

    /* Riduce la dimensione del testo per evitare overflow */
    .feature-item h3 {
        font-size: 0.85em;
    }

    .feature-item p {
        font-size: 0.75em;
    }

    .limited-offer {
        padding: 6px;
    }

    /* Assicura che il bottone non causi overflow */
    .proceed-button {
        width: 100%;
        padding: 10px;
        font-size: 0.9em;
    }
}
.modal-close,
.premium-showcase .back-button {
    position: absolute;
    top: 10px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 24px;
    cursor: pointer;
    color: #666;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close {
    right: 10px;
}

.premium-showcase .back-button {
    left: 10px;
}

.modal-close:hover,
.premium-showcase .back-button:hover {
    background-color: rgba(0,0,0,0.1);
    color: #333;
}

.premium-showcase .back-button i {
    font-size: 20px;
}

.interface-container {
    position: relative;
    padding-top: 40px; /* Spazio per i pulsanti fixed */
}

.showcase-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
}

@media (max-width: 480px) {
    .modal-close,
    .premium-showcase .back-button {
        width: 28px;
        height: 28px;
    }

    .premium-showcase .back-button i {
        font-size: 18px;
    }
}
.back-button {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 24px;
    cursor: pointer;
    color: #666;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: rgba(0,0,0,0.1);
    color: #333;
}

.back-button i {
    font-size: 20px;
}

@media (max-width: 480px) {
    .back-button {
        width: 28px;
        height: 28px;
    }

    .back-button i {
        font-size: 18px;
    }
}
.modal-back {
    position: absolute;
    right: 50px; /* Posizionato a sinistra del pulsante di chiusura */
    top: 10px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 24px;
    cursor: pointer;
    color: #666;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-back:hover {
    background-color: rgba(0,0,0,0.1);
    color: #333;
}

.modal-back i {
    font-size: 20px;
}

/* Stili per mobile */
@media (max-width: 480px) {
    .modal-back {
        right: 45px;
        width: 28px;
        height: 28px;
    }

    .modal-back i {
        font-size: 18px;
    }
}
.premium-showcase {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.premium-price-banner {
    background-color: #f89b31;
    color: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    width: 100%;
}

.premium-features {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.feature-item i {
    color: #f89b31;
    font-size: 20px;
    margin-top: 2px;
}

.feature-item .feature-content {
    flex: 1;
}

.feature-item h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.feature-item p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.limited-offer {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
}

.proceed-button {
    background-color: #f89b31;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}

.proceed-button:hover {
    background-color: #f0c42e;
}

@media (max-width: 480px) {
    .premium-showcase {
        padding: 15px;
        gap: 12px;
    }

    .feature-item {
        padding: 10px;
    }

    .feature-item h3 {
        font-size: 14px;
    }

    .feature-item p {
        font-size: 12px;
    }
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-back {
    position: absolute;
    top: 15px;
    left: 15px; /* Cambiato da right a left */
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover,
.modal-back:hover {
    background-color: rgba(0,0,0,0.1);
    color: #333;
}

.modal-back i {
    font-size: 20px;
}

/* Assicuriamoci che i pulsanti stiano sopra tutto il resto */
.interface-container {
    position: relative;
}

/* Aggiustiamo il padding superiore della showcase per evitare sovrapposizioni */
.premium-showcase {
    padding-top: 60px !important;
}

@media (max-width: 480px) {
    .modal-close,
    .modal-back {
        top: 10px;
        width: 28px;
        height: 28px;
    }

    .modal-close {
        right: 10px;
    }

    .modal-back {
        left: 10px;
    }

    .modal-back i {
        font-size: 18px;
    }

    .premium-showcase {
        padding-top: 50px !important;
    }
}
.interface-container {
    position: relative;
}

/* Stili comuni per entrambi i pulsanti */
.modal-close,
.modal-back {
    position: absolute;
    top: 10px; /* Stessa posizione verticale */
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #333; /* Stesso colore per entrambi */
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 24px;
    padding: 0;
    margin: 0;
}

.modal-close {
    right: 10px;
}

.modal-back {
    left: 10px;
}

/* Stile hover comune */
.modal-close:hover,
.modal-back:hover {
    background-color: rgba(0,0,0,0.1);
}

/* Dimensione icone */
.modal-back i,
.modal-close i {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Assicuriamo che il contenuto non si sovrapponga */
.premium-showcase,
#buyCodeSection {
    padding-top: 50px !important;
    margin-top: 0 !important;
}

/* Nasconde il vecchio pulsante indietro */
#backToCodeInput {
    display: none !important;
}

/* Stili responsivi */
@media (max-width: 480px) {
    .modal-close,
    .modal-back {
        width: 28px;
        height: 28px;
    }

    .modal-back i,
    .modal-close i {
        font-size: 18px;
    }
}
.buy-code-section-active {
    position: relative;
    padding-top: 60px !important; /* Spazio per la navbar */
}

.modal-back,
.modal-close {
    position: fixed; /* Cambiato da absolute a fixed */
    top: 10px;
    height: 30px;
    width: 30px;
    z-index: 1001; /* Assicuriamoci che stia sopra tutto */
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-back {
    left: 10px;
}

.modal-close {
    right: 10px;
}

#buyCodeSection {
    position: relative;
    width: 100%;
    max-height: calc(100vh - 60px); /* Sottraiamo lo spazio della navbar */
    overflow-y: auto;
}

#userInfoTitle {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    margin: 0;
    padding: 0;
    width: auto;
}
.modal-navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
}

.modal-back,
.modal-close {
    position: absolute;
    top: 15px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

.modal-back {
    left: 15px;
}

.modal-close {
    right: 15px;
}

#userInfoTitle {
    margin: 0;
    padding: 0 40px;
    text-align: center;
}

.buy-code-section-active,
.premium-showcase {
    padding-top: 60px !important;
    position: relative;
}

.interface-container {
    position: relative;
    overflow: hidden;
}
#userInfoTitle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 15px;
    margin: 0;
    z-index: 1000;
    font-size: 20px;
    padding: 0 40px;
    text-align: center;
    white-space: nowrap;
}

.modal-back, .modal-close {
    position: absolute;
    top: 15px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.modal-back {
    left: 10px;
}

.modal-close {
    right: 10px;
}

#buyCodeSection input[type="text"],
#buyCodeSection input[type="email"],
#birthYear {
    width: 100%;
    padding: 10px;  /* Ridotto da 15px */
    height: 40px;   /* Altezza fissa più compatta */
    font-size: 16px;
    margin: 8px auto; /* Ridotto da 15px */
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Stile specifico per il select dell'anno */
#birthYear {
    background-color: white;
    -webkit-appearance: none;  /* Per iOS */
    -moz-appearance: none;     /* Per Firefox */
    appearance: none;          /* Standard */
    padding-right: 30px;       /* Spazio per l'icona */
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 5px center;
}

/* Aggiustamenti per mobile */
@media (max-width: 480px) {
    #buyCodeSection input[type="text"],
    #buyCodeSection input[type="email"],
    #birthYear {
        height: 36px;       /* Ancora più compatto su mobile */
        padding: 8px;       /* Padding ridotto */
        font-size: 14px;    /* Font più piccolo */
        margin: 6px auto;   /* Margini più stretti */
    }
}

.logout-button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #ff4444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.logout-button:hover {
    background-color: #cc0000;
}

.logout-button i {
    font-size: 16px;
}

.discount-badge {
    position: absolute;
    bottom: 5px;
    right: -27px;
    background: #ff4444;
    color: white;
    padding: 8px 30px;
    font-weight: bold;
    transform: rotate(-45deg);
    z-index: 2;
    font-size: 18px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.poi-gallery {
    position: relative;
    overflow: hidden;
}

.custom-pulsing-marker {
    background: none;
    border: none;
}

.pulsing-circle {
    width: 20px;
    height: 20px;
    background-color: #f89b31;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(74, 135, 238, 0.7);
    }
    70% {
        transform: scale(1);
        opacity: 0.7;
        box-shadow: 0 0 0 10px rgba(74, 135, 238, 0);
    }
    100% {
        transform: scale(0.5);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(74, 135, 238, 0);
    }
}

/* Stili per i marker completati */
.marker-completed {
    transition: all 0.3s ease;
}

.create-custom-tour-button {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    background-color: #f89b31;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    transition: background-color 0.3s;
    position: relative;
    overflow: hidden;
}

.create-custom-tour-button:hover {
    background-color: #f8ca2a;
}

.create-custom-tour-button i {
    font-size: 18px;
}

.create-custom-tour-button.demo-locked {
    opacity: 0.7;
    cursor: pointer;
}

.create-custom-tour-button.demo-locked:hover {
    background-color: #f89b31;
}
#customTourModal .modal-content {
    position: absolute;
    top: 45%; /* Leggermente più in alto del 50% */
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    height: auto;
    max-height: 80vh; /* Riduciamo leggermente l'altezza massima */
    overflow-y: auto;
    margin-top: 0; /* Rimuoviamo eventuali margini */
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;  /* Allinea verticalmente gli elementi */
}

#customTourSearch {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#addStopButton {
    white-space: nowrap;  /* Previene il wrapping del testo */
    padding: 8px 15px;
    background: #f89b31;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;  /* Impedisce al bottone di restringersi */
}

.remove-stop {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 5px;
    margin-left: 5px;
    line-height: 1;
}

.remove-stop:hover {
    color: #c82333;
}

.search-input-container {
    position: relative;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    background: white;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

#customTourSearch {
    width: 100%;
    height: 40px;
    padding: 8px 40px 8px 12px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    background-color: #f8f9fa;
}

#customTourSearch:focus {
    border-color: #f89b31;
    background-color: white;
}

.close-search {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 2;
}

.close-search:hover {
    background-color: #f0f0f0;
    color: #333;
}

#searchResultsCustomTour {
    overflow-y: auto;
    max-height: 200px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 15px;
    display: none;
}

#searchResultsCustomTour.active {
    display: block;
}

.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.result-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 15px;
}

.result-category {
    font-size: 13px;
    color: #666;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
    font-size: 14px;
}
.tour-item {
    position: relative; /* Per posizionare il pulsante di eliminazione */
}

.delete-tour-button {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    min-width: 20px;       /* Previene il ridimensionamento */
    min-height: 20px;      /* Previene il ridimensionamento */
    border-radius: 50%;
    background: grey;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 1;
    transition: background-color 0.2s;
    font-size: 16px;
    z-index: 1;
    padding: 0;           /* Rimuove il padding che potrebbe distorcere la forma */
    line-height: 1;       /* Assicura l'allineamento verticale corretto */
}

.delete-tour-button:hover {
    background: black;
}
.poi-tooltip-container {
    position: relative;  /* Per il posizionamento assoluto della X */
    padding-right: 15px; /* Spazio per la X */
}

.remove-stop {
    position: absolute;
    top: -15px;         /* Sposta la X verso l'alto */
    right: -15px;       /* Sposta la X verso destra */
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ff4444;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 1;
    transition: background-color 0.2s;
}

.remove-stop:hover {
    background: #ede4e4;
}
.button-container {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

#optimizeRouteButton,
#saveRouteButton {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background-color: #f89b31;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    transition: background-color 0.2s;
}

#optimizeRouteButton:hover,
#saveRouteButton:hover {
    background-color: #f8ca2a;
}

#optimizeRouteButton i,
#saveRouteButton i {
    font-size: 16px;
}

/* Per dispositivi mobili */
@media (max-width: 480px) {
    #optimizeRouteButton,
    #saveRouteButton {
        padding: 10px 15px;
        font-size: 13px;
    }

    #optimizeRouteButton i,
    #saveRouteButton i {
        font-size: 14px;
    }
}

/* Prima era .modal-content */
customTourModal .modal-content {
    position: relative;
    overflow: visible !important;
}
#searchResultsCustomTour {
    position: absolute;
    top: 190px;  
    z-index: 1000;
    overflow-y: auto;
}

.search-result-item {
    padding: 12px 15px;
    margin-bottom: 2px;
    cursor: pointer;
    background: white;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: rgba(255, 255, 255, 1);
}

.create-custom-tour-button {
    width: auto; /* invece di width: 100% */
    min-width: fit-content; /* si adatta al contenuto */
    max-width: 100%; /* evita overflow */
    padding: 12px 40px 12px 20px; /* più spazio a destra per l'icona del lucchetto */
    margin: 15px auto; /* centra il bottone */
    background-color: #f89b31;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex; /* cambia da flex a inline-flex */
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    transition: background-color 0.3s;
    position: relative;
}

.create-custom-tour-button.demo-locked {
    opacity: 0.7;
    cursor: pointer;
}

.create-custom-tour-button i.fa-lock {
    position: absolute;
    right: 15px;
    font-size: 16px;
}

.modal-content {
    overflow-y: auto; /* Aggiunge lo scroll verticale quando necessario */
}

.tour-grid {
    overflow-y: auto; /* Permette lo scroll del contenuto */
}

#walkingTourModal .modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    margin: 0;
    padding: 20px;
}
/* Stili per i cluster colorati */
.marker-cluster-blue div { background-color: rgba(51, 136, 255, 0.8); }
.marker-cluster-red div { background-color: rgba(255, 68, 68, 0.8); }
.marker-cluster-green div { background-color: rgba(68, 255, 68, 0.8); }
.marker-cluster-orange div { background-color: rgba(255, 165, 0, 0.8); }
.marker-cluster-yellow div { background-color: rgba(255, 255, 68, 0.8); }
.marker-cluster-violet div { background-color: rgba(238, 130, 238, 0.8); }
.marker-cluster-grey div { background-color: rgba(128, 128, 128, 0.8); }
.marker-cluster-black div { background-color: rgba(0, 0, 0, 0.8); }

.marker-cluster div {
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.poi-popup-content h2.poi-title {
    text-align: center;
    padding-right: 30px;
    margin: 0;
    width: 100%;
}

.poi-popup-content .close-popup {
    position: absolute;
    right: 5px;
    top: 5px;
    font-size: 20px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    z-index: 1;
}

.poi-popup-content {
    position: relative;
}

#audioProgressContainer {
    width: 100%;
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#audioProgressBar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

#audioProgressFill {
    height: 100%;
    background-color: #f89b31;
    width: 0;
    border-radius: 4px;
    transition: width 0.1s linear;
}

#audioTimeDisplay {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

#currentTime, #totalTime {
    min-width: 40px;
    text-align: center;
}

/* Adattamenti per schermi piccoli */
@media (max-width: 480px) {
    #audioProgressContainer {
        margin: 6px 0;
    }
    
    #audioProgressBar {
        height: 6px;
    }
    
    #audioTimeDisplay {
        font-size: 10px;
    }
    
    #currentTime, #totalTime {
        min-width: 35px;
    }
}
/* Stili ottimizzati per il player audio con margini completamente rimossi */
#audioSection {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 5px 10px;
  margin: 0;
  background-color: white;
  border-radius: 8px;
  gap: 0; /* Rimuovi completamente il gap */
}

/* Nome del punto di interesse */
#audioName {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-align: center;
  width: 100%;
  margin: 0 0 4px 0; /* Imposta esplicitamente tutti i margini */
  padding: 0; /* Rimuovi eventuale padding */
}

#currentAudioName {
  font-weight: bold;
  color: #333;
  margin-right: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.playing-label {
  color: #f89b31;
  font-size: 12px;
  font-style: italic;
}

/* Container per il player a pillola */
#pillPlayerContainer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0; /* Esplicita l'assenza di margini */
  padding: 0; /* Rimuovi eventuale padding */
}

/* Player a forma di pillola */
.pill-player {
  display: flex;
  align-items: center;
  width: 100%;
  height: 22px;
  position: relative;
  padding: 0;
  margin: 0 0 4px 0; /* Margine SOLO in basso */
}

/* Pulsanti di controllo */
#audioControls {
  margin: 0; /* Aggiungi esplicitamente */
  padding: 0; /* Aggiungi esplicitamente */
}

#audioControls button {
  width: 22px;
  height: 22px;
  min-width: 22px;
  background-color: #f89b31;
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  position: relative;
  flex-shrink: 0;
  margin: 0; /* Aggiungi esplicitamente */
}

#audioControls button:hover {
  background-color: #dfbf50;
}

#audioControls button i {
  font-size: 10px;
}

/* Barra di progresso (tra i pulsanti, non sotto) */
#audioProgressBar {
  flex: 1;
  height: 100%;
  position: relative;
  background-color: #f0f0f0;
  cursor: pointer;
  border-radius: 4px;
  margin: 0 2px; /* Piccolo margine per separare la barra dai pulsanti */
}

/* Riempimento della barra di progresso */
#audioProgressFill {
  height: 100%;
  background-color: #f89b31;
  width: 0; /* Sarà modificato da JavaScript */
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 4px;
  transition: width 0.1s linear;
}

/* Display del tempo */
#audioTimeDisplay {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  width: 100%;
  padding: 0;
  margin-top: 1 !important; /* Forza l'assenza di margini */
  line-height: 1; /* Riduce lo spazio verticale causato dal line-height */
}

#currentTime, #totalTime {
  margin: 0; /* Rimuovi margini dai componenti del tempo */
  padding: 0; /* Rimuovi padding dai componenti del tempo */
}

/* Adattamenti per schermi piccoli */
@media (max-width: 480px) {
  #audioSection {
    padding: 5px;
  }
  
  #currentAudioName {
    font-size: 13px;
  }
  
  .playing-label {
    font-size: 11px;
  }
  
  #audioControls button {
    width: 20px;
    height: 20px;
    min-width: 20px;
  }
  
  #audioControls button i {
    font-size: 9px;
  }
}
#audioSection {
    max-width: 70%; /* Limita la larghezza massima al 70% della larghezza della finestra */
    margin: 0 auto; /* Centra il container */
  }
  
  #currentAudioName {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px; /* Limita la larghezza del testo del nome */
    display: inline-block;
  }
  
  .audio-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  
  /* Questo CSS può essere aggiunto al tuo file di stile esistente */
.control-button.active {
    background-color: #f89b31;
    color: white;
    transform: scale(1.1);
    transition: all 0.3s ease;
}
/* Nascondi il titolo originale */
.poi-popup-content h2.poi-title {
  display: none;
}
.poi-title-overlay, .poi-stats-overlay {
    transition: opacity 0.3s ease;
}

.poi-gallery:hover .poi-title-overlay,
.poi-gallery:hover .poi-stats-overlay {
    opacity: 1;
}

.poi-title-text {
    width: 100%;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

@media (max-width: 480px) {
    .poi-title-overlay {
        padding: 8px 10px;
    }
    
    .poi-stats-overlay {
        padding: 6px 15px 6px 10px;
    }
    
    .poi-title-text {
        font-size: 16px;
    }
    
    .poi-like-stats, .poi-rating {
        font-size: 14px;
    }
}
.categories-button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 10px;
}

.categories-button i {
    font-size: 18px;
    color: #f89b31;
}

.categories-button span {
    font-size: 8px;
    color: #f89b31;
    margin-top: 2px;
    white-space: nowrap;
}

.categories-button:hover {
    background: #f1f3f4;
}

.category-button:hover {
    background-color: #f0f0f0 !important;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#logoHeader {
  margin-top: 5px;
  text-align: center;
  width: 100%;
}

#mapLogo {
  max-height: 30px;
  max-width: 80%;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2)); /* Aggiungi una leggera ombra al logo */
}

/* Aggiungere o modificare in style.css */
#controls {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: white;
  padding: 5px 0; /* Rimuovi padding laterale, mantieni solo padding verticale */
  border-radius: 5px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 280px; /* Larghezza fissa */
}

/* Estendi la barra audio per occupare tutto lo spazio disponibile */
#audioSection {
  width: 100%;
  margin: 0;
  padding: 0 8px; /* Aggiungi un piccolo padding interno al contenuto */
  box-sizing: border-box; /* Assicura che il padding sia incluso nella width */
}

/* Assicurati che i controlli occupino tutta la larghezza */
#audioControls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Regola la larghezza della barra di progresso per occupare più spazio */
#audioProgressBar {
  flex: 1;
  margin: 0 8px; /* Aggiungi un po' di margine solo tra i pulsanti e la barra */
}

/* Rimuovi margini e padding dai pulsanti */
#audioControls button {
  width: 30px;
  height: 30px;
  min-width: 30px;
  margin: 0;
  padding: 0;
  border: none;
}

/* Nel file style.css, cerca questo stile o aggiungilo se non esiste */
#overlayLogo {
    width: 300px; /* Era probabilmente più piccolo, aumentiamo la dimensione */
    height: auto; /* Mantiene l'aspect ratio */
    margin: 0; /* Aggiunge spazio sopra (20px) e sotto (40px) per centrarlo verticalmente */
    display: block; /* Assicura che sia trattato come un blocco */
    max-width: 90%; /* Assicura che si adatti a schermi piccoli */
}

/* Nasconde la barra di scorrimento mantenendo la funzionalità */
.premium-showcase {
    /* Mantieni le proprietà esistenti */
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 25px 40px;
    background: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    
    /* Aggiungi queste proprietà per nascondere la barra di scorrimento */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer e Edge */
    overflow-y: auto; /* Mantiene la possibilità di scorrere */
}

/* Nasconde la barra di scorrimento in Chrome, Safari e Opera */
.premium-showcase::-webkit-scrollbar {
    display: none;
}

/* Mantieni il padding ridotto solo per mobile */
@media (max-width: 576px) {
    .premium-showcase {
        padding: 20px 15px;
        gap: 12px;
    }
}
/* Migliora lo stile del pulsante di inizio per bilanciare il design */
#startButton {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 12px 30px; /* Aumenta il padding per un bottone più grande */
    font-size: 18px;
    border-radius: 25px;
}

/* In style.css, trova e modifica la classe poi-popup */
.poi-popup {
    position: absolute;
    top: 10%; /* Già presente */
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px 20px 10px; /* Ridotto da 20px a: 5px in alto, 20px ai lati, 10px in basso */
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 80%;
    width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ridurre il padding-top del content */
.poi-popup-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 5px; /* Ridotto da 20px a 5px */
}

/* Ridurre lo spazio sotto i pulsanti */
.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px; /* Ridotto da 20px */
    margin-bottom: 0; /* Aggiungi questo per rimuovere lo spazio inferiore */
    width: 100%;
}

/* Modifica gli stili dei pulsanti nella parte inferiore */
.poi-navigation-button {
    margin-top: 5px; /* Ridotto */
    margin-bottom: 0; /* Rimuove lo spazio sotto */
}

/* Per il container principale dei bottoni */
.bottom-buttons-container {
    margin-bottom: 0; /* Assicurati che non ci sia margine inferiore */
    padding-bottom: 0; /* Assicurati che non ci sia padding inferiore */
}

/* Aggiungi al file style.css */
.transparent-tooltip {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Per il testo, aggiungi ombra per mantenerlo leggibile */
.transparent-tooltip .poi-tooltip-name,
.transparent-tooltip .poi-tooltip-category {
    text-shadow: 0px 0px 4px white, 0px 0px 2px white;
}

/* Modifica solo queste proprietà CSS in style.css */

/* Per permettere il testo a capo nei tooltip */
.leaflet-tooltip.centered-tooltip {
    white-space: normal; /* Cambia da nowrap a normal */
    max-width: 150px; /* Limita la larghezza massima */
    text-align: center; /* Centra il testo */
}

/* Per sottolineare la categoria */
.poi-tooltip-category {
    text-decoration: underline; /* Aggiunge la sottolineatura */
}
/* Aggiungi questo stile in style.css */
.poi-tooltip-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;  /* Limita a 2 righe */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;  /* Aggiunge puntini di sospensione per testo troncato */
    max-height: 2.4em;  /* Fallback per browser che non supportano -webkit-line-clamp */
}
/* Stile per il container categoria+audio */
.category-audio-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px; /* Spazio tra categoria e icona */
    width: 100%;
    margin-top: 2px;
}

/* Stile per l'icona audio */
.audio-icon-container {
    position: relative;
    display: inline-flex;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    align-items: center;
    justify-content: center;
    margin-left: 2px;
}

.audio-icon-container .fas.fa-volume-up {
    font-size: 10px;
    color: #4a87ee;
}

/* Assicurati che la categoria sia sottolineata come richiesto prima */
.poi-tooltip-category {
    text-decoration: underline;
}

/* Aggiorna il CSS per il tooltip */
.leaflet-tooltip.centered-tooltip {
    background-color: transparent;
    border: none;
    box-shadow: none;
    font-weight: bold;
    font-size: 14px;
    padding: 6px 8px;
    pointer-events: auto;
    white-space: normal;
    min-width: 120px;
    max-width: 150px;
    transform: translate(-30%, -50%); /* Regola il posizionamento per allineamento a sinistra */
    text-align: left !important;
}

/* Stile per il container del tooltip */
.poi-tooltip-container {
    width: 100%;
    text-align: left !important;
}

/* Stile per il nome del POI */
.poi-tooltip-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    text-shadow: 0px 0px 4px white, 0px 0px 2px white;
    text-align: left !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Stile per il container categoria+audio */
.category-audio-container {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    gap: 4px;
    width: 100%;
    margin-top: 2px;
}

/* Stile per la categoria */
.poi-tooltip-category {
    text-decoration: underline;
    text-align: left !important;
}

/* E modifichiamo il CSS in questo modo */
.poi-tooltip-category {
    text-decoration: underline;
    text-align: left !important;
    margin-right: 4px; /* Spazio per l'icona */
}
/* Stile completamente rinnovato per l'icona audio con massima visibilità */
.audio-icon-container {
    display: inline-flex;
    width: 20px;          /* Aumentato */
    height: 20px;         /* Aumentato */
    border-radius: 50%;
    background-color: #f89b31;  /* Sfondo blu intenso */
    box-shadow: 0 0 0 2px white, 0 2px 4px rgba(0, 0, 0, 0.5);  /* Doppia cornice: bianca + ombra */
    align-items: center;
    justify-content: center;
    margin-left: 0;
    flex-shrink: 0;
}

.audio-icon-container .fas.fa-volume-up {
    font-size: 12px;  /* Dimensione aumentata */
    color: white;     /* Icona bianca su sfondo blu per massimo contrasto */
    opacity: 1;
}

/* Se in modalità demo l'audio è disabilitato, usiamo uno stile diverso ma ugualmente visibile */
.audio-icon-container.disabled {
    background-color: #bbbbbb;  /* Grigio per audio disabilitato */
}
/* Modifica il margine inferiore del titolo */
.poi-tooltip-name {
    margin-bottom: 0 !important; /* Rimuovi il margine sotto il titolo */
}

/* Rimuovi il margine superiore dalla categoria */
.poi-tooltip-category {
    margin-top: 0 !important; /* Rimuovi il margine sopra la categoria */
}

/* Aggiusta anche il container categoria+audio */
.category-audio-container {
    margin-top: 0 !important; /* Rimuovi il margine sopra il container */
    padding-top: 0 !important; /* Rimuovi anche eventuali padding */
}
.premium-prompt-badge {
    position: absolute;
    bottom: 40px;
    right: -80px;
    background: #f89b31;
    color: white;
    padding: 3px 20px;
    font-weight: bold;
    transform: rotate(-45deg);
    z-index: 3;
    font-size: 11px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    transition: background-color 0.3s ease;
    text-align: left;
    padding-left: 45px;
    width: 150px;
}

.premium-prompt-badge:hover {
    background-color: #e6bb1c;
}
/* Stili aggiornati per l'effetto dei cuoricini volanti */

/* Stile base del cuore nella galleria */
.poi-like-stats {
    position: relative;
    transition: transform 0.2s ease-in-out;
    overflow: visible;
}

.poi-like-stats:hover {
    transform: scale(1.1);
}

.poi-like-stats i.fa-heart {
    transition: transform 0.3s ease, color 0.3s ease;
}

.poi-like-stats:active i.fa-heart {
    transform: scale(1.3);
}

/* Animazione per quando il cuore diventa pieno */
@keyframes heartBeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.2); }
    60% { transform: scale(1); }
}

.poi-like-stats i.fas.fa-heart {
    animation: heartBeat 0.8s;
}

/* Contenitore per l'animazione dei cuoricini */
.heart-animation-container {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 5000;
}

/* Stile base dei cuoricini volanti */
.flying-heart {
    position: absolute;
    font-size: 20px; /* Dimensione di base dei cuoricini */
    color: #ff4757;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

/* Stile quando il cuoricino è in animazione */
.flying-heart.animate {
    animation: floatHearts 2s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

.flying-heart.animate i {
    font-size: 16px;
}

/* Animazione per far fluttuare i cuoricini verso l'alto */
@keyframes floatHearts {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    10% {
        opacity: 1;
        transform: translate(0, 0) scale(0.7);
    }
    100% {
        opacity: 0;
        transform: 
            translate(
                var(--end-x, 0), 
                var(--end-y, -100px)
            ) 
            scale(0.3) 
            rotate(var(--rotation, 0deg));
    }
}

.voucher-info {
    background-color: #f8f9fa;
    color: #f89b31;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.voucher-info i {
    font-size: 16px;
    margin-right: 2px;
}

.voucher-info {
    margin-top: 2px !important;
    margin-bottom: 2px !important;
}
.stop-route-button {
    position: absolute;
    top: 120px;
    right: 10px;
    background-color: #dc3545;
    border-radius: 10px;
    padding: 6px 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: none;
    color: white;
    font-weight: 500;
    font-size: 12px;
    width: 65px;
    text-align: center;
    max-width: 100%;
    line-height: 1.2;
}

.stop-route-button:hover {
    background-color: #c82333;
}

.stop-route-button span {
    padding: 0;
    margin: 0;
    display: block;
    width: 100%;
}

#stopText {
    font-weight: bold;
    margin-bottom: 1px;
}

/* Aggiungi questi stili al tuo file style.css */

.premium-price-banner {
    background-color: #f89b31;
    color: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.premium-price-banner:hover {
    background-color: #e6bb1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.premium-price-banner:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}
// Aggiungere questi stili CSS nel file style.css

.scroll-arrow {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: #f89b31;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulseDown 1.5s infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.scroll-arrow.visible {
    opacity: 1;
}

@keyframes pulseDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Stile della freccia */
.scroll-arrow i {
    font-size: 20px;
}

/* Modifica il padding della showcase per evitare che la freccia copra il contenuto */
.premium-showcase {
    padding-bottom: 60px !important;
}
/* Riduzione dello spazio nel container dell'interfaccia */
.interface-container {
    padding: 0px 20px 25px 20px; /* Ridotto il padding, soprattutto in alto */
}

/* Modifiche al modal per renderlo più compatto */
.modal-content {
    padding: 15px; /* Ridotto il padding generale */
}

#overlayLogo {
    margin-top: 35px; /* Ridotto il margine sotto il logo */
}

/* Posizionamento specifico per il modal delle categorie */
#categoriesModal .modal-content {
    position: fixed !important;
    top: 10% !important;
    left: 50% !important;
    transform: translate(-50%, 0) !important;
    margin-top: 0 !important;
}

#weatherModal .modal-content {
    position: fixed !important;
    top: 10% !important;
    left: 50% !important;
    transform: translate(-50%, 0) !important;
    margin-top: 0 !important;
}

#walkingTourDetails .modal-content {
    position: fixed !important;
    top: 10% !important;
    left: 50% !important;
    transform: translate(-50%, 0) !important;
    margin-top: 0 !important;
}
/* Add these styles to your style.css file */

/* Experience mode button styling */
#experienceMode.mode-button {
    background-color: #f89b31;
    color: white;
}

#experienceMode.mode-button.active {
    background-color: white;
}

#experienceMode.mode-button.active i,
#experienceMode.mode-button.active span {
    color: #f89b31;
}

/* Experience list modal styles */
#experienceListModal .event-list-content {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

#experienceListModal .event-list-title {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

#experienceListModal .sort-button {
    flex: 1;
    padding: 10px;
    border: 2px solid #f89b31;
    border-radius: 20px;
    background-color: white;
    color: #f89b31;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
}

#experienceListModal .sort-button.active {
    background-color: #f89b31;
    color: white;
}

/* Experience item styling */
#experienceListModal .event-item {
    position: relative;
    height: 100px;
    cursor: pointer;
    overflow: hidden;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

#experienceListModal .event-item:hover {
    background-color: rgba(74, 135, 238, 0.05);
}

#experienceListModal .event-item-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    background-size: cover;
    background-position: center;
}

#experienceListModal .event-item-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.9) 10%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0.01) 100%
    );
}

#experienceListModal .event-item-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    color: #333;
}

#experienceListModal .event-item-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 8px 0;
}

#experienceListModal .event-item-date {
    font-size: 14px;
    color: #666;
}

/* Experience popup special styling */
.experience-detail-btn {
    width: 100%;
    padding: 14px;
    background: #f89b31;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 15px;
}

.experience-detail-btn:hover {
    background: #edc744;
}

/* Responsive styles */
@media (max-width: 480px) {
    #experienceListModal .event-item {
        height: 80px;
    }

    #experienceListModal .event-item-title {
        font-size: 16px;
    }

    #experienceListModal .event-item-date {
        font-size: 13px;
    }
    
    #experienceListModal .sort-button {
        padding: 8px;
        font-size: 13px;
    }
}
/* Stili per gli overlay sulla foto */
.poi-gallery {
    position: relative;
    overflow: hidden;
}

.poi-title-overlay {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    padding: 0 !important;
    background: none;
}

.poi-title-text {
    color: white;
    margin: 0;
    font-size: 22px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.poi-languages-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    z-index: 3;
    display: flex;
    gap: 10px;
    align-items: center;
}

.poi-languages-overlay .flag-icon {
    width: 22px !important;
    height: 16px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    border-radius: 2px;
    display: inline-block;
    background-size: cover !important;
}

/* Aggiungi spazio tra le bandiere */
.poi-languages-overlay .flag-icon + .flag-icon {
    margin-left: 5px;
}

/* Effetto hover per le bandiere */
.poi-languages-overlay .flag-icon:hover {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

/* Pulsante per i dettagli dell'esperienza */
.experience-detail-btn {
    width: 100%;
    padding: 14px;
    background: #f89b31;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 15px;
}

.experience-detail-btn:hover {
    background: #edc744;
}

/* Stili per i controlli della galleria */
.gallery-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.gallery-control:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.gallery-control.prev {
    left: 15px;
}

.gallery-control.next {
    right: 15px;
}

/* Stili responsive */
@media (max-width: 480px) {
    .poi-title-text {
        font-size: 18px;
    }
    
    .poi-languages-overlay {
        padding: 6px 10px;
    }
    
    .gallery-control {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .experience-detail-btn {
        padding: 12px;
        font-size: 14px;
    }
}
/* Nuovi stili per i pulsanti eventi */
.events-date-btn,
.events-list-btn {
    position: fixed;
    right: 10px;
    background-color: white;
    border: 2px solid #f89b31;
    border-radius: 8px;
    padding: 8px;
    width: 70px;
    height: 60px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Posizionamento specifico */
#eventsDateButton {
    top: 120px; /* Sotto il widget del meteo */
}

#eventsListButton {
    top: 190px; /* Sotto il pulsante data */
}

.events-date-btn:hover,
.events-list-btn:hover {
    background-color: #f89b31;
    transform: scale(1.05);
}

.events-date-btn:hover i,
.events-date-btn:hover span,
.events-list-btn:hover i,
.events-list-btn:hover span {
    color: white;
}

.events-date-btn i,
.events-list-btn i {
    color: #f89b31;
    font-size: 20px;
    margin-bottom: 4px;
}

.events-date-btn span,
.events-list-btn span {
    color: #f89b31;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    line-height: 1.1;
    max-width: 100%;
    word-wrap: break-word;
    display: block;
}

/* Stili responsive */
@media (max-width: 480px) {
    .events-date-btn,
    .events-list-btn {
        width: 70px;
        height: 60px;
    }
}

/* Badge esclusivo nel tooltip */
.exclusive-badge-tooltip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background-color: #f89b31;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
    margin: 2px 0;
}

.exclusive-badge-tooltip i {
    font-size: 10px;
}

/* Pulsante eventi esclusivi */
.exclusive-events-btn {
    position: fixed;
    top: 260px; /* Sotto gli altri due pulsanti */
    right: 10px;
    background-color: white;
    border: 2px solid #f89b31;
    border-radius: 8px;
    padding: 8px;
    width: 70px;
    height: 60px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.exclusive-events-btn:hover {
    background-color: #f89b31;
    transform: scale(1.05);
}

.exclusive-events-btn:hover i,
.exclusive-events-btn:hover span {
    color: white;
}

.exclusive-events-btn i {
    color: #f89b31;
    font-size: 16px;
    margin-bottom: 4px;
}

.exclusive-events-btn span {
    color: #f89b31;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    line-height: 1.1;
    max-width: 100%;
    word-wrap: break-word;
    display: block;
}

/* Responsive */
@media (max-width: 480px) {
    .exclusive-events-btn {
        width: 70px;
        height: 60px;
        
    }
    
    .exclusive-events-btn i {
        font-size: 14px;
    }
    
    .exclusive-events-btn span {
        font-size: 10px;
    }
}

/* Animazione per la freccia di scroll */
@keyframes pulseDown {
    0% { transform: translateY(0); }
    50% { transform: translateY(5px); }
    100% { transform: translateY(0); }
}

/* Miglioramenti per il responsive design */
@media (max-width: 400px) {
    .pricing-option {
        flex: 0 0 95% !important;
        max-width: 95% !important;
    }
    
    .pricing-slider {
        padding: 0 10px !important;
    }
}

/* Touch feedback per dispositivi mobili */
.pricing-option:active {
    transform: scale(0.98);
}

.indicator:active {
    transform: scale(1.2);
}

/* Smooth transitions */
.pricing-slider {
    transition: scroll-behavior 0.3s ease;
}

/* Stili per il badge popolare su dispositivi piccoli */
@media (max-width: 320px) {
    .popular-badge {
        font-size: 0.7em;
        padding: 3px 8px;
    }
}

/* =========================
   EAR MODE - smartphone only
   ========================= */

html.ear-mode-active,
body.ear-mode-active {
  overflow: hidden !important;
  touch-action: none;
}

#earModeOverlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}

#earModeOverlay.active {
  display: block;
}

#earModeOverlay .ear-mode-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.97);
  pointer-events: auto;
}

#earModeOverlay .ear-mode-ui {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  pointer-events: none;
}

#earModeOverlay .ear-mode-panel {
  width: min(92vw, 340px);
  background: rgba(20, 20, 20, 0.96);
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  padding: 18px;
  transform: rotate(180deg);
  pointer-events: auto;
  text-align: center;
}

#earModeOverlay .ear-mode-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

#earModeOverlay .ear-mode-subtitle {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
  margin-bottom: 14px;
}

#earModeOverlay .ear-mode-time {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

#earModeOverlay .ear-mode-controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

#earModeOverlay .ear-mode-controls-secondary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

#earModeOverlay .ear-mode-btn {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: #f89b31;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
}

#earModeOverlay .ear-mode-btn.secondary {
  background: #3a3a3a;
}

#earModeOverlay .ear-mode-exit {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: #5a5a5a;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 12px;
}

body.ear-mode-active > *:not(#earModeOverlay) {
  pointer-events: none !important;
  user-select: none !important;
}

#earModeOverlay,
#earModeOverlay * {
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px), (pointer: fine) {
  #earModeOverlay {
    display: none !important;
  }
}

/* =========================
   EAR MODE — aggiunte al CSS esistente
   ========================= */

/* Sfondo foto a schermo intero nello scrim */
#earModeOverlay .ear-mode-scrim {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.3s ease;
}

/* Sfumatura verticale sopra la foto quando presente */
#earModeOverlay .ear-mode-scrim.has-photo {
  background-color: transparent;
}

#earModeOverlay .ear-mode-scrim.has-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.20) 30%,
    rgba(0, 0, 0, 0.72) 65%,
    rgba(0, 0, 0, 0.92) 100%
  );
  pointer-events: none;
}

/* Barra progressiva */
#earModeOverlay .ear-mode-progress-wrap {
  width: 100%;
  padding: 10px 0 18px;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

#earModeOverlay .ear-mode-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  position: relative;
  overflow: visible;
}

#earModeOverlay .ear-mode-progress-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 999px;
  transition: width 0.25s linear;
  position: relative;
}

/* Pallino handle sull'estremità del fill */
#earModeOverlay .ear-mode-progress-fill::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* =========================
   EAR MODE — aggiunte (incolla in fondo a style.css)
   ========================= */

/* Sfondo foto — ruotato 180° come il resto dell'interfaccia */
#earModeOverlay .ear-mode-scrim {
  background-color: black;
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  transition: background-image 0.3s ease;
  transform: rotate(180deg);
}

#earModeOverlay .ear-mode-scrim.has-photo {
  background-image:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0)   0%,
      rgba(0,0,0,0)   var(--ear-mode-fade-start, 35%),
      rgba(0,0,0,0.8) var(--ear-mode-fade-end,   50%),
      rgba(0,0,0,1)   100%
    ),
    var(--ear-mode-photo);
  background-size: 100% 100%, contain;
  background-position: center center, center top;
  background-repeat: no-repeat, no-repeat;
}

/* Barra progressiva */
#earModeOverlay .ear-mode-progress-wrap {
  width: 100%;
  padding: 10px 0 18px;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

#earModeOverlay .ear-mode-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  position: relative;
  overflow: visible;
}

#earModeOverlay .ear-mode-progress-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 999px;
  transition: width 0.25s linear;
  position: relative;
}

/* Handle pallino sull'estremità del fill */
#earModeOverlay .ear-mode-progress-fill::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}