/**
 * Custom CSS for Car Rental Functionality
 */

/* CSS Variables for Unified Color Management */
:root {
    /* Brand Colors */
    --primary: #C1272D;
    /* Deep car-sport red */
    --primary-hover: #9e1f24;
    /* Darker red for hover states */
    --primary-light: #fce6e7;
    /* Light red background */

    --secondary: #2E4A62;
    /* Steel blue */
    --secondary-light: #e8f0f5;
    /* Light blue background */

    /* Status Colors */
    --success: #4caf50;
    --warning: #f57c00;
    --danger: #dc3545;

    /* Text Colors */
    --text-dark: #333;
    --text-medium: #666;
    --text-light: #999;

    /* Background Colors */
    --bg-white: #fff;
    --bg-light: #f8f9fa;
    --bg-gray: #f0f0f0;

    /* Border Colors */
    --border: #ddd;
    --border-light: #e0e0e0;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition: all 0.3s ease;
}

/* Mileage Options Styling */
.mileage-options {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.mileage-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-white);
}

.mileage-option:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.mileage-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.mileage-option input[type="radio"] {
    margin-right: 15px;
}

.mileage-option .option-label {
    flex: 1;
    font-weight: 600;
    color: var(--text-dark);
}

.mileage-option .option-price {
    margin: 0 20px;
    color: var(--primary);
    font-weight: bold;
}

.mileage-option .option-total {
    color: var(--text-medium);
    font-size: 14px;
}

/* Rental Interface */
.rental-interface {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
}

.rental-interface h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.rental-period {
    background: var(--bg-white);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
}

.rental-period p {
    margin: 5px 0;
}

/* Availability Badge - REMOVED (now part of product specs) */

/* Product Loop Modifications */
.products .product.type-product {
    position: relative;
}

/* New price styling for rental products - SHOP LIST ONLY */
.product-small .rental-price-container {
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-top: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: space-between;
}

/* Monthly price label - matches daily price label exactly - SHOP LIST ONLY */
.product-small .rental-price-label {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.875rem;
}

/* VAT text styling - muted color, inline - SHOP LIST ONLY */
.product-small .rental-price-vat {
    font-weight: 400;
    font-size: 0.75em;
    color: var(--text-light);
}

.single-product-price .rental-price-vat {
    font-weight: 400;
    font-size: 0.85em;
    color: var(--text-light);
}

.product-small .rental-price-prefix,
.product-small .rental-price-suffix {
    font-size: 14px;
    color: var(--text-medium);
    font-weight: normal;
}

.product-small .rental-price-amount {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.875rem;
}

/* Reserve Button */
#reserve-btn {
    background: var(--primary);
    color: var(--bg-white);
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 20px;
    width: 100%;
}

#reserve-btn:hover:not(:disabled) {
    background: var(--primary-hover);
}

#reserve-btn:disabled {
    background: var(--border);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Loading State */
.loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Total Price Display */
.total-price-display {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    text-align: center;
    padding: 20px;
    background: var(--bg-white);
    border-radius: 6px;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mileage-option {
        flex-direction: column;
        text-align: center;
    }

    .mileage-option input[type="radio"] {
        margin-bottom: 10px;
    }

    .mileage-option .option-price {
        margin: 10px 0;
    }

    .rental-interface {
        padding: 20px 15px;
    }
}

/* Date Search Widget Enhancements for Flatsome */
.car-rental-search input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

/* Override Flatsome button styles if needed */
.button.rental-search-button {
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Product Archive Page Adjustments */
.category-ilgalaike-nuoma .shop-container {
    padding-top: 20px;
}

.category-ilgalaike-nuoma .products .product .box-text {
    padding: 15px;
}

/* Hide regular WooCommerce elements for rental products */
.category-ilgalaike-nuoma .product .price del,
.category-ilgalaike-nuoma .product .price ins {
    display: none;
}

.category-ilgalaike-nuoma .product .add_to_cart_button {
    background: var(--primary);
}

/* CF7 Form in Product Page */
.single-product .wpcf7 {}

.single-product .wpcf7 .wpcf7-submit {
    background: var(--primary);
    color: var(--bg-white);
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
}

/* Rental Product Template Styles */
.rental-product .product-info {
    padding-bottom: 20px;
}

/* Product Cards Accordion Section - using Flatsome default styles */
.product-cards-accordion {
    margin: 0 0 20px 0;
}

/* Full width section for specifications and calculator */
.full-width-section {
    background: var(--bg-light);

    margin: 40px -30px 0;
    width: calc(100% + 60px);
}

.full-width-section .col {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Responsive adjustments for full width section */
@media (max-width: 768px) {
    .full-width-section {
        margin: 30px -15px 0;
        width: calc(100% + 30px);
        padding: 30px 0;
    }

    .full-width-section .col {
        padding: 0 15px;
    }
}

.availability-status {
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.availability-status.available {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
}

.availability-status.unavailable {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

.product-specifications {
    margin: 30px 0;
}

.specs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    flex: 0 0 calc(50% - 12px);
    /* 4 items per row on desktop */
    min-width: 0;
}

/* Wide spec item - takes up 2x width */
.spec-item.spec-item-wide {
    flex: 0 0 calc(100% - 8px);
    /* 2 items worth of space */
}

.spec-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.spec-icon svg {
    width: 24px;
    height: 24px;
    color: var(--secondary);
}

/* Tablet - 2 items per row */
@media (max-width: 992px) and (min-width: 768px) {
    .spec-item {
        flex: 0 0 calc(50% - 8px);
    }

    /* Wide item takes full width on tablet */
    .spec-item.spec-item-wide {
        flex: 0 0 100%;
    }
}

/* Mobile - 1 item per row */
@media (max-width: 767px) {
    .spec-item {
        flex: 0 0 100%;
    }

    /* Wide item also full width on mobile */
    .spec-item.spec-item-wide {
        flex: 0 0 100%;
    }
}

.spec-label {
    color: var(--text-medium);
    font-size: 14px;
}

.spec-value {
    font-weight: 600;
    margin-left: auto;
}

/* Rental Calculator */
.rental-calculator {}

.rental-summary h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.rental-fees {
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.rental-fees .fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rental-fees .fee-item:last-child {
    margin-bottom: 0;
}

.rental-fees .fee-label {
    font-size: 14px;
    color: var(--text-dark);
}

.rental-fees .fee-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Info icon tooltip styles */
.rental-fees .info-icon {
    display: inline-block;
    margin-top: -5px;
    margin-left: 5px;
    cursor: help;
    color: #999;
    vertical-align: middle;
    position: relative;
}

.rental-fees .info-icon:hover {
    color: var(--text-dark);
}

.rental-fees .info-icon svg {
    vertical-align: middle;
    display: inline-block;
}

/* Improved tooltip styling */
.rental-fees .info-icon[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.4;
    white-space: normal;
    width: 220px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 9999;
    pointer-events: none;
}

/* Tooltip arrow */
.rental-fees .info-icon[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%);
    border-top-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 9999;
}

.rental-fees .info-icon:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.rental-fees .info-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

.rental-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.location-item {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 200px;
}

.location-label {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
}

.location-value {
    font-weight: 400;
    color: var(--text-dark);
}

.rental-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.date-item {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    /* min-width: 150px; */
}

.date-label {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
}

.date-value {
    font-weight: 400;
    color: var(--text-dark);
}

.base-price-info {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: var(--secondary-light);
    border-radius: 6px;
    margin-bottom: 20px;
}

.price-label {
    font-weight: 600;
}

.price-value {
    font-size: 20px;
    color: var(--primary);
    font-weight: bold;
}

/* Mileage Selector */
.mileage-selector h4 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.mileage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.mileage-card {
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.mileage-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.mileage-content {
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-white);
    transition: var(--transition);
}

.mileage-card:hover .mileage-content {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.mileage-card input[type="radio"]:checked+.mileage-content,
.mileage-card.selected .mileage-content {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.mileage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mileage-km {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.mileage-fee {
    color: var(--warning);
    font-weight: 600;
}

.mileage-included {
    color: var(--success);
    font-size: 14px;
}

.mileage-pricing {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.monthly-price small,
.total-price small {
    display: block;
    font-size: 11px;
    color: var(--text-medium);
    margin-bottom: 2px;
}

.monthly-price strong,
.total-price strong {
    font-size: 16px;
    color: var(--text-dark);
}

/* Final Total */
/*
.final-total {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 2px solid var(--secondary);
}
*/

.total-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.total-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.total-amount {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
}

.total-note {
    color: var(--text-medium);
    font-size: 14px;
}

/* Reserve Button */
#reserve-button {
    width: 100%;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    background: var(--primary);
    color: var(--bg-white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

#reserve-button:hover:not(:disabled) {
    background: var(--primary-hover);
}

#reserve-button:disabled {
    background: var(--border);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Inline Reservation Form Styles */
.reservation-form-section {
    margin: 40px 0;
    padding: 40px 0;
    background: var(--bg-light);
    /* border-top: 2px solid var(--secondary);
    border-bottom: 2px solid var(--secondary); */
}

.reservation-form-wrapper {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.reservation-form-section .form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.reservation-form-section .form-header h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 24px;
}

.reservation-form-section .form-close {
    background: none;
    border: none;
    font-size: 36px;
    line-height: 40px;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    /* Flatsome button overrides */
    margin-bottom: 0;
    margin-right: 0;
    max-height: 40px;
    min-height: unset;
    box-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
}

.reservation-form-section .form-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 768px) {
    .specs-grid {
        grid-template-columns: 1fr;
    }

    .mileage-grid {
        grid-template-columns: 1fr;
    }

    .rental-locations,
    .rental-dates {
        flex-direction: column;
    }

    .location-item,
    .date-item {
        width: 100%;
    }
}

/* Contact Form 7 Reservation Form Styles */


.reservation-form-container .form-section {}

.reservation-form-container .form-section.terms {
    padding-top: 20px;
}

.reservation-form-container .form-section h3 {
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-gray);
    color: var(--text-dark);
    font-size: 18px;
}

.reservation-form-container .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}

.reservation-form-container .form-row:last-child {
    margin-bottom: 0;
}

.reservation-form-container .form-col {
    flex: 1;
}

.reservation-form-container label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-medium);
    font-weight: 500;
    font-size: 14px;
}

.reservation-form-container input[type="text"],
.reservation-form-container input[type="email"],
.reservation-form-container input[type="tel"],
.reservation-form-container input[type="date"],
.reservation-form-container select,
.reservation-form-container textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: var(--bg-white);
    margin-top: 5px;
}

.reservation-form-container input:focus,
.reservation-form-container select:focus,
.reservation-form-container textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(46, 74, 98, 0.1);
}

.reservation-form-container select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23667085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
    appearance: none;
}

/* Rental Summary Section */
.reservation-form-container .rental-summary {
    background: var(--bg-light);
    border: 2px solid var(--secondary);
    border-radius: 8px;
    padding: 0 !important;
}

.reservation-form-container .summary-content {
    padding: 15px;
    background: var(--bg-white);
    border-radius: 8px;
}

.reservation-form-container .summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-gray);
}

.reservation-form-container .summary-item:last-child {
    border-bottom: none;
}

.reservation-form-container .summary-item.total {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid var(--border);
    font-size: 18px;
    font-weight: bold;
}

.reservation-form-container .summary-label {
    color: var(--text-medium);
}

.reservation-form-container .summary-value {
    font-weight: 600;
    color: var(--text-dark);
}

.reservation-form-container .summary-item.total .summary-value {
    color: var(--primary);
}

/* Acceptance Checkbox Styles */
.reservation-form-container .wpcf7-acceptance {
    display: block;
    margin-bottom: 15px;
}

.reservation-form-container .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
}

.reservation-form-container .wpcf7-acceptance .wpcf7-list-item-label {
    display: inline-block;
    margin-left: 8px;
    cursor: pointer;
}

.reservation-form-container .wpcf7-acceptance input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
    cursor: pointer;
    margin-bottom: 2px;
    margin-top: 0;
}

/* Submit Button */
.reservation-form-container .submit-section {
    text-align: center;
    padding: 30px 30px 0 30px;
    background: transparent;
    box-shadow: none;
}

.reservation-form-container input[type="submit"],
.reservation-form-container .wpcf7-submit {
    background: var(--primary);
    color: var(--bg-white);
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    max-width: 400px;
}

.reservation-form-container input[type="submit"]:hover,
.reservation-form-container .wpcf7-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* CF7 Response Messages */
.reservation-form-container .wpcf7-response-output {
    margin: 20px 0;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.reservation-form-container .wpcf7-mail-sent-ok {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: var(--success);
}

.reservation-form-container .wpcf7-mail-sent-ng,
.reservation-form-container .wpcf7-validation-errors {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: var(--danger);
}

.reservation-form-container .wpcf7-not-valid-tip {
    color: var(--danger);
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.reservation-form-container .wpcf7-not-valid {
    border-color: var(--danger) !important;
}

/* Loading Spinner for Form */
.reservation-form-container .wpcf7-spinner {
    visibility: hidden;
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-left: 15px;
    vertical-align: middle;
}

.reservation-form-container.submitting .wpcf7-spinner {
    visibility: visible;
}

/* Responsive Form */
@media (max-width: 768px) {
    .reservation-form-container .form-row {
        grid-template-columns: 1fr;
    }

    .reservation-form-container .form-section {
        padding: 20px 0;
    }

    .reservation-form-container input[type="submit"],
    .reservation-form-container .wpcf7-submit {
        width: 100%;
        max-width: none;
    }

    .reservation-form-section {
        padding: 20px 15px;
    }

    .reservation-form-wrapper {
        background: transparent;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }
.reservation-form-section {
	padding-left: 0 !important;
    padding-right: 0 !important;
}
    .reservation-form-section .form-header h2 {
        font-size: 20px;
    }

    .single-product .wpcf7 .wpcf7-submit {
        font-size: 15px;
    }
}

/* ===================================
   Product Specifications on Shop Page
   =================================== */

.product-specs-summary {
    margin-top: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-specs-summary .spec-mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--bg-white);
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-medium);
    white-space: nowrap;
}

.product-specs-summary .spec-mini svg {
    flex-shrink: 0;
    color: var(--secondary);
    opacity: 0.7;
}

.product-specs-summary .spec-mini span {
    font-weight: 500;
}

/* Availability label in specs - muted green */
.product-specs-summary .spec-availability {
    background: #e8f5e9;
    /* Muted light green background */
    color: #4a7c4e;
    /* Darker green text for contrast */
}

.product-specs-summary .spec-availability svg {
    color: #4a7c4e;
    opacity: 1;
}

/* Hover effect for product tiles */
.product-small:hover .product-specs-summary .spec-mini {
    /* background: var(--secondary-light); */
}

/* No hover effect for availability label - keep same background */

/* "Peržiūrėti" badge in top-right corner */
.product-small {
    position: relative !important;
}

.product-small .box {
    position: relative;
}

.product-small .box-image {
    position: relative !important;
}

.rental-view-badge {
    position: absolute;
    top: 10px;
    right: 0;
    z-index: 10;
}

.rental-view-badge .view-badge-link {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s;
}

.rental-view-badge .view-badge-link:hover {
    background: var(--primary-hover, #9e1f24);
    color: white;
    text-decoration: none;
}

/* Compact view for small screens */
@media (max-width: 480px) {
    .product-specs-summary {
        gap: 6px;
    }

    .product-specs-summary .spec-mini {
        font-size: 11px;
        padding: 3px 6px;
    }

    .product-specs-summary .spec-mini svg {
        width: 14px;
        height: 14px;
    }
}

.rental-search-form {
    margin-bottom: 0;
}

.product_cat-ilgalaike-nuoma .col-inner {
    background-color: #f8f8f8;
    background: radial-gradient(circle at center,
            #ffffff 0%,
            #fafafa 50%,
            #f0f0f0 100%);
    padding: 16px;
    border-radius: 8px;
}

.product_cat-ilgalaike-nuoma .col-inner .box-image img {
    border-radius: 8px;
}

.product_cat-ilgalaike-nuoma .col-inner .box-text {
    padding-bottom: 0;
}

/* Single Product Price Display */
.single-product-price {
    margin: 15px 0 20px 0;
}

.single-product-price .rental-price-container {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 1.4em;
}

.single-product-price .rental-price-prefix,
.single-product-price .rental-price-suffix {
    /* font-size: 0.75em; */
    color: var(--text-dark);
    font-weight: normal;
}

.single-product-price .rental-price-amount {
    font-size: 1.2em;
    color: var(--primary);
    font-weight: 700;
}

/* Equipment/Features Tab Styling */
.equipment-features {
    padding: 20px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--bg-gray);
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.feature-item:hover {
    background: #e8e8e8;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.feature-name {
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.4;
}

/* Mobile responsive for features grid */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 10px;
    }

    .feature-item {
        padding: 8px 12px;
    }

    .feature-name {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.rental-calculator {
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

/* ========================================
   CONDENSED MILEAGE SELECTOR STYLES
   ======================================== */

/* Compact Mileage Cards */
.mileage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.mileage-card {
    display: block;
    cursor: pointer;
}

.mileage-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mileage-content.compact {
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mileage-content.compact .mileage-km {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.mileage-card:hover .mileage-content.compact {
    border-color: #C1272D;
    background: #fff5f5;
}

.mileage-card input[type="radio"]:checked+.mileage-content.compact {
    border-color: #C1272D;
    background: #fff5f5;
    box-shadow: 0 0 0 1px #C1272D;
}

/* Simple Final Total Box */
.final-total {
    margin: 20px 0;
}

.price-breakdown {
    margin-bottom: 15px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.breakdown-row.subtotal {
    font-weight: 600;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.total-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

/* Mobile Responsive for Mileage Grid */
@media (max-width: 768px) {
    .mileage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .mileage-grid {
        grid-template-columns: 1fr;
    }

    .mileage-content.compact {
        min-height: 50px;
        padding: 12px;
    }
}

/* Right column specific styles */
.col.large-5 .mileage-grid {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 993px) {
    .col.large-5 .mileage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Make breakdown labels bold */
.breakdown-label {
    font-weight: bold;
}

/* Remove padding that was for old badge position */
.product_cat-ilgalaike-nuoma .title-wrapper,
.product_cat-ilgalaike-nuoma .price-wrapper .price {
    padding-right: 0;
}

/* ========================================
   RENTAL LIST ITEM STYLING
   Unified, clean design following UX best practices
   ======================================== */

/* Price hierarchy - Monthly price remains primary */
.product_cat-ilgalaike-nuoma .price-wrapper {
    margin-bottom: 8px;
}

.product_cat-ilgalaike-nuoma .rental-price-container {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Additional pricing info container */
.rental-additional-pricing {
    margin: 12px 0;
    min-height: 40px;
    /* Ensure consistent height */
}

/* Daily price styling - consistent display */
.rental-daily-price {
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: space-between;
}

.rental-daily-price.no-dates {
    margin-bottom: 0;
    /* No margin when there's no total price below */
    padding: 8px 0;
    /* Add padding to maintain consistent spacing */
}

.daily-label {
    color: var(--text-dark);
    font-weight: 600;
}

.daily-amount {
    color: var(--text-dark);
    font-weight: 700;
}

/* Total price - prominent when dates selected */
.rental-total-price {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 10px;
}

.rental-total-price .total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rental-total-price .total-label {
    font-size: 0.875rem;
    color: var(--text-dark);
    font-weight: 700;
}

.rental-total-price .total-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

/* Product specs - compact and informative */
.product-specs-summary {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.product-specs-summary .spec-mini {
    background: var(--bg-white);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    transition: background 0.2s ease;
}

.product-specs-summary .spec-mini:hover {
    background: rgba(46, 74, 98, 0.08);
}

/* Availability badge - success indicator */
.product-specs-summary .spec-availability {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
    font-weight: 600;
}

/* View button at bottom - clean CTA */
.rental-view-button-wrapper {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    min-height: 52px;
    /* Ensure consistent button area */
}

.rental-view-button {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: var(--primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(193, 39, 45, 0.1);
    /* Subtle shadow for depth */
}

.rental-view-button:hover {
    background: var(--primary-hover);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(193, 39, 45, 0.2);
    text-decoration: none;
}

/* Product tile enhancements */
.product_cat-ilgalaike-nuoma .product-small .box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product_cat-ilgalaike-nuoma .product-small:hover .box {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .rental-total-price {
        padding: 8px 10px;
    }

    .rental-total-price .total-amount {
        font-size: 1rem;
    }

    .rental-view-button-wrapper {
        margin-top: 12px;
        padding-top: 12px;
    }

    .rental-view-button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

.wpcf7 form .wpcf7-response-output {
    margin-top: 0 !important;
}