/* ===== CĂN HỘ CHO THUÊ (cho-thue.php, dang-tin-cho-thue.php, cho-thue-tin.php...) ===== */
.rental-page { background: var(--cream, #f4f6f9); color: var(--ink, #14233b); }
.rt-topbar { background: #fff; border-bottom: 1px solid var(--line, #e3e7ed); position: sticky; top: 0; z-index: 1000; }
.rt-topbar-inner { max-width: 1280px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.rt-brand img { height: 40px; display: block; }
.rt-brand { font-weight: 700; color: var(--ink, #14233b); text-decoration: none; }
.rt-nav { display: flex; gap: 4px; flex: 1; }
.rt-nav a { white-space: nowrap; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--slate, #5d6b7e); font-weight: 600; font-size: 14px; }
.rt-nav a.active, .rt-nav a:hover { color: var(--ink, #14233b); background: var(--surface, #f1f4f8); }
.rt-btn-post { background: linear-gradient(135deg, #f59e0b, #c47f0a); color: #fff; padding: 9px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }

.rt-wrap { max-width: 1280px; margin: 0 auto; padding: 20px 16px 40px; }
.rt-narrow { max-width: 820px; }
.rt-head h1 { font-family: var(--font-display, Georgia, serif); font-size: 26px; margin: 4px 0 6px; color: var(--ink, #14233b); }
.rt-head p { color: var(--slate, #5d6b7e); margin: 0 0 14px; }
.rt-free { background: #16a34a; color: #fff; font-family: var(--font-body, Arial); font-size: 13px; padding: 3px 10px; border-radius: 999px; vertical-align: middle; }

.rt-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.rt-filters input, .rt-filters select { padding: 9px 12px; border: 1px solid var(--line, #e3e7ed); border-radius: 10px; background: #fff; font-size: 14px; color: var(--ink, #14233b); }
.rt-filters input { flex: 1 1 220px; }
.rt-clear { align-self: center; font-size: 13px; color: var(--slate, #5d6b7e); }

.rt-btn { display: inline-block; background: var(--navy-800, #12233d); color: #fff !important; border: none; padding: 9px 16px; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; text-align: center; }
.rt-btn:hover { filter: brightness(1.12); }
.rt-btn-ghost { background: #fff; color: var(--ink, #14233b) !important; border: 1px solid var(--line, #e3e7ed); }
.rt-btn-green { background: #16a34a; }
.rt-btn-big { width: 100%; padding: 14px; font-size: 16px; background: linear-gradient(135deg, #f59e0b, #c47f0a); }

.rt-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
.rt-map { height: calc(100vh - 230px); min-height: 420px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line, #e3e7ed); position: sticky; top: 76px; z-index: 1; }
.rt-pin span { display: inline-block; transform: translate(-50%, -100%); background: #c47f0a; color: #fff; font-weight: 700; font-size: 12px; padding: 4px 9px; border-radius: 999px; white-space: nowrap; box-shadow: 0 3px 8px rgba(0,0,0,.25); border: 2px solid #fff; }
.rt-pin { background: none; border: none; }

.rt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.rt-cards-small { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin: 10px 0 12px; }
.rt-card { background: #fff; border: 1px solid var(--line, #e3e7ed); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.rt-card:hover { box-shadow: 0 8px 20px rgba(15,23,42,.1); transform: translateY(-2px); }
.rt-card-img { aspect-ratio: 4 / 3; background: #e7ecf3; overflow: hidden; }
.rt-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rt-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.rt-price { color: #c2410c; font-weight: 800; font-size: 17px; }
.rt-price small { font-size: 12px; font-weight: 600; color: var(--slate, #5d6b7e); }
.rt-title { font-weight: 600; font-size: 13.5px; line-height: 1.35; color: var(--ink, #14233b); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rt-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.rt-meta span { background: var(--surface, #f1f4f8); color: var(--slate, #5d6b7e); font-size: 11.5px; padding: 2px 7px; border-radius: 6px; }
.rt-proj { font-size: 12px; color: var(--slate, #5d6b7e); }
.rt-pages { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.rt-pages a { padding: 6px 11px; border-radius: 8px; background: #fff; border: 1px solid var(--line, #e3e7ed); text-decoration: none; color: var(--ink, #14233b); font-size: 13px; }
.rt-pages a.active { background: var(--navy-800, #12233d); color: #fff; }

.rt-empty { background: #fff; border: 1px dashed var(--line, #d5dbe4); border-radius: 14px; padding: 30px 20px; text-align: center; color: var(--slate, #5d6b7e); }
.rt-empty b { color: var(--ink, #14233b); display: block; margin: 6px 0; }
.rt-safety { margin-top: 18px; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.rt-safety a { color: #b45309; font-weight: 700; }

.rt-box { background: #fff; border: 1px solid var(--line, #e3e7ed); border-radius: 14px; padding: 18px; margin-bottom: 14px; }
.rt-box h3 { margin: 0 0 8px; font-size: 16px; }
.rt-form h3 { margin: 18px 0 10px; font-size: 16px; color: var(--ink, #14233b); }
.rt-form h3:first-of-type { margin-top: 4px; }
.rt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 12px; }
.rt-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.rt-field label { font-weight: 600; font-size: 13px; color: var(--ink, #14233b); }
.rt-field input, .rt-field select, .rt-field textarea { padding: 10px 12px; border: 1px solid var(--line, #d5dbe4); border-radius: 10px; font-size: 15px; background: #fff; color: var(--ink, #14233b); font-family: inherit; }
.rt-field small, .rt-note { font-size: 12.5px; color: var(--slate, #5d6b7e); }
.rt-preview { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.rt-preview img { width: 70px; height: 54px; object-fit: cover; border-radius: 6px; }
.rt-success { text-align: center; }
.rt-success h1 { font-size: 22px; margin: 8px 0; }
.rt-manage { background: var(--surface, #f1f4f8); border-radius: 10px; padding: 12px; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; text-align: left; font-size: 14px; }
.rt-manage input { padding: 9px; border: 1px solid var(--line, #d5dbe4); border-radius: 8px; font-size: 13px; }
.rt-manage-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 8px; }
.rt-inline { display: flex; gap: 6px; }
.rt-inline input { padding: 8px; border: 1px solid var(--line, #d5dbe4); border-radius: 8px; }

.rt-back { display: inline-block; margin-bottom: 10px; color: var(--slate, #5d6b7e); text-decoration: none; font-size: 14px; }
.rt-gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 14px; position: relative; }
.rt-gallery img { flex: 0 0 auto; height: 360px; max-width: 92%; object-fit: cover; border-radius: 12px; scroll-snap-align: start; }
.rt-gallery-note { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 6px; }
.rt-detail-title { font-size: 22px; margin: 14px 0 4px; line-height: 1.3; }
.rt-detail-price { color: #c2410c; font-weight: 800; font-size: 26px; }
.rt-detail-price small { font-size: 14px; color: var(--slate, #5d6b7e); }
.rt-detail-proj { margin: 4px 0 14px; color: var(--slate, #5d6b7e); font-size: 14px; }
.rt-detail-proj a { color: var(--ink, #14233b); font-weight: 700; }
.rt-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; }
.rt-specs div { background: #fff; border: 1px solid var(--line, #e3e7ed); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; }
.rt-specs span { font-size: 12px; color: var(--slate, #5d6b7e); }
.rt-contact { position: sticky; bottom: 10px; background: #fff; border: 1px solid var(--line, #e3e7ed); border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; box-shadow: 0 8px 24px rgba(15,23,42,.12); z-index: 5; }
.rt-contact span { color: var(--slate, #5d6b7e); font-size: 13px; }
.rt-contact-btns { display: flex; gap: 8px; }
.rt-call { background: #16a34a; }
.rt-zalo { background: #0068ff; }
.rt-project-block .rt-btn { margin-top: 4px; }

@media (max-width: 900px) {
    .rt-layout { grid-template-columns: 1fr; }
    .rt-map { position: relative; top: 0; height: 46vh; min-height: 300px; }
    .rt-nav a { padding: 6px 8px; font-size: 13px; }
    .rt-btn-post { padding: 8px 10px; font-size: 13px; }
    .rt-brand img { height: 32px; }
    .rt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .rt-gallery img { height: 240px; }
    .rt-head h1 { font-size: 22px; }
    .rt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rt-topbar-inner { gap: 8px; }
}
@media (max-width: 420px) {
    .rt-nav a:first-child { display: none; }
}

/* ---- Tin VIP / Đẩy tin ---- */
.rt-card-img { position: relative; }
.rt-vip-badge { position: absolute; top: 8px; left: 8px; background: linear-gradient(135deg, #f59e0b, #b45309); color: #fff; font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.rt-card-vip { border: 2px solid #f59e0b; box-shadow: 0 6px 18px rgba(245,158,11,.22); }
.rt-pin-vip span { background: linear-gradient(135deg, #f59e0b, #b45309); font-size: 13px; padding: 5px 11px; }
.rt-vip-inline { background: linear-gradient(135deg, #f59e0b, #b45309); color: #fff; font-size: 13px; padding: 2px 9px; border-radius: 999px; vertical-align: middle; font-family: var(--font-body, Arial); }
.rt-upgrade { border: 2px solid #fde68a; background: #fffbeb; }
.rt-upgrade h3 { margin-top: 0; }
.rt-up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 10px; }
.rt-up-card { background: #fff; border: 1px solid var(--line, #e3e7ed); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.rt-up-card b { font-size: 15px; }
.rt-up-price { font-size: 20px; font-weight: 800; color: #c2410c; }
.rt-up-card .rt-btn { width: 100%; margin-top: auto; }
.rt-qr { text-align: center; }
.rt-qr img { width: 260px; max-width: 100%; border-radius: 12px; border: 1px solid var(--line, #e3e7ed); }
.rt-qr table { margin: 12px auto; text-align: left; font-size: 14px; border-collapse: collapse; }
.rt-qr td { padding: 4px 10px; }
