/* Meglévő frontend stílusok (nem módosulnak) */
#doctor-search {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Arial', sans-serif;
}

#search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

#search-form select, #search-form input[type="text"] {
    padding: 10px;
    font-size: 16px;
    flex: 1;
    min-width: 150px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s;
}

#search-form select:focus, #search-form input[type="text"]:focus {
    border-color: #0073aa;
    outline: none;
}

#view-toggle button {
    padding: 10px 20px;
    margin-right: 10px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background: #f4f4f4;
    transition: background 0.3s, color 0.3s;
}

#view-toggle .active {
    background: #0073aa;
    color: #fff;
}

.results.list-view {
    width: 100%;
    border-collapse: collapse;
}

.results.list-view th, .results.list-view td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.results.list-view th {
    background: #f4f4f4;
}

.results.list-view th.sortable {
    cursor: pointer;
}

.results.list-view th.sortable:hover {
    background: #e0e0e0;
}

.results.list-view th.asc::after {
    content: ' ↑';
}

.results.list-view th.desc::after {
    content: ' ↓';
}

.results.list-view .doctor-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.results.list-view .doctor-link:hover {
    text-decoration: underline;
}

.results.list-view .no-appointment {
    color: #d32f2f;
    font-style: italic;
    font-weight: 500;
}

.results.list-view td a[href^="mailto"], .results.list-view td a[href^="tel"] {
    color: #0073aa;
    text-decoration: none;
}

.results.list-view td a[href^="mailto"]:hover, .results.list-view td a[href^="tel"]:hover {
    text-decoration: underline;
}

.results.card-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.results.card-view .result {
    border: none;
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.results.card-view .result:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.results.card-view .result img {
    width: 120px;
    height: 150px;
    object-fit: cover;
    /*border-radius: 50%;*/
    margin: 0 auto 15px;
    border: 2px solid #0073aa;
}

.results.card-view .result h3 {
    margin: 0 0 10px;
    font-size: 1.6em;
    color: #333;
}

.results.card-view .result .doctor-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.results.card-view .result .doctor-link:hover {
    text-decoration: underline;
}

.results.card-view .result p {
    margin: 5px 0;
    color: #666;
    font-size: 0.95em;
}

.results.card-view .result p a[href^="mailto"], .results.card-view .result p a[href^="tel"] {
    color: #0073aa;
    text-decoration: none;
}

.results.card-view .result p a[href^="mailto"]:hover, .results.card-view .result p a[href^="tel"]:hover {
    text-decoration: underline;
}

.results.card-view .day-group {
    margin: 15px 0;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.results.card-view .day-group h4 {
    margin: 5px 0;
    font-size: 1.2em;
    color: #0073aa;
    font-weight: 600;
}

.results.card-view .day-group ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
    text-align: left;
}

.results.card-view .day-group ul li {
    margin: 8px 0;
    font-size: 0.9em;
}

.results.card-view .day-group ul li strong {
    color: #333;
    font-weight: 500;
}

.results.card-view .day-group ul ul {
    padding-left: 20px;
    list-style-type: disc;
}

.results.card-view .no-appointment {
    color: #d32f2f;
    font-style: italic;
    font-weight: 500;
    margin: 15px 0;
    font-size: 1em;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a, .pagination span {
    margin: 0 5px;
    text-decoration: none;
    color: #0073aa;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background 0.3s;
}

.pagination a:hover {
    background: #f4f4f4;
}

.pagination .current {
    font-weight: bold;
    background: #0073aa;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
}

/* Admin-specifikus lapozó stílusok */
/*
.wrap .pagination {
    margin: 20px 0;
    font-size: 14px;
}

.wrap .pagination a, .wrap .pagination .current {
    display: inline-block;
    line-height: 1.5;
    border: 1px solid #ddd;
}

.wrap .pagination a:hover {
    background: #e0e0e0;
    border-color: #ccc;
}
*/
/* A public.css fájlban, a meglévő .wrap .pagination stílusok frissítése */
.wrap .pagination {
    margin: 20px 0;
    text-align: center;
    font-size: 14px;
}

.wrap .pagination a, .wrap .pagination span {
    margin: 0 5px;
    padding: 6px 12px;
    text-decoration: none;
    color: #0073aa;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: background 0.3s, border-color 0.3s;
}

.wrap .pagination a:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

.wrap .pagination .current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
    font-weight: bold;
}

.doctor-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none;
}

.doctor-popup-content {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    max-width: 650px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
/*   opacity: 0;*/
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
}

.doctor-popup-overlay.show .doctor-popup-content {
    transform: scale(1);
    opacity: 1;
}


.doctor-popup-content img {
    width: 100px;
    /*height: 125px;*/
    object-fit: cover;
    /*border-radius: 50%;*/
    margin: 0 auto 15px;
    display: block;
    border: 3px solid #0073aa;
}

.doctor-popup-content h2 {
    margin: 0 0 15px;
    font-size: 1.9em;
    color: #222;
    text-align: center;
    font-weight: 600;
}

.doctor-popup-content p {
    margin: 8px 0;
    color: #555;
    font-size: 1em;
    line-height: 1.5;
}

.doctor-popup-content p strong {
    color: #333;
    font-weight: 500;
}

.doctor-popup-content p a[href^="mailto"], .doctor-popup-content p a[href^="tel"] {
    color: #0073aa;
    text-decoration: none;
}

.doctor-popup-content p a[href^="mailto"]:hover, .doctor-popup-content p a[href^="tel"]:hover {
    text-decoration: underline;
}

.doctor-popup-content .doctor-appointments {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.doctor-popup-content .doctor-appointments h3 {
    font-size: 1.4em;
    color: #0073aa;
    margin-bottom: 15px;
    text-align: center;
}

.doctor-popup-content .day-group {
    margin: 15px 0;
}

.doctor-popup-content .day-group h4 {
    margin: 10px 0 5px;
    font-size: 1.2em;
    color: #0073aa;
    font-weight: 600;
}

.doctor-popup-content .day-group ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.doctor-popup-content .day-group ul li {
    margin: 8px 0;
    font-size: 0.95em;
}

.doctor-popup-content .day-group ul li strong {
    color: #333;
    font-weight: 500;
}

.doctor-popup-content .day-group ul ul {
    padding-left: 20px;
    list-style-type: disc;
}

.doctor-popup-content .close-popup {
    display: block;
    margin: 25px auto 0;
    padding: 12px 25px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: background 0.3s, transform 0.2s;
}

.doctor-popup-content .close-popup:hover {
    background: #005177;
    transform: scale(1.05);
}

/* Adminisztrátori felület stílusai */
.wrap {
    /*max-width: 1200px;*/
    margin: 0 auto;
}

.form-table th {
    width: 150px;
    vertical-align: top;
    padding: 10px 10px 10px 0;
}

.form-table td {
    padding: 10px 0;
}

.form-table input[type="text"],
.form-table input[type="email"],
.form-table textarea,
.form-table select {
    width: 100%;
    max-width: 400px;
    padding: 6px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-table input[type="file"] {
    margin-top: 5px;
}

.form-table img {
    display: block;
    margin-bottom: 10px;
}

.wp-list-table {
    margin-top: 20px;
}

.wp-list-table th,
.wp-list-table td {
    padding: 10px;
    text-align: left;
}

.wp-list-table th {
    background: #f4f4f4;
}

.wp-list-table td a {
    color: #0073aa;
    text-decoration: none;
}

.wp-list-table td a:hover {
    text-decoration: underline;
}

/* Reszponzív dizájn az admin felülethez */
@media (max-width: 600px) {
    .form-table th, .form-table td {
        display: block;
        width: 100%;
        padding: 5px 0;
    }
    .form-table input[type="text"],
    .form-table input[type="email"],
    .form-table textarea,
    .form-table select {
        max-width: 100%;
    }
    .wp-list-table th,
    .wp-list-table td {
        padding: 8px;
        font-size: 14px;
    }
    .wrap .pagination a, .wrap .pagination .current {
        padding: 4px 8px;
        font-size: 13px;
    }
}

/* Frontend reszponzív dizájn (meglévő, változatlan) */
@media (max-width: 600px) {
    .results.list-view {
        font-size: 14px;
    }
    .results.list-view th, .results.list-view td {
        padding: 8px;
    }
    .results.card-view .result {
        padding: 15px;
    }
    .results.card-view .result img {
        width: 100px;
        height: 100px;
    }
    .results.card-view .result h3 {
        font-size: 1.4em;
    }
    .results.card-view .day-group h4 {
        font-size: 1.1em;
    }
    .results.card-view .no-appointment {
        font-size: 0.9em;
    }
    .doctor-popup-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }
    .doctor-popup-content img {
        width: 80px;
        height: 80px;
    }
    .doctor-popup-content h2 {
        font-size: 1.6em;
    }
    .doctor-popup-content .doctor-appointments h3 {
        font-size: 1.3em;
    }
}

/*
table {
  border-collapse: collapse;
  margin: 0;
  padding: 0;
  width: 100%;
  table-layout: fixed;
}
table caption {
  font-size: 1.5em;
  margin: .5em 0 .75em;
}
*/
@media
 only screen
    and (max-width: 760px)  {
		/* Force table to not be like tables anymore */
		table, thead, tbody, th, td, tr {
		display: block;
		}
		/* Hide table headers (but not display: none;, for accessibility) */
		thead tr {
		position: absolute;
		top: -9999px;
		left: -9999px;
		}
		    tr {
		      margin: 0 0 1rem 0;
		    }
		    tr:nth-child(odd) {
		      background: #ccc;
		    }
		td {
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee;
		position: relative;
		padding-left: 50%;
		}
		td:before {
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 0;
		left: 6px;
		width: 45%;
		padding-right: 10px;
		white-space: nowrap;
		}
}