/**
 * Rental Mobil WP - CSS Styles
 */

/* General Styles */
.rental-mobil-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
    width: 100%;
}

/* License Notice */
.rental-mobil-license-notice {
    background-color: #f8d7da;
    color: #721c24;
    padding: 20px;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.rental-mobil-license-notice h3 {
    margin-top: 0;
    font-size: 20px;
    color: #721c24;
}

.rental-mobil-license-notice p {
    margin-bottom: 15px;
}

.rental-mobil-license-notice .button {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.rental-mobil-license-notice .button:hover {
    background-color: #005177;
    color: #fff;
}

/* Container untuk full width */
.rental-mobil-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
}

.rental-mobil-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    transition: background-color 0.3s ease;
}

.rental-mobil-button:hover {
    background-color: #005177;
    color: #fff;
    text-decoration: none;
}

.rental-mobil-button-detail {
    background-color: #f0f0f0;
    color: #333;
}

.rental-mobil-button-detail:hover {
    background-color: #e0e0e0;
    color: #333;
}

/* Card Styles */
.rental-mobil-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.rental-mobil-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Card Featured and Popular Styles */
.rental-mobil-card[data-featured="1"] {
    background-color: #fff9e6;
    border: 1px solid #ffeeba;
}

.rental-mobil-card[data-popular="1"] {
    background-color: #f0f7fc;
    border: 1px solid #cce5ff;
}

.rental-mobil-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.rental-mobil-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mengubah dari cover menjadi contain agar gambar tidak terpotong */
    object-position: center; /* Memastikan gambar berada di tengah */
    background-color: #f9f9f9; /* Menambahkan background color untuk area kosong */
    transition: transform 0.3s ease;
}

.rental-mobil-card:hover .rental-mobil-card-image img {
    transform: scale(1.05);
}

/* Overlay dan ikon mata */
.rental-mobil-card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rental-mobil-card:hover .rental-mobil-card-image-overlay {
    opacity: 1;
}

.rental-mobil-card-image-icon {
    color: #fff;
    font-size: 24px;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 115, 170, 0.7);
    border-radius: 50%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.rental-mobil-card:hover .rental-mobil-card-image-icon {
    transform: scale(1);
}

.rental-mobil-card-content {
    padding: 15px;
}

.rental-mobil-card-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.rental-mobil-card-meta {
    margin-bottom: 15px;
}

.rental-mobil-meta-item {
    margin-bottom: 5px;
    font-size: 14px;
}

.rental-mobil-meta-label {
    font-weight: 600;
    margin-right: 5px;
}

.rental-mobil-card-price {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    text-align: center;
}

.rental-mobil-price-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.rental-mobil-price-value {
    font-size: 18px;
    font-weight: 700;
    color: #0073aa;
}

.rental-mobil-card-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.rental-mobil-card-actions .rental-mobil-button {
    flex: 1;
}

/* Layout Styles */
.rental-mobil-layout {
    display: flex;
    gap: 30px;
    width: 100%;
}

.rental-mobil-sidebar {
    width: 25%;
    position: relative;
    height: fit-content; /* Penting untuk sticky */
}

.rental-mobil-sidebar-inner {
    position: -webkit-sticky; /* Untuk dukungan Safari */
    position: sticky;
    top: 50px; /* Meningkatkan jarak dari atas */
    max-height: calc(100vh - 100px); /* Menyesuaikan max-height */
    overflow-y: auto;
    padding-right: 10px;
    padding-top: 10px; /* Tambahkan padding atas */
    scrollbar-width: thin;
    scrollbar-color: #0073aa #f0f0f0;
    z-index: 100; /* Pastikan filter tetap di atas konten lain */
    display: block; /* Pastikan elemen ditampilkan sebagai block */
    height: auto; /* Pastikan tinggi elemen sesuai dengan kontennya */
    will-change: position; /* Optimasi performa untuk sticky */
}

.rental-mobil-sidebar-inner::-webkit-scrollbar {
    width: 6px;
}

.rental-mobil-sidebar-inner::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.rental-mobil-sidebar-inner::-webkit-scrollbar-thumb {
    background-color: #0073aa;
    border-radius: 10px;
}

.rental-mobil-content {
    width: 75%;
    position: relative;
}

/* Content Header Styles */
.rental-mobil-content-header {
    margin-bottom: 20px;
}

.rental-mobil-content-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px;
    color: #333;
    white-space: nowrap;
}

/* Active Filters */
.rental-mobil-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.rental-mobil-active-filter {
    display: flex;
    align-items: center;
    background-color: #f0f7fc;
    border: 1px solid #cce5ff;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 13px;
    color: #0073aa;
}

.rental-mobil-active-filter-label {
    font-weight: 600;
    margin-right: 5px;
}

.rental-mobil-active-filter-value {
    margin-right: 5px;
}

.rental-mobil-active-filter-remove {
    cursor: pointer;
    color: #0073aa;
    margin-left: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(0, 115, 170, 0.1);
    transition: background-color 0.3s ease;
}

.rental-mobil-active-filter-remove:hover {
    background-color: rgba(0, 115, 170, 0.2);
}

/* Search Box Styles */
.rental-mobil-search-box {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rental-mobil-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.rental-mobil-search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box; /* Pastikan padding tidak melebihi lebar container */
}

.rental-mobil-search-input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
    outline: none;
}

.rental-mobil-search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rental-mobil-search-results {
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rental-mobil-search-results.active {
    display: block;
}

.rental-mobil-search-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.rental-mobil-search-item:last-child {
    border-bottom: none;
}

.rental-mobil-search-item:hover {
    background-color: #f9f9f9;
}

.rental-mobil-search-item-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.rental-mobil-search-item-meta {
    font-size: 12px;
    color: #666;
}

.rental-mobil-search-no-results {
    padding: 15px;
    text-align: center;
    color: #666;
}

/* Filter Styles */
.rental-mobil-filter {
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

/* Floating Filter Button untuk Mobile */
.rental-mobil-filter-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0073aa;
    color: #fff;
    text-align: center;
    line-height: 60px;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.rental-mobil-filter-toggle:hover {
    background-color: #005177;
}

.rental-mobil-filter-toggle i {
    line-height: 60px;
    display: inline-block;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.rental-mobil-filter-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    background-color: rgba(0, 115, 170, 0.05);
    border-radius: 4px;
}

.rental-mobil-filter-group {
    margin-bottom: 15px;
}

.rental-mobil-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.rental-mobil-filter-select,
.rental-mobil-filter-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.rental-mobil-filter-select:focus,
.rental-mobil-filter-input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
    outline: none;
}

.rental-mobil-filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.rental-mobil-filter-actions .rental-mobil-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 15px;
    font-size: 14px;
}

.rental-mobil-button-reset {
    background-color: #f0f0f0;
    color: #333;
}

.rental-mobil-button-reset:hover {
    background-color: #e0e0e0;
    color: #333;
}

.rental-mobil-filter-close {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.rental-mobil-filter-close:hover {
    color: #333;
}

.rental-mobil-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

/* Detail Page Styles */
.rental-mobil-detail {
    margin-bottom: 30px;
    width: 100%;
}

.rental-mobil-detail-header {
    margin-bottom: 20px;
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.rental-mobil-detail-title {
    margin: 0 0 15px;
    font-size: 32px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.rental-mobil-detail-title .rental-mobil-badge {
    position: relative;
    top: auto;
    right: auto;
    font-size: 14px;
    padding: 5px 10px;
    display: inline-block;
    vertical-align: middle;
}

.rental-mobil-detail-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.rental-mobil-detail-meta-item {
    font-size: 16px;
    color: #666;
    display: inline-flex;
    align-items: center;
}

.rental-mobil-detail-meta-label {
    font-weight: 600;
    margin-right: 5px;
}

.rental-mobil-detail-meta-value {
    color: #0073aa;
}

.rental-mobil-detail-content {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 30px;
    width: 100%;
}

/* Media (Gallery & Video) */
.rental-mobil-detail-media {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.rental-mobil-detail-info-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.rental-mobil-detail-sidebar {
    width: 100%;
}

.rental-mobil-detail-gallery {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    margin-bottom: 20px;
}

.rental-mobil-detail-featured-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.rental-mobil-detail-featured-image img {
    width: 100%;
    height: 400px; /* Tinggi tetap untuk gambar utama */
    display: block;
    object-fit: contain; /* Mengubah dari cover menjadi contain agar gambar tidak terpotong */
    object-position: center; /* Memastikan gambar berada di tengah */
    background-color: #f9f9f9; /* Menambahkan background color untuk area kosong */
    transition: transform 0.3s ease;
}

.rental-mobil-detail-featured-image:hover img {
    transform: scale(1.05);
}

.rental-mobil-detail-gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    justify-content: center;
}

.rental-mobil-detail-gallery-thumbnail {
    width: calc(20% - 8px);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.rental-mobil-detail-gallery-thumbnail:hover {
    transform: translateY(-3px);
}

.rental-mobil-detail-gallery-thumbnail:hover,
.rental-mobil-detail-gallery-thumbnail.active {
    border-color: #0073aa;
}

.rental-mobil-detail-gallery-thumbnail img {
    width: 100%;
    height: 80px;
    object-fit: contain; /* Mengubah dari cover menjadi contain agar gambar tidak terpotong */
    object-position: center; /* Memastikan gambar berada di tengah */
    background-color: #f9f9f9; /* Menambahkan background color untuk area kosong */
    display: block;
}

.rental-mobil-detail-gallery-actions {
    margin-top: 15px;
    text-align: center;
    padding: 0 15px 15px;
}

.rental-mobil-button-gallery {
    background-color: #f0f0f0;
    color: #333;
}

.rental-mobil-button-gallery:hover {
    background-color: #e0e0e0;
    color: #333;
}

/* Video */
.rental-mobil-detail-video {
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rental-mobil-detail-video-title {
    margin: 0;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.rental-mobil-detail-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.rental-mobil-detail-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.rental-mobil-detail-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rental-mobil-detail-price {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.rental-mobil-detail-price-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.rental-mobil-detail-price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.rental-mobil-detail-price-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.rental-mobil-detail-price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rental-mobil-detail-price-card-header {
    background-color: #0073aa;
    color: #fff;
    padding: 10px;
}

.rental-mobil-detail-price-period {
    font-size: 16px;
    font-weight: 600;
}

.rental-mobil-detail-price-card-body {
    padding: 15px 10px;
}

.rental-mobil-detail-price-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 5px;
}

.rental-mobil-detail-price-unit {
    display: block;
    font-size: 14px;
    color: #666;
}

.rental-mobil-detail-price-label {
    font-size: 16px;
    font-weight: 600;
    color: #555;
}

.rental-mobil-detail-price-value {
    font-size: 18px;
    font-weight: 700;
    color: #0073aa;
}

.rental-mobil-detail-specs {
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.rental-mobil-detail-specs-title,
.rental-mobil-detail-description-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.rental-mobil-detail-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.rental-mobil-detail-spec-item {
    display: flex;
    flex-direction: column;
}

.rental-mobil-detail-spec-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.rental-mobil-detail-spec-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.rental-mobil-detail-description {
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.rental-mobil-detail-actions {
    margin-top: 20px;
    margin-bottom: 30px;
}

.rental-mobil-detail-actions .rental-mobil-button {
    padding: 12px 20px;
    font-size: 16px;
    width: 100%;
}

/* Inline Booking Form */
.rental-mobil-detail-booking-form {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-top: 0;
    position: sticky;
    top: 20px;
}

.rental-mobil-detail-booking-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

/* Modal Styles */
.rental-mobil-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.5);
}

.rental-mobil-modal-content {
    position: relative;
    background-color: #fff;
    margin: 100px auto 50px; /* Meningkatkan margin atas menjadi 100px */
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s;
    z-index: 10000; /* Memastikan modal berada di atas elemen lain */
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
        will-change: opacity, transform;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        will-change: opacity, transform;
    }
}

.rental-mobil-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.rental-mobil-modal-close:hover {
    color: #333;
}

.rental-mobil-modal-header {
    margin-bottom: 20px;
    text-align: center;
}

/* Search Modal Styles */
.rental-mobil-search-modal-content {
    max-width: 900px;
}

.rental-mobil-search-modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.rental-mobil-search-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.rental-mobil-search-modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

.rental-mobil-search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.rental-mobil-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 115, 170, 0.2);
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.rental-mobil-modal-title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

.rental-mobil-modal-title-kendaraan {
    color: #0073aa;
}

.rental-mobil-modal-subtitle {
    margin: 0 0 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.rental-mobil-modal-subtitle-kendaraan {
    font-weight: 600;
    color: #0073aa;
}

.rental-mobil-booking-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rental-mobil-form-group {
    display: flex;
    flex-direction: column;
}

.rental-mobil-form-group label {
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.rental-mobil-form-group input,
.rental-mobil-form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.rental-mobil-form-row {
    display: flex;
    gap: 15px;
}

.rental-mobil-form-col {
    flex: 1;
}

.rental-mobil-form-actions {
    margin-top: 10px;
}

.rental-mobil-form-actions .rental-mobil-button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.required {
    color: #e53935;
}

/* Gallery Modal Styles */
.rental-mobil-gallery-modal-content {
    max-width: 800px;
    padding: 0;
}

.rental-mobil-gallery-modal-images {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.rental-mobil-gallery-modal-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.rental-mobil-gallery-modal-image.active {
    display: block;
}

.rental-mobil-gallery-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: #f9f9f9; /* Menambahkan background color untuk area kosong */
}

.rental-mobil-gallery-modal-nav {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background-color: #f9f9f9;
}

.rental-mobil-gallery-prev,
.rental-mobil-gallery-next {
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.rental-mobil-gallery-prev:hover,
.rental-mobil-gallery-next:hover {
    background-color: #005177;
}

/* Floating Booking Button */
.rental-mobil-floating-booking {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 998;
}

.rental-mobil-floating-booking .rental-mobil-button {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
}

/* Related Vehicles */
.rental-mobil-related {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.rental-mobil-related-title {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Slider Styles */
.rental-mobil-slider-section {
    margin: 30px 0;
}

.rental-mobil-slider-title {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.rental-mobil-slider {
    position: relative;
    padding: 0 40px;
}

.rental-mobil-slider-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    gap: 20px;
    padding: 10px 0;
}

.rental-mobil-slider-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.rental-mobil-slider-item {
    flex: 0 0 300px;
    max-width: 300px;
}

.rental-mobil-slider-prev,
.rental-mobil-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0073aa;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: background-color 0.3s ease;
}

.rental-mobil-slider-prev {
    left: 0;
}

.rental-mobil-slider-next {
    right: 0;
}

.rental-mobil-slider-prev:hover,
.rental-mobil-slider-next:hover {
    background-color: #005177;
}

.rental-mobil-slider-prev .dashicons,
.rental-mobil-slider-next .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Badge Styles */
.rental-mobil-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
    /* Mencegah badge bergerak saat card dihover */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    /* Menambahkan bayangan untuk meningkatkan keterbacaan */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.rental-mobil-badge-featured {
    background-color: #ffb900;
    color: #333;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    border: 1px solid rgba(255, 185, 0, 0.5);
}

.rental-mobil-badge-popular {
    background-color: #0073aa;
    color: #fff;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    border: 1px solid rgba(0, 115, 170, 0.5);
}

/* Pagination Styles */
.rental-mobil-pagination {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.rental-mobil-pagination-info {
    font-size: 14px;
    color: #666;
}

.rental-mobil-pagination-links {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.rental-mobil-pagination-prev,
.rental-mobil-pagination-next,
.rental-mobil-pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 4px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.rental-mobil-pagination-prev:hover,
.rental-mobil-pagination-next:hover,
.rental-mobil-pagination-number:hover {
    background-color: #e0e0e0;
    color: #333;
    text-decoration: none;
}

.rental-mobil-pagination-number.current {
    background-color: #0073aa;
    color: #fff;
    cursor: default;
}

.rental-mobil-pagination-dots {
    padding: 0 5px;
    color: #666;
}

.rental-mobil-pagination-prev.disabled,
.rental-mobil-pagination-next.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Quick view badges */
.rental-mobil-quick-view-badges .rental-mobil-badge {
    position: relative;
    top: auto;
    right: auto;
    display: inline-block;
}

/* Homepage Section */
.rental-mobil-homepage-section {
    margin: 30px 0;
}

.rental-mobil-homepage-title {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .rental-mobil-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .rental-mobil-detail-content {
        grid-template-columns: 1fr;
    }

    .rental-mobil-detail-header {
        padding: 0 15px;
    }

    .rental-mobil-detail-title {
        font-size: 24px;
    }

    .rental-mobil-detail-meta-item {
        font-size: 14px;
    }

    .rental-mobil-detail-gallery-thumbnail {
        width: calc(33.33% - 7px);
    }

    .rental-mobil-detail-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rental-mobil-form-row {
        flex-direction: column;
        gap: 15px;
    }

    .rental-mobil-modal-content {
        margin: 80px 20px 20px; /* Meningkatkan margin atas menjadi 80px */
        padding: 15px;
        max-width: calc(100% - 40px);
        width: 100%;
    }

    .rental-mobil-modal-title {
        font-size: 20px;
        white-space: normal;
    }

    .rental-mobil-content-title {
        font-size: 20px;
        white-space: normal;
    }

    /* Quick View Modal pada Mobile */
    .rental-mobil-quick-view-content {
        padding: 15px;
        margin: 80px 10px 10px; /* Meningkatkan margin atas menjadi 80px */
        max-width: calc(100% - 20px);
    }

    .rental-mobil-quick-view-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .rental-mobil-quick-view-gallery {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .rental-mobil-quick-view-main-image {
        width: 100%;
        height: 200px;
        margin-bottom: 10px;
    }

    .rental-mobil-quick-view-thumbnails-wrapper {
        flex-direction: row;
        width: 100%;
        margin-top: 0;
    }

    .rental-mobil-quick-view-thumbnails {
        flex-direction: row;
        max-width: calc(100% - 80px);
        overflow-x: auto;
        overflow-y: hidden;
    }

    .rental-mobil-quick-view-thumbnail {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .rental-mobil-quick-view-title {
        font-size: 20px;
        line-height: 1.3;
        padding-right: 20px;
    }

    .rental-mobil-quick-view-price-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .rental-mobil-quick-view-price-label {
        margin-bottom: 5px;
    }

    .rental-mobil-quick-view-booking {
        width: 100%;
    }

    /* Tampilkan floating booking button pada mobile */
    .rental-mobil-floating-booking {
        display: block;
    }

    /* Sidebar booking form pada mobile */
    .rental-mobil-detail-sidebar {
        order: -1;
        margin-bottom: 20px;
    }

    .rental-mobil-detail-booking-form {
        position: static;
        margin-bottom: 20px;
    }

    /* Layout Responsive */
    .rental-mobil-layout {
        flex-direction: column;
        gap: 20px;
    }

    .rental-mobil-sidebar {
        width: 100%;
        display: block; /* Tampilkan di desktop */
    }

    .rental-mobil-sidebar.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 300px;
        height: 100%;
        background-color: #fff;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        padding: 20px;
        transform: translateX(0);
        transition: transform 0.3s ease;
    }

    /* Hanya ubah properti sidebar-inner saat dalam mode sidebar mobile (active) */
    .rental-mobil-sidebar.active .rental-mobil-sidebar-inner {
        position: static;
        max-height: none;
        padding-right: 0;
    }

    /* Tetap pertahankan sticky untuk desktop view */
    .rental-mobil-sidebar:not(.active) .rental-mobil-sidebar-inner {
        position: -webkit-sticky;
        position: sticky;
    }

    .rental-mobil-content {
        width: 100%;
    }

    /* Tampilkan floating filter button pada mobile */
    .rental-mobil-filter-toggle {
        display: block;
    }

    /* Filter sebagai sidebar pada mobile */
    .rental-mobil-filter {
        padding: 15px;
        box-shadow: none;
        border-radius: 0;
    }

    /* Tampilkan filter ketika memiliki class active */
    .rental-mobil-filter.active {
        display: block;
    }

    /* Overlay untuk filter sidebar */
    .rental-mobil-filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .rental-mobil-filter-overlay.active {
        display: block;
    }

    /* Filter close button */
    .rental-mobil-filter-close {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
        cursor: pointer;
        color: #666;
        transition: color 0.3s ease;
    }

    /* Search Box pada mobile */
    .rental-mobil-search-box {
        margin-bottom: 15px;
    }

    /* Gallery modal pada mobile */
    .rental-mobil-gallery-modal-images {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .rental-mobil-grid {
        grid-template-columns: 1fr;
    }

    .rental-mobil-detail-gallery-thumbnail {
        width: calc(50% - 5px);
    }

    .rental-mobil-detail-specs-grid {
        grid-template-columns: 1fr;
    }

    .rental-mobil-detail-price-item {
        flex-direction: column;
        align-items: center;
        padding: 15px 0;
    }

    .rental-mobil-detail-price-label,
    .rental-mobil-detail-price-value {
        display: block;
        text-align: center;
    }

    .rental-mobil-detail-price-value {
        margin-top: 5px;
    }

    /* Quick View Modal pada mobile */
    .rental-mobil-quick-view-content {
        width: 95%;
        padding: 15px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .rental-mobil-quick-view-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .rental-mobil-quick-view-main-image {
        height: 200px;
    }

    .rental-mobil-quick-view-title {
        font-size: 20px;
        line-height: 1.3;
    }

    .rental-mobil-quick-view-thumbnails {
        justify-content: center;
    }

    .rental-mobil-quick-view-thumbnail {
        width: 50px;
        height: 50px;
    }

    .rental-mobil-quick-view-prices {
        padding: 10px;
    }

    .rental-mobil-quick-view-price-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .rental-mobil-quick-view-price-label,
    .rental-mobil-quick-view-price-value {
        margin: 0;
    }
}

/* Gallery Modal */
.rental-mobil-gallery-modal {
    z-index: 1001;
}

.rental-mobil-gallery-modal-content {
    width: 90%;
    max-width: 1000px;
    padding: 0;
    background-color: #000;
}

.rental-mobil-gallery-modal-images {
    position: relative;
    width: 100%;
    height: 80vh;
    max-height: 700px;
    overflow: hidden;
}

.rental-mobil-gallery-modal-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

.rental-mobil-gallery-modal-image.active {
    display: flex;
}

.rental-mobil-gallery-modal-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rental-mobil-gallery-modal-nav {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: #000;
}

.rental-mobil-gallery-prev,
.rental-mobil-gallery-next {
    background-color: transparent;
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

.rental-mobil-gallery-prev:hover,
.rental-mobil-gallery-next:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Quick View Modal */
.rental-mobil-quick-view-modal {
    z-index: 1002;
}

.rental-mobil-quick-view-content {
    width: 90%;
    max-width: 1000px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
}

.rental-mobil-quick-view-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rental-mobil-quick-view-gallery {
    position: relative;
}

.rental-mobil-quick-view-main-image {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f9f9f9;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: zoom-in;
}

.rental-mobil-quick-view-main-image::after {
    content: '\f179';
    font-family: dashicons;
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.rental-mobil-quick-view-main-image:hover::after {
    opacity: 1;
}

.rental-mobil-quick-view-featured-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.rental-mobil-quick-view-main-image:hover .rental-mobil-quick-view-featured-image {
    transform: scale(1.05);
}

/* Thumbnails wrapper dengan navigasi */
.rental-mobil-quick-view-thumbnails-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    margin-top: 10px;
}

.rental-mobil-quick-view-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: hidden;
    flex: 1;
    scroll-behavior: smooth;
    max-width: calc(100% - 80px);
}

.rental-mobil-quick-view-nav {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #0073aa;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.rental-mobil-quick-view-nav:hover {
    background-color: #005177;
}

.rental-mobil-quick-view-nav .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.rental-mobil-quick-view-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.rental-mobil-quick-view-thumbnail:hover {
    transform: translateY(-3px);
}

.rental-mobil-quick-view-thumbnail.active {
    border-color: #0073aa;
}

.rental-mobil-quick-view-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f9f9f9;
}

.rental-mobil-quick-view-details {
    display: flex;
    flex-direction: column;
}

.rental-mobil-quick-view-title {
    margin: 0 0 15px;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.rental-mobil-quick-view-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.rental-mobil-quick-view-meta {
    margin-bottom: 20px;
}

.rental-mobil-quick-view-meta-item {
    margin-bottom: 8px;
    font-size: 14px;
}

.rental-mobil-quick-view-meta-label {
    font-weight: 600;
    margin-right: 5px;
}

.rental-mobil-quick-view-prices {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.rental-mobil-quick-view-price-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.rental-mobil-quick-view-price-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.rental-mobil-quick-view-price-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.rental-mobil-quick-view-price-value {
    font-size: 18px;
    font-weight: 700;
    color: #0073aa;
}

.rental-mobil-quick-view-actions {
    display: flex;
    margin-top: auto;
}

.rental-mobil-quick-view-actions .rental-mobil-button {
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Cursor pointer untuk elemen yang bisa diklik */
.rental-mobil-quick-view-trigger {
    cursor: pointer;
}

/* Zoom Modal */
.rental-mobil-zoom-modal {
    z-index: 1003;
}

.rental-mobil-zoom-modal-content {
    width: 95%;
    max-width: 1200px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.rental-mobil-zoom-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
    max-height: 700px;
    margin-bottom: 15px;
}

.rental-mobil-zoom-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rental-mobil-zoom-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.rental-mobil-zoom-thumbnails-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.rental-mobil-zoom-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: hidden;
    flex: 1;
    scroll-behavior: smooth;
    justify-content: center;
}

.rental-mobil-zoom-nav {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.rental-mobil-zoom-nav:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.rental-mobil-zoom-nav .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.rental-mobil-zoom-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: border-color 0.3s ease, transform 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

.rental-mobil-zoom-thumbnail:hover {
    transform: translateY(-3px);
}

.rental-mobil-zoom-thumbnail.active {
    border-color: #0073aa;
}

.rental-mobil-zoom-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rental-mobil-zoom-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.rental-mobil-zoom-share {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.rental-mobil-zoom-share:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.rental-mobil-zoom-action-text {
    font-size: 14px;
}
