/* ======================================================= */
/* GLOBAL & RESET */
/* ======================================================= */
html, body {
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
    color: #333;
}

a {
    text-decoration: none;
    color: #333;
}

button {
    cursor: pointer;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
}

/* ======================================================= */
/* HEADER & NAVIGATION */
/* ======================================================= */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #007bff;
}

.user-nav a {
    margin-right: 20px;
    color: #007bff;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    margin-left: 10px;
}

.btn-secondary {
    background-color: white;
    color: #007bff;
    border: 1px solid #007bff;
    margin-left: 10px;
}

/* ======================================================= */
/* SEARCH BAR */
/* ======================================================= */
.search-bar-container {
    background-color: #2c3e50;
    padding: 20px 5%;
    color: white;
}

.breadcrumbs {
    font-size: 14px;
    margin-bottom: 10px;
}

.search-input-group {
    display: flex;
    gap: 10px;
}

.search-input-group input {
    padding: 12px 15px;
    flex-grow: 1;
    border: none;
    border-radius: 4px;
    font-size: 16px;
}

.btn-search {
    background-color: #ffc107;
    color: #2c3e50;
    font-weight: 700;
    padding: 12px 25px;
    border-radius: 4px;
}

/* ======================================================= */
/* MAIN LAYOUT & SIDEBAR FILTERS */
/* ======================================================= */
.main-content {
    display: flex;
    padding: 20px 5%;
    gap: 20px;
}

.sidebar-filter {
    width: 280px;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    height: fit-content;
    border: 1px solid #e0e0e0;
    position: sticky;
    top: 20px;
    box-sizing: border-box;
}

.sidebar-filter h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    letter-spacing: 0.5px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.filter-group label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.filter-group label:hover {
    color: #007bff;
    background-color: #f0f8ff;
    border: 1px solid #b3d9ff;
}

.filter-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    flex-shrink: 0;
}

.filter-group input[type="checkbox"]:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.filter-group input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.btn-apply-filters {
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: white;
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.4);
}

/* ======================================================= */
/* DOCTOR CARDS */
/* ======================================================= */
.search-results {
    flex-grow: 1;
    max-width: 100%;
}

.doctor-card {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
}

.card-left {
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
}

.profile-photo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.profile-photo-container img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #007bff;
    margin-bottom: -15px;
    z-index: 1;
}

.verified-badge {
    background-color: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    z-index: 10;
    font-weight: 600;
}

.card-center {
    flex-grow: 1;
}

.doctor-name {
    margin: 0 0 5px 0;
    color: #007bff;
    font-size: 20px;
    font-weight: 700;
}

.specialty-tag {
    background-color: #007bff;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.card-center p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.payment-methods {
    color: #007bff;
    font-weight: 600;
    margin-top: 10px !important;
}

/* Info adicional & Galería */
.additional-info-section {
    border-top: 1px dashed #eee;
    padding-top: 10px;
    margin-top: 10px;
}

.additional-info-section h4 {
    font-size: 14px;
    color: #2c3e50;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.gallery-wrapper {
    display: flex;
    gap: 15px;
}

.gallery-image-thumbnail, .video-thumbnail {
    position: relative;
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
    transition: transform 0.2s;
}

.gallery-image-thumbnail img, .video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-right {
    width: 200px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-left: 20px;
    border-left: 1px solid #eee;
}

.price-presencial {
    font-size: 16px;
    font-weight: 700;
    color: #28a745;
}

.price-teleconsulta {
    font-size: 14px;
    color: #007bff;
    font-weight: 600;
}

/* ======================================================= */
/* FOOTER */
/* ======================================================= */
.main-footer {
    background-color: #212529;
    color: white;
    padding: 30px 5% 10px;
    margin-top: 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    border-bottom: 1px solid #3a3f44;
    padding-bottom: 20px;
    margin-bottom: 15px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    width: 100%;
}

.main-footer .social-links a {
    color: white;
    font-size: 1.5em;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.main-footer .social-links a:hover {
    color: #007bff;
}

/* ======================================================= */
/* RESPONSIVE DESIGN */
/* ======================================================= */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
        padding: 20px 15px;
    }

    .sidebar-filter {
        width: 100%;
        position: static;
    }

    .doctor-card {
        flex-direction: column;
        align-items: center;
    }

    .card-left, .card-center, .card-right {
        width: 100%;
        margin: 10px 0;
        text-align: center;
        padding: 10px 0;
        align-items: center;
        border: none;
    }

    .card-center {
        border-bottom: 1px dashed #eee;
    }
}

@media (max-width: 600px) {
    .main-header, .search-bar-container {
        padding: 15px;
    }

    .search-input-group {
        flex-direction: column;
    }

    .user-nav {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
}