/* 
 * Vet Directory Filter Styles
 * Premium, Clean, Modern
 */
:root {
    --vet-primary: #00D352; /* Vibrant Green from image */
    --vet-secondary: #008734;
    --vet-bg-light: #F1F9F4;
    --vet-text-dark: #1A2B3B;
    --vet-text-muted: #6C7A81;
    --vet-shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --vet-radius: 12px;
}

body {
    font-family: 'Outfit', sans-serif;
}

/* 1. TOP FILTER */
.vet-top-filter-wrap {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.vet-search-container {
    background: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--vet-shadow-soft);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #eee;
    width: 100%;
    max-width: 800px;
}

.vet-field-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    flex: 1;
}

.location-field {
    border-right: 1px solid #eee;
}

.vet-field-group i {
    color: #A0B0B9;
    font-size: 18px;
}

.vet-field-group select,
.vet-field-group input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: var(--vet-text-dark);
    width: 100%;
    padding: 10px 0;
}

.vet-search-btn {
    background: var(--vet-primary);
    color: #fff;
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 16px;
}

.vet-search-btn:hover {
    background: var(--vet-secondary);
}

/* 2. SIDEBAR FILTER */
.vet-sidebar-filter-wrap {
    background: var(--vet-bg-light);
    padding: 25px;
    border-radius: var(--vet-radius);
    box-shadow: var(--vet-shadow-soft);
    position: sticky;
    top: 20px;
}

.filter-title {
    font-size: 20px;
    font-weight: 700;
    color: #003049;
    margin-bottom: 20px;
    margin-top: 0;
}

.vet-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.vet-checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    color: var(--vet-text-dark);
    transition: color 0.2s ease;
}

.vet-checkbox-item:hover {
    color: var(--vet-primary);
}

.vet-checkbox-item input {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #D0D7DE;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    background: #fff;
    transition: all 0.2s ease;
}

.vet-checkbox-item input:checked + .checkbox-custom {
    background: var(--vet-primary);
    border-color: var(--vet-primary);
}

.vet-checkbox-item input:checked + .checkbox-custom::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #fff;
    font-size: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.vet-apply-btn {
    width: 100%;
    background: var(--vet-primary);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.vet-apply-btn:hover {
    background: var(--vet-secondary);
}

/* 3. RESULTS GRID */
.vet-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.vet-post-card {
    background: #fff;
    border-radius: var(--vet-radius);
    overflow: hidden;
    box-shadow: var(--vet-shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #F0F4F8;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vet-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.vet-post-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.vet-post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.vet-post-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--vet-text-dark);
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.vet-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--vet-text-muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.vet-meta-item i {
    color: var(--vet-primary);
}

.vet-view-btn {
    margin-top: auto;
    display: inline-block;
    color: var(--vet-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 1.5px solid var(--vet-primary);
    padding: 8px 20px;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
}

.vet-view-btn:hover {
    background: var(--vet-primary);
    color: #fff;
}

/* LOADING OVERLAY */
 #vet-results-container {
    position: relative;
    min-height: 200px;
}

.vet-loading-active {
    opacity: 0.5;
    pointer-events: none;
}

.vet-spinner {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 211, 82, 0.2);
    border-top: 4px solid var(--vet-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

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

@media (max-width: 768px) {
    .vet-search-container {
        flex-direction: column;
        border-radius: 20px;
        padding: 20px;
    }
    .location-field {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .vet-search-btn {
        width: 100%;
    }
}

/* 4. PAGINATION */
.vet-pagination {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    padding: 20px 0;
}

.vet-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 1.5px solid #E8EFF3;
    border-radius: 10px;
    background: #fff;
    color: #003049;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vet-pagination .page-numbers.current {
    background: var(--vet-primary);
    border-color: var(--vet-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 211, 82, 0.25);
}

.vet-pagination .page-numbers:not(.current):not(.dots):hover {
    border-color: var(--vet-primary);
    color: var(--vet-primary);
    background: #F9FFF9;
    transform: translateY(-2px);
}

.vet-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    min-width: 30px;
    cursor: default;
    color: #A0B0B9;
}

.vet-pagination .page-numbers i {
    font-size: 12px;
}
