/* ==========================================================================
   Services Archive Styles
   ========================================================================== */

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
   .vp-services-breadcrumb {
    padding: 44px 16px 36px;
    background: var(--Neutral-100);
}

.vp-services-breadcrumb nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vp-services-breadcrumb a {
    color: var(--Neutral-800);
    text-decoration: none;
}

.vp-services-breadcrumb a:hover {
    color: var(--Primary-primary);
}

.vp-services-breadcrumb svg {
    vertical-align: middle;
}

.vp-services-breadcrumb .vp-breadcrumb-current {
    color: var(--Primary-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.vp-services-hero {
    padding: 40px 0 80px;
    background: var(--Neutral-100);
}

.vp-services-hero .vp-title-text {
    max-width: 800px;
    margin: 24px auto 0;
}

.vp-services-hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.vp-services-hero-content .vp-sub-title {
    margin-bottom: 8px;
}

.vp-services-hero-content h1 {
    margin-bottom: 16px;
}

.vp-services-hero-content svg {
    max-width: 100%;
}

/* ==========================================================================
   Filters
   ========================================================================== */
.vp-services-archive {
    padding-bottom: 100px;
    background: var(--Neutral-100);
}

.vp-services-filters {
    display: flex;
    gap: 24px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.vp-filter-btn {
    border-radius: var(--12);
    border: 1px solid var(--Neutral-300);
    background: var(--Neutral-100);
    display: flex;
    height: 64px;
    padding: var(--20) var(--24);
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--Neutral-800);
    font-family: var(--font-family-onest);
    font-size: 18px;
    font-weight: 500;
    line-height: 140%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vp-filter-btn:hover {
    border-color: var(--Primary-primary);
    color: var(--Primary-primary);
}

.vp-filter-btn.vp-active {
    border-radius: var(--12);
    background: var(--Primary-primary);
    border-color: var(--Primary-primary);
    color: var(--Neutral-100);
}

/* ==========================================================================
   Search + Filters Wrapper
   ========================================================================== */
   .vp-services-controls {
    margin-bottom: 44px;
}

.vp-services-search {
    position: relative;
    max-width: 520px;
    margin-bottom: 24px;
}

.vp-services-search > svg {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.vp-services-search input[type="search"] {
    width: 100%;
    height: 64px;
    padding: 0 56px 0 56px;
    border-radius: var(--12);
    border: 1px solid var(--Neutral-300);
    background: var(--Neutral-100);
    color: var(--Neutral-800);
    font-family: var(--font-family-onest);
    transition: border-color .2s ease, box-shadow .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.vp-services-search input[type="search"]::-webkit-search-decoration,
.vp-services-search input[type="search"]::-webkit-search-cancel-button,
.vp-services-search input[type="search"]::-webkit-search-results-button,
.vp-services-search input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
}

.vp-services-search input[type="search"]::placeholder {
    color: var(--Neutral-500);
}

.vp-services-search input[type="search"]:focus {
    outline: none;
    border-color: var(--Primary-primary); 
}

.vp-search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s ease;
}

.vp-search-clear:hover {
    background: var(--Neutral-200);
}

.vp-services-filters {
    margin-bottom: 0; /* container handles spacing now */
}

/* ==========================================================================
   Search Highlight
   ========================================================================== */
.vp-search-highlight {
    background: var(--Primary-3);
    color: var(--Primary-primary);
    padding: 0 2px;
    border-radius: 3px;
    font-weight: 700;
}

/* ==========================================================================
   No Results
   ========================================================================== */
.vp-no-services-results {
    grid-column: 1 / -1;
}

.vp-no-services-results[hidden] {
    display: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .vp-services-controls {
        margin-bottom: 32px;
    }

    .vp-services-search {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .vp-services-search input[type="search"] {
        height: 54px;
        font-size: 16px;
        padding: 0 48px 0 48px;
    }

    .vp-services-search > svg {
        left: 16px;
        width: 20px;
        height: 20px;
    }

    .vp-search-clear {
        right: 12px;
    }
}

/* ==========================================================================
   Services Grid - CSS Grid for equal heights
   ========================================================================== */
.vp-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    row-gap: 32px;
}

.vp-service-card {
    width: 100%;
    max-width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.vp-service-card.vp-hidden {
    display: none;
}

.vp-service-card.vp-filtered-out {
    display: none;
}

/* Card Image */
.vp-service-card-img {
    width: 100%;
    margin-bottom: -60px;
    position: relative;
    z-index: 1;
}

.vp-service-card-img img {
    width: 100%;
    height: 290px;
    object-fit: cover;
    border-radius: var(--24);
}

/* Card Content */
.vp-service-card-content {
    border-radius: 0 var(--24) var(--24) var(--24);
    border: 1px solid var(--Neutral-300);
    background: var(--Neutral-100);
    padding: var(--44) var(--24) var(--24) var(--24);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.02);
    min-height: 280px;
    max-width: 344px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
}

.vp-service-card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vp-service-card-info h2 {
    margin-bottom: 8px;
    min-height: 64px;
}

.vp-service-card-info h2 a{
    color: var(--Neutral-800);
}

.vp-service-card-info h2 a:hover {
    color: var(--Primary-primary);
}

/* Features List */
.vp-service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vp-service-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--Neutral-600);
    font-size: 18px;
    font-weight: 400;
    line-height: 148%;
}

.vp-service-features li svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin-top: 2px;
}

/* Card Icon */
.vp-service-card-icon {
    position: absolute;
    left: 24px;
    top: 199px;
    z-index: 3;
}

/* Book Now Button */
.vp-service-card-content .vp-btn-simple-one-large {
    margin-top: 16px;
}

/* ==========================================================================
   Load More
   ========================================================================== */
.vp-load-more {
    display: flex;
    justify-content: center;
    margin-top: 44px;
}

.vp-load-more.vp-hidden {
    display: none;
}

/* No Services Message */
.vp-no-services {
    width: 100%;
    text-align: center;
    padding: 60px 20px;
    color: var(--Neutral-600);
    font-size: 18px;
    grid-column: 1 / -1;
}

/* ==========================================================================
   Responsive - Tablet (2 columns)
   ========================================================================== */
@media (max-width: 1100px) {
    .vp-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vp-service-card-content {
        max-width: 100%;
    }
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */
@media (max-width: 768px) {
    .vp-services-breadcrumb {
        padding: 32px 16px 36px;
    }

    .vp-services-breadcrumb .vp-max-width {
        padding: 0;
    }

    .vp-services-hero {
        padding: 24px 0 60px;
    }

    .vp-services-hero-content h1 {
        font-size: var(--24);
    }

    .vp-services-archive {
        padding-bottom: 80px;
    }

    .vp-services-filters {
        gap: 16px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        margin-bottom: 32px;
        -webkit-overflow-scrolling: touch;
    }

    .vp-filter-btn {
        font-size: 16px;
        padding: 16px 20px;
        height: 54px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .vp-filter-btn.vp-active {
        height: 54px;
        font-size: 16px;
        padding: 16px 20px;
    }

    .vp-services-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .vp-service-card {
        max-width: 500px;
    }

    .vp-service-card-content {
        min-height: auto;
        max-width: 90%;
    }

    .vp-service-features li {
        font-size: 16px;
    }

    .vp-load-more {
        width: 100%;
        padding: 0 16px;
    }

    .vp-load-more button {
        width: 100%;
    }
}

@media (max-width: 500px) {
    .vp-service-card {
        max-width: 100%;
    }

    .vp-service-card-content {
        max-width: 88%;
    }
    .vp-service-card-info h2 { 
        min-height: unset;
    }
}

@media (max-width: 400px) {
    .vp-service-card-content {
        max-width: 85%;
    }

    .vp-service-card-icon {
        top: 36%;
    }
}