/* ========== Design system: Dual Discovery (Stitch 365 Home) ========== */
:root {
  /* Dual Discovery dark theme (default) */
  --dd-primary: #35625B;
  --dd-primary-dark: #2A4E48;
  --dd-accent: #D4AF37;
  --dd-bg: #18181A;
  --dd-surface: #28282B;
  --dd-text: #E0E0E0;
  --dd-text-muted: #A0A0A0;
  --dd-heading: #fff;
  --dd-border: rgba(255,255,255,0.05);
  --dd-border-strong: rgba(255,255,255,0.1);
  --dd-shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --dd-glow: 0 0 15px rgba(53, 98, 91, 0.3);
  --dd-header-bg: rgba(24, 24, 26, 0.95);
  --dd-nav-bg: rgba(40, 40, 43, 0.95);
  /* Legacy / light theme */
  --primary: #35625B;
  --primary-hover: #2A4E48;
  --bg-light: #f6f7f7;
  --bg-dark: #18181A;
  --accent-gold: #D4AF37;
  --success-green: #47CC25;
  --text-dark: #0d1c1c;
  --text-muted: #58718d;
  --border-light: #e7f3f3;
  --border-input: #d3dbe4;
  --card-bg: rgba(255, 255, 255, 0.95);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.08);
  --radius: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
}

/* Global */
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.5;
}
.loading { color: #666; }
.error-msg { color: #dc2626; margin-top: 0.5rem; }

/* ========== Landing (Stitch style) ========== */
.landing-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.landing-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 248, 248, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 1.5rem;
}
.landing-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.landing-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.landing-logo svg { width: 2rem; height: 2rem; flex-shrink: 0; }
.landing-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
}
.landing-nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}
.landing-nav a:hover { color: var(--primary); }
.landing-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.landing-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0 1rem;
  background: var(--border-light);
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
}
.landing-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0 1.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s;
}
.landing-btn-primary:hover { filter: brightness(1.1); }

.landing-hero {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%),
    linear-gradient(135deg, #0d3d3d 0%, #1a5c5c 50%, #0d2d2d 100%);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-xl);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.landing-hero h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem 0;
  max-width: 32rem;
}
.landing-hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.125rem;
  margin: 0 0 1.5rem 0;
  max-width: 28rem;
}
.landing-search-bar {
  width: 100%;
  max-width: 56rem;
  background: #fff;
  padding: 0.75rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}
.landing-search-bar .search-field {
  flex: 1;
  min-width: 120px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  border-right: 1px solid var(--border-light);
}
.landing-search-bar .search-field:last-of-type { border-right: none; }
.landing-search-bar label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  display: block;
}
.landing-search-bar input {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
  width: 100%;
  outline: none;
}
.landing-search-bar .search-btn {
  height: 3.5rem;
  padding: 0 2rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.landing-search-bar .search-btn:hover { filter: brightness(1.1); }
.landing-search-bar form { display: contents; }

.landing-filters {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.landing-filters::-webkit-scrollbar { display: none; }
.landing-pill {
  flex-shrink: 0;
  height: 2.5rem;
  padding: 0 1.25rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--border-light);
  color: var(--text-dark);
  transition: border-color 0.2s, background 0.2s;
}
.landing-pill:hover { border-color: rgba(8, 125, 125, 0.3); }
.landing-pill.active { background: var(--primary); color: #fff; }

.landing-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.landing-section h3 {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem 0;
}
.landing-section .section-desc { color: #6b7280; margin: 0 0 1.5rem 0; }
.landing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.landing-card {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s;
}
.landing-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.landing-card-image {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.875rem;
}
.landing-card-body { padding: 1rem; }
.landing-card-body h4 { margin: 0 0 0.25rem 0; font-size: 1.125rem; font-weight: 700; }
.landing-card-body .card-location { color: #6b7280; font-size: 0.875rem; margin: 0 0 0.5rem 0; }
.landing-card-body .card-price { font-size: 1.25rem; font-weight: 800; color: var(--primary); }

.landing-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  padding: 2rem 0;
}
.landing-step {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.landing-step-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  background: rgba(8, 125, 125, 0.08);
  border: 1px solid rgba(8, 125, 125, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.landing-step h5 { margin: 0 0 0.5rem 0; font-size: 1.25rem; font-weight: 700; }
.landing-step p { margin: 0; color: #6b7280; font-size: 0.9rem; max-width: 16rem; }

.landing-footer {
  margin-top: auto;
  background: #fff;
  border-top: 1px solid var(--border-light);
  padding: 2.5rem 1.5rem;
}
.landing-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}
.landing-footer .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.landing-footer .footer-logo svg { width: 1.5rem; height: 1.5rem; }
.landing-footer h6 {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #9ca3af;
  margin: 0 0 1rem 0;
}
.landing-footer ul { list-style: none; padding: 0; margin: 0; }
.landing-footer ul li { margin-bottom: 0.5rem; }
.landing-footer a { color: var(--text-dark); text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.landing-footer a:hover { color: var(--primary); }
.landing-footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: #9ca3af;
}
.landing-footer-bottom a { color: inherit; }
.landing-footer-bottom a:hover { color: var(--primary); }

.landing-cta-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(8, 125, 125, 0.2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.landing-cta-float:hover { background: var(--primary); color: #fff; }

/* ========== Dual Discovery Home (100% макет Stitch) ========== */
body.dd-home {
  font-family: 'Manrope', sans-serif;
  background: var(--dd-bg);
  color: var(--dd-text);
  min-height: 100vh;
  padding-bottom: 5rem;
}
body.dd-home h1, body.dd-home h2, body.dd-home h3, body.dd-home h4, body.dd-home h5, body.dd-home h6 {
  font-family: 'Epilogue', sans-serif;
}
/* Светлая тема */
body.dd-home.dd-theme-light {
  --dd-bg: #f0f2f5;
  --dd-surface: #fff;
  --dd-text: #1a1a1a;
  --dd-text-muted: #5c5c5c;
  --dd-heading: #0d1c1c;
  --dd-border: rgba(0,0,0,0.06);
  --dd-border-strong: rgba(0,0,0,0.12);
  --dd-shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.12);
  --dd-header-bg: rgba(255,255,255,0.95);
  --dd-nav-bg: rgba(255,255,255,0.95);
}
body.dd-home.dd-theme-light .dd-hero-title span {
  background: linear-gradient(90deg, var(--dd-primary), var(--dd-primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dd-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dd-header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dd-border);
  padding: 1rem 1rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.dd-header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
  order: 1;
}
.dd-header-actions { order: 2; }
.dd-role-switcher-header { order: 3; width: 100%; }
.dd-logo-box {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-lg);
  background: var(--dd-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--dd-glow);
  font-family: 'Epilogue', sans-serif;
  flex-shrink: 0;
  box-sizing: border-box;
}
.dd-header-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.dd-theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--dd-text);
  background: none;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}
.dd-theme-toggle:hover { background: var(--dd-border); }
.dd-theme-toggle .material-symbols-outlined { font-size: 1.25rem; }
.dd-icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--dd-text);
  background: none;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}
.dd-icon-btn:hover { background: var(--dd-border); }
.dd-icon-btn .material-symbols-outlined { font-size: 1.25rem; }
.dd-avatar { width: 2rem; height: 2rem; border-radius: 9999px; background: linear-gradient(135deg, var(--dd-primary), var(--dd-accent)); border: 1px solid var(--dd-border-strong); object-fit: cover; }
.dd-main { flex: 1; padding: 1rem; display: flex; flex-direction: column; gap: 1.5rem; max-width: 28rem; margin: 0 auto; width: 100%; }
.dd-role-switcher {
  display: flex;
  padding: 0.25rem;
  background: var(--dd-surface);
  border-radius: 9999px;
  border: 1px solid var(--dd-border);
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
}
.dd-role-switcher a, .dd-role-switcher span {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: var(--dd-text-muted);
  transition: color 0.2s, background 0.2s;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dd-role-switcher a:hover, .dd-role-switcher span:hover { color: var(--dd-text); }
.dd-role-switcher a.active, .dd-role-switcher span.active { background: var(--dd-primary); color: #fff; }
.dd-hero-title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5rem 0;
  color: var(--dd-heading);
}
.dd-hero-title span { background: linear-gradient(90deg, var(--dd-heading), var(--dd-text-muted)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.dd-hero { width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.dd-search-card {
  background: var(--dd-surface);
  border-radius: var(--radius-2xl);
  padding: 1.25rem;
  box-shadow: var(--dd-shadow-soft);
  border: 1px solid var(--dd-border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.dd-search-card form { display: flex; flex-direction: column; gap: 0.75rem; width: 100%; min-width: 0; }
.dd-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--dd-bg);
  border-radius: var(--radius-xl);
  padding: 0 1rem;
  height: 3rem;
  min-height: 3rem;
  border: 1px solid var(--dd-border);
  width: 100%;
  box-sizing: border-box;
}
.dd-search-input-wrap:focus-within { border-color: rgba(53, 98, 91, 0.5); }
.dd-search-input-wrap input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--dd-text);
  font-size: 1rem;
}
.dd-search-input-wrap input::placeholder { color: var(--dd-text-muted); }
.dd-search-filters { display: flex; gap: 0.5rem; width: 100%; min-width: 0; flex-wrap: wrap; }
.dd-search-filter-wrap { position: relative; flex: 1; min-width: 0; min-width: 8rem; }
.dd-search-filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
  height: 2.5rem;
  padding: 0 0.75rem;
  background: var(--dd-bg);
  border: 1px solid var(--dd-border);
  border-radius: var(--radius-xl);
  color: var(--dd-text-muted);
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
}
.dd-search-filter-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.25rem;
  padding: 0.75rem;
  background: var(--dd-surface);
  border: 1px solid var(--dd-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 20;
}
.dd-search-dropdown-label { display: block; font-size: 0.75rem; color: var(--dd-text-muted); margin-bottom: 0.25rem; }
.dd-search-date-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--dd-bg);
  border: 1px solid var(--dd-border);
  border-radius: var(--radius-lg);
  color: var(--dd-text);
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dd-search-date-input:focus {
  outline: none;
  border-color: var(--dd-primary);
  box-shadow: 0 0 0 3px rgba(53, 98, 91, 0.2);
}
.dd-search-date-input:last-of-type { margin-bottom: 0; }
/* Стилизация календаря (date input) в теме DD */
body.dd-home .dd-search-date-input,
body.dd-home .dd-search-dropdown input[type="date"] {
  background: var(--dd-bg);
  border-color: var(--dd-border);
  color: var(--dd-text);
}
body.dd-home .dd-search-date-input::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
  opacity: 0.8;
}
body.dd-home.dd-theme-light .dd-search-date-input::-webkit-calendar-picker-indicator {
  filter: none;
  opacity: 0.6;
}
.dd-search-guests-control { display: flex; align-items: center; gap: 0.5rem; }
.dd-search-guests-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-lg);
  background: var(--dd-bg);
  border: 1px solid var(--dd-border);
  color: var(--dd-text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dd-search-guests-btn:hover { background: var(--dd-primary); color: #fff; border-color: var(--dd-primary); }
.dd-search-guests-num { width: 2.5rem; text-align: center; font-weight: 600; background: transparent; border: none; color: var(--dd-text); font-size: 1rem; }
.dd-search-filter-btn:hover { color: var(--dd-text); border-color: var(--dd-primary); }
.dd-search-btn {
  width: 100%;
  min-height: 3rem;
  padding: 0 1.25rem;
  background: var(--dd-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-xl);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--dd-glow);
  transition: filter 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}
.dd-search-btn:hover { background: var(--dd-primary-dark); filter: brightness(1.05); }
.dd-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  min-width: 0;
}
.dd-section-head h2 { font-size: 1.25rem; font-weight: 700; margin: 0; color: var(--dd-heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dd-section-head a { font-size: 0.875rem; color: var(--dd-primary); font-weight: 500; text-decoration: none; flex-shrink: 0; white-space: nowrap; }
.dd-section-head a:hover { color: var(--dd-accent); }
.dd-trending { width: 100%; min-width: 0; }
.dd-trending > * { min-width: 0; }
.dd-card-featured {
  background: var(--dd-surface);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--dd-shadow-soft);
  border: 1px solid var(--dd-border);
  display: flex;
  flex-direction: column;
}
.dd-card-img-wrap { position: relative; display: block; }
.dd-card-featured .dd-card-img-wrap { height: 16rem; overflow: hidden; }
.dd-card-featured .dd-card-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.dd-card-featured .dd-card-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  max-width: calc(100% - 1.5rem);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dd-accent);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}
.dd-card-img-link { display: block; text-decoration: none; color: inherit; }
.dd-card-featured .dd-card-body { padding: 1.25rem; position: relative; margin-top: -3rem; z-index: 1; background: var(--dd-surface); border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; min-width: 0; }
.dd-card-featured .dd-card-title { font-size: 1.25rem; font-weight: 700; color: var(--dd-heading); margin: 0 0 0.25rem 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-card-featured .dd-card-loc { font-size: 0.875rem; color: var(--dd-text-muted); display: flex; align-items: center; gap: 0.25rem; margin: 0 0 0.5rem 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-card-featured .dd-card-price { font-size: 1.125rem; font-weight: 700; color: var(--dd-heading); overflow: hidden; text-overflow: ellipsis; }
.dd-card-featured .dd-card-price small { font-size: 0.875rem; font-weight: 400; color: var(--dd-text-muted); }
.dd-card-featured .dd-card-specs { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.75rem; color: var(--dd-text-muted); margin: 0.75rem 0; padding-bottom: 1rem; border-bottom: 1px solid var(--dd-border); }
.dd-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; min-width: 0; }
.dd-btn-primary {
  height: 2.5rem;
  min-height: 2.5rem;
  padding: 0 1rem;
  background: var(--dd-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  text-decoration: none;
}
.dd-btn-primary:hover { background: var(--dd-primary-dark); }
.dd-btn-outline {
  height: 2.5rem;
  min-height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid var(--dd-primary);
  color: var(--dd-primary);
  background: none;
  border-radius: var(--radius-lg);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}
.dd-btn-outline:hover { background: rgba(53, 98, 91, 0.1); }
.dd-cards-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.dd-card-small {
  background: var(--dd-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--dd-shadow-soft);
  border: 1px solid var(--dd-border);
  display: flex;
  flex-direction: column;
}
.dd-card-small .dd-card-img-wrap { height: 10rem; overflow: hidden; }
.dd-card-small .dd-card-img { height: 100%; width: 100%; object-fit: cover; }
.dd-card-small .dd-card-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  max-width: calc(100% - 1rem);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--dd-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}
.dd-card-small .dd-card-body { padding: 0.75rem; min-width: 0; }
.dd-card-small .dd-card-title { font-size: 0.875rem; font-weight: 700; color: var(--dd-heading); margin: 0 0 0.25rem 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-card-small .dd-card-loc { font-size: 0.75rem; color: var(--dd-text-muted); margin: 0 0 0.5rem 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-card-small .dd-card-price { font-size: 0.875rem; font-weight: 700; color: var(--dd-heading); overflow: hidden; text-overflow: ellipsis; }
.dd-card-small .dd-card-price small { font-size: 0.625rem; color: var(--dd-text-muted); }
.dd-card-small .dd-view-btn {
  width: 100%;
  margin-top: 0.5rem;
  min-height: 2rem;
  padding: 0 0.5rem;
  background: var(--dd-bg);
  border: 1px solid var(--dd-border-strong);
  border-radius: var(--radius);
  color: var(--dd-text);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}
.dd-card-small .dd-view-btn:hover { background: var(--dd-border); }
.dd-card-small-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
/* Результаты поиска на главной (на этой же странице) */
.dd-search-results-block { padding-top: 0.5rem; text-align: center; }
.dd-search-results-block .dd-section-head { justify-content: center; }
.dd-search-results-block .dd-section-head h2 { text-align: center; white-space: normal; }
.dd-search-results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; text-align: left; }
.dd-search-result-card { text-decoration: none; color: inherit; }
.dd-search-no-results {
  display: block;
  width: 100%;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--dd-text-muted);
  font-size: 1rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.dd-search-no-results a { color: var(--dd-primary); font-weight: 500; }
@media (min-width: 768px) {
  .dd-search-results-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .dd-search-results-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}
.dd-avatar-wrap { display: inline-flex; }
.dd-map-teaser {
  position: relative;
  width: 100%;
  min-height: 8rem;
  height: 8rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--dd-border-strong);
  cursor: pointer;
  display: block;
  text-decoration: none;
  background: var(--dd-surface);
  box-sizing: border-box;
}
.dd-map-teaser img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  display: block;
}
.dd-map-teaser:hover img { opacity: 0.4; }
.dd-map-teaser .dd-map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(53, 98, 91, 0.2);
  backdrop-filter: blur(1px);
  pointer-events: none;
}
.dd-map-teaser .dd-map-label {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  background: var(--dd-surface);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--dd-border-strong);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dd-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 2rem);
}
.dd-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dd-nav-bg);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--dd-border);
  padding: 0.75rem 1.5rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 50;
}
.dd-bottom-nav ul { display: flex; justify-content: space-between; align-items: center; list-style: none; margin: 0; padding: 0; max-width: 24rem; margin: 0 auto; }
.dd-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--dd-text-muted);
  text-decoration: none;
  font-size: 0.625rem;
  font-weight: 500;
  transition: color 0.2s;
  min-width: 0;
  padding: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 4.5rem;
}
.dd-bottom-nav a:hover, .dd-bottom-nav a.active { color: var(--dd-primary); }
.dd-bottom-nav .material-symbols-outlined, .dd-bottom-nav .dd-nav-icon { font-size: 1.5rem; flex-shrink: 0; }

/* ——— ПК: широкая вёрстка главной ——— */
@media (min-width: 1024px) {
  body.dd-home { padding-bottom: 0; }
  .dd-header {
    flex-wrap: nowrap;
    padding: 1rem 2rem;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    gap: 1.5rem;
  }
  .dd-header-left { order: 0; flex: 1; min-width: 0; }
  .dd-header-actions { order: 0; }
  .dd-role-switcher-header { order: 0; width: auto; max-width: 22rem; flex-shrink: 0; }
  .dd-header-nav-pc {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  .dd-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
  }
  .dd-role-switcher { max-width: 20rem; margin: 0; }
  .dd-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
  }
  .dd-hero .dd-search-card { max-width: 28rem; margin: 0 auto; width: 100%; }
  .dd-trending {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
  .dd-trending .dd-section-head { grid-column: 1 / -1; }
  .dd-trending #ddFeaturedCard { grid-column: 1; grid-row: 2 / 4; }
  .dd-trending .dd-cards-row { grid-column: 2; grid-row: 2; gap: 1.5rem; }
  .dd-trending .dd-map-teaser { grid-column: 2; grid-row: 3; height: 12rem; min-height: 12rem; width: 100%; align-self: stretch; }
  .dd-card-featured .dd-card-img-wrap { height: 20rem; }
  .dd-card-small .dd-card-img-wrap { height: 12rem; }
  .dd-bottom-nav { display: none; }
  /* Страницы входа/регистрации на ПК */
  body.dd-home .auth-wrap {
    padding: 5rem 2rem 3rem;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
  }
  body.dd-home .auth-card {
    max-width: 440px;
    margin: 0 auto;
    padding: 2.5rem 2.25rem;
    width: 100%;
    box-sizing: border-box;
  }
  /* Лого и шапка на ПК: читаемый размер */
  body.dd-home .dd-header .dd-logo-box { width: 2.25rem; height: 2.25rem; font-size: 0.8125rem; }
  body.dd-home .dd-header .dd-header-title { font-size: 1.125rem; }
  body.dd-home .auth-card .auth-logo .dd-logo-box { width: 2.5rem; height: 2.5rem; font-size: 0.875rem; }
  body.dd-home .auth-card h1 { font-size: 1.875rem; }
  body.dd-home .auth-card .auth-subtitle { font-size: 0.9375rem; }
  .dd-header-nav-pc a {
    color: var(--dd-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
  }
  .dd-header-nav-pc a:hover, .dd-header-nav-pc a.active { color: var(--dd-primary); }
  #ddInvestSection .dd-section-head { grid-column: 1 / -1; }
  #ddInvestSection .dd-cards-row { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1023px) {
  .dd-header-nav-pc { display: none; }
}

/* Legacy .landing (simple centered block) — keep for fallback */
.landing { max-width: 600px; margin: 2rem auto; text-align: center; }
.landing nav { margin-top: 1.5rem; }
.landing nav a { margin: 0 0.5rem; color: var(--primary); font-weight: 600; }
.landing nav a:hover { text-decoration: underline; }

/* ========== Auth pages (Stitch style) ========== */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bg-light);
}
.auth-wrap.auth-wrap-bg {
  background: #1a2f35;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 2.5rem 2rem;
  text-align: left;
}
.auth-card .auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.auth-card .auth-logo svg { width: 2rem; height: 2rem; flex-shrink: 0; }
.auth-card .auth-logo span { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.05em; color: #101419; }
.auth-card h1 { font-size: 1.75rem; font-weight: 700; margin: 0 0 0.35rem 0; color: #101419; }
.auth-card .auth-subtitle { color: var(--text-muted); font-size: 0.875rem; margin: 0 0 1.75rem 0; line-height: 1.4; }
/* Form inside auth-card (login) */
.auth-card .form-group { margin-bottom: 1.25rem; }
.auth-card .form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #101419;
}
.auth-card .form-group input,
.auth-card .form-group select,
.auth-card .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  box-sizing: border-box;
  border: 1px solid #d3dbe4;
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: inherit;
  background: #fff;
  color: #101419;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-card .form-group input:focus,
.auth-card .form-group select:focus,
.auth-card .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8, 125, 125, 0.12);
}
.auth-card .form-group input::placeholder { color: var(--text-muted); opacity: 0.65; }
.auth-card .error-msg { margin-top: 0.5rem; margin-bottom: 0.25rem; }
.auth-card .auth-btn-primary {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.9rem 1rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: filter 0.2s;
}
.auth-card .auth-btn-primary:hover { filter: brightness(1.08); }
.auth-card .auth-footer {
  text-align: left;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.auth-card .auth-footer .auth-link { color: var(--text-muted); font-weight: 500; text-decoration: none; transition: color 0.2s; }
.auth-card .auth-footer .auth-link:hover { color: var(--primary); text-decoration: underline; }
.auth-card .auth-footer .auth-link-secondary { display: inline-block; margin-top: 0.75rem; }
/* Form inside auth-page (register etc.) */
.auth-page .form-group { margin-bottom: 1.25rem; }
.auth-page .form-group label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
}
.auth-page .form-group input,
.auth-page .form-group select,
.auth-page .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  box-sizing: border-box;
  border: 1px solid var(--border-input);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-page .form-group input:focus,
.auth-page .form-group select:focus,
.auth-page .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8, 125, 125, 0.15);
}
.auth-page .form-group input::placeholder { color: var(--text-muted); opacity: 0.7; }
.phone-row { display: flex; gap: 0.5rem; min-width: 0; }
.phone-row select { width: auto; min-width: 120px; max-width: 180px; flex-shrink: 0; }
.phone-row input { flex: 1; min-width: 120px; }
/* Номер телефона: выравнивание и стили в форме (dd-home) */
body.dd-home .phone-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}
body.dd-home .phone-row select {
  width: 10rem;
  min-width: 10rem;
  max-width: 12rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--dd-border);
  background: var(--dd-bg);
  color: var(--dd-text);
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  box-sizing: border-box;
  flex-shrink: 0;
}
body.dd-home .phone-row select:focus {
  outline: none;
  border-color: var(--dd-primary);
  box-shadow: 0 0 0 3px rgba(53, 98, 91, 0.25);
}
body.dd-home .phone-row input {
  flex: 1;
  min-width: 10rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--dd-border);
  background: var(--dd-bg);
  color: var(--dd-text);
  font-size: 0.875rem;
  font-family: inherit;
  box-sizing: border-box;
}
body.dd-home .phone-row input::placeholder { color: var(--dd-text-muted); }
body.dd-home .phone-row input:focus {
  outline: none;
  border-color: var(--dd-primary);
  box-shadow: 0 0 0 3px rgba(53, 98, 91, 0.25);
}
.auth-btn-primary {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: filter 0.2s;
}
.auth-btn-primary:hover { filter: brightness(1.08); }
.auth-link { color: var(--primary); font-weight: 600; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.875rem; color: var(--text-muted); }
.form-actions { margin-top: 1rem; }
.form-actions button { margin-right: 0.5rem; padding: 0.5rem 1rem; cursor: pointer; }

/* Auth header (for register) */
.auth-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(8, 125, 125, 0.1);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.auth-header .auth-logo { margin: 0; }
.auth-header-nav { display: flex; gap: 1.5rem; }
.auth-header-nav a { color: #475569; font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.auth-header-nav a:hover { color: var(--primary); }

/* Auth pages in Dual Discovery style (единый вид с главной) */
body.dd-home .auth-wrap {
  background: var(--dd-bg);
  padding-top: 5rem;
  padding-bottom: 5rem;
}
body.dd-home .auth-wrap.auth-wrap-bg { background: var(--dd-bg); }
body.dd-home .auth-card {
  background: var(--dd-surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--dd-shadow-soft);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--dd-text);
}
body.dd-home .auth-card .auth-logo span { color: var(--dd-text); }
body.dd-home .auth-card h1 { color: #fff; font-family: 'Epilogue', sans-serif; }
body.dd-home .auth-card .auth-subtitle { color: var(--dd-text-muted); }
body.dd-home .auth-card .form-group label { color: var(--dd-text); }
body.dd-home .auth-card .form-group input,
body.dd-home .auth-card .form-group select,
body.dd-home .auth-card .form-group textarea {
  background: var(--dd-bg);
  border-color: rgba(255,255,255,0.08);
  color: var(--dd-text);
}
body.dd-home .auth-card .form-group input:focus,
body.dd-home .auth-card .form-group select:focus,
body.dd-home .auth-card .form-group textarea:focus {
  border-color: var(--dd-primary);
  box-shadow: 0 0 0 3px rgba(53, 98, 91, 0.25);
}
body.dd-home .auth-card .form-group input::placeholder { color: var(--dd-text-muted); }
body.dd-home .auth-card .auth-btn-primary {
  background: var(--dd-primary);
  color: #fff;
  border-radius: var(--radius-xl);
}
body.dd-home .auth-card .auth-btn-primary:hover { background: var(--dd-primary-dark); filter: brightness(1.05); }
body.dd-home .auth-card .auth-footer { color: var(--dd-text-muted); }
body.dd-home .auth-card .auth-footer .auth-link { color: var(--dd-primary); }
body.dd-home .auth-card .auth-footer .auth-link:hover { color: var(--dd-accent); }
/* Разделитель и вход через Google */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 1rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--dd-border);
}
.auth-divider span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--dd-text-muted);
  text-transform: lowercase;
}
.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  height: 3rem;
  padding: 0 1.25rem;
  background: var(--dd-surface);
  border: 1px solid var(--dd-border-strong);
  border-radius: var(--radius-xl);
  color: var(--dd-text);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  box-sizing: border-box;
}
.auth-google-btn:hover {
  background: var(--dd-bg);
  border-color: var(--dd-text-muted);
}
.auth-google-icon { flex-shrink: 0; }
.auth-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--dd-border);
  text-align: center;
}
.auth-footer-line {
  margin: 0 0 1rem 0;
  font-size: 0.9375rem;
  color: var(--dd-text-muted);
  line-height: 1.5;
}
.auth-footer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}
.auth-btn-register,
.auth-btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: var(--radius-xl);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  box-sizing: border-box;
}
.auth-btn-register {
  background: var(--dd-primary);
  color: #fff;
  border: none;
}
.auth-btn-register:hover {
  background: var(--dd-primary-dark);
  color: #fff;
}
.auth-btn-home {
  background: transparent;
  border: 1px solid var(--dd-border-strong);
  color: var(--dd-text);
}
.auth-btn-home:hover {
  background: var(--dd-border);
  border-color: var(--dd-text-muted);
  color: var(--dd-text);
}
body.dd-home .auth-card .error-msg { color: #f87171; }
body.dd-home .auth-card .auth-logo { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; margin-bottom: 1rem; }
body.dd-home .auth-card .auth-logo .dd-logo-box { flex-shrink: 0; }
/* Progress bar on register (dd style) */
body.dd-home .auth-card .auth-progress-wrap { margin: 1.5rem 0; }
body.dd-home .auth-card .auth-progress-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
body.dd-home .auth-card .auth-progress-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dd-text-muted); }
body.dd-home .auth-card .auth-progress-label.auth-progress-step { font-weight: 400; text-transform: none; }
body.dd-home .auth-card .auth-progress-bar { height: 6px; background: var(--dd-bg); border-radius: 9999px; overflow: hidden; }
body.dd-home .auth-card .auth-progress-fill { height: 100%; background: var(--dd-primary); border-radius: 9999px; }

/* ========== Panel: layout, table, buttons (unchanged) ========== */
.app-layout { display: flex; min-height: 100vh; }
.app-layout.app-layout-column { flex-direction: column; }
.app-sidebar { width: 220px; background: var(--bg-dark); padding: 1rem; }
.app-sidebar a { display: block; color: #eee; padding: 0.5rem 0; text-decoration: none; }
.app-sidebar a:hover { color: #fff; }
.app-main { flex: 1; padding: 1rem; }
.app-header { margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: center; }
.app-header-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem 1rem; border-bottom: 1px solid var(--border-light); }
.app-header-bar .app-nav { margin: 0; border: 0; padding: 0; }
.app-header-brand { text-decoration: none; color: var(--text-dark); font-weight: 800; }
.app-header-user { margin-left: auto; }
.form-block { display: none; margin: 1rem 0; padding: 1rem; border: 1px solid var(--border-light); border-radius: var(--radius); }
.form-block.is-open { display: block; }
.msg-success { color: var(--success-green); }
.msg-error { color: #dc2626; }
.card { background: #fff; border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card h3 { margin-top: 0; }
.card-desc { color: #666; font-size: 0.9rem; margin-bottom: 1rem; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border-light); }
.data-table th { background: #f5f5f5; font-weight: 600; }
.data-table .actions { white-space: nowrap; }
.btn-link { color: var(--primary); text-decoration: none; margin-right: 0.5rem; font-weight: 600; }
.btn-link:hover { text-decoration: underline; }
.btn-link-danger { color: #dc2626; }

.app-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border-light); }
.app-nav a { color: var(--primary); text-decoration: none; font-weight: 500; }
.app-nav a:hover { text-decoration: underline; }
.list-item { padding: 0.75rem; border: 1px solid var(--border-light); border-radius: var(--radius); margin-bottom: 0.5rem; }
.list-item h4 { margin: 0 0 0.25rem 0; }
.empty-state { color: #666; padding: 2rem; text-align: center; }
.list-item-unread { background: #f8f9fa; }
button { padding: 0.4rem 0.8rem; cursor: pointer; font-family: inherit; border-radius: var(--radius); }

.message-list { max-height: 400px; overflow-y: auto; margin: 1rem 0; padding: 0.5rem; border: 1px solid var(--border-light); border-radius: var(--radius); }
.message-item { margin-bottom: 0.75rem; padding: 0.5rem; border-radius: var(--radius); background: #f5f5f5; }
.message-item.message-mine { background: #e0e7ff; margin-left: 1rem; }
.message-item small { color: #666; font-size: 0.8rem; }
.message-list .form-group textarea { width: 100%; box-sizing: border-box; }

/* ========== Приложение (app) в стиле Dual Discovery ========== */
body.dd-app { padding-bottom: 5rem; }
body.dd-app .dd-app-main {
  flex: 1;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
body.dd-app .dd-app-main #content { min-width: 0; }
body.dd-app .app-nav-inline { display: none; }
body.dd-app .dd-app-user {
  font-size: 0.875rem;
  color: var(--dd-text-muted);
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.dd-app .dd-app-user-text { color: var(--dd-text); }
body.dd-app .card {
  background: var(--dd-surface);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--dd-border);
  box-shadow: var(--dd-shadow-soft);
  color: var(--dd-text);
}
body.dd-app .card h3 { color: var(--dd-heading); margin-top: 0; }
body.dd-app .card-desc { color: var(--dd-text-muted); }
body.dd-app .list-item {
  padding: 1rem;
  border: 1px solid var(--dd-border);
  border-radius: var(--radius-xl);
  margin-bottom: 0.5rem;
  background: var(--dd-surface);
  color: var(--dd-text);
}
body.dd-app .list-item:hover { border-color: var(--dd-primary); }
body.dd-app .list-item a { color: var(--dd-primary); text-decoration: none; }
body.dd-app .list-item a:hover { color: var(--dd-accent); }
body.dd-app .list-item h4 { color: var(--dd-heading); margin: 0 0 0.25rem 0; }
body.dd-app .list-item p { color: var(--dd-text-muted); margin: 0; }
body.dd-app .list-item-unread { background: rgba(53, 98, 91, 0.1); }
body.dd-app .loading { color: var(--dd-text-muted); }
body.dd-app .empty-state { color: var(--dd-text-muted); padding: 2rem; text-align: center; }
body.dd-app .error-msg { color: #f87171; }
body.dd-app #content input,
body.dd-app #content select,
body.dd-app #content textarea,
body.dd-app #content button {
  background: var(--dd-bg);
  border: 1px solid var(--dd-border);
  color: var(--dd-text);
  border-radius: var(--radius-lg);
  padding: 0.5rem 0.75rem;
  font-family: inherit;
}
body.dd-app #content input:focus,
body.dd-app #content select:focus,
body.dd-app #content textarea:focus {
  border-color: var(--dd-primary);
  outline: none;
}
body.dd-app #content button[type="submit"],
body.dd-app #content .btn-primary {
  background: var(--dd-primary);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
}
body.dd-app #content button[type="submit"]:hover,
body.dd-app #content .btn-primary:hover { background: var(--dd-primary-dark); }
body.dd-app .data-table th,
body.dd-app .data-table td { border-color: var(--dd-border); color: var(--dd-text); }
body.dd-app .data-table th { background: var(--dd-bg); color: var(--dd-text-muted); }
body.dd-app .message-list { border-color: var(--dd-border); background: var(--dd-bg); }
body.dd-app .message-item { background: var(--dd-surface); color: var(--dd-text); }
body.dd-app .message-item.message-mine { background: rgba(53, 98, 91, 0.2); }
body.dd-app .message-item small { color: var(--dd-text-muted); }

/* Страница сообщений: список диалогов */
.dd-app-messages-empty { padding: 2rem 1rem; text-align: center; }
.dd-app-messages-empty-hint { font-size: 0.875rem; color: var(--dd-text-muted); margin-top: 0.5rem; }
.dd-app-conversation-list { display: flex; flex-direction: column; gap: 0; margin-top: 0.5rem; }
.dd-app-conversation-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  background: var(--dd-surface);
  border: 1px solid var(--dd-border);
  border-bottom: none;
  transition: background 0.2s;
}
.dd-app-conversation-item:first-child { border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; }
.dd-app-conversation-item:last-child { border-bottom: 1px solid var(--dd-border); border-radius: 0 0 var(--radius-2xl) var(--radius-2xl); }
.dd-app-conversation-item:only-child { border-radius: var(--radius-2xl); border-bottom: 1px solid var(--dd-border); }
.dd-app-conversation-item:hover { background: var(--dd-bg); }
.dd-app-conversation-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: var(--dd-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.dd-app-conversation-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.dd-app-conversation-name { font-weight: 600; color: var(--dd-heading); font-size: 0.9375rem; }
.dd-app-conversation-preview { font-size: 0.8125rem; color: var(--dd-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-app-conversation-time { font-size: 0.75rem; color: var(--dd-text-muted); }
.dd-app-conversation-item .material-symbols-outlined { color: var(--dd-text-muted); font-size: 1.25rem; flex-shrink: 0; }

/* Страница чата: лента сообщений и форма ввода */
.dd-app-chat-page { display: flex; flex-direction: column; height: calc(100dvh - 8rem); min-height: 320px; max-height: 720px; }
.dd-app-chat-header { margin-bottom: 0.75rem; }
.dd-app-chat-back { display: inline-flex; align-items: center; margin-bottom: 0; }
.dd-app-chat-page .message-list {
  flex: 1;
  min-height: 200px;
  max-height: none;
  margin: 0 0 1rem 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  border-radius: var(--radius-xl);
}
.dd-app-chat-page .message-item {
  max-width: 85%;
  width: fit-content;
  padding: 0.75rem 1rem;
  border-radius: 1rem 1rem 1rem 0;
  margin-bottom: 0;
}
.dd-app-chat-page .message-item.message-mine {
  margin-left: auto;
  border-radius: 1rem 1rem 0 1rem;
  background: var(--dd-primary);
  color: #fff;
}
.dd-app-chat-page .message-item.message-mine .message-item-time { color: rgba(255,255,255,0.8); }
.dd-app-chat-page .message-item-body { margin: 0 0 0.25rem 0; word-break: break-word; white-space: pre-wrap; }
.dd-app-chat-page .message-item-time { font-size: 0.7rem; display: block; }
.dd-app-chat-form { margin-top: auto; flex-shrink: 0; }
.dd-app-chat-input-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  padding: 0.5rem;
  background: var(--dd-surface);
  border: 1px solid var(--dd-border);
  border-radius: var(--radius-2xl);
}
.dd-app-chat-input-wrap textarea {
  flex: 1;
  min-height: 2.5rem;
  max-height: 8rem;
  padding: 0.6rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--dd-text);
  font-size: 1rem;
  font-family: inherit;
  resize: none;
  outline: none;
}
.dd-app-chat-input-wrap textarea::placeholder { color: var(--dd-text-muted); }
.dd-app-chat-send {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--dd-primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.dd-app-chat-send:hover { background: var(--dd-primary-dark); }
.dd-app-chat-send .material-symbols-outlined { font-size: 1.25rem; }
@media (min-width: 1024px) {
  .dd-app-chat-page { min-height: 400px; max-height: 560px; }
  .dd-app-chat-page .message-item { max-width: 70%; }
}
body.dd-app .form-block { border-color: var(--dd-border); background: var(--dd-surface); }
@media (min-width: 1024px) {
  body.dd-app { padding-bottom: 0; }
  body.dd-app .dd-bottom-nav { display: none; }
  body.dd-app .app-nav-inline { display: flex; align-items: center; gap: 1rem; }
  body.dd-app .app-nav-inline a { color: var(--dd-text-muted); text-decoration: none; font-size: 0.875rem; font-weight: 500; }
  body.dd-app .app-nav-inline a:hover { color: var(--dd-primary); }
}
@media (max-width: 1023px) {
  body.dd-app .dd-header-nav-pc.app-nav-inline { display: none; }
}

/* Компоненты страниц приложения (100% Stitch Dual Discovery) */
.dd-app-section { margin-bottom: 1.5rem; }
.dd-app-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.dd-app-section-head h2, .dd-app-page-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dd-heading);
  margin: 0;
  font-family: 'Epilogue', sans-serif;
}
.dd-app-section-head a { font-size: 0.875rem; color: var(--dd-primary); font-weight: 500; text-decoration: none; }
.dd-app-section-head a:hover { color: var(--dd-accent); }
.dd-app-search-form {
  background: var(--dd-surface);
  border-radius: var(--radius-2xl);
  padding: 1rem;
  border: 1px solid var(--dd-border);
  margin-bottom: 1rem;
}
.dd-app-search-form input { width: 100%; padding: 0.75rem 1rem; border-radius: var(--radius-xl); border: 1px solid var(--dd-border); background: var(--dd-bg); color: var(--dd-text); font-size: 1rem; box-sizing: border-box; }
.dd-app-search-form input:focus { outline: none; border-color: var(--dd-primary); }
.dd-app-search-form button[type="submit"] { width: 100%; margin-top: 0.75rem; height: 3rem; background: var(--dd-primary); color: #fff; border: none; border-radius: var(--radius-xl); font-weight: 700; font-size: 0.875rem; cursor: pointer; }
.dd-app-search-form button[type="submit"]:hover { background: var(--dd-primary-dark); }
.dd-app-hero-booking {
  background: var(--dd-surface);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--dd-border);
  margin-bottom: 1rem;
}
.dd-app-hero-booking .dd-app-hero-img { height: 12rem; background: var(--dd-bg); display: flex; align-items: center; justify-content: center; color: var(--dd-text-muted); }
.dd-app-hero-booking .dd-app-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.dd-app-hero-booking .dd-app-hero-body { padding: 1.25rem; }
.dd-app-hero-booking .dd-app-hero-title { font-size: 1.25rem; font-weight: 700; color: var(--dd-heading); margin: 0 0 0.25rem 0; }
.dd-app-hero-booking .dd-app-hero-meta { font-size: 0.875rem; color: var(--dd-text-muted); margin-bottom: 0.75rem; }
.dd-app-hero-booking .dd-app-hero-cta { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: var(--dd-primary); color: #fff; border-radius: var(--radius-lg); font-weight: 700; font-size: 0.875rem; text-decoration: none; }
.dd-app-hero-booking .dd-app-hero-cta:hover { background: var(--dd-primary-dark); color: #fff; }
/* Профиль: на ПК — узкая колонка по центру, компактная карточка */
.dd-app-section--profile { max-width: 100%; }
@media (min-width: 1024px) {
  .dd-app-section--profile {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }
  .dd-app-section--profile .dd-app-page-title { margin-bottom: 1.25rem; font-size: 1.5rem; }
  .dd-app-section--profile .dd-app-profile-header { padding: 2rem 1.5rem; margin-bottom: 1.25rem; }
  .dd-app-section--profile .dd-app-profile-header .dd-app-avatar { width: 5.5rem; height: 5.5rem; font-size: 1.75rem; margin-bottom: 1rem; }
  .dd-app-section--profile .dd-app-profile-header .dd-app-name { font-size: 1.375rem; margin-bottom: 0.5rem; }
  .dd-app-section--profile .dd-app-profile-stats { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--dd-border); display: flex; justify-content: center; gap: 1.5rem; }
  .dd-app-section--profile .dd-app-profile-stats-item { text-align: center; }
  .dd-app-section--profile .dd-app-profile-stats-item strong { display: block; font-size: 0.9375rem; color: var(--dd-heading); }
  .dd-app-section--profile .dd-app-profile-stats-item span { font-size: 0.75rem; color: var(--dd-text-muted); }
  .dd-app-section--profile .dd-app-settings-group { margin-bottom: 1.25rem; }
  .dd-app-section--profile .dd-app-form-block {
    margin-top: 1.25rem;
    padding: 1.75rem 2rem;
    background: var(--dd-surface);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--dd-border);
  }
  .dd-app-section--profile .dd-app-form-block h4 {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
  }
  .dd-app-section--profile .dd-app-form-block .form-group {
    margin-bottom: 1.5rem;
  }
  .dd-app-section--profile .dd-app-form-block .form-group label {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }
  .dd-app-section--profile .dd-app-form-block .form-group input {
    width: 100%;
    max-width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1rem;
  }
  .dd-app-section--profile .dd-app-form-block .dd-app-btn-block {
    margin-top: 1.25rem;
    min-height: 3rem;
    padding: 0.875rem 1rem;
  }
  /* На ПК форма редактирования всегда видна и выровнена */
  .dd-app-section--profile .dd-app-profile-edit-toggle {
    display: block;
  }
}
.dd-app-profile-header {
  background: var(--dd-surface);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--dd-border);
  margin-bottom: 1rem;
}
.dd-app-profile-header .dd-app-avatar { width: 5rem; height: 5rem; border-radius: 9999px; background: linear-gradient(135deg, var(--dd-primary), var(--dd-accent)); margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; color: #fff; overflow: hidden; }
.dd-app-profile-header .dd-app-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dd-app-profile-header .dd-app-name { font-size: 1.25rem; font-weight: 700; color: var(--dd-heading); margin: 0 0 0.5rem 0; }
.dd-app-profile-header .dd-app-meta { font-size: 0.875rem; color: var(--dd-text-muted); }
.dd-app-profile-verified { display: inline-flex; align-items: center; gap: 0.375rem; margin-top: 0.5rem; padding: 0.25rem 0.75rem; background: rgba(53, 98, 91, 0.15); border: 1px solid var(--dd-primary); border-radius: 9999px; font-size: 0.8125rem; font-weight: 500; color: var(--dd-primary); }
.dd-app-profile-verified .material-symbols-outlined { font-size: 1rem; }
.dd-app-profile-stats { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--dd-border); display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.dd-app-profile-stats-item { text-align: center; }
.dd-app-profile-stats-item strong { display: block; font-size: 0.875rem; color: var(--dd-heading); }
.dd-app-profile-stats-item span { font-size: 0.75rem; color: var(--dd-text-muted); }
.dd-app-profile-edit-toggle { display: none; overflow: hidden; }
.dd-app-profile-edit-toggle.is-open { display: block; animation: dd-profile-open 0.2s ease; }
@keyframes dd-profile-open { from { opacity: 0; } to { opacity: 1; } }
.dd-app-settings-group {
  background: var(--dd-surface);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--dd-border);
  margin-bottom: 1rem;
}
.dd-app-settings-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--dd-border);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.dd-app-settings-row:last-child { border-bottom: none; }
.dd-app-settings-row:hover { background: var(--dd-bg); }
.dd-app-settings-row .dd-app-settings-icon { width: 2.5rem; height: 2.5rem; border-radius: 9999px; background: var(--dd-bg); color: var(--dd-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dd-app-settings-row .dd-app-settings-text { flex: 1; min-width: 0; }
.dd-app-settings-row .dd-app-settings-title { font-weight: 600; color: var(--dd-heading); margin: 0; font-size: 0.9375rem; }
.dd-app-settings-row .dd-app-settings-sub { font-size: 0.75rem; color: var(--dd-text-muted); margin: 0.25rem 0 0 0; }
.dd-app-settings-row .material-symbols-outlined:last-child { color: var(--dd-text-muted); font-size: 1.25rem; }
.dd-app-results { margin-top: 1rem; }
.dd-app-property-card {
  background: var(--dd-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--dd-border);
  margin-bottom: 1rem;
}
.dd-app-property-card .dd-app-card-img { height: 10rem; background: var(--dd-bg); position: relative; }
.dd-app-property-card .dd-app-card-img img { width: 100%; height: 100%; object-fit: cover; }
.dd-app-img-placeholder { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: var(--dd-bg); color: var(--dd-text-muted); }
.dd-app-img-placeholder-show { display: flex; }
.dd-app-card-desc { font-size: 0.875rem; color: var(--dd-text-muted); margin: 0.5rem 0 0 0; line-height: 1.4; }
.dd-app-booking-msg { margin-top: 1rem; padding: 0.75rem; border-radius: var(--radius-lg); font-size: 0.875rem; }
.dd-app-booking-error { background: rgba(239, 68, 68, 0.12); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.3); }
.dd-app-booking-success { text-align: center; padding: 2rem; }
.dd-app-booking-detail { margin: 0.35rem 0; font-size: 0.9375rem; }
.dd-app-bookings-list { display: flex; flex-direction: column; gap: 1rem; }
.dd-app-booking-card { background: var(--dd-surface); border: 1px solid var(--dd-border); border-radius: var(--radius-xl); overflow: hidden; }
.dd-app-booking-card-body { padding: 1rem; }
.dd-app-booking-card-head { font-size: 1rem; font-weight: 700; margin: 0 0 0.5rem 0; }
.dd-app-booking-card-title { color: var(--dd-heading); text-decoration: none; }
.dd-app-booking-card-title:hover { color: var(--dd-primary); }
.dd-app-booking-card-meta { font-size: 0.875rem; color: var(--dd-text-muted); margin: 0.25rem 0; }
.dd-app-booking-card-price { font-size: 0.9375rem; font-weight: 700; color: var(--dd-primary); margin: 0.35rem 0; }
.dd-app-booking-status { font-size: 0.8125rem; font-weight: 600; margin: 0.5rem 0; display: inline-block; padding: 0.2rem 0.5rem; border-radius: 9999px; }
.dd-app-booking-status.pending { background: rgba(234, 179, 8, 0.2); color: #ca8a04; }
.dd-app-booking-status.confirmed { background: rgba(34, 197, 94, 0.2); color: #16a34a; }
.dd-app-booking-status.cancelled { background: rgba(239, 68, 68, 0.15); color: #dc2626; }
.dd-app-booking-status.completed { background: var(--dd-bg); color: var(--dd-text-muted); }
.dd-app-bookings-empty { text-align: center; padding: 2rem; }
.dd-app-booking-status-hint { font-size: 0.8125rem; color: var(--dd-text-muted); margin: 1rem 0 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.35rem; }
.dd-app-booking-status-hint .dd-app-booking-status { margin: 0; }
.dd-app-property-card .dd-app-card-body { padding: 1rem; }
.dd-app-property-card .dd-app-card-title { font-size: 1rem; font-weight: 700; color: var(--dd-heading); margin: 0 0 0.25rem 0; }
.dd-app-property-card .dd-app-card-meta { font-size: 0.875rem; color: var(--dd-text-muted); margin-bottom: 0.5rem; }
.dd-app-property-card .dd-app-card-price { font-size: 1rem; font-weight: 700; color: var(--dd-primary); }
.dd-app-btn-block { display: block; width: 100%; margin-top: 0.75rem; padding: 0.75rem 1rem; background: var(--dd-primary); color: #fff; border: none; border-radius: var(--radius-lg); font-weight: 700; font-size: 0.875rem; cursor: pointer; text-align: center; text-decoration: none; box-sizing: border-box; }
.dd-app-btn-block:hover { background: var(--dd-primary-dark); color: #fff; }
.dd-app-btn-outline { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5rem 1rem; border: 1px solid var(--dd-primary); color: var(--dd-primary); background: none; border-radius: var(--radius-lg); font-weight: 600; font-size: 0.875rem; text-decoration: none; margin-top: 0.5rem; }
.dd-app-btn-outline:hover { background: rgba(53, 98, 91, 0.1); color: var(--dd-primary); }
.dd-app-form-block { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--dd-border); }
.dd-app-form-block h4 { font-size: 1rem; color: var(--dd-heading); margin: 0 0 0.75rem 0; }
.dd-app-form-block .form-group { margin-bottom: 1.25rem; }
.dd-app-form-block .form-group:last-of-type { margin-bottom: 1rem; }
.dd-app-form-block .form-group label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--dd-text-muted); margin-bottom: 0.5rem; }
.dd-app-form-block .form-group input { width: 100%; box-sizing: border-box; padding: 0.75rem 1rem; min-height: 2.75rem; border-radius: var(--radius-lg); }
.dd-app-form-block .dd-app-btn-block { margin-top: 1rem; min-height: 3rem; }
.dd-app-success { color: var(--success-green); font-size: 0.875rem; margin-top: 0.5rem; }

/* ========== Владелец (Owner) — Dual Discovery ========== */
body.dd-owner { padding-bottom: 5.5rem; }
.dd-owner-main { max-width: 28rem; margin: 0 auto; width: 100%; padding: 1rem; }
.dd-owner-main #content { min-width: 0; }
.dd-owner-nav a.active { color: var(--dd-primary); font-weight: 600; }
.dd-owner-nav .material-symbols-outlined { font-size: 1.5rem; }

.dd-owner-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.dd-owner-income-card {
  grid-column: 1 / -1;
  background: var(--dd-primary);
  color: #fff;
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.dd-owner-income-card::after { content: ''; position: absolute; right: 0; top: 0; width: 8rem; height: 8rem; background: rgba(255,255,255,0.1); border-radius: 50%; transform: translate(30%, -30%); }
.dd-owner-income-label { font-size: 0.875rem; opacity: 0.9; margin-bottom: 0.25rem; }
.dd-owner-income-value { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.dd-owner-income-trend { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; font-weight: 700; background: rgba(255,255,255,0.2); padding: 0.25rem 0.5rem; border-radius: 9999px; margin-left: 0.5rem; }
.dd-owner-stat-card {
  background: var(--dd-surface);
  border: 1px solid var(--dd-border);
  border-radius: var(--radius-2xl);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dd-owner-stat-card .dd-owner-stat-icon { width: 2.5rem; height: 2.5rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; }
.dd-owner-stat-card .dd-owner-stat-icon.orange { background: rgba(234, 88, 12, 0.15); color: #ea580c; }
.dd-owner-stat-card .dd-owner-stat-icon.blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.dd-owner-stat-card .dd-owner-stat-value { font-size: 1.75rem; font-weight: 800; color: var(--dd-heading); }
.dd-owner-stat-card .dd-owner-stat-label { font-size: 0.75rem; color: var(--dd-text-muted); }

.dd-owner-add-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--dd-surface);
  border: 1px solid var(--dd-border);
  border-radius: var(--radius-2xl);
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  transition: background 0.2s, border-color 0.2s;
}
.dd-owner-add-cta:hover { background: var(--dd-bg); border-color: var(--dd-primary); color: var(--dd-text); }
.dd-owner-add-cta .dd-owner-add-icon { width: 2.5rem; height: 2.5rem; border-radius: 9999px; background: var(--dd-bg); color: var(--dd-primary); display: flex; align-items: center; justify-content: center; }
.dd-owner-add-cta .material-symbols-outlined:last-child { color: var(--dd-text-muted); }

.dd-owner-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.dd-owner-section-head h2 { font-size: 1.25rem; font-weight: 700; color: var(--dd-heading); margin: 0; }
.dd-owner-section-head a { font-size: 0.875rem; color: var(--dd-primary); font-weight: 500; text-decoration: none; }
.dd-owner-section-head a.dd-owner-add-link { white-space: nowrap; }
.dd-owner-property-list { display: flex; flex-direction: column; gap: 1rem; }
.dd-owner-property-card {
  background: var(--dd-surface);
  border: 1px solid var(--dd-border);
  border-radius: var(--radius-2xl);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: stretch;
}
.dd-owner-property-card .dd-owner-property-img {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  min-height: 5.5rem;
  border-radius: var(--radius-xl);
  background: var(--dd-bg);
  flex-shrink: 0;
  overflow: hidden;
}
.dd-owner-property-card .dd-owner-property-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dd-owner-img-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--dd-bg);
  color: var(--dd-text-muted);
}
.dd-owner-img-placeholder .material-symbols-outlined { font-size: 1.75rem; }
.dd-owner-img-placeholder-show { display: flex; }
.dd-owner-property-card .dd-owner-property-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.dd-owner-property-card .dd-owner-property-title { font-size: 1rem; font-weight: 700; color: var(--dd-heading); margin: 0 0 0.25rem 0; }
.dd-owner-property-card .dd-owner-property-type { font-size: 0.8125rem; color: var(--dd-text-muted); margin: 0 0 0.5rem 0; }
.dd-owner-property-card .dd-owner-property-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.dd-owner-property-card .dd-owner-property-price { font-size: 0.875rem; font-weight: 700; color: var(--dd-heading); }
.dd-owner-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.5rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; }
.dd-owner-badge.rented { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.dd-owner-badge.vacant { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.dd-owner-badge.own { background: var(--dd-bg); color: var(--dd-text-muted); }
.dd-owner-property-actions { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--dd-border); display: flex; gap: 0.5rem; flex-wrap: wrap; }
.dd-owner-property-actions .dd-btn-small { padding: 0.5rem 0.75rem; font-size: 0.8125rem; border-radius: var(--radius-lg); font-weight: 600; cursor: pointer; border: none; }
.dd-owner-property-actions .dd-btn-primary-small { background: var(--dd-primary); color: #fff; }
.dd-owner-property-actions .dd-btn-outline-small { background: none; border: 1px solid var(--dd-border); color: var(--dd-text); }

/* Брони — календарный вид (карточки по датам) */
.dd-owner-bookings-calendar { display: flex; flex-direction: column; gap: 1rem; }
.dd-owner-booking-card {
  background: var(--dd-surface);
  border: 1px solid var(--dd-border);
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dd-owner-booking-dates {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dd-primary);
}
.dd-owner-booking-dates .material-symbols-outlined { font-size: 1.125rem; }
.dd-owner-booking-title { font-size: 1rem; font-weight: 700; color: var(--dd-heading); margin: 0; }
.dd-owner-booking-guest {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--dd-text);
  margin: 0;
}
.dd-owner-booking-meta { font-size: 0.8125rem; color: var(--dd-text-muted); margin: 0; }
.dd-owner-booking-status {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.dd-owner-booking-status.pending { background: rgba(234, 179, 8, 0.2); color: #ca8a04; }
.dd-owner-booking-status.confirmed { background: rgba(34, 197, 94, 0.2); color: #16a34a; }
.dd-owner-booking-status.cancelled { background: rgba(239, 68, 68, 0.2); color: #dc2626; }
.dd-owner-booking-status.completed { background: var(--dd-bg); color: var(--dd-text-muted); }
.dd-owner-booking-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.25rem; }
.dd-owner-booking-actions .dd-btn-small { padding: 0.5rem 0.75rem; font-size: 0.8125rem; border-radius: var(--radius-lg); font-weight: 600; cursor: pointer; border: none; }
.dd-owner-booking-actions .dd-btn-primary-small { background: var(--dd-primary); color: #fff; }
.dd-owner-booking-actions .dd-btn-outline-small { background: none; border: 1px solid var(--dd-border); color: var(--dd-text); }

body.dd-owner #content .card { background: var(--dd-surface); border: 1px solid var(--dd-border); border-radius: var(--radius-2xl); padding: 1.25rem; margin-bottom: 1rem; }
body.dd-owner #content .card h3 { font-size: 1.25rem; color: var(--dd-heading); margin: 0 0 1rem 0; }
body.dd-owner #content .form-group { margin-bottom: 1rem; }
body.dd-owner #content .form-group label { display: block; font-size: 0.875rem; color: var(--dd-text-muted); margin-bottom: 0.35rem; }
body.dd-owner #content input, body.dd-owner #content select, body.dd-owner #content textarea {
  width: 100%; padding: 0.6rem 0.75rem; background: var(--dd-bg); border: 1px solid var(--dd-border); border-radius: var(--radius-lg); color: var(--dd-text);
}
body.dd-owner #content button[type="submit"], body.dd-owner #content .btn-primary { background: var(--dd-primary); color: #fff; border: none; padding: 0.75rem 1.25rem; border-radius: var(--radius-lg); font-weight: 600; cursor: pointer; }
body.dd-owner #content .data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
body.dd-owner #content .data-table th, body.dd-owner #content .data-table td { padding: 0.5rem 0.5rem; border-bottom: 1px solid var(--dd-border); text-align: left; color: var(--dd-text); }
body.dd-owner #content .data-table th { background: var(--dd-bg); color: var(--dd-text-muted); font-weight: 600; }
body.dd-owner #content .loading { color: var(--dd-text-muted); padding: 2rem; text-align: center; }
body.dd-owner #content .empty-state { color: var(--dd-text-muted); }
body.dd-owner #content .error-msg { color: #ef4444; }
.dd-owner-nav-pc { display: none; }
@media (min-width: 1024px) {
  body.dd-owner { padding-bottom: 0; }
  .dd-owner-main { max-width: 1200px; padding: 1.5rem 2rem; }
  .dd-owner-nav { display: none; }
  .dd-owner-nav-pc {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 1.5rem;
  }
  .dd-owner-nav-pc .dd-owner-nav-item {
    color: var(--dd-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
  }
  .dd-owner-nav-pc .dd-owner-nav-item:hover,
  .dd-owner-nav-pc .dd-owner-nav-item.active { color: var(--dd-primary); }
}
