.adweb-search-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background-color: #f0f5f5;
    /* Keep this background color */
    text-align: center;
    border-color: #ccc;
}

/* Headings styling */
.adweb-search-form-container h2 {
    color: #175C62;
    /* Dark green */
    font-size: 1.75rem;
    margin-bottom: 15px;
}

.adweb-search-form-container p {
    color: #175C62;
    /* Dark green */
    font-size: 1.25rem;
    margin-bottom: 25px;
}

/* Form group and inputs */
.adweb-form-group {
    flex: 1 1 30%;
    min-width: 200px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

/* Media query to switch to 2 items per row on smaller screens */
@media screen and (max-width: 1024px) {
    .adweb-form-group {
        flex: 1 1 calc(50% - 10px);
        /* Two items per row with gaps */
    }

    .adweb-print-button {
        display: none;
    }
}

/* Media query to switch to 1 item per row on very small screens */
@media screen and (max-width: 768px) {
    .adweb-form-group {
        flex: 1 1 100%;
        /* Full-width for each item */
    }

    .adweb-form-group {
        text-align: center;
    }

    .adweb-form-group label {
        justify-content: center;
    }
}

.adweb-form-group input[type="text"],
.adweb-form-group select {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    -webkit-appearance: none;
    /* Ensure consistent appearance across browsers */
    -moz-appearance: none;
    appearance: none;
    line-height: 1.5;
}

.adweb-form-group select {
    height: auto;
    /* Adjusts based on content */
    padding-right: 30px;
    /* Leave space for arrow in select */
}

.adweb-form-group select {
    background: url('data:image/svg+xml;base64,...') no-repeat right 12px center;
    background-size: 12px;
    /* Adjust size of the arrow */
    background-color: #fff;
    /* Ensure white background for select */
}

/* Ensure uniform box-shadow, border, and background across all inputs and selects */
.adweb-form-group input[type="text"]:focus,
.adweb-form-group select:focus {
    border-color: #175C62;
    /* Dark green border on focus */
    outline: none;
    box-shadow: 0 0 3px rgba(23, 92, 98, 0.5);
    /* Subtle shadow on focus */
}

/* .adweb-form-group.full-width {
    margin-bottom: 0px;
} */

.adweb-form-group label {
    display: flex;
    font-size: 1.2rem;
    color: #175C62;
    /* Dark green for labels */
    margin-bottom: 10px;
    align-items: center;
}

.adweb-form-group label i {
    font-size: 1.5rem;
    color: #175C62;
    /* Dark green for icons */
    margin-right: 8px;
    /* Space between icon and text */
}

/* Inputs and selects styling */
.adweb-form-group input[type="text"],
.adweb-form-group select {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    /* Slightly larger text */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.adweb-form-group select {
    background-color: #fff;
}

/* Submit button */
.adweb-form-group input[type="submit"] {
    background-color: #175C62;
    /* Dark green */
    color: #fff;
    padding: 12px 20px;
    font-size: 1.2rem;
    /* Larger button text */
    cursor: pointer;
    border: none;
    border-radius: 25px;
    /* Rounded button */
    transition: background-color 0.2s ease-in-out;
    margin: auto;
    /* Center button */
    display: block;
    width: 150px;
    /* Control button width */
}

.adweb-form-group input[type="submit"]:hover {
    background-color: #73B181;
    /* Light green on hover */
}

/* Keep form elements in a row */
.adweb-filter-line {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* Cards container */
.adweb-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.adweb-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    /* Slightly more rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Enhance shadow */
    overflow: hidden;
    transition: box-shadow 0.3s ease-in-out;
    /* Smooth transition */
}

.adweb-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    /* Stronger shadow on hover */
}

.adweb-card-content {
    padding: 20px;
    /* Increased padding */
}

.adweb-card-title {
    font-size: 1.5rem;
    /* Larger title */
    margin: 0 0 15px;
    color: #175C62;
    /* Dark green title */
}

.adweb-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.adweb-card-title a:hover {
    color: #73B181;
    /* Light green on hover */
}

.adweb-card-read-more {
    display: inline-block;
    padding: 10px 25px;
    background-color: #175C62;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out, padding-right 0.2s ease-in-out;
    margin-top: 15px;
    position: relative;
}

.adweb-card-read-more::after {
    content: '\f061';
    font-family: 'FontAwesome';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease-in-out, right 0.2s ease-in-out;
}

.adweb-card-read-more:hover {
    background-color: #73B181;
    padding-right: 35px;
}

.adweb-card-read-more:hover::after {
    opacity: 1;
    right: 15px;
}

.adweb-card-taxonomy {
    font-size: 1rem;
    /* Slightly larger text */
    color: #555;
    margin: 5px 0;
}

.adweb-card-taxonomy strong {
    color: #333;
}

.adweb-card-email a {
    color: #175C62;
    /* Dark green */
}

.adweb-card-read-more,
.adweb-card-read-more:hover {
    color: white;
}

.adweb-filter-form {
    background: #F0F5F5;
    padding: 30px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
}

.adweb-pagination ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.adweb-pagination li {
    margin: 0 5px;
}

.adweb-pagination a,
.adweb-pagination span {
    padding: 8px 12px;
    background-color: #f5f5f5;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
    width: 36px;
    /* Ajuster la largeur pour qu'elle corresponde à celle des chiffres */
    height: 36px;
    /* Ajuster la hauteur pour qu'elle corresponde à celle des chiffres */
}

.adweb-pagination a:hover,
.adweb-pagination .current,
.adweb-pagination a:hover span {
    background-color: #175C62;
    color: #fff;
}

.adweb-pagination .next-page::after,
.adweb-pagination .prev-page::before {
    content: '\2192';
    /* Utiliser le code de caractère Unicode pour la flèche (→) */
    font-size: 16px;
    /* Taille de la flèche */
    color: inherit;
    /* Couleur de la flèche basée sur l'élément parent */
    display: inline-block;
}

.adweb-pagination .next-page {
    transform: rotate(0deg);
    /* Ajustez pour pointer vers la droite */
}

.adweb-pagination .prev-page {
    transform: rotate(180deg);
    /* Ajustez pour pointer vers la gauche */
}

.adweb-card-taxonomy a {
    color: #175C62;
}

.adweb-header {
    display: none;
}

@media print {

    /* Hide unnecessary elements for printing */
    .adweb-filter-form,
    .adweb-print-button,
    .header,
    .footer,
    .navigation {
        display: none !important;
    }

    .adweb-header {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-bottom: 20px;
    }

    .adweb-header img {
        max-width: 10vh !important;
    }

    .adweb-header p {
        color: black;
    }

    /* Adjust the layout for printing */
    body {
        font-size: 12pt;
        /* Adjust font size for better readability */
        color: #000;
        /* Use black color for printing */
    }

    .adweb-cards-container {
        display: flex;
        /* Use Flexbox for layout */
        flex-wrap: wrap;
        /* Allow items to wrap onto the next line */
        justify-content: center;
        /* Center cards horizontally */
        gap: 20px;
        /* Space between cards */
        margin: 0 auto;
        /* Center the cards container */
        max-width: 100%;
        /* Ensure container width fits within page margins */
    }

    .adweb-card {
        border: 1px solid #ddd;
        /* Light border for each card */
        padding: 15px;
        /* Add some space around the content */
        background-color: #fff;
        /* White background for cards */
        page-break-inside: avoid;
        /* Prevent page breaks inside a card */
        border-radius: 10px;
        /* Rounded corners for a nicer appearance */
        text-align: center;
        /* Center text inside cards */
        width: calc(50% - 20px);
        /* Two cards per row with gap */
        margin-bottom: 20px;
        /* Space between rows */
        box-sizing: border-box;
        /* Include padding and border in width */
    }

    .adweb-card-title {
        font-size: 16pt;
        /* Slightly larger font size for titles */
        font-weight: bold;
        /* Bold titles */
        margin-bottom: 10px;
        /* Space below the title */
    }

    .adweb-card-taxonomy,
    .adweb-card-tel,
    .adweb-card-doctolib {
        font-size: 12pt;
        /* Font size for details */
        margin-bottom: 5px;
        /* Space between detail lines */
    }

    /* Remove link styles and colors */
    a {
        color: #000;
        text-decoration: none;
    }

    /* Add margins to pages for printing */
    @page {
        margin: 20mm;
    }
}


.adweb-print-button button {
    background-color: #175C62;
    color: white;
}

h3.adweb-card-title {
    font-weight: 600;
    font-size: 1.8em;
}

svg.leaflet-zoom-animated path {
    outline: none;
}

/* Conteneur du control Leaflet */
.custom-filters-control {
    position: relative;
    /* En Leaflet, la classe .leaflet-bar a déjà des styles, à ajuster si besoin */
}

/* Le bouton rond au repos */
.filters-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #E55B5B;
    /* ou un rouge médical */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}

/* Icône quand fermé */
.filters-btn--closed svg {
    transform: scale(0.9);
}

/* Icône quand ouvert (croix) 
     => Vous pouvez remplacer par un autre SVG si vous voulez un X.
     Ici on change juste la couleur ou on peut switcher d'icône en JS. */
.filters-btn--open::before {
    content: "✕";
    /* Icône de croix */
    font-size: 18px;
    color: #E55B5B;
    /* Rouge médical */
    transition: color 0.4s ease;
}

/* Hover effect pour le bouton rond */
.filters-btn--open:hover::before {
    color: #fff; /* Croix blanche */
}

.filters-btn--open i {
    display: none;
}

/* Le panneau de filtres, initialement masqué par l'absence de .open */
.filters-panel {
    position: absolute;
    top: 50px;
    /* sous le bouton */
    right: 0;
    width: 160px;
    background: #fff;
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    /* pour ne pas pouvoir cliquer quand invisible */
    transition: opacity 0.4s ease;
}

/* Quand on ouvre */
.filters-panel.open {
    opacity: 1;
    pointer-events: auto;
    width: 230px;
}

/* Petites adaptations sur <select> */
.filters-panel select {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 4px;
    font-size: 14px;
}

.leaflet-touch .leaflet-bar {
    border: none !important;
}

.filters-btn--open img {
    display: none;
}

.filters-btn img {
    padding: 4px;
}

.watermark-control {
    padding: 5px;
}

.watermark-control img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* .leaflet-control.watermark-control {
    background: white;
} */

a.leaflet-control-zoom-in,
a.leaflet-control-zoom-out {
    margin-top: 5px;
    border-radius: 50% !important;
}

a.leaflet-control-zoom-in:hover,
a.leaflet-control-zoom-out:hover {
    background-color: #73B181 !important;
    color: white;
}

.select2-container {
    width: 100% !important;
    margin-bottom: 10px !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    font-weight: normal !important;
    font-size: 20px !important;
    margin-top: -13px;
}

path.svg_icon_fond {
    fill: white;
}

#filters-toggle-btn {
    background-color: white;
    border-radius: 50%;
    transition: background-color 0.4s ease, transform 0.4s ease;
}

#filters-toggle-btn i{
    color: black;
}

/* Effet hover */
#filters-toggle-btn:hover {
    background-color: #73B181;
    /* Fond de la div au hover */
    transform: scale(1.1);
    /* Zoom léger */
}

#filters-toggle-btn:hover i{
    color: white;
}