/**
 * Rental Marketplace - Styles Front-End
 *
 * @package Rental_Marketplace
 */

/* ==========================================================================
   Variables CSS
   ========================================================================== */

:root {
    --rm-primary: #FF7A8A;
    --rm-primary-hover: #E56B7A;
    --rm-secondary: #64748b;
    --rm-success: #10b981;
    --rm-warning: #f59e0b;
    --rm-danger: #ef4444;
    --rm-light: #f8fafc;
    --rm-dark: #1e293b;
    --rm-border: #e2e8f0;
    --rm-text: #334155;
    --rm-text-muted: #94a3b8;
    --rm-white: #ffffff;
    --rm-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --rm-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --rm-radius: 8px;
    --rm-radius-lg: 12px;
    --rm-transition: all 0.2s ease;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

.rm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.rm-grid {
    display: grid;
    gap: 24px;
}

.rm-grid-2 { grid-template-columns: repeat(2, 1fr); }
.rm-grid-3 { grid-template-columns: repeat(3, 1fr); }
.rm-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
    .rm-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .rm-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .rm-grid-4, .rm-grid-3, .rm-grid-2 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.rm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--rm-radius);
    cursor: pointer;
    transition: var(--rm-transition);
}

.rm-btn-primary {
    background: var(--rm-primary);
    color: var(--rm-white);
}

.rm-btn-primary:hover {
    background: var(--rm-primary-hover);
    color: var(--rm-white);
}

.rm-btn-secondary {
    background: var(--rm-light);
    color: var(--rm-text);
    border: 1px solid var(--rm-border);
}

.rm-btn-secondary:hover {
    background: var(--rm-border);
}

.rm-btn-outline {
    background: transparent;
    color: var(--rm-primary);
    border: 2px solid var(--rm-primary);
}

.rm-btn-outline:hover {
    background: var(--rm-primary);
    color: var(--rm-white);
}

.rm-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.rm-btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.rm-btn-block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

.rm-form-group {
    margin-bottom: 20px;
}

.rm-form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--rm-text);
}

.rm-form-input,
.rm-form-select,
.rm-form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--rm-text);
    background: var(--rm-white);
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius);
    transition: var(--rm-transition);
}

.rm-form-input:focus,
.rm-form-select:focus,
.rm-form-textarea:focus {
    outline: none;
    border-color: var(--rm-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.rm-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.rm-form-checkbox,
.rm-form-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.rm-form-checkbox input,
.rm-form-radio input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ==========================================================================
   Product Card
   ========================================================================== */

.rm-product-card {
    background: var(--rm-white);
    border-radius: var(--rm-radius-lg);
    box-shadow: var(--rm-shadow);
    overflow: hidden;
    transition: var(--rm-transition);
}

.rm-product-card:hover {
    box-shadow: var(--rm-shadow-lg);
    transform: translateY(-4px);
}

.rm-product-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.rm-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--rm-transition);
}

.rm-product-card:hover .rm-product-image img {
    transform: scale(1.05);
}

.rm-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--rm-white);
    background: var(--rm-primary);
    border-radius: 4px;
}

.rm-product-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rm-white);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--rm-transition);
}

.rm-product-favorite:hover {
    background: var(--rm-danger);
    color: var(--rm-white);
}

.rm-product-favorite.active {
    background: var(--rm-danger);
    color: var(--rm-white);
}

.rm-product-content {
    padding: 16px;
}

.rm-product-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--rm-dark);
    line-height: 1.4;
}

.rm-product-title a {
    color: inherit;
    text-decoration: none;
}

.rm-product-title a:hover {
    color: var(--rm-primary);
}

.rm-product-location {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--rm-text-muted);
}

.rm-product-location svg {
    width: 14px;
    height: 14px;
}

.rm-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rm-product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--rm-primary);
}

.rm-product-price span {
    font-size: 13px;
    font-weight: 400;
    color: var(--rm-text-muted);
}

.rm-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rm-stars {
    display: flex;
    gap: 2px;
}

.rm-star {
    width: 14px;
    height: 14px;
    color: #fbbf24;
}

.rm-star-empty {
    color: var(--rm-border);
}

.rm-rating-count {
    font-size: 13px;
    color: var(--rm-text-muted);
}

/* ==========================================================================
   Products Listing
   ========================================================================== */

.rm-products-listing {
    padding: 40px 0;
}

.rm-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.rm-products-count {
    font-size: 14px;
    color: var(--rm-text-muted);
}

.rm-products-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rm-view-toggle {
    display: flex;
    background: var(--rm-light);
    border-radius: var(--rm-radius);
    overflow: hidden;
}

.rm-view-toggle button {
    padding: 8px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--rm-text-muted);
    transition: var(--rm-transition);
}

.rm-view-toggle button.active,
.rm-view-toggle button:hover {
    background: var(--rm-white);
    color: var(--rm-primary);
}

.rm-products-sort select {
    padding: 8px 32px 8px 12px;
    font-size: 14px;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius);
    background: var(--rm-white) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") right 8px center no-repeat;
    background-size: 16px;
    appearance: none;
    cursor: pointer;
}

/* List View */
.rm-products-list .rm-product-card {
    display: grid;
    grid-template-columns: 280px 1fr;
}

.rm-products-list .rm-product-image {
    aspect-ratio: auto;
    height: 100%;
}

.rm-products-list .rm-product-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

@media (max-width: 768px) {
    .rm-products-list .rm-product-card {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Search Form
   ========================================================================== */

.rm-search-form {
    background: var(--rm-white);
    padding: 24px;
    border-radius: var(--rm-radius-lg);
    box-shadow: var(--rm-shadow-lg);
}

.rm-search-form-inline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.rm-search-form-inline .rm-form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.rm-search-form-inline .rm-btn {
    min-width: 140px;
}

@media (max-width: 768px) {
    .rm-search-form-inline {
        flex-direction: column;
    }
    
    .rm-search-form-inline .rm-form-group {
        min-width: 100%;
    }
}

/* ==========================================================================
   Map
   ========================================================================== */

.rm-map-container {
    position: relative;
    height: 500px;
    border-radius: var(--rm-radius-lg);
    overflow: hidden;
}

.rm-map {
    width: 100%;
    height: 100%;
}

.rm-map-sidebar {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 320px;
    max-height: calc(100% - 32px);
    background: var(--rm-white);
    border-radius: var(--rm-radius);
    box-shadow: var(--rm-shadow-lg);
    overflow: hidden;
    z-index: 1000;
}

.rm-map-search {
    padding: 16px;
    border-bottom: 1px solid var(--rm-border);
}

.rm-map-results {
    max-height: 400px;
    overflow-y: auto;
}

.rm-map-result-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--rm-border);
    cursor: pointer;
    transition: var(--rm-transition);
}

.rm-map-result-item:hover {
    background: var(--rm-light);
}

.rm-map-result-image {
    width: 60px;
    height: 60px;
    border-radius: var(--rm-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.rm-map-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rm-map-result-info {
    flex: 1;
    min-width: 0;
}

.rm-map-result-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--rm-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rm-map-result-price {
    font-size: 14px;
    color: var(--rm-primary);
    font-weight: 600;
}

/* Leaflet Customization */
.rm-marker-cluster {
    background: var(--rm-primary);
    border-radius: 50%;
    color: var(--rm-white);
    font-weight: 600;
    text-align: center;
    line-height: 40px;
}

.rm-custom-marker {
    background: var(--rm-white);
    border-radius: var(--rm-radius);
    padding: 8px 12px;
    box-shadow: var(--rm-shadow);
    font-weight: 600;
    color: var(--rm-primary);
    white-space: nowrap;
}

/* Leaflet Popup */
.leaflet-popup-content-wrapper {
    border-radius: var(--rm-radius-lg);
    padding: 0;
}

.leaflet-popup-content {
    margin: 0;
    min-width: 200px;
}

.rm-popup-content {
    padding: 12px;
}

.rm-popup-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--rm-radius) var(--rm-radius) 0 0;
}

.rm-popup-title {
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0 4px;
}

.rm-popup-price {
    color: var(--rm-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .rm-map-sidebar {
        position: relative;
        width: 100%;
        top: 0;
        left: 0;
        margin-bottom: 16px;
        max-height: 300px;
    }
    
    .rm-map-container {
        height: auto;
    }
    
    .rm-map {
        height: 400px;
    }
}

/* ==========================================================================
   Calendar / Availability
   ========================================================================== */

.rm-calendar-container {
    background: var(--rm-white);
    border-radius: var(--rm-radius-lg);
    padding: 24px;
    box-shadow: var(--rm-shadow);
}

.rm-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.rm-calendar-title {
    font-size: 18px;
    font-weight: 600;
}

.rm-calendar-nav {
    display: flex;
    gap: 8px;
}

.rm-calendar-nav button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rm-light);
    border: none;
    border-radius: var(--rm-radius);
    cursor: pointer;
    transition: var(--rm-transition);
}

.rm-calendar-nav button:hover {
    background: var(--rm-primary);
    color: var(--rm-white);
}

.rm-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.rm-calendar-weekday {
    padding: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--rm-text-muted);
    text-transform: uppercase;
}

.rm-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: var(--rm-radius);
    cursor: pointer;
    transition: var(--rm-transition);
}

.rm-calendar-day:hover:not(.disabled):not(.unavailable) {
    background: var(--rm-light);
}

.rm-calendar-day.today {
    font-weight: 700;
    color: var(--rm-primary);
}

.rm-calendar-day.selected {
    background: var(--rm-primary);
    color: var(--rm-white);
}

.rm-calendar-day.in-range {
    background: rgba(37, 99, 235, 0.1);
}

.rm-calendar-day.unavailable {
    color: var(--rm-text-muted);
    text-decoration: line-through;
    cursor: not-allowed;
}

.rm-calendar-day.disabled {
    color: var(--rm-border);
    cursor: not-allowed;
}

.rm-calendar-day.other-month {
    color: var(--rm-border);
}

.rm-calendar-legend {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--rm-border);
}

.rm-calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--rm-text-muted);
}

.rm-calendar-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.rm-calendar-legend-dot.available {
    background: var(--rm-success);
}

.rm-calendar-legend-dot.unavailable {
    background: var(--rm-danger);
}

.rm-calendar-legend-dot.selected {
    background: var(--rm-primary);
}

/* Flatpickr Customization */
.flatpickr-calendar {
    border-radius: var(--rm-radius-lg);
    box-shadow: var(--rm-shadow-lg);
    border: none;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--rm-primary);
    border-color: var(--rm-primary);
}

.flatpickr-day.inRange {
    background: rgba(37, 99, 235, 0.1);
    border-color: transparent;
}

.flatpickr-day:hover {
    background: var(--rm-light);
    border-color: var(--rm-border);
}

.flatpickr-day.flatpickr-disabled {
    color: var(--rm-border);
}

/* ==========================================================================
   Categories
   ========================================================================== */

.rm-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.rm-category-card {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--rm-radius-lg);
    overflow: hidden;
}

.rm-category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--rm-transition);
}

.rm-category-card:hover img {
    transform: scale(1.1);
}

.rm-category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.rm-category-name {
    color: var(--rm-white);
    font-size: 16px;
    font-weight: 600;
}

.rm-category-count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.rm-category-card a {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ==========================================================================
   Dashboard
   ========================================================================== */

.rm-dashboard {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    padding: 40px 0;
}

.rm-dashboard-sidebar {
    background: var(--rm-white);
    border-radius: var(--rm-radius-lg);
    padding: 24px;
    box-shadow: var(--rm-shadow);
    height: fit-content;
}

.rm-dashboard-user {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rm-border);
    margin-bottom: 20px;
}

.rm-dashboard-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    overflow: hidden;
}

.rm-dashboard-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rm-dashboard-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--rm-dark);
}

.rm-dashboard-role {
    font-size: 13px;
    color: var(--rm-text-muted);
}

.rm-dashboard-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rm-dashboard-menu li {
    margin-bottom: 4px;
}

.rm-dashboard-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--rm-text);
    text-decoration: none;
    border-radius: var(--rm-radius);
    transition: var(--rm-transition);
}

.rm-dashboard-menu a:hover,
.rm-dashboard-menu a.active {
    background: var(--rm-light);
    color: var(--rm-primary);
}

.rm-dashboard-menu svg {
    width: 20px;
    height: 20px;
}

.rm-dashboard-content {
    background: var(--rm-white);
    border-radius: var(--rm-radius-lg);
    padding: 30px;
    box-shadow: var(--rm-shadow);
}

.rm-dashboard-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px;
    color: var(--rm-dark);
}

@media (max-width: 992px) {
    .rm-dashboard {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Stats */
.rm-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.rm-stat-card {
    background: var(--rm-light);
    border-radius: var(--rm-radius);
    padding: 20px;
}

.rm-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--rm-dark);
}

.rm-stat-label {
    font-size: 13px;
    color: var(--rm-text-muted);
    margin-top: 4px;
}

.rm-stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
}

.rm-stat-change.positive {
    color: var(--rm-success);
}

.rm-stat-change.negative {
    color: var(--rm-danger);
}

@media (max-width: 768px) {
    .rm-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Messages
   ========================================================================== */

.rm-messages-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    height: 600px;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-lg);
    overflow: hidden;
}

.rm-conversations-list {
    border-right: 1px solid var(--rm-border);
    overflow-y: auto;
}

.rm-conversation-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--rm-border);
    cursor: pointer;
    transition: var(--rm-transition);
}

.rm-conversation-item:hover,
.rm-conversation-item.active {
    background: var(--rm-light);
}

.rm-conversation-item.unread {
    background: rgba(37, 99, 235, 0.05);
}

.rm-conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.rm-conversation-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rm-conversation-info {
    flex: 1;
    min-width: 0;
}

.rm-conversation-name {
    font-weight: 600;
    color: var(--rm-dark);
    margin-bottom: 4px;
}

.rm-conversation-preview {
    font-size: 13px;
    color: var(--rm-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rm-conversation-time {
    font-size: 12px;
    color: var(--rm-text-muted);
}

.rm-messages-panel {
    display: flex;
    flex-direction: column;
}

.rm-messages-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--rm-border);
}

.rm-messages-list {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.rm-message {
    display: flex;
    margin-bottom: 16px;
}

.rm-message.sent {
    justify-content: flex-end;
}

.rm-message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: var(--rm-radius-lg);
    background: var(--rm-light);
    color: var(--rm-text);
}

.rm-message.sent .rm-message-bubble {
    background: var(--rm-primary);
    color: var(--rm-white);
}

.rm-message-time {
    font-size: 11px;
    color: var(--rm-text-muted);
    margin-top: 4px;
}

.rm-message.sent .rm-message-time {
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
}

.rm-message-form {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--rm-border);
}

.rm-message-form input {
    flex: 1;
}

@media (max-width: 768px) {
    .rm-messages-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .rm-conversations-list {
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid var(--rm-border);
    }
    
    .rm-messages-list {
        height: 400px;
    }
}

/* ==========================================================================
   Single Product
   ========================================================================== */

.rm-single-product {
    padding: 40px 0;
}

.rm-product-gallery {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    margin-bottom: 30px;
}

.rm-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rm-gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--rm-radius);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--rm-transition);
}

.rm-gallery-thumb:hover,
.rm-gallery-thumb.active {
    opacity: 1;
}

.rm-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rm-gallery-main {
    border-radius: var(--rm-radius-lg);
    overflow: hidden;
}

.rm-gallery-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .rm-product-gallery {
        grid-template-columns: 1fr;
    }
    
    .rm-gallery-thumbs {
        flex-direction: row;
        order: 2;
    }
    
    .rm-gallery-main img {
        height: 300px;
    }
}

.rm-product-info {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
}

.rm-product-details h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--rm-dark);
}

.rm-product-vendor {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.rm-product-vendor-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

.rm-product-vendor-name {
    font-weight: 600;
}

.rm-product-vendor-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--rm-text-muted);
}

.rm-product-description {
    margin-bottom: 24px;
    line-height: 1.7;
    color: var(--rm-text);
}

.rm-product-attributes {
    margin-bottom: 24px;
}

.rm-attributes-table {
    width: 100%;
    border-collapse: collapse;
}

.rm-attributes-table th,
.rm-attributes-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--rm-border);
}

.rm-attributes-table th {
    font-weight: 600;
    width: 40%;
    background: var(--rm-light);
}

.rm-booking-box {
    background: var(--rm-white);
    border-radius: var(--rm-radius-lg);
    padding: 24px;
    box-shadow: var(--rm-shadow-lg);
    position: sticky;
    top: 100px;
}

.rm-booking-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--rm-dark);
    margin-bottom: 20px;
}

.rm-booking-price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--rm-text-muted);
}

.rm-booking-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.rm-booking-summary {
    padding: 16px 0;
    border-top: 1px solid var(--rm-border);
    border-bottom: 1px solid var(--rm-border);
    margin-bottom: 16px;
}

.rm-booking-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.rm-booking-summary-row:last-child {
    margin-bottom: 0;
}

.rm-booking-total {
    font-weight: 700;
    font-size: 18px;
}

@media (max-width: 992px) {
    .rm-product-info {
        grid-template-columns: 1fr;
    }
    
    .rm-booking-box {
        position: relative;
        top: 0;
    }
}

/* ==========================================================================
   Reviews
   ========================================================================== */

.rm-reviews {
    margin-top: 40px;
}

.rm-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.rm-reviews-title {
    font-size: 20px;
    font-weight: 700;
}

.rm-review-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--rm-border);
}

.rm-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rm-review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

.rm-review-author {
    font-weight: 600;
}

.rm-review-date {
    font-size: 13px;
    color: var(--rm-text-muted);
}

.rm-review-content {
    line-height: 1.7;
    color: var(--rm-text);
}

/* ==========================================================================
   Notices
   ========================================================================== */

.rm-notice {
    padding: 16px 20px;
    border-radius: var(--rm-radius);
    margin-bottom: 20px;
}

.rm-notice-info {
    background: rgba(37, 99, 235, 0.1);
    color: var(--rm-primary);
}

.rm-notice-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--rm-success);
}

.rm-notice-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--rm-warning);
}

.rm-notice-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--rm-danger);
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.rm-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.rm-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--rm-border);
    border-top-color: var(--rm-primary);
    border-radius: 50%;
    animation: rm-spin 0.8s linear infinite;
}

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

.rm-skeleton {
    background: linear-gradient(90deg, var(--rm-light) 25%, var(--rm-border) 50%, var(--rm-light) 75%);
    background-size: 200% 100%;
    animation: rm-skeleton 1.5s ease-in-out infinite;
    border-radius: var(--rm-radius);
}

@keyframes rm-skeleton {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.rm-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 40px;
}

.rm-pagination a,
.rm-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    color: var(--rm-text);
    background: var(--rm-white);
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius);
    text-decoration: none;
    transition: var(--rm-transition);
}

.rm-pagination a:hover {
    background: var(--rm-light);
    border-color: var(--rm-primary);
    color: var(--rm-primary);
}

.rm-pagination .current {
    background: var(--rm-primary);
    border-color: var(--rm-primary);
    color: var(--rm-white);
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */

.rm-hidden-mobile {
    display: block;
}

.rm-visible-mobile {
    display: none;
}

@media (max-width: 768px) {
    .rm-hidden-mobile {
        display: none;
    }
    
    .rm-visible-mobile {
        display: block;
    }
}

/* ==========================================================================
   Prix sur demande (hide_prices)
   ========================================================================== */

.rm-price-on-demand {
    color: var(--rm-primary) !important;
    font-style: italic;
    font-size: 15px !important;
}

.rm-price-main.rm-price-on-demand .rm-price-amount {
    font-size: 18px !important;
    background: linear-gradient(135deg, var(--rm-primary) 0%, var(--rm-primary-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rm-price-contact-hint {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--rm-text-muted);
    font-style: italic;
}

/* Style pour la checkbox dans le formulaire produit */
.rm-hide-prices-option {
    background: linear-gradient(135deg, rgba(255, 122, 138, 0.05) 0%, rgba(155, 79, 184, 0.08) 100%);
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px dashed rgba(255, 122, 138, 0.3);
}

.rm-hide-prices-option span {
    font-weight: 500;
}

.rm-form-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--rm-text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   Tooltips pour les prix (version fonctionnelle)
   ========================================================================== */

.rm-tooltip-wrapper {
    position: relative;
    cursor: help;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rm-tooltip-icon {
    opacity: 0.5;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.rm-tooltip-wrapper:hover .rm-tooltip-icon {
    opacity: 1;
}

.rm-tooltip-text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.rm-tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1f2937;
}

.rm-tooltip-wrapper:hover .rm-tooltip-text {
    opacity: 1;
    visibility: visible;
}

/* Responsive tooltip */
@media (max-width: 768px) {
    .rm-tooltip-text {
        white-space: normal;
        width: 200px;
        text-align: center;
        left: 0;
        transform: translateX(0);
    }
    
    .rm-tooltip-text::after {
        left: 20px;
        transform: translateX(0);
    }
}

/* ==========================================================================
   Phrase dates en rouge (calendrier)
   ========================================================================== */

.rm-dates-reminder {
    color: #dc2626 !important;
    background: rgba(220, 38, 38, 0.08) !important;
    border: 1px solid rgba(220, 38, 38, 0.2) !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
}

.rm-dates-reminder svg {
    stroke: #dc2626 !important;
}

/* ==========================================================================
   Indication tarif appliqué dans le panier
   ========================================================================== */

.rm-pricing-applied {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(255, 122, 138, 0.1) 0%, rgba(155, 79, 184, 0.15) 100%);
    color: var(--rm-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.rm-pricing-applied svg {
    width: 14px;
    height: 14px;
}

.rm-pricing-applied.weekend {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.15) 100%);
    color: #b45309;
}

.rm-pricing-applied.week {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.15) 100%);
    color: #059669;
}

/* ==========================================================================
   Protection téléphone anti-scraping
   ========================================================================== */

.rm-reveal-phone-btn {
    background: linear-gradient(135deg, var(--rm-primary) 0%, #E56B7A 100%);
    color: var(--rm-white);
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--rm-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rm-reveal-phone-btn:hover {
    background: linear-gradient(135deg, #E56B7A 0%, #d55a6a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 122, 138, 0.3);
}

.rm-reveal-phone-btn::before {
    content: "📞";
    font-size: 12px;
}

.rm-phone-protected .rm-phone-link {
    color: var(--rm-primary);
    font-weight: 500;
}

.rm-phone-protected .rm-phone-link:hover {
    text-decoration: underline;
}
