:root {
  --primary: #00bfa6;
  --dark: #222;
  --bg: #f8f9fa;
  --text-muted: #6d7582;
  --line: #e8ebf0;
  --card-shadow: 0 10px 28px rgba(16, 22, 34, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
}

.side-dock {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1400;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(13, 28, 45, 0.08);
  box-shadow: 0 12px 30px rgba(7, 18, 32, 0.12);
  border-radius: 999px;
  padding: 12px 10px;
  backdrop-filter: blur(8px);
}

.side-dock-item {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #1f3346;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
}

.side-dock-item i {
  font-size: 1rem;
}

.side-dock-item span {
  position: absolute;
  right: 56px;
  white-space: nowrap;
  background: #0f2536;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 16px rgba(7, 18, 32, 0.18);
}

.side-dock-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(10, 22, 39, 0.16);
}

.side-dock-item:hover span {
  opacity: 1;
  transform: translateX(0);
}

.side-dock-item.post {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.side-dock-item.post span {
  background: var(--primary);
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  }
  .site-footer {
    padding-bottom: calc(44px + 72px + env(safe-area-inset-bottom, 0px));
  }
  .side-dock {
    right: 50%;
    bottom: 18px;
    top: auto;
    transform: translateX(50%);
    flex-direction: row;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
  }
  .side-dock-item {
    width: 40px;
    height: 40px;
  }
  .side-panel {
    right: 64px;
    width: 320px;
  }
}

@media (max-width: 540px) {
  body {
    padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px));
  }
  .side-dock {
    right: 50%;
    bottom: 14px;
    }
  .side-dock-item span {
    display: none;
  }
  .side-panel {
    right: 56px;
    width: min(300px, 84vw);
  }
}

.side-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 32, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1300;
}

.side-panel-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.side-panel {
  position: absolute;
  right: 84px;
  top: 50%;
  transform: translateY(-50%);
  width: 360px;
  max-height: 78vh;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(5, 16, 28, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.side-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #e4ecf4;
}

.side-panel-header h3 {
  margin: 0;
  font-size: 1rem;
}

.side-panel-close {
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
}

.side-panel-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid #e4ecf4;
}

.side-panel-tabs button {
  border: 1px solid #dbe6f1;
  background: #f7fafc;
  border-radius: 999px;
  padding: 6px 8px;
  font-size: 0.74rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.side-panel-tabs button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.side-panel-body {
  padding: 12px 14px 16px;
  overflow: auto;
}

.side-panel-section {
  display: none;
}

.side-panel-section.active {
  display: block;
}

.side-panel-list {
  display: grid;
  gap: 10px;
}

.side-panel-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7fafc;
  border: 1px solid #e3edf6;
}

.side-panel-item-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.side-panel-item-sub {
  font-size: 0.78rem;
  color: #64748b;
}

.side-panel-badge {
  background: rgba(0, 191, 166, 0.15);
  color: #0e766c;
  font-size: 0.7rem;
  border-radius: 999px;
  padding: 4px 8px;
  align-self: center;
}

.side-panel-empty {
  padding: 18px 10px;
  text-align: center;
  color: #7b8796;
  font-size: 0.85rem;
}

.side-panel-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.side-panel-category {
  margin-bottom: 14px;
}

.side-panel-category-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.side-panel-sub {
  background: #f7fafc;
  border: 1px solid #e3edf6;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.side-panel-sub-title {
  font-weight: 600;
  font-size: 0.85rem;
}

.side-panel-sub-meta {
  font-size: 0.74rem;
  color: #64748b;
}

@media (max-width: 720px) {
  .side-panel {
    width: min(92vw, 380px);
    right: 12px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--dark);
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 20px rgba(16, 22, 34, 0.08);
}

.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(520px, 1fr) auto;
  grid-template-areas: "logo search actions";
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
}

.logo {
  width: 70px;
  height: 70px;
  background: #0d7d86;
  color: transparent;
  text-indent: -9999px;
  position: relative;
  overflow: hidden;
  grid-area: logo;
}

.logo::before {
  content: "\f015";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 18px;
  top: 14px;
  color: #00d0ff;
  font-size: 20px;
  text-indent: 0;
}

.logo::after {
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: #00d0ff;
  font-size: 16px;
  text-indent: 0;
}

.search-wrap {
  grid-area: search;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dde3ec;
  border-radius: 999px;
  height: 54px;
  padding: 0 14px;
  background: #fff;
}

.search-suggest-menu {
  position: absolute;
  left: 24px;
  right: 24px;
  top: calc(100% + 10px);
  background: #0f1f29;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(5, 16, 28, 0.35);
  padding: 8px;
  display: none;
  z-index: 150;
}

.search-suggest-menu.open {
  display: block;
}

.search-suggest-option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e9f5ff;
  cursor: pointer;
}

.search-suggest-option:hover,
.search-suggest-option.active {
  background: rgba(0, 191, 166, 0.2);
  color: #ffffff;
}

.search-wrap i {
  color: #6f8798;
  font-size: 1.05rem;
}

.search-wrap input {
  border: 0;
  width: 100%;
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #5f7488;
}

.search-wrap input::placeholder {
  color: #7d90a2;
}

.search-divider {
  width: 1px;
  height: 24px;
  background: #c8d2df;
}

.location-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #dbe3f0;
  background: #fff;
}

.location-field i {
  color: #6f8798;
}

.location-field .fa-chevron-down {
  font-size: 0.72rem;
}

.location-input {
  border: 0;
  outline: none;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: #2f3f56;
  width: 120px;
}

.location-input::placeholder {
  color: #7d90a2;
}

.location-menu {
  position: absolute;
  right: 18px;
  top: 78px;
  background: #fff;
  border: 1px solid #dbe3f0;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(16, 22, 34, 0.18);
  padding: 8px;
  width: 220px;
  max-width: min(240px, 80vw);
  max-height: 240px;
  overflow-y: auto;
  display: none;
  z-index: 140;
}

.location-menu.open {
  display: block;
}

.form-suggest {
  position: relative;
}

.form-suggest-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: #ffffff;
  border: 1px solid #dbe3f0;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(16, 22, 34, 0.18);
  padding: 8px;
  max-height: 220px;
  overflow-y: auto;
  display: none;
  z-index: 20;
}

.form-suggest-menu.open {
  display: block;
}

.form-suggest-option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1f3346;
  cursor: pointer;
}

.form-suggest-option:hover,
.form-suggest-option.active {
  background: #e3f6f3;
  color: #02685b;
}

.location-option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  color: #2f3f56;
  cursor: pointer;
}

.location-option:hover,
.location-option.active {
  background: #e3f6f3;
  color: #02685b;
}

.filter-btn {
  border: 1px solid #dbe3f0;
  background: #e7edf2;
  color: #1f3346;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.filter-btn.active {
  background: #dff8f4;
  border-color: #96ebe0;
  color: #02685b;
}

.filter-panel {
  position: absolute;
  top: 74px;
  right: 0;
  width: min(320px, 90vw);
  background: #0f1f29;
  border: 1px solid #1f3847;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  padding: 12px;
  z-index: 120;
  display: none;
}

.filter-panel.open {
  display: block;
}

.hero-filter-panel {
  position: static;
  display: block;
  width: min(380px, 90vw);
  margin: 6px auto 0;
  transform: translateY(-20%);
  padding: 10px;
  border-radius: 20px;
  z-index: 1;
  pointer-events: auto;
}

.hero-filter-panel .filter-title {
  font-size: 0.95rem;
}

.hero-filter-panel .filter-group label {
  font-size: 0.7rem;
  margin-bottom: 3px;
}

.hero-filter-panel .filter-field {
  padding: 5px 10px;
  border-radius: 14px;
  position: relative;
}

.hero-filter-panel .filter-select {
  height: 36px;
  font-size: 0.85rem;
}

.hero-filter-panel .filter-actions {
  margin-top: 4px;
}

.hero-filter-panel .filter-search-btn {
  padding: 5px 10px;
}

.filter-title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f2f9ff;
}

.filter-group {
  margin-bottom: 10px;
}

.filter-group label {
  display: block;
  font-size: 0.78rem;
  color: #4ce2cf;
  margin-bottom: 6px;
}

.filter-group.is-hidden {
  display: none;
}

.hero-filter-panel .filter-group[data-filter-group="category"] {
  display: block;
}

.filter-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(78, 226, 207, 0.35);
  background: #1a2f3f;
  border-radius: 18px;
  padding: 8px 14px;
  box-shadow: inset 0 0 0 1px rgba(7, 18, 24, 0.35);
}

.filter-field .field-icon {
  color: #6fe3d5;
  font-size: 1rem;
}

.filter-field .field-chevron {
  color: #89a4b5;
  font-size: 0.9rem;
}

.filter-select {
  width: 100%;
  border: 0;
  background: transparent;
  color: #e9f5ff;
  min-height: 46px;
  height: auto;
  padding: 0 28px 0 6px;
  line-height: normal;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 0.95rem;
  appearance: menulist;
  -webkit-appearance: menulist;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  text-indent: 4px;
}

.filter-select option {
  color: #15212b;
  background: #ffffff;
  line-height: normal;
  padding: 6px 10px;
  text-indent: 6px;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 0.98rem;
}

.filter-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.95rem;
  color: #d8e8f4;
}


.range-input {
  width: 100%;
  accent-color: #00bfa6;
}

.switch {
  position: relative;
  width: 56px;
  height: 32px;
  display: inline-block;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  background: #293d48;
  border: 1px solid #4a5f69;
  border-radius: 999px;
  transition: 0.2s ease;
}

.slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 4px;
  top: 4px;
  border-radius: 50%;
  background: #b9c8d0;
  transition: 0.2s ease;
}

.switch input:checked + .slider {
  background: #0c8176;
  border-color: #2bcbbd;
}

.switch input:checked + .slider::before {
  transform: translateX(24px);
  background: #fff;
}

.filter-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.text-btn {
  border: 0;
  background: transparent;
  color: #00bfa6;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
}

.filter-search-btn {
  padding: 8px 15px;
}

.header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-ghost {
  background: #fff;
  border: 2px solid #00bfa6;
  color: #1b3144;
  min-height: 46px;
  padding-inline: 18px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 191, 166, 0.35);
  min-height: 46px;
  padding-inline: 18px;
}

.btn-light {
  background: #fff;
  color: #19374f;
}
.btn.is-active {
  background: #e6f7f3;
  color: #0f5a4f;
  border-color: #27b59a;
}

.btn.is-active i {
  color: #27b59a;
}

.pulse {
  animation: pulseGlow 2.4s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 8px 18px rgba(0, 191, 166, 0.35); }
  50% { box-shadow: 0 10px 24px rgba(0, 191, 166, 0.5); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(10px); opacity: 0.8; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 16px 14px;
  gap: 10px;
  flex-wrap: wrap;
}

.mobile-nav a {
  text-decoration: none;
  color: #3a465a;
  background: #f1f4f9;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.84rem;
}

.top-nav {
  display: none;
}

.menu-pill {
  border: 1px solid #c8d2df;
  background: #fff;
  color: #1f3346;
  min-height: 60px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.menu-pill .fa-chevron-down {
  color: #617588;
  font-size: 0.85rem;
}

.category-nav {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.category-slider {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}

.category-slider::-webkit-scrollbar {
  display: none;
}

.category-chip {
  white-space: nowrap;
  border: 1px solid #dfe5ef;
  background: #fff;
  color: #2f3f56;
  border-radius: 999px;
  padding: 8px 13px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-chip:hover,
.category-chip.active {
  background: #dff8f4;
  border-color: #96ebe0;
  color: #02685b;
}

.subcategory-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.subcategory-nav.is-empty {
  display: none;
}

.subcategory-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 12px;
  scrollbar-width: none;
}

.subcategory-row::-webkit-scrollbar {
  display: none;
}

.subcategory-chip {
  white-space: nowrap;
  border: 1px solid #e3e8f2;
  background: #f7fafc;
  color: #2f3f56;
  border-radius: 999px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.subcategory-chip:hover,
.subcategory-chip.active {
  background: #e3f6f3;
  border-color: #9be7dc;
  color: #02685b;
}

.listing-type-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.listing-type-nav.is-empty {
  display: none;
}

.listing-type-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 14px;
  scrollbar-width: none;
}

.listing-type-row::-webkit-scrollbar {
  display: none;
}

.listing-type-chip {
  white-space: nowrap;
  border: 1px solid #e3e8f2;
  background: #f7fafc;
  color: #2f3f56;
  border-radius: 999px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.listing-type-chip:hover,
.listing-type-chip.active {
  background: #e3f6f3;
  border-color: #9be7dc;
  color: #02685b;
}

.hero {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}

.hero.hero-modern {
  background-image: url("../images/hero-banner.png");
  background-size: cover;
  background-position: center;
}

body.category-mode #popularCategories,
body.category-mode #featured,
body.category-mode #popularCities,
body.category-mode #howItWorks,
body.category-mode #trustIndicators,
body.category-mode #latest {
  display: none;
}

#categoryResults {
  display: none;
}

body.category-mode #categoryResults {
  display: block;
}

.hero-bg,
.hero-fallback,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fallback {
  background: linear-gradient(120deg, #1d6f66, #0f4d70, #203148);
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(8, 18, 33, 0.72), rgba(8, 18, 33, 0.22));
}

.hero-content {
  position: relative;
  color: #fff;
  z-index: 2;
  padding-top: 96px;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  max-width: 13ch;
}

.hero-content p {
  margin: 10px 0 20px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.sell-form {
  display: grid;
  gap: 18px;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--card-shadow);
}

.form-section {
  padding: 10px 0 18px;
  border-bottom: 1px solid #eef1f6;
}

.form-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.form-section h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

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

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label,
.form-group .form-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #2f3f56;
}

.form-control,
.form-select,
.form-textarea {
  border: 1px solid #dfe6f0;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #f7f9fc;
  color: #1f3346;
}

.form-select {
  appearance: auto;
  -webkit-appearance: menulist;
  cursor: pointer;
}

.form-select:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.form-select option {
  color: #1f3346;
  background: #ffffff;
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.date-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.date-mode-btn {
  border: 1px solid #b9c8d8;
  background: #f7f9fc;
  color: #4c5f78;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.date-mode-btn i {
  margin-right: 6px;
}

.date-mode-btn.is-active {
  background: #2e5554;
  color: #e7fffb;
  border-color: #2e5554;
}

.form-slot {
  display: contents;
}

.form-subsection {
  margin-top: 10px;
  padding-top: 6px;
}

.form-subsection h4 {
  margin: 0 0 10px;
  font-size: 0.98rem;
  color: #2f3f56;
}

.facility-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.facility-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #d5e2ec;
  background: #ffffff;
  color: #1f3346;
  font-size: 0.85rem;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.facility-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.facility-chip:hover {
  border-color: #8bd6cd;
  box-shadow: 0 6px 14px rgba(20, 120, 112, 0.08);
}

.facility-chip:has(input:checked) {
  border-color: #12b3a4;
  background: #e7fbf8;
  color: #0b6f67;
  font-weight: 600;
}

.facility-chip:has(input:focus-visible) {
  outline: 2px solid #12b3a4;
  outline-offset: 2px;
}

.floor-details-grid {
  display: grid;
  gap: 12px;
}

.floor-details-grid textarea {
  border: 1px solid #dfe6f0;
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 90px;
  resize: vertical;
  background: #f7f9fc;
  font-family: inherit;
  font-size: 0.92rem;
  color: #1f3346;
}

.detail-facilities {
  margin-top: 12px;
}

.detail-facilities h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #2f3f56;
}

.is-hidden {
  display: none !important;
}

.form-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #2f3f56;
}

.upload-area {
  border: 1px dashed #c7d3e2;
  border-radius: 14px;
  padding: 16px;
  background: #f7f9fc;
}

.map-picker-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.map-picker-controls .form-select {
  max-width: 220px;
  min-width: 180px;
}

.map-picker-status {
  margin-bottom: 8px;
  color: #4f647c;
  font-size: 0.86rem;
}

.map-picker-query {
  margin-bottom: 6px;
  color: #38506e;
  font-size: 0.84rem;
  font-weight: 600;
}

.map-picker-canvas {
  height: 260px;
  border: 1px solid #d8e3ef;
  border-radius: 12px;
  overflow: hidden;
  background: #eef5fb;
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.photo-preview-card {
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.photo-preview-card:hover {
  transform: translateY(-2px);
  border-color: #8bbfdd;
  box-shadow: 0 10px 20px rgba(29, 72, 102, 0.12);
}

.photo-preview-card.is-selected {
  border-color: #00bfa6;
  box-shadow: 0 0 0 2px rgba(0, 191, 166, 0.2);
}

.photo-preview-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.photo-preview-meta {
  padding: 8px 10px;
  font-size: 0.82rem;
  color: #2f3f56;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.photo-preview-badge {
  background: rgba(0, 191, 166, 0.12);
  color: #008b78;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.sell-form.is-readonly .form-grid {
  display: none;
}

.sell-form.is-readonly .form-actions .btn[type="submit"] {
  display: none;
}

.sell-form.is-editing .form-grid {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 40px rgba(15, 38, 52, 0.12);
}

.is-hidden {
  display: none;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.profile-card {
  background: #0f1f29;
  color: #e9f5ff;
  border: 1px solid #1f3847;
  border-radius: 16px;
  padding: 16px;
}

.profile-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #122433;
  border: 2px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-logo-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.section-logo-title img {
  width: 140px;
  height: auto;
}

.account-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.rk-share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.rk-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #d7e3f3;
  background: #fff;
  color: #223245;
  font-weight: 600;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.rk-share-btn:hover {
  transform: translateY(-1px);
  border-color: #7cc7ba;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.profile-avatar-upload {
  display: grid;
  gap: 6px;
  max-width: 280px;
}

.profile-avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  background: #f5f7fb;
  border: 1px solid rgba(15, 38, 52, 0.12);
  box-shadow: 0 10px 28px rgba(15, 38, 52, 0.12);
}

.profile-avatar-upload .form-control {
  padding: 10px;
  width: 100%;
  max-width: 100%;
}

.profile-avatar-group {
  max-width: 320px;
  justify-self: start;
}

.profile-avatar-group .profile-avatar-upload {
  max-width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #0f8176;
  color: #fff;
}

.profile-meta,
.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.profile-meta .label,
.profile-stats .label {
  display: block;
  font-size: 0.75rem;
  color: #7fb9c6;
}

.profile-meta .value,
.profile-stats .value {
  font-weight: 700;
  font-size: 0.98rem;
}

.profile-rating {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stars {
  display: inline-flex;
  gap: 4px;
  color: #f5c86b;
}

.stars i {
  font-size: 0.95rem;
  color: #f5c86b;
}

.stars .fa-regular {
  color: rgba(245, 200, 107, 0.35);
}

.profile-shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-header-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 38, 52, 0.12);
  overflow: hidden;
  position: relative;
}

.profile-cover {
  height: 180px;
  background: linear-gradient(135deg, #10b981, #14b8a6, #06b6d4);
  position: relative;
}

.profile-cover-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.4;
}

.profile-cover-btn {
  position: absolute;
  right: 20px;
  bottom: 20px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.profile-header-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  padding: 24px;
}

.profile-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.profile-avatar-lg {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  overflow: hidden;
  background: #0f172a;
  position: relative;
  border: 5px solid #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
}

.profile-avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.profile-initials {
  position: absolute;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  z-index: 0;
}

.profile-status-dot {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22c55e;
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.25);
  animation: pulse 2s infinite;
  z-index: 2;
}

.profile-avatar-hover {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 160ms ease;
  z-index: 3;
}

.profile-avatar-lg:hover .profile-avatar-hover {
  opacity: 1;
}

.profile-title-block {
  flex: 1;
  min-width: 260px;
}

.profile-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.profile-title-row h1 {
  margin: 0;
  font-size: 2rem;
}

.role-badge {
  background: #ecfeff;
  color: #0f766e;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
}

.profile-meta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  color: #64748b;
}

.profile-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn.gradient {
  background: linear-gradient(135deg, #10b981, #14b8a6);
  color: #fff;
  border: none;
}

.btn-logout {
  color: #e11d48;
  border-color: rgba(225, 29, 72, 0.4);
}

.profile-status-text {
  padding: 0 24px 20px;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 20px 40px rgba(15, 38, 52, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.stat-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 24px 50px rgba(15, 38, 52, 0.14);
}

.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 6px 0;
}

.stat-card .trend {
  font-size: 0.8rem;
  color: #10b981;
}

.stat-card .label {
  font-size: 0.85rem;
  color: #64748b;
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
}

.stat-card.emerald .stat-icon { background: #d1fae5; color: #059669; }
.stat-card.sky .stat-icon { background: #e0f2fe; color: #0284c7; }
.stat-card.rose .stat-icon { background: #ffe4e6; color: #e11d48; }
.stat-card.amber .stat-icon { background: #fef3c7; color: #d97706; }

.profile-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px;
}

.profile-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  background: #fff;
  padding: 10px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(15, 38, 52, 0.08);
  margin-bottom: 16px;
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.is-active {
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 38, 52, 0.1);
}

.tab-panel {
  display: block;
  opacity: 0;
  transform: translateY(8px);
  max-height: 0;
  overflow: hidden;
  transition: opacity 200ms ease, transform 200ms ease, max-height 240ms ease;
}

.tab-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  max-height: 2000px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 44px rgba(15, 38, 52, 0.1);
  backdrop-filter: blur(10px);
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.copy-btn {
  border: none;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rating-score {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 10px;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  color: #94a3b8;
  padding: 30px 0;
}

.rating-card {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(249, 115, 22, 0.2));
}

.rating-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.rating-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f59e0b;
  color: #fff;
  display: grid;
  place-items: center;
}

.rating-bars {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.rating-bars .bar {
  background: rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  height: 6px;
  flex: 1;
  margin-left: 8px;
}

.rating-bars .bar span {
  display: block;
  height: 6px;
  background: #111827;
  border-radius: 999px;
}

.activity-timeline {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.activity-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  align-items: start;
}

.activity-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.activity-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.35);
}

.activity-thumb-link {
  display: inline-block;
}

.activity-thumb-link .activity-thumb {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.activity-thumb-link:hover .activity-thumb {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

.activity-thumb.placeholder {
  background: #f1f5f9;
  color: #94a3b8;
  display: grid;
  place-items: center;
}

.activity-people {
  display: inline-block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 4px;
}

.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #94a3b8;
  margin-top: 6px;
}

.activity-dot.listing { background: #10b981; }
.activity-dot.favorite { background: #e11d48; }
.activity-dot.message { background: #f59e0b; }
.activity-dot.review { background: #6366f1; }
.activity-dot.offer { background: #0ea5e9; }
.activity-dot.boost { background: #f97316; }
.activity-dot.read { background: #22c55e; }
.activity-dot.sold { background: #10b981; }
.activity-dot.follow { background: #a855f7; }

.activity-item h4 {
  margin: 0;
  font-size: 0.95rem;
}

.activity-time {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: #94a3b8;
}

.social-card .social-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.social-buttons {
  display: grid;
  gap: 10px;
}

.social-btn {
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
}

.actions-card .action-item {
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.actions-card .action-item.logout {
  color: #e11d48;
}

.completion-card .progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0;
}

.completion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.completion-progress {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.completion-card .progress-bar span {
  display: block;
  height: 100%;
  background: #111827;
}

.completion-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.profile-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.profile-modal.is-open {
  display: flex;
}

.profile-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

.profile-modal-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 20px;
  width: min(860px, 92vw);
  max-height: 90vh;
  overflow: auto;
  z-index: 1;
  box-shadow: 0 30px 60px rgba(15, 38, 52, 0.2);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.icon-btn {
  border: none;
  background: #f1f5f9;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}

body.profile-edit-open {
  overflow: hidden;
}

.form-group-full {
  grid-column: 1 / -1;
}

@media (max-width: 1024px) {
  .profile-body-grid {
    grid-template-columns: 1fr;
  }
  .profile-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .profile-header-content {
    padding: 18px;
  }
  .profile-avatar-lg {
    width: 128px;
    height: 128px;
  }
  .profile-stats-grid {
    grid-template-columns: 1fr;
  }
  .profile-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-info-grid {
    grid-template-columns: 1fr;
  }
  #logoutBtnTop {
    display: none;
  }
}

.reviews-list {
  display: grid;
  gap: 10px;
}

#profileListings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1200px) {
  #profileListings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  #profileListings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.review-card {
  background: #162733;
  border: 1px solid #243c4a;
  border-radius: 12px;
  padding: 12px;
}

.review-card .review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.review-card .reviewer {
  font-weight: 600;
}

.review-card .review-date {
  font-size: 0.75rem;
  color: #9db2bb;
}

.listing-detail {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: start;
}

.listing-media img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--card-shadow);
}

.listing-info h1 {
  margin: 8px 0;
}

.listing-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f8176;
  margin: 6px 0;
}

.listing-location {
  color: #5f7488;
  margin: 0 0 10px;
}

.listing-description {
  color: #425466;
  line-height: 1.6;
}

.listing-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.listing-meta .label {
  display: block;
  color: #7b8b9d;
  font-size: 0.8rem;
}

.listing-meta .value {
  font-weight: 600;
}

@media (max-width: 820px) {
  .listing-detail {
    grid-template-columns: 1fr;
  }
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
  margin-bottom: 18px;
}

.detail-header {
  background: #eef3f6;
  border-bottom: 1px solid #dbe7ef;
  padding: 14px 0;
}

.detail-header .container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-header h1 {
  margin: 0;
  font-size: 1.3rem;
  color: #243645;
}

.back-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #243645;
  border: 1px solid #dbe7ef;
  text-decoration: none;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 18px;
  margin-bottom: 18px;
  align-items: start;
}

.detail-card {
  background: #f7fbfd;
  border: 1px solid #dbe7ef;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 12px 30px rgba(16, 22, 34, 0.08);
}

.detail-card h3 {
  margin: 0 0 12px;
}

.image-card {
  position: relative;
  padding: 12px;
}

.image-card img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  min-height: 320px;
  background: #e9f1f5;
}

.image-count {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #0f1f29;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.chip {
  background: #fff;
  border: 1px solid #cfe1ec;
  color: #1f3346;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f8176;
  margin: 4px 0 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e2fbef;
  color: #0b8f56;
  font-weight: 600;
  margin-bottom: 12px;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.metric {
  border: 1px solid #d4e4ee;
  border-radius: 14px;
  padding: 10px;
  text-align: center;
  background: #fff;
}

.metric .value {
  display: block;
  font-weight: 700;
}

.metric .label {
  font-size: 0.8rem;
  color: #6d7f92;
}

.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.detail-location {
  color: #5f7488;
  font-weight: 600;
}

.highlight-grid,
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.highlight,
.spec {
  border: 1px solid #d4e4ee;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  display: flex;
  gap: 10px;
  align-items: center;
}

.highlight .label,
.spec .label {
  display: block;
  font-size: 0.8rem;
  color: #6d7f92;
}

.highlight .value,
.spec .value {
  font-weight: 700;
}

.seller-card {
  background: #0f1f29;
  color: #eaf5ff;
  border-color: #1c3240;
}

.seller-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.seller-head-main {
  flex: 1;
  min-width: 0;
}

.seller-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.seller-profile-corner {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.seller-profile-corner.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.seller-head .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1c3a46;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.seller-head .meta {
  font-size: 0.85rem;
  color: #9fc1d0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.seller-head .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1bd2a6;
  display: inline-block;
}

.seller-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.seller-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #9fc1d0;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.map-placeholder {
  height: 200px;
  border-radius: 14px;
  background: linear-gradient(135deg, #d8e9f2, #f4f7fa);
  position: relative;
  overflow: hidden;
}

.map-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 31, 41, 0.85);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.map-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.map-chips .chip {
  background: #fff;
}

.desc-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 1px solid #d4e4ee;
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 10px;
  background: #fff;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 6px;
}

.tag-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3a4b5c;
}

.safety-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn.warn {
  background: #fbe4cf;
  color: #a84f00;
}

@media (max-width: 1200px) {
  body[data-page="listing"] .detail-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }
}

@media (max-width: 980px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-row {
    grid-template-columns: 1fr;
  }
  .seller-name-row {
    flex-wrap: wrap;
    row-gap: 8px;
  }
}

.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 12, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 200;
  animation: fadeIn 0.2s ease forwards;
  pointer-events: auto;
}

.auth-modal.open {
  display: flex;
}

.auth-card {
  width: min(420px, 100%);
  background: linear-gradient(150deg, #0f1f29, #0b1821 70%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  padding: 20px;
  color: #e9f5ff;
  position: relative;
  z-index: 2;
  transform: translateY(10px);
  animation: slideUp 0.25s ease forwards;
  pointer-events: auto;
}

.auth-card * {
  pointer-events: auto;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.auth-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.auth-close {
  background: transparent;
  border: 0;
  color: #8fa7b5;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin: 8px 0 12px;
  position: relative;
  z-index: 2;
}

.auth-tab {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #152634;
  color: #8fa7b5;
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 600;
  cursor: pointer;
}

.auth-tab.active {
  background: #00bfa6;
  border-color: transparent;
  color: #052b26;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-field {
  position: relative;
  margin-bottom: 14px;
}

.auth-field input {
  width: 100%;
  background: #132838;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 42px 14px 12px;
  color: #e9f5ff;
  font-size: 0.95rem;
  outline: none;
}

.auth-field label {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #8fa7b5;
  transition: 0.2s ease;
  pointer-events: none;
  font-size: 0.9rem;
}

.auth-field input:focus + label,
.auth-field input:not(:placeholder-shown) + label {
  top: -8px;
  background: #0f1f29;
  padding: 0 6px;
  font-size: 0.75rem;
  color: #00bfa6;
}

.auth-toggle {
  position: absolute;
  right: 10px;
  top: 10px;
  background: transparent;
  border: 0;
  color: #8fa7b5;
  cursor: pointer;
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.auth-link {
  color: #00bfa6;
  text-decoration: none;
  font-size: 0.85rem;
}

.auth-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.auth-primary {
  background: #00bfa6;
  color: #052b26;
  border: 0;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-primary.loading .btn-text {
  opacity: 0.6;
}

.auth-primary.loading .spinner {
  display: inline-block;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(5, 43, 38, 0.35);
  border-top-color: #052b26;
  border-radius: 50%;
  display: none;
  animation: spin 0.8s linear infinite;
}

.auth-divider {
  text-align: center;
  margin: 18px 0 12px;
  position: relative;
  color: #8fa7b5;
  font-size: 0.85rem;
  z-index: 1;
}

.auth-divider span {
  background: #0f1f29;
  padding: 0 12px;
  position: relative;
  z-index: 2;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1;
}

.auth-config-status {
  margin: 0 0 10px;
  min-height: 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #9eb4c0;
}

.auth-config-status.is-success {
  color: #2fd08f;
}

.auth-config-status.is-warning {
  color: #f3bd4f;
}

.auth-config-status.is-error {
  color: #ff7f8f;
}

.auth-socials {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 3;
}

.auth-social {
  width: 100%;
  border-radius: 999px;
  padding: 10px 14px;
  border: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
  justify-content: center;
  transition: transform 0.2s ease;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.auth-social i {
  font-size: 1rem;
}

.auth-social:hover {
  transform: translateY(-2px);
}

.auth-social.google {
  background: #fff;
  color: #1c1c1c;
}

.auth-social.facebook {
  background: #1877f2;
  color: #fff;
}

.auth-social.apple {
  background: #000;
  color: #fff;
}

.auth-social.x {
  background: #111;
  color: #fff;
}

@media (max-width: 540px) {
  .auth-card {
    width: 100%;
    border-radius: 16px;
  }
}

.hero-search {
  width: min(700px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  height: 52px;
  padding: 0 15px;
}

.hero-search i {
  color: #7d8697;
}

.hero-search input {
  border: 0;
  width: 100%;
  outline: none;
  font-family: inherit;
  font-size: 0.94rem;
}

.section {
  padding: 54px 0;
}

.page-hero {
  padding: 42px 0 18px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.page-hero p {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.simple-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 22px;
}

.section-soft {
  background: #f2f5f9;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.58rem;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(16, 22, 34, 0.13);
}

.thumb-wrap {
  position: relative;
}

.product-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #e6ebf3;
}

.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.2);
  color: #667085;
  cursor: pointer;
}

.fav-btn.active {
  color: #ef476f;
}

.featured-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #0b8072;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.25);
  display: none;
  z-index: 2;
}

.featured-pill.is-active {
  display: inline-flex;
}

.feature-btn {
  position: absolute;
  left: 10px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.2);
  color: #6b7280;
  cursor: pointer;
  z-index: 2;
}

.feature-btn.is-featured {
  color: #f59e0b;
}

.feature-btn.is-hidden {
  display: none;
}

.quick-btn {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(34, 34, 34, 0.86);
  color: #fff;
  font-size: 0.8rem;
  padding: 8px 12px;
  pointer-events: none;
  transition: all 0.2s ease;
}

.product-card:hover .quick-btn {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.card-body {
  padding: 12px 13px 14px;
}

.card-body .title {
  margin: 0 0 7px;
  font-size: 0.98rem;
}

.card-body .price {
  margin: 0;
  color: #0b8072;
  font-weight: 700;
}

.card-body .location {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.popular-card {
  text-decoration: none;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #2d3d53;
  transition: all 0.2s ease;
}

.popular-card i {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #def8f4;
  color: #0a8879;
}

.popular-card:hover {
  transform: translateY(-4px);
}

.community-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 30px;
}

.community-box h2 {
  margin: 0 0 6px;
}

.community-box p {
  margin: 0 0 18px;
  color: var(--text-muted);
  max-width: 72ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feature-grid article {
  background: #f2f7fb;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid #e0e8f2;
}

.feature-grid i {
  color: #068d7d;
  font-size: 1.4rem;
}

.feature-grid h3 {
  margin: 8px 0 0;
  font-size: 1rem;
}

.site-footer {
  background: #1f2530;
  color: #d9dee8;
  padding: 44px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.site-footer h4 {
  margin: 0 0 10px;
  color: #fff;
}

.site-footer a {
  display: block;
  color: #c6ceda;
  text-decoration: none;
  margin-bottom: 8px;
}

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #2a3342;
  display: grid;
  place-items: center;
  margin: 0;
}

.empty-state {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px dashed #cfd9e7;
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "menu logo actions"
      "search search search";
  }

  .logo {
    order: initial;
    justify-self: start;
  }

  .menu-toggle {
    display: none;
    place-items: center;
    grid-area: menu;
  }

  .search-wrap {
    grid-column: 1 / -1;
    margin-bottom: 12px;
  }

  .header-actions {
    justify-self: end;
  }

  .top-nav {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-nav.open {
    display: flex;
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 82vw);
    grid-template-columns: repeat(8, minmax(0, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .category-grid::-webkit-scrollbar {
    display: none;
  }
  .category-card {
    scroll-snap-align: start;
  }
  .category-card--rooms {
    display: none;
  }
  .popular-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-actions .btn {
    padding: 9px 12px;
    font-size: 0.8rem;
  }

  .hero-content {
    padding-top: 72px;
  }
}



.rk-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.rk-modal.open {
  display: flex;
}

.rk-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 18, 28, 0.55);
  backdrop-filter: blur(2px);
}

.rk-modal-card {
  position: relative;
  width: min(520px, 92vw);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(9, 35, 58, 0.25);
  padding: 24px;
  z-index: 1;
}

.rk-modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  background: transparent;
  border: none;
  font-size: 26px;
  color: #3a556a;
  cursor: pointer;
}

.rk-modal-header h3 {
  margin: 0 0 6px;
  color: #14324b;
}

.rk-modal-subtitle {
  margin: 0 0 16px;
  color: #5b7284;
  font-size: 0.92rem;
}

.rk-modal-body {
  display: grid;
  gap: 12px;
}

.rk-field {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: #3b566d;
}

.rk-field input,
.rk-field select,
.rk-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d8e4f1;
  font-family: inherit;
  font-size: 0.95rem;
}

.rk-modal-error {
  color: #c0392b;
  font-size: 0.9rem;
  min-height: 18px;
  margin-top: 6px;
}

.rk-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 600px) {
  .rk-modal-card {
    width: calc(100% - 24px);
    padding: 20px;
  }
}

.is-readonly { opacity: 0.85; }
.is-readonly .btn-primary { opacity: 0.6; cursor: not-allowed; }


.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 36px; width: auto; display: block; }
.logo::before, .logo::after { content: none !important; display: none !important; }


.logo { background: transparent !important; width: auto !important; height: auto !important; padding: 0 !important; }
.logo img { height: 96px !important; }






.logo { margin-right: 32px; }




.section-subtitle { margin-top: 6px; font-size: 1rem; color: #5b7284; font-weight: 600; }


.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-head > div { display: grid; gap: 4px; }
.recent-all { white-space: nowrap; }



/* Home refresh */
.hero.hero-modern {
  min-height: 620px;
}

.hero-modern .hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  min-height: 620px;
}

.hero-modern .hero-text {
  max-width: 560px;
  animation: riseUp 0.7s ease both;
}

.hero-modern .hero-content h1 {
  max-width: 22ch;
}

.hero-modern .hero-content p {
  max-width: 56ch;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 191, 166, 0.16);
  color: #e9fffb;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 14px;
}

.hero-modern .hero-search-advanced {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  padding: 24px 26px;
  box-shadow: 0 20px 40px rgba(7, 18, 32, 0.2);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 18px;
  align-items: end;
  width: min(1100px, 100%);
  animation: riseUp 0.7s ease both;
  animation-delay: 0.12s;
}

.hero-modern .search-field {
  display: grid;
  gap: 8px;
}

.hero-modern .search-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2c3d4f;
}

.hero-modern .search-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e3e9f2;
  background: #f8fafc;
}

.hero-modern .search-input i {
  color: #6c7a89;
}

.hero-modern .search-input input,
.hero-modern .search-input select {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: #1f3346;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 18px;
  display: grid;
  gap: 10px;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.category-card.has-image {
  padding: 14px 18px 18px;
}

.category-thumb {
  width: 100%;
  height: 140px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  border: 1px solid #e6ecf5;
  box-shadow: inset 0 0 0 1px rgba(7, 18, 32, 0.05);
}

.category-card--rooms .category-thumb {
  background-size: cover !important;
  background-position: center !important;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(16, 22, 34, 0.14);
}

.category-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(0, 191, 166, 0.12);
  color: #0b8072;
  font-size: 1.2rem;
}

.category-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 640px) {
  .city-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 70vw);
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .city-grid::-webkit-scrollbar {
    display: none;
  }
  .city-card {
    min-height: 150px;
    scroll-snap-align: start;
  }
}

.city-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 190px;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--card-shadow);
  background-size: cover;
  background-position: center;
}

.city-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 16, 28, 0.08), rgba(7, 16, 28, 0.75));
}

.city-card-content {
  position: relative;
  z-index: 1;
  padding: 18px;
  display: grid;
  gap: 6px;
}

.city-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.city-card span {
  font-size: 0.86rem;
  opacity: 0.88;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  display: grid;
  gap: 10px;
}

.step-index {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(0, 191, 166, 0.15);
  color: #0b8072;
  font-weight: 700;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--card-shadow);
}

.stat-card h3 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  color: #102a43;
}

.cta-banner {
  background: linear-gradient(120deg, #0b6e63, #0f4d70);
  color: #fff;
  padding: 42px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-note {
  margin: 8px 0 0;
  color: #9aa6b2;
  font-size: 0.9rem;
  max-width: 280px;
}

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

@media (max-width: 1024px) {
  .hero-modern .hero-content {
    grid-template-columns: 1fr;
    padding-top: 76px;
    padding-bottom: 56px;
  }
  .hero-modern .hero-search-advanced {
    grid-template-columns: 1fr;
  }
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-filter-panel {
    transform: translateY(-10%);
    width: min(420px, 90vw);
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .city-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #howItWorks .section-head p {
    display: none;
  }
  .step-card {
    padding: 12px;
  }
  .step-card h3 {
    font-size: 0.95rem;
  }
  .step-card p {
    display: none;
  }
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-filter-panel {
    transform: translateY(0);
    width: min(420px, 92vw);
  }
}

@media (max-width: 640px) {
  .category-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .hero-modern {
    min-height: auto;
  }
  #trustIndicators {
    display: none;
  }
  .recent-all-full {
    display: none;
  }
  .recent-all-short {
    display: inline;
  }
}

.recent-all-short {
  display: none;
}
