/* don't add new styles unless I ask */

/* Hide breadcrumbs on directory pages */
.post-type-archive-apns-listing .breadcrumb,
.post-type-archive-apns-listing .breadcrumbs,
.post-type-archive-apns-listing nav.breadcrumb,
.post-type-archive-apns-listing nav[aria-label*="readcrumb"],
.post-type-archive-apns-listing .woocommerce-breadcrumb,
.single-apns-listing .breadcrumb,
.single-apns-listing .breadcrumbs,
.single-apns-listing nav.breadcrumb,
.single-apns-listing nav[aria-label*="readcrumb"],
.single-apns-listing .woocommerce-breadcrumb {
    display: none !important;
}

/* Essential toggle functionality */
.directory-view {
    display: none;
}

h2.filter-title{
    margin:0px!important;
}
.directory-view.active {
    display: block;
}

.directory-view-toggle {
    margin-bottom: 1rem;
}

.view-toggle-btn {
    background: #e6e6e6;
    border: 1px solid #ccc;
    color: rgba(0, 0, 0, 0.8);
    padding: 8px 16px;
    margin-right: 8px;
    cursor: pointer;
    transition: none;
}

.view-toggle-btn.active {
    background: #022c68;
    color: #fff;
    border-color: #022c68;
}

.view-toggle-btn:hover {
    background: #10c2ba;
    color: #fff;
    border-color: #10c2ba;
}

.page-header {
    position: relative;
}

.psychologist-count {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.9em;
    font-weight: normal;
    color: #666;
    padding: 0.25rem 0.5rem;
}

.listing-title {
    font-size: 1.4em;
    font-weight: bold;
   padding-left:8px;
   margin:0px;
   font-family:"Roboto Condensed",serif;
}

.listing-card {
    cursor: pointer;
    padding:10px;
    padding-top:10px;
    transition: background-color 0.2s;
    border: 1px solid #ccc;
display:flex;
flex-direction:column;
gap:2px;
}

.listing-card:hover {
    background-color: #f5f5f5;
}

.location-grid {
    display: grid;
    border-top:1px solid #ccc;
    margin-top:5px;
    grid-template-columns: 1fr 0.5fr 0.5fr 1.5fr;
}

.location-name,
.location-city,
.location-phone,
.location-email {
    padding: 4px 8px;
    font-size: 0.9em;
    text-align: left;
}

.detailed-listings {
   display:flex;
   flex-direction:column;
   gap:10px;
}

.detailed-listings.two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.layout-toggle-wrapper {
    margin: 1rem 0;
    display: none;
    align-items: center;
    gap: 8px;
}

.toggle-label {
    font-size: 13px;
    color: #333;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.loc-label {padding-left:8px}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 20px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #022c68;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Two-column view adjustments for card details */
.detailed-listings.two-column .location-grid {
    grid-template-columns: repeat(2, 1fr);
}

.toggle-icon {
    font-size: 16px;
    margin-right: 4px;
}

@media (max-width: 767px) {
    .location-grid {
        grid-template-columns: 1fr;
    }
    
    .detailed-listings.two-column {
        grid-template-columns: 1fr;
    }
}

.location-name,
.location-city,
.location-email {
    padding: 4px 8px;
}
.location-name {
    font-weight: bold;
}
.location-city {
    font-weight:bold;
}
.content-area-full {width:100%}

/* Filter controls */
.directory-filters {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
}

.filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-row.button-row {
    margin-top: 0.5rem;
}
.multiselect-button {margin:0px!important}
.filter-input-group {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.filter-input-group.full-width {
    max-width: 600px;
}

.filter-wrapper label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
    color: #333;
    font-family: 'Roboto Condensed', sans-serif;
}

.filter-group {
    position: relative;
}

/* Hide native select elements immediately to prevent FOUC */
.filter-select {
    display: none;
}

.directory-filters .search-input,
input#search-input {
    width: 100% !important;
    padding: 8px 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    font-family: 'Roboto Condensed', sans-serif !important;
    transition: border-color 0.2s !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 38px !important;
    line-height: normal !important;
    margin: 0 !important;
    background: white !important;
    color: #333 !important;
}

.directory-filters .search-input:focus,
input#search-input:focus {
    outline: none !important;
    border-color: #022c68 !important;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-button,
.reset-button {
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    transition: none;
}

.search-button {
    background: #022c68;
    color: #fff;
    border-color: #022c68;
}

.search-button:hover {
    background: #10c2ba;
    border-color: #10c2ba;
}

.reset-button {
    background: #e6e6e6;
    color: rgba(0, 0, 0, 0.8);
}

.reset-button:hover {
    background: #d0d0d0;
}

/* Multi-select dropdown */
.custom-multiselect {
    position: relative;
    width: 100%;
}

.multiselect-button {
    width: 100%;
    padding: 8px 12px;
    text-align: left;
    background: white;
    border: 1px solid #ccc;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    transition: none;
    color: #333;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: lowercase;
}

.multiselect-button:after {
    content: "\25BC";
    position: absolute;
    right: 12px;
    font-size: 10px;
}

.multiselect-button.has-selections {
    background: #e6f2ff;
    border-color: #022c68;
}

.multiselect-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.checkbox-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: none;
}

.checkbox-option:hover {
    background: #f5f5f5;
}

.checkbox-option input[type="checkbox"] {
    margin-right: 8px;
}

.checkbox-option span {
    flex: 1;
    color: #333;
}

@media (max-width: 767px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-input-group {
        width: 100%;
    }
    
    .filter-buttons {
        width: 100%;
    }
    
    .search-button,
    .reset-button {
        flex: 1;
    }
}

/* Single listing layout with sidebar */
.single-listing-layout {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.listing-main-content {
    flex: 1;
    min-width: 300px;
}

.listing-sidebar {
    flex: 0 0 300px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 1.5rem;
    align-self: flex-start;
    position: sticky;
    top: 20px;
}

.sidebar-section {
    margin-bottom: 1rem;
}

.sidebar-title {
    font-size: 1.3em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #022c68;
}

.meta-field-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.meta-field-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.meta-field-label {
    font-size: 1.1em;
    margin-bottom: 0.5rem;
    color: #333;
}

.meta-field-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.meta-field-list li {
    padding: 0.3rem 0;
    line-height: 1.6;
}

.meta-field-list li strong {
    color: #555;
}

.meta-field-list a {
    color: #022c68;
    text-decoration: none;
}

.meta-field-list a:hover {
    text-decoration: underline;
}

.meta-field-value {
    margin: 0.5rem 0;
    font-size: 1em;
}

.meta-list-small li {
    font-size: 0.9em;
}

.all-meta-fields {
    background: #fff;
    padding: 1rem;
    border: 1px solid #e0e0e0;
}

@media (max-width: 991px) {
    .single-listing-layout {
        flex-direction: column;
    }
    
    .listing-sidebar {
        flex: 1 1 100%;
        position: static;
    }
}

@media (max-width: 767px) {
    .single-apns-listing #secondary.widget-area {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }
    
    .single-apns-listing #primary.content-area {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }
}

/* Listing Meta Data Box */
.listing-meta-box {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f9f9f9;
    border: 1px solid #ddd;
}

.meta-box-title {
    font-size: 1.5em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #022c68;
    color: #333;
}

.meta-box-content {
    padding: 0.5rem 0;
}

.meta-field-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem 1.5rem;
    margin: 0;
    padding: 0;
}

.meta-field-key {
    font-weight: bold;
    color: #555;
    margin: 0;
    padding: 0.5rem 0;
}

.meta-field-value {
    margin: 0;
    padding: 0.5rem 0;
    color: #333;
}

.meta-value-list {
    list-style: disc;
    margin: 0;
    padding-left: 1.5rem;
}

.meta-value-list li {
    padding: 0.2rem 0;
}

.no-meta {
    color: #666;
    font-style: italic;
}

@media (max-width: 767px) {
    .meta-field-list {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    
    .meta-field-key {
        padding: 0.25rem 0;
    }
    
    .meta-field-value {
        padding: 0.25rem 0 0.75rem 0;
        border-bottom: 1px solid #e0e0e0;
    }
}

/* Bio section */
.bio {
}
