/* ---------- Base / tokens ---------- */
.rlc-browse, .rlc-form, .rlc-listing-details, .rlc-map-wrap {
	--rlc-primary: #ff5a5f;
	--rlc-primary-dark: #e14549;
	--rlc-ink: #1f2430;
	--rlc-muted: #6b7280;
	--rlc-bg: #f7f8fb;
	--rlc-card-radius: 14px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--rlc-ink);
}

.rlc-btn {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 18px; border: 1px solid #e2e4ea; background: #fff;
	cursor: pointer; border-radius: 999px; text-decoration: none; color: var(--rlc-ink);
	font-weight: 600; font-size: 0.92em; transition: all .15s ease;
}
.rlc-btn:hover { border-color: var(--rlc-primary); color: var(--rlc-primary); }
.rlc-btn.active, .rlc-btn-primary { background: var(--rlc-primary); color: #fff; border-color: var(--rlc-primary); }
.rlc-btn.active:hover, .rlc-btn-primary:hover { background: var(--rlc-primary-dark); color: #fff; }

.rlc-note { font-size: 0.85em; color: var(--rlc-muted); }
.rlc-card { background: #fff; border-radius: var(--rlc-card-radius); }

/* ---------- Search bar ---------- */
.rlc-search-bar { display: flex; gap: 10px; margin-bottom: 12px; }
.rlc-search-input-wrap {
	flex: 1; display: flex; align-items: center; background: #fff;
	border: 1px solid #e2e4ea; border-radius: 999px; padding: 4px 6px 4px 18px;
	box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.rlc-search-input-wrap input {
	flex: 1; border: none; outline: none; padding: 10px 6px; font-size: 1em; background: transparent;
}
.rlc-mic-btn {
	border: none; background: var(--rlc-bg); width: 40px; height: 40px; border-radius: 50%;
	cursor: pointer; font-size: 1.1em; flex-shrink: 0;
}
.rlc-mic-btn.listening { background: var(--rlc-primary); animation: rlc-pulse 1s infinite; }
@keyframes rlc-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,95,.5); } 100% { box-shadow: 0 0 0 12px rgba(255,90,95,0); } }

/* ---------- Filters ---------- */
.rlc-filters-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.rlc-filters-bar select, .rlc-filters-bar input[type=number] {
	padding: 9px 12px; border: 1px solid #e2e4ea; border-radius: 999px; background: #fff; font-size: 0.9em;
}
.rlc-view-toggle { display: flex; gap: 4px; margin-left: auto; }

/* ---------- New listing toast ---------- */
.rlc-new-toast {
	background: var(--rlc-ink); color: #fff; padding: 10px 18px; border-radius: 999px;
	display: inline-block; margin-bottom: 14px; cursor: pointer; font-size: 0.9em;
	animation: rlc-slide-in .25s ease;
}
@keyframes rlc-slide-in { from { transform: translateY(-8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---------- Results grid / cards ---------- */
.rlc-results-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-bottom: 20px;
}
.rlc-card {
	display: block; text-decoration: none; color: var(--rlc-ink);
	box-shadow: 0 2px 10px rgba(20,20,40,.06); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease;
}
.rlc-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(20,20,40,.12); color: var(--rlc-ink); }
.rlc-card-img {
	height: 170px; background-size: cover; background-position: center; position: relative; background-color: #eee;
}
.rlc-badge {
	position: absolute; top: 10px; padding: 4px 10px; border-radius: 999px; font-size: 0.72em; font-weight: 700; color: #fff;
}
.rlc-badge-new { left: 10px; background: var(--rlc-primary); }
.rlc-badge-distance { right: 10px; background: rgba(0,0,0,.6); }
.rlc-card-body { padding: 14px 16px; }
.rlc-card-price { font-size: 1.15em; font-weight: 800; color: var(--rlc-primary); }
.rlc-card-title { font-weight: 700; margin: 2px 0; }
.rlc-card-address { color: var(--rlc-muted); font-size: 0.85em; margin-bottom: 6px; }
.rlc-card-meta { font-size: 0.82em; color: var(--rlc-muted); }

/* ---------- Room photo uploader (add-listing form) ---------- */
.rlc-room-photos { background: var(--rlc-bg); padding: 16px; border-radius: var(--rlc-card-radius); margin: 16px 0; }
.rlc-room-photo-field { margin-bottom: 10px; }

/* ---------- Room-tagged gallery (single listing) ---------- */
.rlc-room-gallery-group { margin: 14px 0; }
.rlc-room-gallery-group h4 { margin-bottom: 8px; }
.rlc-room-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.rlc-room-gallery-grid img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; }

/* ---------- Branding ---------- */
.rlc-brand-footer { text-align: center; font-size: 0.78em; color: var(--rlc-muted); margin-top: 18px; }
.rlc-brand-footer a { color: var(--rlc-primary); text-decoration: none; font-weight: 700; }

/* ---------- Generic form (unchanged structure, refreshed look) ---------- */
.rlc-form p { margin-bottom: 12px; }
.rlc-form input[type=text], .rlc-form input[type=number], .rlc-form input[type=date],
.rlc-form select, .rlc-form textarea {
	width: 100%; max-width: 480px; padding: 10px 12px; box-sizing: border-box;
	border: 1px solid #e2e4ea; border-radius: 8px; font-size: 0.95em;
}
.rlc-map-canvas, .rlc-single-map, #rlc-map-picker { width: 100%; border-radius: var(--rlc-card-radius); z-index: 1; }

.rlc-listing-details { margin-top: 24px; }
.rlc-detail-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.rlc-detail-list li { background: var(--rlc-bg); padding: 10px 14px; border-radius: 10px; }

.rlc-popup-card { min-width: 180px; }
.rlc-popup-card img { width: 100%; height: 90px; object-fit: cover; border-radius: 4px; margin-bottom: 6px; }
.rlc-popup-card a { font-weight: bold; }

/* ---------- Chat / video modals ---------- */
.rlc-chat-modal, .rlc-video-modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 100000; }
.rlc-chat-modal-inner { background: #fff; width: 420px; max-width: 92vw; height: 560px; border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; }
.rlc-video-modal-inner { background: #000; width: 90vw; height: 88vh; border-radius: 16px; position: relative; padding: 8px; }
.rlc-chat-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--rlc-ink); color: #fff; }
.rlc-chat-header .rlc-video-btn { background: #fff; color: var(--rlc-ink); padding: 6px 12px; font-size: 0.85em; }
.rlc-chat-close { background: none; border: none; font-size: 22px; cursor: pointer; color: inherit; }
.rlc-chat-messages { flex: 1; overflow-y: auto; padding: 12px; background: var(--rlc-bg); }
.rlc-msg { max-width: 75%; padding: 8px 12px; border-radius: 14px; margin-bottom: 8px; clear: both; word-wrap: break-word; }
.rlc-msg-mine { background: var(--rlc-primary); color: #fff; float: right; border-bottom-right-radius: 2px; }
.rlc-msg-theirs { background: #fff; float: left; border-bottom-left-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.rlc-chat-input-row { display: flex; border-top: 1px solid #ddd; }
.rlc-chat-input-row input { flex: 1; border: none; padding: 12px; }
.rlc-chat-input-row button { border-radius: 0; }
.rlc-inbox-item { display: block; padding: 12px; border: 1px solid #eee; border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
.rlc-inbox-item:hover { background: var(--rlc-bg); }

@media (max-width: 640px) {
	.rlc-search-bar { flex-direction: column; }
	.rlc-view-toggle { margin-left: 0; }
}

/* ---------- YouTube video + WhatsApp (submission form) ---------- */
.rlc-video-whatsapp-fields { background: var(--rlc-bg); padding: 16px; border-radius: var(--rlc-card-radius); margin: 16px 0; }

/* ---------- YouTube video + WhatsApp (single listing) ---------- */
.rlc-video-whatsapp-block { margin: 20px 0; }
.rlc-video-responsive { position: relative; width: 100%; padding-top: 56.25%; border-radius: var(--rlc-card-radius); overflow: hidden; background: #000; }
.rlc-video-responsive iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rlc-whatsapp-cta { margin-top: 12px; }
.rlc-whatsapp-btn { background: #25D366; border-color: #25D366; color: #fff; }
.rlc-whatsapp-btn:hover { background: #1ebe5b; border-color: #1ebe5b; color: #fff; }

/* ---------- Quick WhatsApp button + video badge on listing cards ---------- */
.rlc-card-play-badge {
	position: absolute; bottom: 10px; left: 10px; background: rgba(0,0,0,.65); color: #fff;
	padding: 4px 10px; border-radius: 999px; font-size: 0.72em; font-weight: 700;
}
.rlc-card-price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rlc-card-whatsapp-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%; background: #25D366; color: #fff;
	text-decoration: none; font-size: 1.05em; flex-shrink: 0; box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.rlc-card-whatsapp-btn:hover { background: #1ebe5b; }

/* ---------- Share listing ---------- */
.rlc-share-block { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.rlc-share-label { font-size: 0.85em; color: var(--rlc-muted); margin-right: 4px; }
.rlc-share-icon.rlc-share-whatsapp { border-color: #25D366; color: #128C3E; }
.rlc-share-icon.rlc-share-whatsapp:hover { background: #25D366; color: #fff; }
.rlc-share-icon.rlc-share-facebook { border-color: #1877F2; color: #1877F2; }
.rlc-share-icon.rlc-share-facebook:hover { background: #1877F2; color: #fff; }
.rlc-share-icon.rlc-share-x { border-color: #000; color: #000; }
.rlc-share-icon.rlc-share-x:hover { background: #000; color: #fff; }
