/* =========================================================
   modern.css
   Safe visual refresh for legacy Bootstrap 4.3.1
   No layout breaking, no JS, no HTML changes
   ========================================================= */

/* -----------------------------
   1. Base variables (neutral)
-------------------------------- */
:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;

  /* Accent: neutral blue-gray (does NOT conflict with logo) */
  --accent: #3b82f6;
  --accent-hover: #2563eb;

  --radius: 12px;
  --radius-sm: 8px;
}

/* -----------------------------
   2. Base typography
-------------------------------- */
html {
  font-size: 16px;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

p {
  color: var(--text-main);
  margin-bottom: 1rem;
}

/* Muted text */
.text-muted {
  color: var(--text-muted) !important;
}

/* -----------------------------
   3. Layout breathing room
-------------------------------- */
.container,
.container-fluid {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
/* ===== Header fine-tuning ===== */

/* Общая высота и воздух */
.navbar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Логотип */
.navbar-brand {
  padding: 0;
  margin-right: 1.25rem;
}

.navbar-brand img,
.navbar-brand svg {
  max-height: 44px;
  width: auto;
  display: block;
}

/* Навигация */
.navbar-nav .nav-item {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

.navbar-nav .nav-link {
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(59, 130, 246, 0.08);
}

/* Активный пункт меню */
.navbar-nav .active > .nav-link,
.navbar-nav .nav-link.active {
  color: var(--accent);
  background-color: rgba(59, 130, 246, 0.12);
}


/* ===== Room card ===== */

.room-items {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.room-items:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}
/* Image wrapper */
.room-img {
  position: relative;
  overflow: hidden;
  background: #000;
}

.room-img img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.room-items:hover .room-img img {
  transform: scale(1.05);
  opacity: 0.92;
}
.room-img .room-content {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.room-img .room-content i {
  color: var(--accent);
  font-size: 16px;
}
.room-text {
  padding: 1.25rem;
}
.room-title {
  margin-bottom: 0.75rem;
}

.room-title h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.25rem 0 0.5rem;
}

.room-title > span {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-right: 0.75rem;
}

.room-title i {
  margin-right: 4px;
}
.room-features {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 0.75rem 0;
  margin: 0.75rem 0;
}

.room-info {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.room-info div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.room-info span {
  font-weight: 500;
}
.room-items .site-btn {
  display: inline-block;
  width: 100%;
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #fff;
  text-align: center;
  transition: background-color 0.2s ease;
}

.room-items .site-btn:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}
.room-items a.w-100 > div {
  background: #f1f5f9 !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-soft) !important;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.room-items a.w-100 > div:hover {
  background: #e5e7eb !important;
}
@media (max-width: 768px) {
  .room-text {
    padding: 1rem;
  }

  .room-info {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .room-title h5 {
    font-size: 1rem;
  }
}
/* ===== Fix Rent button contrast ===== */

.room-items .site-btn.btn-line,
.room-items .site-btn.btn-outline {
  background-color: #ffffff;
  color: var(--accent);
  border: 2px solid var(--accent);
  font-weight: 600;
  box-shadow: none;
}

.room-items .site-btn.btn-line:hover,
.room-items .site-btn.btn-outline:hover {
  background-color: var(--accent);
  color: #ffffff;
}