/**
 * Frontend Styles
 * @package RentFlow
 */

/* Vehicle Grid */
.rentflow-vehicle-list {
    margin: 20px 0;
}

.vehicles-grid {
    display: grid;
    gap: 30px;
}

.vehicle-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.vehicle-image {
    position: relative;
    padding-bottom: 66%;
    overflow: hidden;
    background: #f5f5f5;
}

.vehicle-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-content {
    padding: 20px;
}

.vehicle-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.vehicle-brand {
    margin: 0 0 15px;
    color: #666;
    font-size: 14px;
}

.vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.vehicle-specs .spec {
    font-size: 13px;
    color: #555;
}

.vehicle-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.vehicle-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 12px;
    color: #666;
}

.price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.price-period {
    font-size: 12px;
    color: #666;
}

.vehicle-button {
    padding: 10px 24px;
    background: #667eea;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
    display: inline-block;
}

.vehicle-button:hover {
    background: #5568d3;
    color: #fff !important;
    text-decoration: none;
}

/* Single Vehicle */
.rentflow-single-vehicle {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.vehicle-header {
    text-align: center;
    margin-bottom: 40px;
}

.vehicle-title {
    font-size: 36px;
    margin: 0 0 10px;
}

.vehicle-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
}

.vehicle-gallery {
    margin-bottom: 40px;
}

.gallery-main {
    margin-bottom: 15px;
}

.gallery-main img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.thumb-image {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s;
}

.thumb-image:hover,
.thumb-image.active {
    border-color: #667eea;
}

.vehicle-main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.vehicle-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.spec-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.spec-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.spec-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.spec-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
}

.vehicle-description,
.vehicle-features {
    margin-bottom: 30px;
}

.vehicle-description h3,
.vehicle-features h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.features-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.features-list li {
    padding: 8px 0;
}

/* Booking Sidebar */
.booking-sidebar {
    position: sticky;
    top: 20px;
}

.booking-form-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.price-display {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px;
    margin-bottom: 30px;
}

.price-display .price-from {
    display: block;
    font-size: 14px;
    opacity: 0.9;
}

.price-display .price-amount {
    display: block;
    font-size: 42px;
    font-weight: 700;
    margin: 10px 0;
}

.price-display .price-period {
    display: block;
    font-size: 14px;
    opacity: 0.9;
}

.booking-form .form-group {
    margin-bottom: 20px;
}

.booking-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.booking-form input,
.booking-form textarea,
.booking-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
}

.booking-form input:focus,
.booking-form textarea:focus,
.booking-form select:focus {
    outline: none;
    border-color: #667eea;
}

.extra-item {
    margin-bottom: 10px;
}

.extra-item input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.extra-item label {
    display: inline;
    font-weight: normal;
    cursor: pointer;
}

.extra-price {
    color: #666;
    font-size: 14px;
}

.price-breakdown {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.price-breakdown h4 {
    margin: 0 0 15px;
    font-size: 16px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.price-line:last-child {
    border-bottom: none;
}

.total-line {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #333;
    font-size: 18px;
}

.booking-submit {
    width: 100%;
    padding: 16px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.booking-submit:hover {
    background: #5568d3;
}

.booking-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Search Form */
.rentflow-search-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.search-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.search-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
}

.search-submit {
    width: 100%;
    padding: 12px 24px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.search-submit:hover {
    background: #5568d3;
}

/* Responsive */
@media (max-width: 992px) {
    .vehicle-main-content {
        grid-template-columns: 1fr;
    }
    
    .booking-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .vehicle-title {
        font-size: 28px;
    }
    
    .search-fields {
        grid-template-columns: 1fr;
    }
    
    .price-display .price-amount {
        font-size: 32px;
    }
}

/* Loading Spinner */
.rentflow-loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utilities */
.rentflow-text-center {
    text-align: center;
}

.rentflow-mb-20 {
    margin-bottom: 20px;
}

.rentflow-mt-20 {
    margin-top: 20px;
}

