.rpv-wrapper {
    max-width: 760px;
    margin: 2em 0;
    font-family: inherit;
}

.rpv-legend {
    display: flex;
    gap: 1.5em;
    margin-bottom: 1em;
    font-size: 0.9em;
    flex-wrap: wrap;
}

.rpv-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4em;
}

.rpv-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.rpv-dot-free {
    background: #ffffff;
    border: 2px solid #2ecc71;
}

.rpv-dot-pending {
    background: #f1c40f;
}

.rpv-dot-booked {
    background: #e74c3c;
}

.rpv-calendar {
    margin-bottom: 2em;
    background: #fff;
    border-radius: 8px;
}

.rpv-form-title {
    margin-bottom: 0.2em;
}

.rpv-form-help {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 1em;
}

.rpv-booking-form {
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.rpv-field {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

.rpv-field label {
    font-weight: 600;
    font-size: 0.9em;
}

.rpv-field input,
.rpv-field textarea {
    padding: 0.6em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.rpv-submit-btn {
    padding: 0.7em 1.4em;
    background: #2ecc71;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    align-self: flex-start;
}

.rpv-submit-btn:hover {
    background: #27ae60;
}

.rpv-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rpv-form-message {
    padding: 0.6em;
    border-radius: 4px;
    font-size: 0.9em;
}

.rpv-form-message-success {
    background: #eafaf1;
    color: #1e7e45;
    border: 1px solid #2ecc71;
}

.rpv-form-message-error {
    background: #fdecea;
    color: #a13a2f;
    border: 1px solid #e74c3c;
}

.rpv-form-message-warning {
    background: #fff8e1;
    color: #8a6d00;
    border: 1px solid #f1c40f;
}

.rpv-kategoria-tabs {
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
    margin-bottom: 1.5em;
}

.rpv-kategoria-tab {
    padding: 0.5em 1.1em;
    border-radius: 20px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #333;
    font-size: 0.9em;
    transition: background 0.15s ease, color 0.15s ease;
}

.rpv-kategoria-tab:hover {
    background: #f2f2f2;
}

.rpv-kategoria-tab.rpv-active {
    background: #2ecc71;
    border-color: #2ecc71;
    color: #fff;
}

.rpv-kohteet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5em;
    margin: 1.5em 0;
}

.rpv-kohde-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    background: #fff;
}

.rpv-kohde-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.rpv-kohde-card-img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.rpv-kohde-card-body {
    padding: 1em;
}

.rpv-kohde-card-body h3 {
    margin: 0 0 0.3em;
    font-size: 1.1em;
}

.rpv-kohde-card-cat {
    display: inline-block;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #2ecc71;
    font-weight: 600;
    margin-bottom: 0.5em;
}

.rpv-kohde-card-body p {
    margin: 0;
    font-size: 0.9em;
    color: #555;
}

/* Admin-puolen tyylit */
.rpv-admin-status-pending {
    color: #b8860b;
    font-weight: 600;
}

.rpv-admin-status-approved {
    color: #1e7e45;
    font-weight: 600;
}

.rpv-admin-status-declined {
    color: #a13a2f;
    font-weight: 600;
}

.rpv-admin-status-invoiced {
    color: #2563eb;
    font-weight: 600;
}

.rpv-admin-status-cancelled {
    color: #6b7280;
    font-weight: 600;
    text-decoration: line-through;
}

/* Modaali */
.rpv-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 100000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4em 1em;
    overflow-y: auto;
}

.rpv-modal {
    background: #fff;
    border-radius: 8px;
    padding: 2em;
    max-width: 520px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.rpv-modal-close {
    position: absolute;
    top: 0.8em;
    right: 1em;
    background: none;
    border: none;
    font-size: 1.6em;
    cursor: pointer;
    line-height: 1;
    color: #666;
}

.rpv-modal h2 {
    margin-top: 0;
}

.rpv-modal-kohde {
    color: #666;
    margin-top: -0.5em;
}

.rpv-modal-readonly-notice {
    background: #fff8e1;
    border: 1px solid #f1c40f;
    padding: 0.6em 0.9em;
    border-radius: 4px;
    font-size: 0.9em;
}

.rpv-modal-field {
    margin-bottom: 1em;
}

.rpv-modal-field label {
    display: block;
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 0.3em;
}

.rpv-modal-field input,
.rpv-modal-field textarea {
    width: 100%;
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.rpv-modal-field input:disabled,
.rpv-modal-field textarea:disabled {
    background: #f5f5f5;
    color: #555;
}

.rpv-modal-field-row {
    display: flex;
    gap: 1em;
}

.rpv-modal-field-row .rpv-modal-field {
    flex: 1;
}

.rpv-modal hr {
    margin: 1.5em 0;
    border: none;
    border-top: 1px solid #eee;
}

.rpv-modal-message-box {
    min-height: 1.2em;
    margin-bottom: 1em;
    font-size: 0.9em;
}

.rpv-modal-message-success {
    color: #1e7e45;
}

.rpv-modal-message-error {
    color: #a13a2f;
}

.rpv-modal-actions {
    display: flex;
    gap: 0.6em;
}
