.rf-container {
    font-family: inherit;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.rf-filter-group {
    background-color: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.rf-filter-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 700;
    color: #4a4a4a;
}

.rf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rf-chip {
    cursor: pointer;
    position: relative;
    margin: 0;
}

.rf-chip input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rf-chip span {
    display: inline-block;
    padding: 4px 12px;
    background-color: #888;
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    user-select: none;
}

.rf-chip input[type="radio"]:checked + span,
.rf-chip input[type="radio"]:hover + span {
    background-color: #e5964e;
    color: #fff;
}

.rf-select {
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

.rf-grid-container {
    position: relative;
    min-height: 200px;
    width: 100%;
    box-sizing: border-box;
}

/* Force CSS Grid based on Desktop first */
.rf-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    transition: opacity 0.3s ease;
    align-items: stretch; 
    width: 100%;
    box-sizing: border-box;
}

/* Tablet Override */
@media (max-width: 1024px) {
    .rf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobile Override */
@media (max-width: 767px) {
    .rf-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

.rf-loader {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    z-index: 10;
}

.rf-spinner {
    animation: rotate 2s linear infinite;
    width: 40px;
    height: 40px;
}
.rf-spinner .path {
    stroke: #558b83;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash {
  0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

.rf-card {
    background: #fff;
    border: 2px dashed #d1a87e;
    border-radius: 12px;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    word-break: break-word;
}

.rf-logo-wrapper {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
    max-width: 100%;
}

.rf-logo-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.rf-title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    color: #4a4a4a;
    margin: 0 0 15px 0;
    line-height: 1.4;
    border-bottom: 1px dashed #d1a87e;
    padding-bottom: 15px;
}

.rf-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    flex-grow: 1;
    margin-bottom: 25px;
}

.rf-bottom-section {
    margin-top: auto;
}

.rf-meta {
    margin-bottom: 20px;
}

.rf-address, .rf-phone {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.2; /* Reduced line-height for <br> spacing */
}

.rf-address span, .rf-phone span {
    display: inline-block;
    line-height: 1.2; /* Reduced line-height for <br> spacing */
}

.rf-address svg, .rf-phone svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.rf-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    background-color: #558b83;
    color: #ffffff !important; 
    padding: 12px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.2s ease;
}

.rf-btn:hover {
    background-color: #44746d;
    color: #ffffff !important;
}

.rf-load-all {
    background-color: #e5964e;
}
.rf-load-all:hover {
    background-color: #d1a87e;
}

.rf-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
    background: #f7f7f7;
    border-radius: 8px;
}
