/* ideal-rent.css */
.ideal-rent-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.vehicle-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
    background: #fff;
}

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

.vehicle-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.vehicle-card h3 {
    padding: 1rem;
    margin: 0;
    font-size: 1.2rem;
    color: #333;
    border-bottom: 1px solid #eee;
}

.vehicle-details {
    padding: 1rem;
}

.vehicle-details .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c5282;
    margin: 0 0 1rem 0;
}

.vehicle-details ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.vehicle-details li {
    padding: 0.5rem 0;
    color: #666;
    border-bottom: 1px solid #eee;
}

.vehicle-details li:last-child {
    border-bottom: none;
}

.vehicle-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #2c5282;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.vehicle-link:hover {
    background-color: #1a365d;
    color: #fff;
    text-decoration: none;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .ideal-rent-vehicles-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .vehicle-card h3 {
        font-size: 1.1rem;
    }
    
    .vehicle-details .price {
        font-size: 1.3rem;
    }
}

/* Admin Styles */
.ideal-rent-settings input[type="text"] {
    width: 300px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ideal-rent-settings .form-table th {
    width: 200px;
}

.ideal-rent-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.vehicle-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: #fff;
}

.vehicle-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.vehicle-card h3 {
    padding: 1rem;
    margin: 0;
    font-size: 1.2rem;
    border-bottom: 3px solid #f87c30;
}

.vehicle-details {
    padding: 1rem;
}

.vehicle-details .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c5282;
    margin: 0 0 1rem 0;
}

.vehicle-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vehicle-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.vehicle-notes {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .ideal-rent-vehicles-grid {
        grid-template-columns: 1fr;
    }
}

.ideal-rent-loading {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.8);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.ideal-rent-loading span {
    background: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#ideal-rent-vehicles-container {
    position: relative;
    min-height: 200px;
}

.ideal-rent-pagination-container {
    max-width: 100%;
    overflow-x: auto;
}

.ideal-rent-pagination {
    text-align: center;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.ideal-rent-pagination .page-number {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ideal-rent-pagination .page-number.current {
    background-color: #2c5282;
    color: white;
    border-color: #2c5282;
}

.ideal-rent-pagination .page-number:hover:not(.current) {
    background-color: #f5f5f5;
}