/* ═══════════════════════════════════════════════════════════════════════════════
   NOVICOND RENTALS — Design System
   Matches the corporate site aesthetic: emerald accent, glassmorphism, Outfit font
   ═══════════════════════════════════════════════════════════════════════════════ */

:root {
  --r-bg: #0B0F19;
  --r-bg-secondary: #111827;
  --r-surface: rgba(255, 255, 255, 0.03);
  --r-surface-hover: rgba(255, 255, 255, 0.06);
  --r-border: rgba(255, 255, 255, 0.08);
  --r-border-hover: rgba(255, 255, 255, 0.15);
  --r-accent: #10B981;
  --r-accent-hover: #059669;
  --r-accent-glow: rgba(16, 185, 129, 0.15);
  --r-text: #E2E8F0;
  --r-text-muted: #94A3B8;
  --r-text-dim: #64748B;
  --r-danger: #EF4444;
  --r-warning: #F59E0B;
  --r-info: #38BDF8;
  --r-success: #10B981;
  --r-gold: #D4AF37;
  --r-radius: 16px;
  --r-radius-sm: 10px;
  --r-radius-lg: 24px;
  --r-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --r-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --r-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--r-bg);
  color: var(--r-text);
  font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--r-accent); text-decoration: none; transition: var(--r-transition); }
a:hover { color: var(--r-accent-hover); }

img { max-width: 100%; height: auto; }

/* ── Layout ── */
.r-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.r-container-narrow { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Header / Navbar ── */
.r-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--r-border);
  padding: 0.75rem 0;
}

.r-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
}

.r-logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.2rem;
  color: white; text-decoration: none;
}

.r-logo img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }

.r-logo-badge {
  background: linear-gradient(135deg, var(--r-accent), var(--r-accent-hover));
  color: #0B0F19; font-size: 0.6rem; font-weight: 800;
  padding: 2px 6px; border-radius: 4px; text-transform: uppercase;
  letter-spacing: 0.05em;
}

.r-nav { display: flex; align-items: center; gap: 1rem; }

.r-nav-link {
  color: var(--r-text-muted); font-size: 0.9rem; font-weight: 500;
  padding: 0.5rem 0.75rem; border-radius: var(--r-radius-sm);
  transition: var(--r-transition);
}
.r-nav-link:hover { color: white; background: var(--r-surface-hover); }
.r-nav-link.active { color: var(--r-accent); }

.r-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.25rem; border-radius: var(--r-radius-sm);
  font-weight: 600; font-size: 0.9rem; cursor: pointer;
  border: none; transition: var(--r-transition); text-decoration: none;
}

.r-btn-primary {
  background: linear-gradient(135deg, var(--r-accent), var(--r-accent-hover));
  color: #0B0F19; box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}
.r-btn-primary:hover {
  transform: translateY(-1px); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  color: #0B0F19;
}

.r-btn-outline {
  background: transparent; color: var(--r-text);
  border: 1px solid var(--r-border);
}
.r-btn-outline:hover { border-color: var(--r-accent); color: var(--r-accent); }

.r-btn-ghost { background: transparent; color: var(--r-text-muted); }
.r-btn-ghost:hover { color: white; background: var(--r-surface-hover); }

.r-btn-danger { background: rgba(239, 68, 68, 0.1); color: var(--r-danger); border: 1px solid rgba(239, 68, 68, 0.2); }
.r-btn-danger:hover { background: rgba(239, 68, 68, 0.2); }

.r-btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
.r-btn-lg { padding: 0.9rem 1.75rem; font-size: 1.05rem; }
.r-btn-block { width: 100%; justify-content: center; }

.r-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── Cards ── */
.r-card {
  background: var(--r-surface);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius-lg);
  overflow: hidden;
  transition: var(--r-transition);
}
.r-card:hover { border-color: var(--r-border-hover); transform: translateY(-3px); box-shadow: var(--r-shadow); }

.r-card-body { padding: 1.25rem; }

/* ── Listing Cards ── */
.r-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.r-listing-card {
  background: var(--r-surface);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius-lg);
  overflow: hidden;
  transition: var(--r-transition);
  cursor: pointer;
  text-decoration: none; color: inherit;
  display: block;
}
.r-listing-card:hover { border-color: var(--r-accent); transform: translateY(-4px); box-shadow: var(--r-shadow); color: inherit; }

.r-listing-img {
  width: 100%; height: 220px; object-fit: cover;
  background: var(--r-bg-secondary);
  display: block;
}

.r-listing-img-placeholder {
  width: 100%; height: 220px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--r-bg-secondary), rgba(16, 185, 129, 0.05));
  color: var(--r-text-dim); font-size: 3rem;
}

.r-listing-body { padding: 1.25rem; }

.r-listing-location {
  font-size: 0.8rem; color: var(--r-text-muted); font-weight: 500;
  margin-bottom: 0.25rem;
  display: flex; align-items: center; gap: 0.3rem;
}

.r-listing-title {
  font-size: 1.1rem; font-weight: 700; color: white;
  margin-bottom: 0.5rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.r-listing-meta {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.8rem; color: var(--r-text-dim);
  margin-bottom: 0.75rem;
}

.r-listing-price {
  display: flex; align-items: baseline; gap: 0.3rem;
}
.r-listing-price-amount {
  font-size: 1.3rem; font-weight: 800; color: var(--r-accent);
}
.r-listing-price-unit { font-size: 0.8rem; color: var(--r-text-muted); }

.r-listing-tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-top: 0.75rem;
}

.r-tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.6rem; border-radius: 6px;
  font-size: 0.7rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--r-border);
  color: var(--r-text-muted);
}

/* ── Carousel ── */
.r-carousel {
  position: relative; width: 100%; height: 220px; overflow: hidden;
  border-radius: var(--r-radius-lg) var(--r-radius-lg) 0 0;
}
.r-carousel img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; top: 0; left: 0;
  opacity: 0; transition: opacity 0.5s ease;
}
.r-carousel img.active { opacity: 1; }

.r-carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5); color: white; border: none;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; z-index: 2;
  opacity: 0; transition: opacity 0.3s;
}
.r-listing-card:hover .r-carousel-nav, .r-carousel:hover .r-carousel-nav { opacity: 1; }
.r-carousel-prev { left: 8px; }
.r-carousel-next { right: 8px; }

.r-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; z-index: 2;
}
.r-carousel-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4); transition: var(--r-transition);
}
.r-carousel-dot.active { background: white; width: 18px; border-radius: 3px; }

/* ── Forms ── */
.r-form-group { margin-bottom: 1.25rem; }

.r-label {
  display: block; color: var(--r-text-muted);
  font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem;
}

.r-input, .r-textarea, .r-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--r-border);
  padding: 0.85rem 1rem;
  border-radius: var(--r-radius-sm);
  color: white; font-size: 0.95rem;
  outline: none; transition: var(--r-transition);
  font-family: inherit;
  box-sizing: border-box;
  min-width: 0;
}
.r-input:focus, .r-textarea:focus, .r-select:focus {
  border-color: var(--r-accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
.r-input::placeholder, .r-textarea::placeholder { color: var(--r-text-dim); }

.r-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394A3B8' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.r-select option { background: var(--r-bg); color: white; }

.r-textarea { resize: vertical; min-height: 100px; }

.r-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.r-form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

.r-checkbox-label {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--r-text-muted); font-size: 0.9rem; cursor: pointer;
}
.r-checkbox-label input[type="checkbox"] {
  width: 1.1rem; height: 1.1rem; accent-color: var(--r-accent); cursor: pointer;
}

/* ── Photo Upload ── */
.r-photo-upload {
  border: 2px dashed var(--r-border);
  border-radius: var(--r-radius);
  padding: 2rem; text-align: center;
  cursor: pointer; transition: var(--r-transition);
  background: var(--r-surface);
}
.r-photo-upload:hover { border-color: var(--r-accent); background: var(--r-accent-glow); }
.r-photo-upload.dragover { border-color: var(--r-accent); background: var(--r-accent-glow); }

.r-photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem; margin-top: 1rem;
}
.r-photo-thumb {
  position: relative; border-radius: var(--r-radius-sm);
  overflow: hidden; aspect-ratio: 1;
}
.r-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.r-photo-thumb-remove {
  position: absolute; top: 4px; right: 4px;
  background: rgba(239, 68, 68, 0.8); color: white;
  border: none; border-radius: 50%; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.8rem;
}

/* ── Amenities Grid ── */
.r-amenities-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
}
.r-amenity-chip {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: var(--r-surface);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius-sm);
  color: var(--r-text-muted); font-size: 0.85rem;
  cursor: pointer; transition: var(--r-transition);
  user-select: none;
}
.r-amenity-chip:hover { border-color: var(--r-accent); color: white; }
.r-amenity-chip.selected {
  background: var(--r-accent-glow);
  border-color: var(--r-accent);
  color: var(--r-accent);
}

/* ── Tabs ── */
.r-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--r-border);
  margin-bottom: 2rem; overflow-x: auto;
}
.r-tab {
  padding: 0.75rem 1.25rem; background: none; border: none;
  color: var(--r-text-muted); font-weight: 600; font-size: 0.9rem;
  cursor: pointer; border-bottom: 2px solid transparent;
  transition: var(--r-transition); white-space: nowrap;
}
.r-tab:hover { color: white; }
.r-tab.active { color: var(--r-accent); border-bottom-color: var(--r-accent); }

/* ── Status Badges ── */
.r-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.6rem; border-radius: 6px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em;
}
.r-badge-active { background: rgba(16, 185, 129, 0.12); color: var(--r-accent); border: 1px solid rgba(16, 185, 129, 0.2); }
.r-badge-paused { background: rgba(245, 158, 11, 0.12); color: var(--r-warning); border: 1px solid rgba(245, 158, 11, 0.2); }
.r-badge-pending { background: rgba(56, 189, 248, 0.12); color: var(--r-info); border: 1px solid rgba(56, 189, 248, 0.2); }
.r-badge-approved { background: rgba(16, 185, 129, 0.12); color: var(--r-accent); border: 1px solid rgba(16, 185, 129, 0.2); }
.r-badge-rejected { background: rgba(239, 68, 68, 0.12); color: var(--r-danger); border: 1px solid rgba(239, 68, 68, 0.2); }

/* ── Messages ── */
.r-msg-list { display: flex; flex-direction: column; gap: 0.75rem; }

.r-msg-card {
  display: flex; gap: 1rem; padding: 1rem;
  background: var(--r-surface); border: 1px solid var(--r-border);
  border-radius: var(--r-radius); cursor: pointer;
  transition: var(--r-transition);
}
.r-msg-card:hover { border-color: var(--r-accent); background: var(--r-surface-hover); }
.r-msg-card.unread { border-left: 3px solid var(--r-accent); }

.r-msg-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--r-accent-glow), rgba(56, 189, 248, 0.15));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; color: var(--r-accent);
  flex-shrink: 0;
}

.r-msg-body { flex: 1; min-width: 0; }
.r-msg-name { font-weight: 700; font-size: 0.95rem; color: white; }
.r-msg-preview { font-size: 0.8rem; color: var(--r-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-msg-time { font-size: 0.7rem; color: var(--r-text-dim); margin-top: 0.25rem; }

.r-msg-thread { display: flex; flex-direction: column; gap: 0.75rem; max-height: 400px; overflow-y: auto; padding: 1rem 0; }

.r-msg-bubble {
  max-width: 75%; padding: 0.75rem 1rem;
  border-radius: var(--r-radius-sm); font-size: 0.9rem; line-height: 1.5;
}
.r-msg-bubble.sent {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--r-accent), var(--r-accent-hover));
  color: #0B0F19;
}
.r-msg-bubble.received {
  align-self: flex-start;
  background: var(--r-surface-hover); border: 1px solid var(--r-border);
  color: var(--r-text);
}

.r-msg-booking-card {
  background: rgba(56, 189, 248, 0.08); border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--r-radius); padding: 1rem; margin-bottom: 0.75rem;
}

/* ── Hero Section ── */
.r-hero {
  padding: 4rem 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
}
.r-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.75rem; font-weight: 800;
  color: white; margin-bottom: 0.75rem;
  line-height: 1.15;
}
.r-hero h1 span { color: var(--r-accent); }
.r-hero p { color: var(--r-text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto 2rem; }

/* ── Search Bar ── */
.r-search-bar {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--r-surface); border: 1px solid var(--r-border);
  border-radius: 999px; padding: 0.4rem 0.4rem 0.4rem 1.5rem;
  max-width: 600px; margin: 0 auto;
  transition: var(--r-transition);
}
.r-search-bar:focus-within { border-color: var(--r-accent); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1); }

.r-search-input {
  flex: 1; background: none; border: none; color: white;
  font-size: 1rem; outline: none; font-family: inherit;
}
.r-search-input::placeholder { color: var(--r-text-dim); }

.r-search-btn {
  background: linear-gradient(135deg, var(--r-accent), var(--r-accent-hover));
  color: #0B0F19; border: none; border-radius: 50%;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.2rem;
  transition: var(--r-transition);
}
.r-search-btn:hover { transform: scale(1.05); }

/* ── Filters Bar ── */
.r-filters {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  padding: 1.5rem 0; align-items: center;
  border-bottom: 1px solid var(--r-border);
  margin-bottom: 2rem;
}

.r-filter-select {
  background: var(--r-surface); border: 1px solid var(--r-border);
  color: var(--r-text-muted); padding: 0.5rem 2rem 0.5rem 0.75rem;
  border-radius: var(--r-radius-sm); font-size: 0.85rem;
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%2394A3B8' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center;
  transition: var(--r-transition); outline: none;
}
.r-filter-select:hover, .r-filter-select:focus { border-color: var(--r-accent); }
.r-filter-select option { background: var(--r-bg); color: white; }

.r-filter-input {
  background: var(--r-surface); border: 1px solid var(--r-border);
  color: var(--r-text-muted); padding: 0.5rem 0.75rem;
  border-radius: var(--r-radius-sm); font-size: 0.85rem;
  width: 120px; outline: none; transition: var(--r-transition);
}
.r-filter-input:focus { border-color: var(--r-accent); }

/* ── Section Titles ── */
.r-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem; font-weight: 800; color: white;
  margin-bottom: 1.5rem;
}
.r-section-subtitle { color: var(--r-text-muted); font-size: 0.9rem; margin-top: -1rem; margin-bottom: 1.5rem; }

/* ── Empty State ── */
.r-empty {
  text-align: center; padding: 4rem 2rem;
  color: var(--r-text-dim);
}
.r-empty-icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.5; }
.r-empty h3 { color: var(--r-text-muted); font-size: 1.2rem; margin-bottom: 0.5rem; }
.r-empty p { color: var(--r-text-dim); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ── Loading ── */
.r-loading {
  display: flex; align-items: center; justify-content: center;
  padding: 4rem; color: var(--r-text-muted);
}

@keyframes r-spin { to { transform: rotate(360deg); } }
.r-spinner {
  width: 32px; height: 32px; border: 3px solid var(--r-border);
  border-top-color: var(--r-accent); border-radius: 50%;
  animation: r-spin 0.8s linear infinite; margin: 0 auto 1rem;
}

/* ── Language Selector ── */
.r-lang-selector { position: relative; display: inline-block; }
.r-lang-btn {
  background: var(--r-surface); border: 1px solid var(--r-border);
  color: var(--r-text-muted); padding: 0.4rem 0.75rem;
  border-radius: var(--r-radius-sm); font-size: 0.8rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 0.4rem;
  transition: var(--r-transition);
}
.r-lang-btn:hover { border-color: var(--r-accent); color: white; }
.r-lang-arrow { font-size: 0.6rem; transition: var(--r-transition); }
.r-lang-selector.active .r-lang-arrow { transform: rotate(180deg); }

.r-lang-dropdown {
  position: absolute; top: calc(100% + 4px); right: 0;
  background: var(--r-bg-secondary); border: 1px solid var(--r-border);
  border-radius: var(--r-radius-sm); overflow: hidden;
  box-shadow: var(--r-shadow); z-index: 200;
  display: none; min-width: 100px;
}
.r-lang-selector.active .r-lang-dropdown { display: block; }
.r-lang-dropdown a {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.75rem; color: var(--r-text-muted);
  font-size: 0.8rem; font-weight: 600; transition: var(--r-transition);
}
.r-lang-dropdown a:hover { background: var(--r-surface-hover); color: white; }
.r-lang-dropdown a.active { color: var(--r-accent); }

/* ── Footer ── */
.r-footer {
  text-align: center; padding: 2rem 1.5rem;
  border-top: 1px solid var(--r-border);
  color: var(--r-text-dim); font-size: 0.8rem;
  margin-top: 4rem;
}
.r-footer a { color: var(--r-accent); }

/* ── Detail Page ── */
.r-detail-gallery {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0.5rem;
  border-radius: var(--r-radius-lg); overflow: hidden;
  max-height: 450px; margin-bottom: 2rem;
}
.r-detail-gallery img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: var(--r-transition); }
.r-detail-gallery img:hover { opacity: 0.9; }
.r-detail-gallery img:first-child { grid-row: 1 / 3; }

.r-detail-card-left {
  background: var(--r-surface); border: 1px solid var(--r-border);
  border-radius: var(--r-radius-lg); padding: 2rem;
  box-shadow: var(--r-shadow);
  overflow: hidden;
}

.r-detail-sidebar {
  position: sticky; top: 80px;
  background: var(--r-surface); border: 1px solid var(--r-border);
  border-radius: var(--r-radius-lg); padding: 1.5rem;
  box-shadow: var(--r-shadow);
  overflow: hidden;
  box-sizing: border-box;
}
.r-detail-sidebar .r-form-row {
  gap: 0.5rem;
}
.r-detail-sidebar .r-input,
.r-detail-sidebar .r-select,
.r-detail-sidebar .r-textarea {
  padding: 0.7rem 0.6rem;
  font-size: 0.88rem;
}

.r-detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; }
.r-detail-grid > div { min-width: 0; overflow-wrap: break-word; word-break: break-word; overflow: hidden; }

/* ── Overlay / Modal ── */
.r-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.r-modal {
  background: var(--r-bg-secondary); border: 1px solid var(--r-border);
  border-radius: var(--r-radius-lg); width: 100%; max-width: 600px;
  max-height: 90vh; overflow-y: auto; padding: 2rem;
  box-shadow: var(--r-shadow-lg);
}
.r-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.r-modal-title { font-size: 1.3rem; font-weight: 800; color: white; }
.r-modal-close {
  background: var(--r-surface-hover); border: none; color: var(--r-text-muted);
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; transition: var(--r-transition);
}
.r-modal-close:hover { background: rgba(239, 68, 68, 0.15); color: var(--r-danger); }

/* ── Alert Messages ── */
.r-alert {
  padding: 0.85rem 1rem; border-radius: var(--r-radius-sm);
  font-size: 0.9rem; margin-bottom: 1.25rem;
}
.r-alert-error { background: rgba(239, 68, 68, 0.1); color: #FB7185; border: 1px solid rgba(239, 68, 68, 0.2); }
.r-alert-success { background: rgba(16, 185, 129, 0.1); color: var(--r-accent); border: 1px solid rgba(16, 185, 129, 0.2); }
.r-alert-info { background: rgba(56, 189, 248, 0.1); color: var(--r-info); border: 1px solid rgba(56, 189, 248, 0.2); }

/* ── Divider ── */
.r-divider { border: none; border-top: 1px solid var(--r-border); margin: 2rem 0; }

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .r-detail-grid { grid-template-columns: 1fr; }
  .r-detail-sidebar { position: static; }
}

@media (max-width: 768px) {
  .r-hero h1 { font-size: 2rem; }
  .r-hero p { font-size: 0.95rem; }
  .r-listings-grid { grid-template-columns: 1fr; }
  .r-detail-gallery { grid-template-columns: 1fr; max-height: 300px; }
  .r-detail-gallery img:first-child { grid-row: auto; }
  .r-form-row, .r-form-row-3 { grid-template-columns: 1fr; }
  .r-search-bar { max-width: 100%; }
  .r-filters { flex-direction: column; align-items: stretch; }
  .r-nav { gap: 0.5rem; }
  .r-nav-link { padding: 0.4rem 0.5rem; font-size: 0.8rem; }
  .r-container { padding: 0 1rem; }
  .r-detail-card-left { padding: 1.25rem; }
  .r-modal { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .r-hero { padding: 2.5rem 0 2rem; }
  .r-hero h1 { font-size: 1.6rem; }
  .r-listing-card { border-radius: var(--r-radius); }
  .r-listing-img, .r-listing-img-placeholder, .r-carousel { height: 180px; }
  .r-header-inner { padding: 0 1rem; }
  .r-logo span:last-child { display: none; }
}
