/**
 * ACF AJAX Pro - Filter Plugin Styles
 * 
 * Main stylesheet for ACF AJAX directory filter plugin.
 * Includes styling for:
 * - Results grid layout (3-column responsive)
 * - Search/filter toolbar
 * - Individual result items with images and content
 * - Pagination controls
 * - Loading and meta information display
 */

/* ===================================
   RESULTS GRID LAYOUT
   =================================== */

#directory-listing {
    transition: opacity 0.4s ease;
}

/* Main grid container - 3-column flex layout */
.acf-pro-results-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

/* ===================================
   INDIVIDUAL RESULT ITEM
   =================================== */

/* Container for single result - includes image and content */
.acf-pro-result-item {
    flex: 0 0 calc(33.333% - 14px);
    display: flex;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.acf-pro-result-item:hover {
    border: 1px solid #666;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
}

/* ===================================
   RESULT IMAGE STYLING
   =================================== */

/* Image container - fixed size 220x220px with padding */
.acf-pro-result-image {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    overflow: hidden;
    padding:15px;
}

.acf-pro-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px !important;
}

/* ===================================
   RESULT CONTENT AREA
   =================================== */

/* Text content container - title, details, and actions */
.acf-pro-result-content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* ===================================
   RESULT TITLE STYLING
   =================================== */

/* Heading for result item */
.acf-pro-result-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 12px 0;
    padding: 0;
    line-height: 1.4;
}

.acf-pro-result-title .acf-pro-result-link {
    color: #8B0000;
    text-decoration: none;
}

.acf-pro-result-title .acf-pro-result-link:hover {
    color: #6B0000;
    text-decoration: underline;
}

/* ===================================
   CLINIC DETAILS SECTION
   =================================== */

/* Clinic information display area */
.acf-pro-result-details {
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    padding-right:10px;
}

.acf-pro-result-details p {
    margin: 0 0 10px 0;
}

.acf-pro-result-details ul,
.acf-pro-result-details ol {
    margin: 0 0 10px 20px;
    padding: 0;
}

.acf-pro-result-details li {
    margin-bottom: 5px;
}

/* ===================================
   LINKED IMAGES & NO RESULTS
   =================================== */

/* Link styling within image container */
.acf-pro-result-image .acf-pro-result-link {
    display: block;
    text-decoration: none;
}

/* Message displayed when no results match filters/search */
.acf-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* ===================================
   TOOLBAR/FILTER STYLES
   =================================== */

/* Main plugin wrapper container */
.acf-pro-wrapper {
    margin-bottom: 30px;
}

/* Search and filter controls container */
.acf-pro-toolbar {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: center;
}

/* Filter dropdowns container */
.acf-pro-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Search input, sort dropdown, and filter select styling */
.acf-pro-search,
.acf-pro-sort,
.acf-pro-filter {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.acf-pro-search {
    flex: 1;
    padding-left: 40px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 18px 18px;
}

.acf-pro-sort {
    min-width: 150px;
}

/* Clear filters button - dark red accent */
.acf-pro-clear {
    padding: 10px 20px;
    background: #8B0000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.acf-pro-clear:hover {
    background: #6B0000;
}

/* ===================================
   META & LOADING INFORMATION
   =================================== */

/* Meta information container with category counters */
.acf-pro-meta {
   /* margin: 30px 0 40px 0; */
    padding: 20px 0;

}

/* Counter boxes container - flex layout for responsive grid */
.acf-pro-count {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

/* Individual counter box styling */
.acf-pro-counter-box {
    flex: 0 0 auto;
    min-width: 200px;
   background-color: #ffffff22;
    border: 2px solid #e0e0e033;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.acf-pro-counter-box:hover {
    border-color: #e0e0e066;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.12);
    transform: translateY(-2px);
    background-color: #ffffff33;
}

/* Large number display */
.acf-pro-counter-number {
    font-size: 48px;
    font-weight: 700;
    color: #ffaaaa;
    line-height: 1;
    margin-bottom: 12px;
}

/* Category label styling */
.acf-pro-counter-label {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Loading text for initial state */
.acf-pro-loading-text {
    text-align: center;
    color: #999;
    font-size: 16px;
    padding: 20px;
    width: 100%;
}

/* Loading status indicator */
.acf-pro-loading {
    color: #8B0000;
    font-weight: 500;
}

/* ===================================
   PAGINATION STYLES
   =================================== */

/* Pagination wrapper with border separator */
.acf-pro-pagination {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.acf-pro-pagination-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Individual pagination links and current page number */
.acf-pro-page-link,
.acf-pro-page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.acf-pro-page-link:hover {
    background: #8B0000;
    color: white;
    border-color: #8B0000;
}

/* Current page indicator - highlighted state */
.acf-pro-page-current {
    background: #8B0000;
    color: white;
    border-color: #8B0000;
    cursor: default;
}

/* Pagination info text */
.acf-pro-pagination-info {
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* ===================================
   RESPONSIVE BREAKPOINTS
   =================================== */

/* Tablet and larger - 2-column layout */
@media (max-width: 1024px) {
    .acf-pro-result-item {
        flex: 0 0 calc(50% - 10px);
    }
}

/* Mobile - single column full width layout */
@media (max-width: 768px) {
    .acf-pro-result-item {
        flex: 0 0 100%;
        /* Removed flex-direction: column to keep horizontal layout */
    }

    /* Removed to keep thumbnail size consistent */
    /* .acf-pro-result-image {
        width: 100%;
        height: 220px;
    } */

    .acf-pro-toolbar {
        flex-direction: column;
    }

    .acf-pro-filters {
        width: 100%;
        flex-direction: column;
    }

    .acf-pro-search,
    .acf-pro-sort,
    .acf-pro-filter {
        width: 100%;
        min-width: stretch;
    }

    /* Responsive counter boxes for mobile */
    .acf-pro-count {
        gap: 15px;
    }

    .acf-pro-counter-box {
        min-width: 160px;
        padding: 25px 20px;
    }

    .acf-pro-counter-number {
        font-size: 36px;
    }

    .acf-pro-counter-label {
        font-size: 12px;
    }
}
  .external-icon {
    width: 1em;
    height: 1em;
    stroke: rgb(111, 1, 1);
    vertical-align: middle;
  }
/* Extra small devices - phones */
@media (max-width: 480px) {
    .acf-pro-toolbar {
        gap: 8px;
    }

    .acf-pro-clear {
        width: 100%;
    }
}
