/* ---------------- Filters ---------------- */
/* .elementor-shortcode{
    margin-top: -11rem;
} */

/* Doctor Filter container */
#doctor-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    margin-top: -9rem;
    
}

/* Filter group wrapper: păstrează dimensiunea originală */
/* Filter group wrapper */
.filter-group {
    position: relative;
    flex: 1 1 150px;
    width: 100%;
    margin-bottom: 15px;
}



/* Trigger: dimensiune normală, doar în interiorul grupului */
.custom-select-trigger {
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 12px;
    border: 1px solid #ccc;
    background-color: #fafafa;
    cursor: pointer;
  
    align-items: center;
    justify-content: space-between;
    color: #7a7a7a;
    transition: all 0.3s ease;
    position: relative;
}

/* Arrow indicator */
.custom-select-trigger::after {
    content: "▾";
    font-size: 18px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.25s ease;

}

/* Active / open arrow */
.custom-select-trigger.active::after {
    transform: translateY(-50%) rotate(180deg);
    border-color: #FF6900;
        color: #FF6900;
}



/* Hover effect (desktop only) */
@media (hover: hover) and (pointer: fine) {
    .custom-select-trigger.active:hover {
        border-color: #DB5B00;
        color: #DB5B00;
    }

}

/* Disabled trigger */
.custom-select-trigger.disabled {
    opacity: 1;
    cursor: not-allowed;
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;
    min-width: 100%;

    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);

    max-height: 400px;
    overflow-y: auto;

    z-index: 9999;

    display: none;
}

.custom-options.open {
    display: block !important;
}

.filter-group {
    position: relative;
    width: 100%;
    margin-top: 1.2rem;
}

#doctor-search {
    width: 100%;
    border: none;
    outline: none;
}


/* Individual option */
.custom-option {
    padding: 12px 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

/* Option hover */
.custom-option:hover {
    background-color: #FF6900;
    color: #fff;
}

/* Option selected */
.custom-option.selected {
    font-weight: 600;
}

/* Hover opens options (desktop only) */
@media (hover: hover) and (pointer: fine) {
    .filter-group:hover .custom-options {
        display: block;
    }
}

/* Responsive for mobile */
@media (max-width: 768px) {
    #doctor-filter {
        flex-direction: column;
        gap: 12px;
    }

    .custom-select-trigger {
        font-size: 16px;
        padding: 14px 16px;
    }

    .custom-options {
        max-height: 250px;
    }
}

/* ---------------- Doctor Results Grid ---------------- */
#doctor-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.doctor-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    background-color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.doctor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.doctor-card img {
    max-width: 100%;
    border-radius: 50%;
    margin-bottom: 10px;
}

/* ---------------- Service Items ---------------- */
.all-services-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-item h3 {
    margin: 0;
}

.service-toggle {
    position: relative;
    display: block;
    width: 100%;
    padding: 24px 44px 24px 16px;
    background: hsl(0, 0%, 98%);
    color: #7a7a7a;
    border-radius: 6px;
    text-align: left;
    font-weight: 600;
    border: none;
    cursor: pointer;
    appearance: none;
    
    font-size: 16px;
}



.service-toggle::after {
    content: "▾";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    transition: transform 0.25s ease;
}

.service-toggle.active::after {
    transform: translateY(-50%) rotate(180deg);

   
}
button .service-toggle{
   color:#FF6900;
}
.service-collapse {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 10px 0;
}

.service-sidebar {
    flex: 0 0 220px;
    max-width: 100%;
}

.service-doctors {
    flex: 1 1 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.service-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-links li {
    margin-bottom: 8px;
    color: #DB5B00;
    font-weight: 500;
}

.service-links a,
.service-links li.service-link {
    display: block;
    width: 100%;
    padding: 8px 12px;
    text-decoration: none;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-weight: 500;
    border-radius: 4px;
    color: #DB5B00
}

.service-links li:hover,
.service-links li.service-link:hover {
    background-color: hsl(0, 0%, 98%);
    color: #DB5B00;
}


.right-content {
    display: none;
    padding: 0;
}

.right-content.active {
    display: block;
}

.right-content p {
    margin-top: 8px;
}
.service-doctors .doctor-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    background-color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-doctors .doctor-card img {
    max-width: 100%;
    border-radius: 50%;
    margin-bottom: 10px;
}
a:hover{
    font-weight: bold;
}

.service-doctors .doctor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Responsive service items */
@media (max-width: 768px) {
    .service-collapse {
        flex-direction: column;
    }
    .service-sidebar {
        flex: 1 1 auto;
        width: 100%;
        margin-bottom: 15px;
    }
    .service-doctors {
        width: 100%;
    }
    .service-toggle {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .filter-group{
        flex: 1 1 50px;
    }
}

@media (max-width: 768px) {
    #doctor-results {
        grid-template-columns: 1fr;
        width: 100%;
        min-height: 50px;
        visibility: visible;
        opacity: 1;
        }
}

#doctor-search {
    width: 100%;
    border: none;
    font-size: 16px;
    box-sizing: border-box;
    background: none;
}

.filter-doctor .custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    display: none;
    z-index: 999;
}


#modern-doctor-search {
   
/*    margin: 40px auto;
 */    padding: 30px;
    background-color: #fafafa;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    border: 1px solid #ccc;
    color: #7a7a7a;
    width: 100%;
}
.modern-doctor-filter:hover{
    border-color:#FF6900
}
.modern-filter-header h3 {
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
}

.modern-filter-select select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.modern-results {
    margin-top: 25px;
} 


.custom-option.active {
    background: hsl(0, 0%, 98%);
    cursor: pointer;
}

.custom-option:hover {
    background-color: #DB5B00;
}

#modern-doctors-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(247px, 1fr));
    gap: 17px;
    margin-top: 20px;
}

.doctor-preview-card {
    display: flex;
    flex-direction: column; /* stack header + footer */
    justify-content: space-between; /* push footer to bottom */
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
    height: 100%; /* needed if cards are in a grid to make equal height */
     align-items: center;
}

.doctor-card-header {
   /*  display: flex; */
    gap: 20px;
    align-items: center;
    flex-grow: 1; /* allows header to take remaining space */
}

.doctor-image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 50%
}


.doctor-main-info {
    text-align: center;
}
.doctor-card-footer {
    padding-bottom: 10px; /* fixed padding below the button */
    text-align: right;     /* align button to right */
    margin-top: 10px;      /* optional spacing above footer */
}

.doctor-book-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #62B79E;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
    border: 1px solid #ddd;
}

.doctor-book-btn:hover {
    background-color: #DB5B00;
    border: 1px solid #ddd;
}




.doctor-preview-card:hover {
    background: #f8f8f8;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08); /* //#62B79E; #DB5B00;*/
} 

.doctor-preview-card.selected {
    border: 2px solid #DB5B00;
}

.preview-thumb img {
    width: 100%;
    height: auto;
}



.doctor-main-info h3 {
    margin-top: 10;
    color: #54595F;
}

.doctor-main-info p {
    margin: 5px 0;
}

.doctor-name {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 5px;
}
@media screen and (max-width: 580px) {
    .doctor-preview-card {
        max-width: 100%;
        min-height: auto;
        width: 100%;
    }
}
/* Responsive: stack on small screens */
@media (max-width: 768px) {
    .doctor-card-header {
        flex-direction: column;
    }
    .doctor-image,
    .doctor-main-info {
        max-width: 100%;
    }
}
.doctor-title,
.doctor-service,
.doctor-speciality,
.doctor-type {
    margin: 2px 0;
    color: #7a7a7a;
    font-size: 14px;
}


.service-block {
    margin-bottom: 50px;
}

.speciality-block {
    margin-top: 30px;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

span.wp-block-cover__background.has-pure-white-background-color.has-background-dim-80.has-background-dim {
    background-color: var(--wp--preset--color--surface) !important;
    opacity: unset;
}


/* figure.wp-block-post-featured-image{
    display: none;
} */

#back-to-all {
    width: 100%;
}

@media (min-width: 768px) {
    #back-to-all {
        width: 19.5rem;
    }
}

.filter-doctor input {
    position: relative;
   
}

.filter-doctor .custom-select-trigger {
    pointer-events: auto;
}

.right-content {
    display: none;
}

.right-content.active {
    display: block;
}

div#service-filter-wrapper {
    margin-top: 5rem;
}