/* CLMA Directory Plugin Styles */

.clma-search-container {
    max-width: 600px;
    margin: 50px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

.clma-search-tabs {
    display: flex;
    background: #f8f8f8;
    border-bottom: 3px solid #15b1c0;
}

.clma-tab {
    flex: 1;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s;
    background: #fff;
}

.clma-tab:hover {
    background: #f0f0f0;
}

.clma-result-icon svg {
    stroke: #fff !important;
}

.clma-tab-active {
    background: #fff;
    border-bottom: 0px;
}

.clma-tab:not(.clma-tab-active) {
    background: #333;
    color: #fff;
}

.clma-search-content {
    padding: 30px;
}

.clma-tab-content {
    display: none;
}

.clma-result-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.clma-tab-content-active {
    display: block;
}

.clma-search-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px !important;
}
button.clma-search-button:hover, button.clma-clear-input:hover {
    border: 1px solid #15b1c0 !important;
    background: transparent;
    color: #15b1c0;
    box-shadow: none !important;
}

button.clma-clear-input {
    font-size: 24px;
    padding: 6px 20px 6px 20px !important;
    border: 1px solid #fff;
}
button.clma-search-button {
    border: 1px solid #fff !important;
	  box-shadow: none !important;
}
.clma-terms span {
    line-height: 19px;
}

.clma-search-input {
    flex: 1;
    padding: 12px !important;
    border: 2px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s !important;
}

.clma-search-input:focus {
    border-color: #FFD700;
}

.clma-radius-select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background: #fff;
    cursor: pointer;
    min-width: 120px;
}

.clma-autocomplete-results {
    position: relative;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: -10px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.clma-autocomplete-results.active {
    display: block;
}

.clma-autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.clma-autocomplete-item:hover {
    background: #f8f8f8;
}

.clma-autocomplete-item:last-child {
    border-bottom: none;
}

.clma-terms {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.clma-terms label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

.clma-terms input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.clma-terms a {
    color: #0066cc;
    text-decoration: underline;
}

.clma-search-button {
    width: 100%;
    padding: 18px;
    background: #FFD700;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.clma-search-button:hover {
    background: #FFC700;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Search Results Styles */
.clma-results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.clma-results-header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px;
    margin-bottom: 30px;
}

.clma-results-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.clma-results-header p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.clma-results-filters {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.clma-filter-item {
    flex: 1;
    min-width: 200px;
}

.clma-filter-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.clma-filter-item input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.clma-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid #f0f0f0;
}

.clma-results-count {
    font-size: 18px;
}

.clma-favorites-btn {
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #FFD700;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.clma-favorites-btn:hover {
    background: #FFD700;
}

.clma-results-list {
    display: flex;
    gap: 30px;
	  margin-top: 30px;
}

.clma-result-card {
    width: 33%;
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    border: 2px solid #f1f1f1;
    padding: 30px;
    border-radius: 12px;
}

.clma-result-content p {
    margin: 0 !important;
}

.clma-result-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
/*     transform: translateY(-2px); */
}

.clma-result-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: #15b1c0;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 17px;
}

.clma-result-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clma-result-icon svg {
    width: 80px;
    height: 80px;
}

.clma-result-content {
    flex: 1;
}

.clma-result-content h3 {
    font-size: 24px !important;
    margin-bottom: 5px;
    color: #333 !important;
}

.clma-result-location {
    color: #666;
    margin-bottom: 15px;
}

.clma-result-section {
    margin: 15px 0;
}

.clma-result-section strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}

.clma-result-section p {
    color: #666;
    line-height: 1.6;
}

.clma-result-actions {
    display: flex;
    align-items: flex-start;
}

.clma-favorite-btn, .clma-favorites-btn {
    padding: 12px 24px;
    background: #FFD700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.clma-filter-item {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}
.clma-filter-item input {
    padding: 11px;
    background: transparent;
    border: 1px solid #0000001c !important;
}

.new_miles {
    width: 100% !important;
    border: 1px solid #0000001c !important;
    padding: 5px 0 5px 14px;
    border-radius: 4px;
}

.clma-favorite-btn:hover, button.clma-favorites-btn:hover {
    background: #fff !important;
    transform: none !important;
    border: 1px solid #15b1c0 !important;
    color: #15b1c0;
}

.clma-no-results {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .clma-search-tabs {
        flex-direction: column;
    }
    
    .clma-search-inputs {
        flex-direction: column;
    }
    
    .clma-result-card {
        flex-direction: column;
		  margin-bottom: 30px;
    }
    
    .clma-result-icon {
    width: 80px;
    height: 80px;
}
    
    .clma-results-header h1 {
        font-size: 32px;
    }
    
    .clma-results-info {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
	.clma-results-list {
    display: block !important
}
	.clma-result-card {
    width: 100% !important
}
	.clma-filter-item {
    display: block !important
}
	.clma-results-filters {
    gap: 11px !important

}
	.new_miles {
    padding: 10px 16px !important;
}
	.clma-filter-item {
    align-items: flex-start !important
    display: flex !important
    flex-direction: column !important;
    gap: 10px !important
}
}

@media only screen and (max-width:1024px) and (min-width:769px){
	.clma-results-list {
    flex-wrap: wrap;
		justify-content:space-between;
		    gap: 14px;
}
	.clma-result-card {
    width: 49% !important
}
	.clma-search-container {
    max-width: 100% !important;
}
}