/* College Listing Plugin Styles */

/* Simple Grid Layout */
.clp-simple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

@media (max-width: 992px) {
    .clp-simple-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .clp-simple-grid {
        grid-template-columns: 1fr;
    }
}

/* All Colleges Grid */
.clp-colleges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

@media (max-width: 992px) {
    .clp-colleges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .clp-colleges-grid {
        grid-template-columns: 1fr;
    }
}

/* College Card */
.clp-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.clp-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clp-card-image.clp-no-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.clp-card-body {
    padding: 20px;
}

.clp-card-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.clp-card-city {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clp-card-city svg {
    flex-shrink: 0;
}

.clp-card-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

/* Buttons */
.clp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.clp-btn svg {
    width: 20px;
    height: 20px;
}

.clp-btn-view {
    background: #667eea;
    color: #fff;
}

.clp-btn-view:hover {
    background: #5568d3;
}

.clp-btn-phone {
    background: #34c759;
    color: #fff;
}

.clp-btn-phone:hover {
    background: #2fb350;
}

.clp-btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.clp-btn-whatsapp:hover {
    background: #20ba5a;
}

.clp-btn-primary {
    background: #667eea;
    color: #fff;
    padding: 10px 20px;
    gap: 8px;
}

.clp-btn-primary:hover {
    background: #5568d3;
}

.clp-btn-secondary {
    background: #6c757d;
    color: #fff;
    padding: 10px 20px;
}

.clp-btn-secondary:hover {
    background: #5a6268;
}

.clp-btn-success {
    background: #25d366;
    color: #fff;
    padding: 10px 20px;
    gap: 8px;
}

.clp-btn-success:hover {
    background: #20ba5a;
}

/* Filters */
.clp-filters {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.clp-filter-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: center;
}

@media (max-width: 992px) {
    .clp-filter-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .clp-filter-row {
        grid-template-columns: 1fr;
    }
}

.clp-filter-item input[type="text"],
.clp-filter-item select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.clp-filter-item input[type="text"]:focus,
.clp-filter-item select:focus {
    outline: none;
    border-color: #667eea;
}

/* Results Info */
.clp-results-info {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Pagination */
.clp-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.clp-pagination-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.clp-page-link,
.clp-page-current {
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.clp-page-link {
    background: #f8f9fa;
    color: #333;
}

.clp-page-link:hover {
    background: #667eea;
    color: #fff;
}

.clp-page-current {
    background: #667eea;
    color: #fff;
}

/* Modal */
.clp-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.clp-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.clp-modal-lg {
    max-width: 800px;
}

.clp-modal-close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.clp-modal-close:hover,
.clp-modal-close:focus {
    color: #333;
}

/* Details */
.clp-details {
    padding: 10px 0;
}

.clp-details-image {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.clp-details-image img {
    width: 100%;
    height: auto;
    display: block;
}

.clp-details h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #333;
}

.clp-details-city {
    color: #666;
    font-size: 16px;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clp-details p {
    margin: 15px 0;
    color: #555;
    line-height: 1.6;
}

.clp-details-description {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    line-height: 1.8;
}

.clp-details-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Loading */
.clp-loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

.clp-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* No Results */
.clp-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* Utility */
.clp-all-listing {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
