@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-red: #E2231A;
  --primary-red-hover: #C51D15;
  --primary-red-light: #FFECEB;
  --primary-red-glow: rgba(226, 35, 26, 0.15);
  
  --orange-accent: #F59E0B;
  --orange-light: #FEF3C7;
  
  --green-accent: #10B981;
  --green-light: #D1FAE5;
  
  --bg-gray: #F8FAFC;
  --bg-dark: #0F172A;
  --border-color: #E2E8F0;
  
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --text-white: #FFFFFF;
  
  --font-family-title: 'Outfit', sans-serif;
  --font-family-body: 'Plus Jakarta Sans', sans-serif;
  --font-family-logo: 'Playfair Display', serif;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 16px -6px rgba(0, 0, 0, 0.04);
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family-body);
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-gray);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Simulation top bar */
.sim-bar {
  display: none !important;
  width: 100%;
  background: var(--bg-dark);
  color: #94A3B8;
  padding: 8px 16px;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1E293B;
  z-index: 1000;
  font-family: var(--font-family-title);
  box-shadow: var(--shadow-sm);
}

.sim-bar-left, .sim-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sim-btn {
  background: #1E293B;
  border: 1px solid #334155;
  color: #E2E8F0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.sim-btn:hover {
  background: #334155;
  color: #fff;
}

.sim-btn.active {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: white;
}

.sim-text {
  font-weight: 500;
  color: #F1F5F9;
}

.sim-badge {
  background: #334155;
  color: #E2E8F0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

/* App viewport wrapper (Changed to a full-screen desktop website content area) */
.app-container {
  width: 100%;
  max-width: 1200px;
  background-color: var(--bg-gray);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  margin: 0 auto;
  padding: 20px;
  min-height: calc(100vh - 80px - 340px);
}

/* When viewing on real mobile screens, take full height/width without border */
@media (max-width: 480px), (max-height: 950px) {
  .app-container {
    max-width: 100%;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    border: none;
  }
}

/* Status Bar representation inside mobile app container */
.app-status-bar {
  height: 32px;
  background-color: var(--primary-red);
  color: white;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-family-title);
  letter-spacing: 0.5px;
  z-index: 100;
  transition: background-color var(--transition-normal);
}

.app-status-bar.dark-tint {
  background-color: var(--bg-gray);
  color: var(--text-dark);
}

.app-status-bar-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Main View Screens */
.screen {
  flex: 1;
  display: none;
  flex-direction: column;
  overflow: visible;
  position: relative;
  background-color: var(--bg-gray);
  padding-bottom: 40px;
}

.screen.active {
  display: flex;
}

.screen::-webkit-scrollbar {
  width: 6px;
}

.screen::-webkit-scrollbar-thumb {
  background-color: #CBD5E1;
  border-radius: 10px;
}

/* Header design */
.app-header {
  background-color: var(--primary-red);
  color: white;
  padding: 24px 20px;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  position: relative;
  z-index: 5;
  box-shadow: var(--shadow-md);
  transition: background-color var(--transition-normal);
}

.app-header.dark-tint {
  background-color: var(--bg-gray);
  color: var(--text-dark);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: none;
  padding: 16px 20px 8px 20px;
  border-bottom: 1px solid var(--border-color);
}

.app-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-logo-icon {
  background: white;
  color: var(--primary-red);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-family-title);
  font-size: 20px;
  box-shadow: var(--shadow-sm);
}

.app-header.dark-tint .app-logo-icon {
  background: var(--primary-red-light);
  color: var(--primary-red);
}

.app-title {
  font-family: var(--font-family-title);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.app-subtitle {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0.8;
  text-transform: uppercase;
}

.app-header.dark-tint .app-title {
  color: var(--text-dark);
}

.app-header.dark-tint .app-subtitle {
  color: var(--text-muted);
}

/* User Profile initial / badge in header */
.profile-badge {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: var(--font-family-title);
  transition: var(--transition-fast);
}

.profile-badge:hover {
  background: rgba(255, 255, 255, 0.3);
}

.app-header.dark-tint .profile-badge {
  background: var(--primary-red);
  color: white;
  border: none;
}

/* Hero Section text */
.header-hero {
  margin-top: 20px;
}

.header-hero h1 {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.header-hero p {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.4;
  font-weight: 400;
}

/* Bottom Tab Navigation */
.app-tabs {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.03);
  z-index: 10;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  flex: 1;
  height: 100%;
  font-size: 11px;
  font-weight: 600;
  gap: 4px;
  transition: var(--transition-fast);
  text-decoration: none;
}

.tab-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 2px;
  transition: var(--transition-fast);
}

.tab-item.active {
  color: var(--primary-red);
}

.tab-item.active svg {
  stroke: var(--primary-red);
  transform: translateY(-2px);
}

/* VIEW: LANDING / ROLE SELECT (Matches Image 1 style) */
#screen-landing {
  background-color: var(--primary-red);
  padding-bottom: 0;
}

.landing-bottom-drawer {
  background-color: var(--bg-gray);
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  padding: 30px 24px 40px 24px;
  flex: 1;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
}

.landing-drawer-indicator {
  width: 36px;
  height: 4px;
  background-color: #E2E8F0;
  border-radius: 2px;
  margin: 0 auto 24px auto;
}

.landing-subheading {
  font-family: var(--font-family-title);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.role-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.role-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-red-glow);
}

.role-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.role-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.role-icon-box.red-tint {
  background: var(--primary-red-light);
  color: var(--primary-red);
}

.role-icon-box.orange-tint {
  background: var(--orange-light);
  color: var(--orange-accent);
}

.role-icon-box svg {
  width: 24px;
  height: 24px;
}

.role-title {
  font-family: var(--font-family-title);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.role-desc {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.role-arrow {
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.landing-features-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.feature-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.feature-pill-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-color);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-pill-icon svg {
  width: 16px;
  height: 16px;
}

.feature-pill span {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

.terms-text {
  font-size: 11px;
  text-align: center;
  color: var(--text-muted);
  margin-top: 20px;
  font-weight: 400;
}

/* DASHBOARD STATS CARD (Matches Image 3 layout) */
.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px 20px;
  margin-top: -12px;
  position: relative;
  z-index: 6;
}
@media (max-width: 768px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .stats-container {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: white;
  border-radius: 16px;
  padding: 16px 10px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 35, 26, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon.red { background: var(--primary-red-light); color: var(--primary-red); }
.stat-icon.orange { background: var(--orange-light); color: var(--orange-accent); }
.stat-icon.green { background: var(--green-light); color: var(--green-accent); }

.stat-icon svg {
  width: 18px;
  height: 18px;
}

.stat-value {
  font-family: var(--font-family-title);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
}

.stat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.1;
}

/* SECTION CARDS */
.section-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  margin: 10px 20px 16px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-family-title);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
}

/* Add Listing Button Mini */
.btn-mini-add {
  background: var(--primary-red-light);
  color: var(--primary-red);
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-family-title);
  transition: var(--transition-fast);
}

.btn-mini-add:hover {
  background: var(--primary-red);
  color: white;
}

/* LISTING LIST ITEMS */
.listing-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.listing-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #F1F5F9;
  cursor: pointer;
  transition: var(--transition-fast);
}

.listing-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.listing-item:first-child {
  padding-top: 0;
}

.listing-item:hover {
  padding-left: 4px;
}

.listing-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.listing-item-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--primary-red-light);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  object-fit: cover;
}

.listing-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.listing-item-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.listing-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* Status Badge Dot & Text */
.status-badge {
  background: #F1F5F9;
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-badge.green {
  background: var(--green-light);
  color: var(--green-accent);
}

.status-badge.orange {
  background: var(--orange-light);
  color: var(--orange-accent);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-dot.green { background: var(--green-accent); }
.status-dot.orange { background: var(--orange-accent); }

/* STEPPER LISTING FORM (Matches Image 2 layout) */
.form-stepper-header {
  background: var(--primary-red);
  color: white;
  padding: 20px;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
}

.stepper-title {
  font-family: var(--font-family-title);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.stepper-subtitle {
  font-size: 11px;
  opacity: 0.8;
  font-weight: 600;
}

.stepper-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  position: relative;
  padding: 0 4px;
}

.stepper-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%);
  z-index: 1;
}

.stepper-progress-fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 3px;
  background: white;
  transform: translateY(-50%);
  z-index: 2;
  transition: width var(--transition-normal);
  width: 0%;
}

.stepper-step {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid var(--primary-red);
  z-index: 3;
  position: relative;
  transition: var(--transition-normal);
}

.stepper-step.active {
  background: white;
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.stepper-step.completed {
  background: white;
}

/* FORM STYLING */
.form-content {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  background: white;
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary-red);
  box-shadow: var(--primary-red-glow);
}

/* Room Type Chips (Matches Image 2) */
.chips-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.chip {
  background: white;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.chip:hover {
  background: var(--bg-gray);
  border-color: #CBD5E1;
}

.chip.active {
  background: var(--primary-red);
  color: white;
  border-color: var(--primary-red);
}

.form-footer {
  margin-top: auto;
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  background: white;
}

.btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-fast);
  border: none;
  font-family: var(--font-family-title);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary-red);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-red-hover);
  box-shadow: 0 4px 12px rgba(226, 35, 26, 0.2);
}

.btn-secondary {
  background: #F1F5F9;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: #E2E8F0;
  color: var(--text-dark);
}

/* HOW PAYOUTS WORK (Matches Image 3 bottom timeline) */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 8px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 20px;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.timeline-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-red-light);
  color: var(--primary-red);
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.timeline-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dark);
}

/* MAP STYLING & GPS SEARCH */
.search-bar-container {
  padding: 16px 20px 8px 20px;
}

.search-bar-row {
  display: flex;
  gap: 8px;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
}

.search-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input-icon svg {
  width: 16px;
  height: 16px;
}

.search-input-field {
  width: 100%;
  background: white;
  border: 1px solid var(--border-color);
  padding: 10px 12px 10px 36px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.search-input-field:focus {
  border-color: var(--primary-red);
}

.btn-gps-action {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--border-color);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.btn-gps-action:hover {
  background: var(--primary-red-light);
}

.radius-filter-container {
  padding: 4px 20px 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.radius-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.radius-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
  margin: 8px 0;
}

.radius-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-red);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(226, 35, 26, 0.4);
  transition: transform 0.1s ease;
}

.radius-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Property listings feed grid */
.feed-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 20px 24px 20px;
}

.feed-card {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition-normal);
}

.feed-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(226, 35, 26, 0.1);
}

.feed-card-image {
  height: 150px;
  background-color: #E2E8F0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.feed-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.feed-card:hover .feed-card-image img {
  transform: scale(1.04);
}

.feed-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.feed-card-distance {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: white;
  color: var(--text-dark);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}

.feed-card-distance svg {
  width: 10px;
  height: 10px;
  stroke: var(--primary-red);
}

.feed-card-info {
  padding: 16px;
}

.feed-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.feed-card-title {
  font-family: var(--font-family-title);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
}

.feed-card-price {
  font-family: var(--font-family-title);
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-red);
  text-align: right;
  white-space: nowrap;
}

.feed-card-price span {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  font-family: var(--font-family-body);
}

.feed-card-locality {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.feed-card-locality svg {
  width: 12px;
  height: 12px;
}

.feed-card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.feed-card-tag {
  background: var(--bg-gray);
  color: var(--text-muted);
  font-size: 9px;
  padding: 3px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* ROOM DETAIL SCREEN */
.detail-back-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: white;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 16px;
}

.detail-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.detail-back-btn:hover {
  background: var(--bg-gray);
}

.detail-gallery {
  height: 200px;
  background-color: var(--border-color);
  overflow: hidden;
  position: relative;
}

.detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-title-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.detail-name {
  font-family: var(--font-family-title);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.detail-area {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.detail-area svg {
  width: 12px;
  height: 12px;
  stroke: var(--primary-red);
}

.detail-financials-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.financial-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.financial-col:first-child {
  border-right: 1px solid var(--border-color);
  padding-right: 12px;
}

.financial-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.financial-val {
  font-family: var(--font-family-title);
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-red);
}

.financial-val.black {
  color: var(--text-dark);
}

/* Owner Card inside Room Detail */
.owner-card-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px 16px;
}

.owner-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.owner-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-red-light);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-family-title);
}

.owner-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.owner-badge {
  background: var(--green-light);
  color: var(--green-accent);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 2px;
}

/* Specifications Grid */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spec-item {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-title {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.spec-desc {
  font-size: 12px;
  color: var(--text-dark);
  font-weight: 600;
}

/* Custom Leaflet Map Container styling */
.map-preview-container {
  height: 160px;
  background: #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  z-index: 1;
}

.map-placeholder-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  pointer-events: none;
}

/* MODALS STYLING */
.modal-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(3px);
  z-index: 100;
  display: none;
  align-items: flex-end; /* Drawer slide from bottom style */
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  width: 100%;
  max-height: 80%;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 24px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-family: var(--font-family-title);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
}

.modal-close-btn {
  background: #F1F5F9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: #E2E8F0;
  color: var(--text-dark);
}

/* Visit scheduling slot grid */
.slots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.slot-item {
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  background: white;
}

.slot-item:hover {
  background: var(--bg-gray);
  border-color: #CBD5E1;
}

.slot-item.active {
  background: var(--primary-red-light);
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.slot-item-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.slot-item.active .slot-item-date {
  color: var(--primary-red);
}

.slot-item-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.slot-item.active .slot-item-time {
  color: var(--primary-red);
  font-weight: 700;
}

/* Razorpay SDK Style Mock Checkout Box */
.checkout-details-card {
  background: var(--bg-gray);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.checkout-row.total {
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
}

.checkout-payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pay-method {
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.pay-method:hover {
  background: #F1F5F9;
}

.pay-method.active {
  background: var(--bg-dark);
  color: white;
  border-color: var(--bg-dark);
}

/* TRANSACTION LEDGER TABLE (Admin Screen) */
.transaction-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: white;
}

.transaction-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
}

.transaction-table th {
  background: var(--bg-gray);
  padding: 10px 12px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.transaction-table td {
  padding: 12px;
  border-bottom: 1px solid #F1F5F9;
  color: var(--text-dark);
  font-weight: 500;
}

.transaction-table tr:last-child td {
  border-bottom: none;
}

.badge-amount {
  font-weight: 700;
}

.badge-amount.plus { color: var(--green-accent); }
.badge-amount.minus { color: var(--primary-red); }

/* In-App Monthly Rent/Bookings Card */
.booking-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 10px;
}

.booking-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.booking-image {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--primary-red-light);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  object-fit: cover;
}

.booking-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.booking-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.booking-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.booking-footer {
  background: var(--bg-gray);
  padding: 10px 12px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.booking-rent-info {
  display: flex;
  flex-direction: column;
}

.rent-info-label {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 700;
}

.rent-info-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

/* Success screens and placeholders */
.empty-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  gap: 12px;
}

.empty-placeholder svg {
  width: 48px;
  height: 48px;
  stroke: #CBD5E1;
  stroke-width: 1.5px;
}

.empty-placeholder span {
  font-size: 13px;
  font-weight: 500;
}

/* Map Modal specific */
.map-selection-box {
  height: 280px;
  background: #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.map-selection-hint {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 500;
  z-index: 10;
  text-align: center;
}

/* Chart Canvas container */
.chart-container {
  height: 160px;
  position: relative;
  margin-top: 12px;
  width: 100%;
}

/* Navigation button back in dashboards */
.nav-back-home {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  background: white;
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: 6px;
  transition: var(--transition-fast);
}

.nav-back-home:hover {
  color: var(--primary-red);
  border-color: var(--primary-red-glow);
}

/* Admin Dashboard layout tweaks (it can look like a normal mobile screen but lists all platform info) */
.admin-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px 20px 8px 20px;
}

.admin-overview-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-overview-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-overview-icon.red { background: var(--primary-red-light); color: var(--primary-red); }
.admin-overview-icon.green { background: var(--green-light); color: var(--green-accent); }

.admin-overview-info {
  display: flex;
  flex-direction: column;
}

.admin-overview-val {
  font-family: var(--font-family-title);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
}

.admin-overview-lbl {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.btn-sm {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: var(--font-family-title);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-sm-primary {
  background: var(--primary-red);
  color: white;
}

.btn-sm-success {
  background: var(--green-accent);
  color: white;
}

.btn-sm-secondary {
  background: var(--bg-gray);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

#screen-login {
  background-color: transparent;
  padding: 0px;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px - 340px);
  width: 100%;
}

#screen-login.active {
  display: flex;
}

.login-card-wrapper {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 440px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 40px auto;
}

@media (max-width: 480px) {
  .login-card-wrapper {
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 16px;
    background: transparent;
  }
}

.login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
}

.login-logo {
  font-family: var(--font-family-logo);
  font-size: 38px;
  font-weight: 800;
  color: var(--primary-red);
  letter-spacing: -1.5px;
  line-height: 1;
}

.login-lang-selector {
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 20px;
  background: white;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-dark);
}

.login-lang-selector span {
  font-size: 14px;
}

.login-lang-selector svg {
  width: 14px;
  height: 14px;
}

.login-content-middle {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-bottom-section {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.login-slogan {
  font-family: var(--font-family-title);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.login-input-container {
  display: flex;
  align-items: center;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 0 16px;
  background: white;
  height: 52px;
}

.login-input-container:focus-within {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 1px var(--primary-red);
}

.login-country-code {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  padding-right: 12px;
  border-right: 1px solid var(--border-color);
}

.login-country-code span {
  font-size: 18px;
}

.login-mobile-input {
  flex: 1;
  border: none;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  outline: none;
  background: transparent;
}

.login-mobile-input::placeholder {
  color: #94A3B8;
}

.btn-login-continue {
  background: var(--primary-red);
  color: white;
  border: none;
  height: 48px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-login-continue:hover {
  background: var(--primary-red-hover);
}

.login-divider-or {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}

.login-divider-or::before,
.login-divider-or::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #E2E8F0;
}

.login-divider-or:not(:empty)::before {
  margin-right: .5em;
}

.login-divider-or:not(:empty)::after {
  margin-left: .5em;
}

.btn-login-google {
  background: white;
  border: 1px solid #CBD5E1;
  color: var(--text-dark);
  height: 48px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-fast);
}

.btn-login-google:hover {
  background: #F8FAFC;
}

.btn-login-google svg {
  width: 18px;
  height: 18px;
}

.login-signup-later {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #1D4ED8;
  cursor: pointer;
  text-decoration: none;
  margin-top: 8px;
}

.login-signup-later:hover {
  text-decoration: underline;
}

/* ==========================================
   WEBSITE LAYOUT (DESKTOP LANDING PAGE)
   ========================================== */

.website-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-gray);
  overflow-x: hidden;
}

/* Website Header */
.website-header {
  width: 100%;
  background: white;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.web-logo {
  font-family: var(--font-family-logo);
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-red);
  letter-spacing: -1px;
  text-decoration: none;
}

.web-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.web-nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  cursor: pointer;
}

.web-nav-link:hover {
  color: var(--primary-red);
}

.web-nav-link.active {
  color: var(--primary-red);
  font-weight: 700;
  border-bottom: 2px solid var(--primary-red);
  padding-bottom: 4px;
}

.web-cta-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-web-secondary {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  background: white;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-web-secondary:hover {
  background: var(--bg-gray);
}

.btn-web-primary {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: white;
  background: var(--primary-red);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 10px rgba(226, 35, 26, 0.15);
}

.btn-web-primary:hover {
  background: var(--primary-red-hover);
  box-shadow: 0 6px 15px rgba(226, 35, 26, 0.25);
}

/* Website Hero Split Grid */
.website-hero {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  flex: 1;
}

.web-hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.web-hero-tag {
  background: var(--primary-red-light);
  color: var(--primary-red);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.web-hero-title {
  font-family: var(--font-family-title);
  font-size: 54px;
  font-weight: 800;
  color: var(--bg-dark);
  line-height: 1.15;
  letter-spacing: -1.5px;
}

.web-hero-title span {
  color: var(--primary-red);
}

.web-hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 400;
}

.web-download-badges {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.badge-store {
  height: 44px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.badge-store:hover {
  transform: translateY(-2px);
}

/* Info highlights list */
.web-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 10px;
}

.highlight-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.highlight-icon {
  background: white;
  border: 1px solid var(--border-color);
  color: var(--primary-red);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.highlight-icon svg {
  width: 18px;
  height: 18px;
}

.highlight-text-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: 2px;
}

.highlight-text-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Website Footer */
.website-footer {
  background: var(--bg-dark);
  color: #94A3B8;
  padding: 60px 40px 30px 40px;
  border-top: 1px solid #1E293B;
  width: 100%;
}

.footer-grid {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand-title {
  font-family: var(--font-family-logo);
  font-size: 32px;
  font-weight: 800;
  color: white;
  letter-spacing: -1px;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #64748B;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1E293B;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  cursor: pointer;
  border: 1px solid #334155;
}

.social-icon:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 13px;
  color: #64748B;
  text-decoration: none;
  transition: var(--transition-fast);
  cursor: pointer;
}

.footer-link:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid #1E293B;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #475569;
}

/* Responsive Overrides to hide desktop website frame on mobile devices */
@media (max-width: 991px) {
  .website-hero {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    gap: 40px;
  }
  .web-hero-content {
    text-align: center;
    align-items: center;
  }
  .web-hero-title {
    font-size: 40px;
  }
  .web-highlights {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .website-header {
    display: none;
  }
  .website-hero {
    display: none;
  }
  .website-footer {
    display: none;
  }
  .sim-bar {
    position: sticky;
    top: 0;
  }
  body {
    background-color: var(--bg-gray);
  }
  .app-container {
    margin: 0;
    max-width: 100%;
    height: auto;
    min-height: 100vh;
    border-radius: 0;
    border: none;
    overflow: visible;
  }
}

/* =======================================================
   OYO SCREENSHOT LISTING REPLICA (Horizontal Card Layout)
   ======================================================= */

.web-room-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  height: 200px;
  cursor: pointer;
  transition: var(--transition-normal);
  margin-bottom: 20px;
  width: 100%;
}

.web-room-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(226, 35, 26, 0.15);
}

.web-room-images {
  display: flex;
  width: 320px;
  height: 100%;
  flex-shrink: 0;
}

.web-room-main-img {
  flex: 1;
  position: relative;
  background: #E2E8F0;
  overflow: hidden;
}

.web-room-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.web-room-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.75);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.web-room-thumbs {
  width: 70px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #f1f5f9;
  border-left: 2px solid white;
}

.web-room-thumbs img {
  width: 100%;
  height: 25%;
  object-fit: cover;
  border-bottom: 2px solid white;
}

.web-room-thumbs img:last-child {
  border-bottom: none;
}

.web-room-details {
  flex: 1;
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  background: white;
  gap: 20px;
}

.web-room-info-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.web-room-title {
  font-family: var(--font-family-title);
  font-size: 18px;
  font-weight: 750;
  color: var(--text-dark);
  line-height: 1.2;
}

.web-room-locality {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.web-room-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.web-room-rating-badge {
  background: #38a169;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.web-room-rating-count {
  font-size: 11px;
  color: var(--text-muted);
}

.web-room-amenities {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.web-room-amenities span {
  font-size: 10px;
  color: var(--text-muted);
  background: var(--bg-gray);
  padding: 2px 6px;
  border-radius: 4px;
}

.web-room-wizard {
  margin-top: 8px;
}

.wizard-badge {
  border: 1px solid #ecc94b;
  color: #b7791f;
  background: #fefcbf;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.web-room-info-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  text-align: right;
  width: 170px;
  border-left: 1px solid var(--border-color);
  padding-left: 16px;
  flex-shrink: 0;
}

.web-room-price-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
}

.current-price {
  font-family: var(--font-family-title);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
}

.original-price {
  font-size: 12px;
  text-decoration: line-through;
  color: var(--text-muted);
}

.discount-percent {
  font-size: 11px;
  font-weight: 700;
  color: #dd6b20;
}

.price-taxes {
  font-size: 9px;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Make sure the tenant rooms list fills screen width */
#tenant-room-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media (max-width: 900px) {
  .web-room-card {
    height: auto;
    flex-direction: column;
  }
  .web-room-images {
    width: 100%;
    height: 180px;
  }
  .web-room-details {
    flex-direction: column;
    gap: 12px;
  }
  .web-room-info-right {
    width: 100%;
    align-items: flex-start;
    text-align: left;
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
  }
  .price-row {
    justify-content: flex-start;
  }

  /* Hide item prices on mobile phones */
  .web-room-price-section {
    display: none !important;
  }
}

/* Bottom tabs visibility controls (Desktop vs Mobile) */
@media (min-width: 769px) {
  .app-tabs {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .app-tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
  }
  
  /* Ensure padding at the bottom of active screens so sticky tabs do not cover content */
  .screen {
    padding-bottom: 80px !important;
  }
}

/* Admin rooms catalog grid & small boxes */
.admin-rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.admin-room-box {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 115px;
}
.admin-room-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-color: var(--primary-red);
}
.admin-room-box-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-room-box-owner {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.admin-room-box-rent {
  font-weight: 800;
  color: var(--primary-red);
  font-size: 13px;
  margin-top: auto;
}
.admin-room-box-status {
  align-self: flex-start;
  margin-top: 4px;
}

/* Two-column split admin dashboard layout styling */
.admin-split-container {
  display: flex;
  min-height: 100vh;
  background: #f9fafb;
}
.admin-sidebar {
  width: 250px;
  background: #111827; /* Dark charcoal */
  color: #f3f4f6;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  border-right: 1px solid var(--border-color);
  flex-shrink: 0;
}
.admin-sidebar-header {
  margin-bottom: 24px;
  padding: 0 8px;
}
.admin-sidebar-logo {
  font-family: var(--font-family-logo);
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-red);
  letter-spacing: -1px;
}
.admin-sidebar-subtitle {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #9ca3af;
  font-weight: 700;
  margin-top: -2px;
}
.admin-sidebar-stats-widget {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.widget-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.widget-stat-lbl {
  color: #9ca3af;
}
.widget-stat-val {
  font-weight: 700;
  color: #ffffff;
}
.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.admin-nav-item {
  background: none;
  border: none;
  color: #9ca3af;
  padding: 12px 14px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  height: auto;
  line-height: 1.2;
}
.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}
.admin-nav-item.active {
  background: var(--primary-red);
  color: #ffffff;
}
.admin-main-content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  background: #f9fafb;
  max-height: 100vh;
}
.admin-tab-view {
  display: none;
  animation: adminTabFadeIn 0.25s ease;
}
.admin-tab-view.active {
  display: block;
}

@keyframes adminTabFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .admin-split-container {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
  }
  .admin-sidebar-stats-widget {
    margin-bottom: 12px;
  }
  .admin-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  .admin-nav-item {
    width: auto;
    padding: 8px 12px;
    font-size: 11px;
  }
  .admin-main-content {
    padding: 16px;
    max-height: none;
  }
}

.pending-requests-box:hover {
  background: var(--primary-red) !important;
  color: white !important;
  transform: translateY(-2px);
}
.pending-requests-box:hover * {
  color: white !important;
}

/* Live Support Chat Widget Styles */
.chat-widget-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 999;
}
.chat-trigger-btn {
  width: 56px;
  height: 56px;
  background: var(--primary-red);
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(226,35,26,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  margin-top: 0;
}
.chat-trigger-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(226,35,26,0.4);
}
.chat-window {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 320px;
  height: 400px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border: 1px solid var(--border-color);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: chatWindowOpen 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes chatWindowOpen {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.chat-window.active {
  display: flex;
}
.chat-header {
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
}
.chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f1f5f9;
}
.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chat-msg.system {
  background: white;
  color: var(--text-dark);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}
.chat-msg.user {
  background: var(--primary-red);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}
.chat-msg.admin-msg {
  background: #e0f2fe;
  color: #0369a1;
  border: 1.5px solid #bae6fd;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}
.chat-msg-text {
  word-break: break-word;
}
.chat-msg-time {
  font-size: 9px;
  opacity: 0.6;
  text-align: right;
  align-self: flex-end;
}
.chat-footer {
  padding: 8px 12px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
  background: white;
}
.chat-footer input {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 12px;
  outline: none;
  height: 36px;
}
.chat-send-btn {
  width: 36px;
  height: 36px;
  background: var(--primary-red);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}
.chat-typing-indicator {
  padding: 8px 16px;
  background: #f1f5f9;
  display: flex;
  gap: 4px;
  align-items: center;
}
.chat-typing-indicator .dot {
  width: 6px;
  height: 6px;
  background: #94a3b8;
  border-radius: 50%;
  animation: chatDotPulse 1.4s infinite ease-in-out both;
}
.chat-typing-indicator .dot:nth-child(1) { animation-delay: -0.32s; }
.chat-typing-indicator .dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes chatDotPulse {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

@media (max-width: 768px) {
  .chat-widget-container {
    bottom: 72px;
    right: 12px;
  }
  .chat-window {
    width: 290px;
    height: 360px;
    bottom: 64px;
  }
}

.active-role-btn {
  background: var(--primary-red) !important;
  color: white !important;
  box-shadow: 0 4px 10px rgba(226, 35, 26, 0.15) !important;
}

/* ==========================================
   NEW: OYO-STYLE HEADER & CITY STORY AVATARS
   ========================================== */
.oyo-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--primary-red);
}

.oyo-hamburger-btn {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.oyo-logo-badge {
  background: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-family: var(--font-family-logo);
  font-weight: 800;
  font-size: 22px;
  color: var(--primary-red);
  letter-spacing: -0.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
}

.capsule-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border-radius: 30px;
  padding: 10px 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  margin: -20px 20px 16px 20px;
  position: relative;
  z-index: 10;
  cursor: pointer;
  border: 1px solid #E2E8F0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.capsule-search-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.16);
}

.capsule-search-icon {
  font-size: 18px;
  color: var(--text-dark);
}

.capsule-search-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
}

.capsule-search-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.capsule-search-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Circular City Story Avatars */
.city-story-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 12px 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.city-story-container::-webkit-scrollbar {
  display: none;
}

.city-story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  min-width: 68px;
}

.city-story-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--primary-red), #F43F5E);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.city-story-item:hover .city-story-avatar {
  transform: scale(1.08);
}

.city-story-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.city-story-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
}

/* Badges & Price Styling */
.discount-badge {
  background: #DC2626;
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.original-price {
  text-decoration: line-through;
  color: #94A3B8;
  font-size: 11px;
  margin-left: 4px;
}

.pay-at-property-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 6px;
}

/* Exclusive Offer Cards */
.offer-cards-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 20px 16px 20px;
  scrollbar-width: none;
}
.offer-cards-grid::-webkit-scrollbar { display: none; }

.offer-banner-card {
  min-width: 260px;
  background: linear-gradient(135deg, #1E293B, #0F172A);
  color: white;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  cursor: pointer;
}

/* Skip Login Button */
.btn-skip-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--primary-red);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 16px;
  margin-top: 8px;
  transition: opacity 0.2s;
  text-decoration: none;
}
.btn-skip-login:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* Blogs Section */
.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.blog-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #CBD5E1;
}

.blog-card-body {
  padding: 16px;
}

.blog-card-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.blog-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 6px;
}

.blog-card-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}
