/* Rizerve Frontend Styles */

/* ─── Search Bar ─── */
.rizerve-search-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    transition: transform .3s, box-shadow .3s;
}
.rizerve-search-bar.rizerve-hidden {
    transform: translateY(-100%);
    box-shadow: none;
}
.rizerve-search-form {
    max-width: 900px;
    margin: 0 auto;
}
.rizerve-search-fields {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: nowrap;
}
.rizerve-field {
    flex: 1 1 auto;
    min-width: 0;
}
.rizerve-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6b7280;
    margin-bottom: 4px;
}
.rizerve-date-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #111827;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}
.rizerve-date-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.rizerve-date-input::placeholder {
    color: #9ca3af;
}

/* Guest selector */
.rizerve-guest-selector {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}
.rizerve-guest-btn {
    width: 36px;
    height: 38px;
    border: none;
    background: #f9fafb;
    cursor: pointer;
    font-size: 16px;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.rizerve-guest-btn:hover {
    background: #e5e7eb;
}
.rizerve-guest-count {
    display: inline-block;
    width: 40px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

/* Search button */
.rizerve-field-submit {
    flex: 0 0 auto;
    min-width: 0;
}
.rizerve-search-btn {
    padding: 10px 28px;
    background: var(--rizerve-accent, #6366f1);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, transform .15s;
}
.rizerve-search-btn:hover {
    background: var(--rizerve-accent-dark, #4f46e5);
}
.rizerve-search-btn:active {
    transform: scale(.97);
}

/* ─── Loading ─── */
.rizerve-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 16px;
    color: #6b7280;
    font-size: 14px;
}
.rizerve-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: rizerve-spin .6s linear infinite;
}
@keyframes rizerve-spin {
    to { transform: rotate(360deg); }
}

/* ─── Results ─── */
.rizerve-results {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 16px;
}
.rizerve-results-summary {
    margin-bottom: 20px;
}
.rizerve-results-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
}
.rizerve-results-dates {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}
.rizerve-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}
.rizerve-section-available { color: #059669; }
.rizerve-section-unavailable { color: #dc2626; }

/* ─── Property Grid ─── */
.rizerve-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.rizerve-no-results {
    color: #6b7280;
    font-size: 14px;
    padding: 24px 0;
}

/* ─── Property Card ─── */
.rizerve-property-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.rizerve-property-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transform: translateY(-2px);
}
.rizerve-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.rizerve-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.rizerve-property-card:hover .rizerve-card-image img {
    transform: scale(1.05);
}
.rizerve-card-body {
    padding: 16px;
}
.rizerve-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}
.rizerve-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}
.rizerve-card-location {
    font-size: 13px;
    color: #6b7280;
    margin: 4px 0 0;
}
.rizerve-card-meta {
    display: flex;
    gap: 16px;
    margin: 10px 0;
    font-size: 12px;
    color: #6b7280;
}
.rizerve-card-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 12px;
}
.rizerve-amenity-chip {
    display: inline-block;
    padding: 3px 8px;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 11px;
    color: #374151;
}
.rizerve-amenity-more {
    background: transparent;
    color: #6366f1;
    font-weight: 600;
}
.rizerve-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}
.rizerve-card-price strong {
    font-size: 18px;
    color: #111827;
}
.rizerve-card-per-night {
    font-size: 12px;
    color: #6b7280;
}
.rizerve-card-total {
    width: 100%;
    font-size: 12px;
    color: #6b7280;
}
.rizerve-card-cta {
    display: inline-block;
    padding: 8px 20px;
    background: var(--rizerve-accent, #6366f1);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}
.rizerve-card-cta:hover {
    background: var(--rizerve-accent-dark, #4f46e5);
    color: #fff;
}
.rizerve-card-reason {
    font-size: 12px;
    color: #dc2626;
    font-weight: 500;
}

/* Badge */
.rizerve-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.rizerve-badge-available {
    background: #d1fae5;
    color: #065f46;
}
.rizerve-badge-unavailable {
    background: #fee2e2;
    color: #991b1b;
}

/* ─── Booking Sidebar ─── */
.rizerve-booking-sidebar {
    width: 100%;
    max-width: 380px;
}
.rizerve-booking-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 80px;
}
.rizerve-booking-price strong {
    font-size: 24px;
    color: #111827;
}
.rizerve-booking-price span {
    font-size: 14px;
    color: #6b7280;
}
.rizerve-booking-form-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}
.rizerve-booking-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6b7280;
    margin-bottom: 4px;
}
.rizerve-booking-guests {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}
.rizerve-booking-cta {
    width: 100%;
    padding: 12px;
    background: var(--rizerve-accent, #6366f1);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.rizerve-booking-cta:hover {
    background: var(--rizerve-accent-dark, #4f46e5);
}
.rizerve-booking-message {
    margin-top: 10px;
    font-size: 13px;
    min-height: 0;
}

/* Booking details */
.rizerve-booking-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}
.rizerve-booking-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #374151;
    padding: 4px 0;
}
.rizerve-booking-total {
    font-weight: 700;
    font-size: 16px;
    color: #111827;
    border-top: 1px solid #e5e7eb;
    padding-top: 8px;
    margin-top: 4px;
}

/* ─── Property Detail Page ─── */
.rizerve-property-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}
.rizerve-property-detail-main h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
}
.rizerve-property-detail-location {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px;
}
.rizerve-property-detail-image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}
.rizerve-property-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rizerve-property-detail-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}
.rizerve-property-detail-meta-item {
    font-size: 14px;
    color: #374151;
}
.rizerve-property-detail-description {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
    .rizerve-search-fields {
        flex-direction: column;
        flex-wrap: wrap;
    }
    .rizerve-property-detail {
        grid-template-columns: 1fr;
    }
    .rizerve-booking-sidebar {
        max-width: 100%;
    }
}
