/**
 * Tunis Maps Frontend CSS
 */

/* Map container */
.tunis-maps-container {
    background-color: #21ab88;
    margin: 30px 0 0;
    /* padding: 30px; */
}

/* Map description */
.tunis-maps-description {color: #fff;font-family: 'Marianne-Regular';margin: 0 0 15px;}
.tunis-maps-description strong {
    display: block;
    margin: 0 0 5px;
}
.tunis-maps-description h2 {
    margin-top: 0;
    color: #333;
}

/* Map content layout */
.tunis-maps-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Map */
.tunis-maps-map {
    flex: 1;
    min-width: 300px;
    border-radius: 0;
    overflow: hidden;
    font-family: 'Marianne-Regular';
}
.details-maps-pins {
    background: #fff;
    width: 85%;
    border: 4px solid var(--second-color);
    padding: 20px;
}

.tunis-maps-title {
    display: block;
    font-size: 20px;
    color: #000;
    font-family: "Marianne-Bold";
}

.details-maps-pins p {
    color: #000;
    font-size: 15px;
    font-family: 'Marianne-Regular';
    margin: 10px 0 0;
    display: block;
}

.details-maps-pins button {
    font-family: "Marianne-ExtraBold";
    font-size: 13px;
    color: #ffffff;
    text-decoration: none;
    background-color: var(--main-color);
    padding: 8px 20px 10px 20px;
    display: inline-block;
    margin: 10px 0 0;
    border: 0;
}

.details-maps-pins p a {
    color: #000;
}

.details-maps-carte {
    position: relative;
    overflow: hidden;
    margin: 40px 0 0;
}
/* Pins container */
.tunis-maps-pins {
    flex: 1;
    min-width: 50%;
    max-width: 50%;
    padding: 30px  0 0 15px;
}

/* Pin details */
.tunis-maps-pin-details {position: relative;overflow: hidden;width: 100%;}

.tunis-maps-pin-details h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Pin thumbnail */
.tunis-maps-pin-thumbnail {
    margin-bottom: 15px;
}

.tunis-maps-pin-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Pin content */
.tunis-maps-pin-content {
    margin-bottom: 15px;
    color: #000;
    font-size: 15px;
    font-family: 'Marianne-Regular';
}

/* Pin contact info */
.tunis-maps-pin-contact {
}

.tunis-maps-pin-contact p {
    margin: 5px 0;
}

.tunis-maps-pin-contact a {
    color: #4CAF50;
    text-decoration: none;
}

.tunis-maps-pin-contact a:hover {
    text-decoration: underline;
}

/* Error message */
.tunis-maps-error {
    color: #f44336;
    padding: 10px;
    background-color: #ffebee;
    border-radius: 5px;
    border-left: 4px solid #f44336;
}

/* Active marker */
.tunis-maps-active-marker {
    filter: hue-rotate(120deg);
}
.tunis-maps-pin-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 30px;
    display: flex;
    flex-wrap: wrap;
}

.tunis-maps-pin-item {
    display: flex;
    align-items: center;
    width: 50%;
    color: #fff;
    margin: 10px 0 0;
    font-family: 'Marianne-Regular';
    font-size: 13px;
}

.tunis-maps-pin-dot {
    width: 10px;
    height: 10px;
    background-color: rgb(255 255 255 / 40%);
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}
.leaflet-control-attribution.leaflet-control {
    display: none;
}
/* Dans tunis-maps.css */

.custom-pin-marker .pin-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #FF0067;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.custom-pin-marker .pin-marker.active {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.custom-pin-marker i {
    font-size: 16px;
}
/* Styles pour les catégories de pins */
.custom-pin-marker {
    position: relative;
}

.pin-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.pin-marker.active {
    transform: scale(1.2);
    box-shadow: 0 3px 7px rgba(0,0,0,0.4);
}

/* Style pour la liste des catégories */
.tunis-pin-category-list {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.tunis-pin-category-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.tunis-pin-category-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
    border: 1px solid #ddd;
}
.tunis-maps-category-list {
    padding: 0;
    list-style: none;
    margin: 30px 0 0;
}

.tunis-maps-category-item {
    margin: 15px 0 0;
    color: #fff;
    position: relative;
    padding-left: 20px;
}

.category-marker {
    display: inline-flex;
}
.tunis-maps-category-item:nth-child(1):before {
    background: #FF0067;
    width: 15px;
    height: 15px;
    display: block;
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    border-radius: 50%;
}

.tunis-maps-category-item:nth-child(2):before {
    background: #00bfff;
    width: 15px;
    height: 15px;
    display: block;
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    border-radius: 50%;
}
.maps-alliances .tunis-maps-pin-item {
    width: 100%;
}
.maps-alliances .tunis-maps-container {
    margin: 0 !important;
}
.tunis-maps-pdf-link {
    font-family: "Marianne-Bold";
    font-size: 13px;
    color: #ffffff;
    text-decoration: none;
    background-color: var(--main-color);
    padding: 8px 20px 10px 20px;
    margin-top: 20px;
    display: inline-block;
}
/* Responsive adjustments */
@media screen and (max-width: 1366px) {
.tunis-maps-pins {
    min-width: 100%;
    max-width: 100%;
    padding-bottom: 30px;
}
.tunis-maps-description h4 {
    font-size: 20px;
}
}
@media (max-width: 768px) {    
    .tunis-maps-map,
    .tunis-maps-pins {
        width: 100%;
        max-width: none;
    }
    
    .tunis-maps-map {
        height: 350px !important;
    }
    .details-maps-pins p {
        font-size: 13px;
      }
}
@media screen and (max-width: 550px)  { 
.tunis-maps-pins {
    padding: 30px 15px;
}
.details-maps-pins {
    width: 100%;
}
.tunis-maps-description h4 {
    font-size: 18px;
}
}

.custom-pin-marker .pin-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.2s;
  }
  
  .custom-pin-marker .pin-marker:hover,
  .custom-pin-marker .pin-marker.active {
    transform: scale(1.2);
  }
  
  .custom-pin-marker i {
    font-size: 16px;
  }
  