.hcp-hospital-grid {
    display: grid;
    gap: 24px;
    margin-top: 30px;
}

/**
 * Dynamic Columns
 */
.hcp-hospital-grid.columns-1 {
    grid-template-columns: repeat(1, 1fr);
}

.hcp-hospital-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.hcp-hospital-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.hcp-hospital-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/**
 * Card
 */
.hcp-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.hcp-card:hover {
    transform: translateY(-5px);
}

/**
 * Image
 */
.hcp-card-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

/**
 * Content
 */
.hcp-card-content {
    padding: 20px;
}

.hcp-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111827;
    line-height: 1.3;
}

.hcp-location {
    color: #6b7280;
    margin-bottom: 16px;
    font-size: 14px;
}

/**
 * Tags
 */
.hcp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hcp-tags span {
    background: #f3f4f6;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 13px;
    color: #111827;
}

/**
 * Buttons
 */
.hcp-actions {
    padding: 20px;
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.hcp-actions a {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

/**
 * Primary Button
 */
.hcp-actions .hcp-btn-primary {
    background: #2563eb;
    color: white;
}

.hcp-actions .hcp-btn-primary:hover {
    background: #1d4ed8;
}

/**
 * Secondary Button
 */
.hcp-actions .hcp-btn-secondary {
    background: #f3f4f6;
    color: #111827;
}

.hcp-actions .hcp-btn-secondary:hover {
    background: #e5e7eb;
}

/**
 * Tablet
 */
@media(max-width: 1024px) {

    .hcp-hospital-grid.columns-4,
    .hcp-hospital-grid.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/**
 * Mobile
 */
@media(max-width: 767px) {

    .hcp-hospital-grid.columns-4,
    .hcp-hospital-grid.columns-3,
    .hcp-hospital-grid.columns-2,
    .hcp-hospital-grid.columns-1 {
        grid-template-columns: 1fr;
    }

    .hcp-actions {
        flex-direction: column;
    }
}

/* =============================================================================
   Customisable Cards Widget  (.cc- prefix)
   ============================================================================= */

.cc-card-grid {
    display: grid;
    gap: 24px;
    margin-top: 30px;
}

.cc-card-grid.columns-1 { grid-template-columns: repeat(1, 1fr); }
.cc-card-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
.cc-card-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.cc-card-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }

.cc-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
}

.cc-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.cc-card-content {
    padding: 20px;
    flex: 1;
}

.cc-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #111827;
    line-height: 1.3;
}

.cc-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 14px;
}

.cc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.cc-tags span {
    background: #f3f4f6;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 13px;
    color: #374151;
}

.cc-description {
    font-size: 14px;
    color: #374151;
    margin: 0 0 10px;
    line-height: 1.6;
}

.cc-actions {
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.cc-btn-primary,
.cc-btn-secondary {
    flex: 1;
    text-align: center;
    padding: 11px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
}

.cc-btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.cc-btn-primary:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.cc-btn-secondary {
    background: #f3f4f6;
    color: #111827;
}

.cc-btn-secondary:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Loading state */
.cc-card-grid.hcp-loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* No results */
.hcp-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
}

.hcp-no-results p {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

@media (max-width: 1024px) {
    .cc-card-grid.columns-4,
    .cc-card-grid.columns-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .cc-card-grid.columns-4,
    .cc-card-grid.columns-3,
    .cc-card-grid.columns-2,
    .cc-card-grid.columns-1 { grid-template-columns: 1fr; }

    .cc-actions { flex-direction: column; }
}

/* =============================================================================
   Search & Filter Widget
   ============================================================================= */

.hcp-search-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.hcp-search-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

/**
 * Filter group (label + field)
 */
.hcp-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 180px;
}

.hcp-filter-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: block;
}

.hcp-filter-input,
.hcp-filter-select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.hcp-filter-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.hcp-filter-input::placeholder {
    color: #9ca3af;
}

.hcp-filter-input:focus,
.hcp-filter-select:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/**
 * Buttons group
 */
.hcp-filter-buttons {
    flex-direction: row;
    flex: 0 0 auto;
    min-width: auto;
}

.hcp-search-btn,
.hcp-reset-btn {
    height: 44px;
    padding: 0 22px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.hcp-search-btn {
    background: #2563eb;
    color: #ffffff;
}

.hcp-search-btn:hover {
    background: #1d4ed8;
}

.hcp-reset-btn {
    background: #f3f4f6;
    color: #374151;
}

.hcp-reset-btn:hover {
    background: #e5e7eb;
}

/**
 * Loading state
 */
.hcp-hospital-grid.hcp-loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/**
 * No results
 */
.hcp-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
}

.hcp-no-results p {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

/**
 * Responsive – stack filters vertically on small screens
 */
@media (max-width: 767px) {

    .hcp-search-inner {
        flex-direction: column;
    }

    .hcp-filter-group {
        min-width: 100%;
    }

    .hcp-filter-buttons {
        width: 100%;
    }

    .hcp-search-btn,
    .hcp-reset-btn {
        flex: 1;
    }
}