.rmp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.rmp-card {
    border: 1px solid #e2e2e2;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rmp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.rmp-card-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.rmp-card-body {
    padding: 16px 18px;
}

.rmp-card-body h3 {
    margin: 6px 0 4px;
    font-size: 1.1em;
}

.rmp-meta {
    color: #666;
    font-size: 0.92em;
    margin: 2px 0;
}

.rmp-price {
    font-weight: 700;
    font-size: 1.05em;
    margin: 6px 0;
    color: #222;
}

.rmp-desc {
    font-size: 0.9em;
    color: #444;
    margin-top: 8px;
    line-height: 1.4;
}

.rmp-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.rmp-badge-wolny { background: #2ecc71; }
.rmp-badge-zarezerwowany { background: #f39c12; }
.rmp-badge-zajety { background: #e74c3c; }

.rmp-status-zajety { opacity: 0.6; }

.rmp-empty {
    padding: 20px;
    background: #f7f7f7;
    border-radius: 10px;
    text-align: center;
    color: #666;
}

#rmp-map {
    margin: 24px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Klikalna karta */
.rmp-card {
    position: relative;
    cursor: pointer;
}

.rmp-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.rmp-badge-clickable {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.rmp-ask-btn, .rmp-see-more-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9em;
}

.rmp-ask-btn {
    background: #2ecc71;
    color: #fff;
}

.rmp-ask-btn:hover { background: #27ae60; }

.rmp-see-more-btn {
    background: #f0f0f0;
    color: #333;
}

.rmp-see-more-btn:hover { background: #e2e2e2; }

.rmp-detail-ask-btn {
    margin-top: 16px;
    width: 100%;
    padding: 12px;
}

.rmp-share-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.rmp-share-btn:hover {
    background: #fff;
    color: #2ecc71;
}

.rmp-popup-ask {
    color: #2980b9;
    font-weight: 600;
    text-decoration: none;
}

/* Okienko pop-up (modal) */
.rmp-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rmp-modal {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    width: 100%;
    max-width: 440px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.rmp-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.6em;
    line-height: 1;
    cursor: pointer;
    color: #888;
}

.rmp-modal-close:hover {
    color: #222;
}

.rmp-modal h3 {
    margin: 0 0 4px;
    padding-right: 24px;
}

#rmp-booking-form label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 600;
    font-size: 0.92em;
}

#rmp-booking-form input,
#rmp-booking-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95em;
    box-sizing: border-box;
}

.rmp-call-note {
    margin-top: 16px;
    padding: 10px 12px;
    background: #f2f8f4;
    border-radius: 8px;
    font-size: 0.88em;
    color: #333;
}

.rmp-call-note a {
    color: #27ae60;
    text-decoration: none;
}

.rmp-submit-btn {
    margin-top: 16px;
    width: 100%;
    padding: 12px;
    background: #2ecc71;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
}

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

.rmp-submit-btn:disabled {
    opacity: 0.7;
    cursor: default;
}

.rmp-form-status {
    margin-top: 12px;
    font-size: 0.92em;
    text-align: center;
}

.rmp-form-success { color: #27ae60; font-weight: 600; }
.rmp-form-error { color: #e74c3c; font-weight: 600; }

/* Okno szczegółów pokoju (szersze) */
.rmp-modal-wide {
    max-width: 620px;
}

.rmp-detail-main-img img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.rmp-detail-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
}

.rmp-detail-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.rmp-detail-thumb.active,
.rmp-detail-thumb:hover {
    opacity: 1;
    border-color: #2ecc71;
}

.rmp-detail-title {
    margin: 14px 0 4px;
}

.rmp-detail-desc {
    margin-top: 14px;
    line-height: 1.6;
    color: #333;
}

/* Okno "Udostępnij" */
.rmp-share-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

#rmp-share-link, #rmp-share-embed {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.85em;
    font-family: monospace;
    background: #fafafa;
}

.rmp-copy-btn {
    padding: 8px 14px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85em;
    white-space: nowrap;
}

.rmp-copy-btn:hover { background: #555; }

.rmp-hint-text {
    font-size: 0.82em;
    color: #888;
    margin-top: 10px;
}
