/* Car Rental Marketplace - Frontend Styles */

.crm-form-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.crm-form-wrap h2 {
    margin-bottom: 20px;
}

.crm-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.crm-form-row {
    display: flex;
    flex-direction: column;
}

.crm-form-row label {
    font-weight: 600;
    margin-bottom: 5px;
}

.crm-form-row .required {
    color: #d9534f;
}

.crm-form-row input[type="text"],
.crm-form-row input[type="email"],
.crm-form-row input[type="tel"],
.crm-form-row input[type="password"],
.crm-form-row input[type="number"],
.crm-form-row input[type="datetime-local"],
.crm-form-row input[type="file"],
.crm-form-row select,
.crm-form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.crm-form-row textarea {
    resize: vertical;
}

.crm-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}

.crm-btn-primary {
    background: #2d8cf0;
    color: #fff;
}

.crm-btn-primary:hover {
    background: #1c7dd6;
}

.crm-btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.crm-btn-secondary:hover {
    background: #e4e4e4;
}

.crm-form-links {
    margin-top: 10px;
    text-align: center;
}

.crm-notice {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.crm-notice-info {
    background: #d9edf7;
    color: #31708f;
    border: 1px solid #bce8f1;
}

.crm-notice-error {
    background: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

.crm-notice-success {
    background: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

/* Vehicle Grid */
.crm-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.crm-vehicle-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}

.crm-vehicle-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.crm-vehicle-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.crm-placeholder {
    width: 100%;
    height: 180px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.crm-vehicle-info {
    padding: 15px;
}

.crm-vehicle-title {
    margin: 0 0 8px;
    font-size: 18px;
}

.crm-vehicle-title a {
    text-decoration: none;
    color: #333;
}

.crm-vehicle-price {
    font-size: 18px;
    font-weight: 700;
    color: #2d8cf0;
    margin-bottom: 12px;
}

.crm-vehicle-price span {
    font-size: 12px;
    font-weight: 400;
    color: #999;
}

.crm-vehicle-actions {
    display: flex;
    gap: 8px;
}

.crm-vehicle-actions .crm-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
}

.crm-empty {
    text-align: center;
    color: #999;
    padding: 40px 0;
}

/* Agencies Grid */
.crm-agencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.crm-agency-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

.crm-agency-logo img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
}

.crm-agency-logo .crm-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
}

.crm-agency-name {
    margin: 0 0 4px;
    font-size: 16px;
}

.crm-agency-type {
    display: inline-block;
    padding: 2px 8px;
    background: #2d8cf0;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    margin-bottom: 6px;
}

.crm-agency-location,
.crm-agency-contact {
    margin: 2px 0;
    font-size: 13px;
    color: #666;
}

/* Vehicle Detail */
.crm-vehicle-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px 0;
}

.crm-detail-image img {
    width: 100%;
    border-radius: 8px;
}

.crm-detail-info h1 {
    margin-top: 0;
}

.crm-detail-price {
    margin: 15px 0;
}

.crm-detail-price .crm-price {
    font-size: 24px;
    font-weight: 700;
    color: #2d8cf0;
    margin-right: 15px;
}

.crm-detail-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.crm-detail-specs span {
    padding: 4px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 13px;
}

.crm-detail-features ul {
    padding-left: 20px;
}

.crm-detail-location {
    margin: 15px 0;
}

.crm-detail-actions {
    margin-top: 20px;
}

/* Booking */
.crm-booking-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.crm-booking-vehicle-image img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.crm-booking-rates {
    margin-bottom: 15px;
}

.crm-booking-rates .crm-rate {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f7ff;
    border-radius: 4px;
    margin-right: 10px;
    font-weight: 600;
    color: #2d8cf0;
}

.crm-availability-result {
    margin-left: 10px;
    font-weight: 600;
}

.crm-availability-result.available {
    color: #3c763d;
}

.crm-availability-result.unavailable {
    color: #a94442;
}

.crm-booking-summary {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #eee;
}

.crm-account-type-notice {
    padding: 8px 12px;
    background: #f0f7ff;
    border-radius: 4px;
    font-size: 13px;
    color: #2d8cf0;
}

.crm-booking-success {
    text-align: center;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .crm-vehicle-detail {
        grid-template-columns: 1fr;
    }
}
