.wp-directory-search {
margin-bottom: 30px;
} .advanced-search-container {
background: #ffffff;
border: 1px solid #e0e0e0;
border-radius: 8px;
padding: 20px;
margin-bottom: 25px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.search-fields-row {
display: flex;
gap: 15px;
align-items: end;
flex-wrap: wrap;
}
.search-field-group {
flex: 1;
min-width: 200px;
margin-bottom: 0;
}
.search-field-group label {
display: block;
font-weight: 600;
color: #333;
margin-bottom: 6px;
font-size: 13px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.search-field-group input,
.search-field-group select {
width: 100%;
padding: 7px 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
color: #333;
background: #fff;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
box-sizing: border-box;
}
#directory-search-city>option {
text-transform: uppercase;
}
.search-field-group input:focus,
.search-field-group select:focus {
outline: none;
border-color: #007cba;
box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}
.search-field-group input::placeholder {
color: #999;
font-style: italic;
}
.search-buttons {
display: flex;
gap: 10px;
align-items: end;
flex-shrink: 0;
}
.search-btn,
.reset-btn {
padding: 10px 20px;
border: none;
border-radius: 4px;
font-weight: 600;
font-size: 14px;
cursor: pointer;
transition: all 0.2s ease;
white-space: nowrap;
}
.search-btn {
background: #007cba;
color: white;
}
.search-btn:hover {
background: #005a87;
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0, 124, 186, 0.3);
}
.reset-btn {
background: #f8f9fa;
color: #6c757d;
border: 1px solid #dee2e6;
}
.reset-btn:hover {
background: #e9ecef;
border-color: #adb5bd;
}
.search-btn:active,
.reset-btn:active {
transform: translateY(0);
} @media (max-width: 768px) {
.search-fields-row {
flex-direction: column;
gap: 15px;
}
.search-field-group {
min-width: 100%;
}
.search-buttons {
justify-content: stretch;
margin-top: 10px;
}
.search-btn,
.reset-btn {
flex: 1;
}
}
@media (max-width: 480px) {
.advanced-search-container {
padding: 15px;
}
.search-buttons {
flex-direction: column;
gap: 10px;
}
} .wp-directory-grid {
display: grid;
gap: 20px;
margin-top: 20px;
}
.wp-directory-grid.columns-2 {
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.wp-directory-grid.columns-3 {
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.wp-directory-grid.columns-4 {
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
} .directory-card {
background: #fff;
border: 1px solid #e1e5e9;
border-radius: 8px;
padding: 20px 20px 50px 20px;
transition: all 0.3s ease;
cursor: pointer;
position: relative;
overflow: hidden;
display: block;
width: 100%;
box-sizing: border-box;
}
.directory-card:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
border-color: #007cba;
}
.directory-card.selected {
border-color: #007cba;
box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}
.directory-card-inner {
position: relative;
}
.directory-header {
display: flex;
align-items: center;
margin-bottom: 15px;
padding-bottom: 15px;
border-bottom: 1px solid #f0f0f0;
}
.directory-avatar {
margin-right: 15px;
flex-shrink: 0;
}
.directory-avatar img {
border-radius: 50%;
width: 60px;
height: 60px;
object-fit: cover;
}
.directory-info {
flex: 1;
}
.directory-name {
margin: 0 0 5px 5px;
font-size: 16px;
font-weight: 600;
color: #2c3e50;
}
.directory-email {
color: #666;
margin: 5px 0 0 0;
cursor: pointer;
transition: color 0.3s ease;
font-size: 13px;
}
.directory-email:hover {
color: #005a87;
text-decoration: underline;
}
.directory-function-header {
color: #007cba;
margin: 5px 0 0 0;
font-weight: 500;
font-style: italic;
font-size: 13px;
}
.directory-contact-info {
margin-top: 10px;
}
.directory-contact-info p {
margin: 5px 0;
font-size: 13px;
line-height: 1.4;
color: #555;
}
.directory-contact-info strong {
color: #2c3e50;
font-weight: 600;
} .directory-details {
margin-top: 15px;
display: none; }
.directory-card.selected .directory-details {
display: block; }
.directory-details p {
margin: 8px 0;
font-size: 13px;
line-height: 1.4;
color: #555;
}
.directory-details strong {
color: #2c3e50;
font-weight: 600;
}
.directory-membership-level {
margin-bottom:15px!important;
}
.directory-membership-level strong {
color: #ffffff!important;
margin: 5px 0 5px 0;
font-weight: 500;
font-size: 12px;
background-color: #004d68;
padding: 3px 5px 3px 5px;
} .directory-nationality,
.directory-birth-date,
.directory-personal-email,
.directory-mobile-phone,
.directory-direct-phone {
display: flex;
align-items: center;
}
.directory-website strong {
font-weight: 500;
color: #333;
}
.directory-description strong {
font-weight: 500;
color: #333;
}
.directory-role strong {
font-weight: 500;
color: #333;
}
.directory-registered strong {
font-weight: 500;
color: #333;
} .directory-title {
font-weight: 500;
color: #333;
}
.directory-professional-status {
font-weight: 500;
color: #333;
}
.directory-specialty {
font-weight: 500;
color: #333;
}
.directory-function {
font-weight: 500;
color: #333;
}
.directory-establishment {
font-weight: 500;
color: #333;
}
.directory-service {
font-weight: 500;
color: #333;
}
.directory-professional-address { font-size: 13px;
color: #666;
}
.directory-standard-phone {
font-weight: 500;
color: #333;
}
.directory-interests {
background-color: #f8f9fa;
padding: 10px;
border-radius: 5px;
border-left: 4px solid #007cba;
margin-top: 10px;
} .directory-expand-icon {
position: absolute;
right: 0px;
width: 24px;
height: 24px;
background: #fff;
color: #dc3545;
border: 1px solid #dc3545;
border-radius: 50%;
display: flex;
align-items: center;
font-size: 14px;
font-weight: bold;
cursor: pointer;
transition: all 0.2s ease;
z-index: 10;
box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
justify-content: center;
}
.directory-expand-icon:hover {
background: #dc3545;
color: #fff;
transform: scale(1.1);
box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}
.directory-card.selected .directory-expand-icon {
background: #dc3545;
color: #fff;
transform: rotate(45deg);
border-color: #dc3545;
}
.directory-card.selected .directory-expand-icon:hover {
background: #c82333;
color: #fff;
transform: rotate(45deg) scale(1.1);
} .copyable-email {
color: #007cba;
cursor: pointer;
transition: color 0.2s ease;
text-decoration: underline;
}
.copyable-email:hover {
color: #005a87;
} .directory-website a {
color: #007cba;
text-decoration: none;
transition: color 0.2s ease;
}
.directory-website a:hover {
color: #005a87;
text-decoration: underline;
} .no-results {
text-align: center;
color: #666;
font-style: italic;
padding: 40px 20px;
grid-column: 1 / -1;
} @media (max-width: 1200px) {
.wp-directory-grid.columns-4 {
grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 900px) {
.wp-directory-grid.columns-4 {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.wp-directory-grid {
grid-template-columns: 1fr;
}
.advanced-search-container {
padding: 15px;
}
.directory-card {
padding: 15px;
}
.directory-details {
display: block;
}
} .directory-loading {
text-align: center;
padding: 40px;
color: #666;
}
.directory-loading::after {
content: "⏳";
font-size: 24px;
animation: spin 1s linear infinite;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}