/* ===================================
   Podiatrist Location Manager - Frontend Styles
   =================================== */

/* Doctor Finder Wrapper */
.plm-finder-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

/* Search Section */
.plm-finder-search {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.plm-search-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e1e8ed;
}

.plm-tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    font-size: 14px;
    color: #657786;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.plm-tab-btn:hover {
    color: #1da1f2;
}

.plm-tab-btn.active {
    color: #1da1f2;
    border-bottom-color: #1da1f2;
}

.plm-tab-panel {
    display: none;
}

.plm-tab-panel.active {
    display: block;
}

.plm-search-row {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.plm-search-field {
    display: flex;
    flex-direction: column;
}

.plm-search-field label {
    font-size: 13px;
    font-weight: 600;
    color: #14171a;
    margin-bottom: 6px;
}

.plm-select-field,
.plm-input-field {
    padding: 12px 16px;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    font-size: 15px;
    width: 100%;
    transition: all 0.3s;
}

.plm-select-field:focus,
.plm-input-field:focus {
    outline: none;
    border-color: #1da1f2;
    box-shadow: 0 0 0 3px rgba(29, 161, 242, 0.1);
}

/* Filters */
.plm-filters {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
    flex-wrap: wrap;
}

.plm-filter-btn {
    padding: 8px 16px;
    background: #f7f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #14171a;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.plm-filter-btn:hover {
    background: #e8f5fe;
    border-color: #1da1f2;
    color: #1da1f2;
}

.plm-filter-arrow {
    font-size: 10px;
}

.plm-clear-filters {
    padding: 8px 16px;
    background: none;
    border: none;
    color: #1da1f2;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
}

/* Results Section */
.plm-finder-results {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 20px;
    min-height: 600px;
}

.plm-results-sidebar {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    overflow: hidden;
}

.plm-results-list {
    height: 600px;
    overflow-y: auto;
}

.plm-loading-message {
    padding: 40px 20px;
    text-align: center;
    color: #657786;
    font-size: 15px;
}

/* Doctor Result Card */
.plm-doctor-result {
    padding: 20px;
    border-bottom: 1px solid #e1e8ed;
    cursor: pointer;
    transition: background 0.3s;
}

.plm-doctor-result:hover {
    background: #f7f9fa;
}

.plm-doctor-result:last-child {
    border-bottom: none;
}

.plm-doctor-header {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.plm-doctor-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.plm-doctor-info {
    flex: 1;
}

.plm-doctor-name {
    font-size: 18px;
    font-weight: 700;
    color: #14171a;
    margin: 0 0 6px 0;
}

.plm-doctor-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.plm-stars {
    display: flex;
    gap: 2px;
}

.plm-star {
    font-size: 16px;
}

.plm-star-full {
    color: #f59e0b;
}

.plm-star-half {
    color: #f59e0b;
}

.plm-star-empty {
    color: #e1e8ed;
}

.plm-rating-number {
    font-size: 14px;
    color: #657786;
}

.plm-location-item {
    background: #f7f9fa;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.plm-location-item:last-child {
    margin-bottom: 0;
}

.plm-location-name {
    font-weight: 600;
    color: #14171a;
    margin-bottom: 4px;
}

.plm-location-address,
.plm-location-phone {
    font-size: 14px;
    color: #657786;
    margin: 2px 0;
}

.plm-location-phone a {
    color: #1da1f2;
    text-decoration: none;
}

.plm-location-phone a:hover {
    text-decoration: underline;
}

.plm-location-actions {
    margin-top: 8px;
}

/* Map */
.plm-results-map {
    background: #e1e8ed;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

#plm-finder-map {
    width: 100%;
    height: 600px;
}

/* Buttons */
.plm-btn {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.plm-btn-primary {
    background: #1da1f2;
    color: #fff;
}

.plm-btn-primary:hover {
    background: #1a8cd8;
}

.plm-btn-secondary {
    background: #f7f9fa;
    color: #14171a;
    border: 1px solid #e1e8ed;
}

.plm-btn-secondary:hover {
    background: #e8f5fe;
    border-color: #1da1f2;
    color: #1da1f2;
}

/* Doctors Grid (for list shortcode) */
.plm-doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.plm-doctor-card {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.plm-doctor-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.plm-doctor-photo-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.plm-doctor-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plm-doctor-content {
    padding: 20px;
}

.plm-doctor-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #14171a;
    margin: 0 0 12px 0;
}

.plm-doctor-bio {
    color: #657786;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.plm-doctor-phone {
    font-size: 14px;
    color: #657786;
    margin-bottom: 12px;
}

.plm-doctor-phone a {
    color: #1da1f2;
    text-decoration: none;
}

.plm-doctor-locations {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e8ed;
}

.plm-doctor-locations h4 {
    font-size: 13px;
    font-weight: 600;
    color: #14171a;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.plm-doctor-locations ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plm-doctor-locations li {
    padding: 6px 0;
    font-size: 14px;
    color: #14171a;
}

.plm-location-meta {
    color: #657786;
    font-size: 13px;
}

.plm-doctor-card .plm-btn {
    width: 100%;
    margin-top: 15px;
}

/* Location Cards (for map shortcode) */
.plm-locations-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.plm-location-card {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
}

.plm-location-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.plm-location-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #14171a;
    margin: 0 0 12px 0;
}

.plm-location-address {
    font-size: 14px;
    color: #657786;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
    .plm-finder-results {
        grid-template-columns: 1fr;
    }
    
    .plm-results-map {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .plm-search-row {
        grid-template-columns: 1fr;
    }
    
    .plm-doctors-grid {
        grid-template-columns: 1fr;
    }
    
    .plm-locations-list {
        grid-template-columns: 1fr;
    }
    
    .plm-search-tabs {
        flex-direction: column;
    }
    
    .plm-tab-btn {
        text-align: left;
    }
}

/* Loading spinner */
.plm-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1da1f2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: plm-spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes plm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
