/* ============================================================
   studentsinczech.cz – Shared Stylesheet
   Modern, clean, student-focused design
   ============================================================ */

/* ── Google Fonts are loaded in each HTML file ── */

/* ── CSS Custom Properties ── */
:root {
  --blue:        #00aeff;
  --blue-dark:   #0090d8;
  --blue-light:  #e8f7ff;
  --navy:        #004274;
  --navy-dark:   #002d50;
  --orange:      #ff8c35;
  --orange-dark: #e67820;
  --green:       #28a745;
  --text-dark:   #222222;
  --text-mid:    #555566;
  --text-light:  #8888a0;
  --bg:          #f7f8fc;
  --white:       #ffffff;
  --card-shadow: 0 4px 24px rgba(0, 66, 116, 0.10);
  --card-shadow-hover: 0 12px 40px rgba(0, 66, 116, 0.18);
  --radius:      16px;
  --radius-sm:   10px;
  --radius-xs:   6px;
  --transition:  0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height:  68px;
  --font-body:   'Inter', system-ui, sans-serif;
  --font-display:'Space Grotesk', 'Inter', sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select { font-family: inherit; }

/* ── Typography ── */
.display { font-family: var(--font-display); }

h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.2; }

/* ── Layout Helpers ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 174, 255, 0.35);
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
}
.btn-orange:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 140, 53, 0.40);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.5);
}

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }

/* ── Glassmorphism Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 174, 255, 0.08);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 4px 30px rgba(0, 66, 116, 0.10);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav__logo img { height: 28px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-mid);
  transition: all var(--transition);
}
.nav__links a:hover, .nav__links a.active {
  color: var(--navy);
  background: var(--blue-light);
}

.nav__cta { margin-left: 8px; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  background: none;
  border: none;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Mobile Nav ── */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  padding: 16px 20px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 500;
  color: var(--text-dark);
  transition: background var(--transition);
}
.nav__mobile a:hover { background: var(--blue-light); }
.nav__mobile .btn { margin-top: 8px; justify-content: center; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(3px) brightness(0.45);
  transform: scale(1.06);
  transition: transform 8s ease;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0, 42, 74, 0.72) 0%,
    rgba(0, 66, 116, 0.55) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding-top: var(--nav-height);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,174,255,0.2);
  border: 1px solid rgba(0,174,255,0.4);
  color: #a0e4ff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.hero__title {
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero__title .accent {
  color: var(--blue);
  position: relative;
}

.hero__sub {
  font-size: clamp(16px, 2.5vw, 20px);
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 40px;
  font-weight: 400;
  line-height: 1.55;
}

/* ── Search Box ── */
.search-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.97);
  border-radius: 16px;
  padding: 8px 8px 8px 4px;
  max-width: 680px;
  margin: 0 auto 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  gap: 4px;
}

.search-box__field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-right: 1px solid #e8ecf4;
  cursor: pointer;
}
.search-box__field:last-of-type { border-right: none; }

.search-box__icon { color: var(--blue); font-size: 18px; flex-shrink: 0; }

.search-box__field select,
.search-box__field input {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-dark);
  font-size: 14.5px;
  font-weight: 500;
  width: 100%;
  cursor: pointer;
}

.search-box__field label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-light);
  margin-bottom: 2px;
}

.search-box .btn {
  border-radius: 12px;
  flex-shrink: 0;
}

/* ── Trust Indicators ── */
.hero__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
}
.trust-item__icon {
  width: 32px; height: 32px;
  background: rgba(0,174,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.trust-item strong { color: var(--white); }

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header__tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.section-header p {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Cities Section ── */
.cities-scroll {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.city-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  background: var(--navy);
}

.city-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.city-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%);
  transition: opacity var(--transition);
}

.city-card:hover .city-card__img { transform: scale(1.08); }
.city-card:hover .city-card__overlay { opacity: 0.8; }

.city-card__info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 16px;
  color: var(--white);
}
.city-card__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.city-card__count {
  font-size: 13px;
  opacity: 0.75;
}

.city-card--placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, #0062a8 100%);
}

/* ── How It Works ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 52px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--orange) 100%);
  opacity: 0.3;
}

.step-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--card-shadow);
  transition: all var(--transition);
  position: relative;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.step-icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}
.step-icon--blue   { background: var(--blue-light); }
.step-icon--orange { background: #fff3e8; }
.step-icon--green  { background: #e8f8ec; }

.step-num {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: rgba(0,174,255,0.08);
  line-height: 1;
}

.step-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--text-dark);
}
.step-card p {
  font-size: 14.5px;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ── Property Cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }

.property-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--transition);
  cursor: pointer;
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.property-card__img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, #d0e8f8 0%, #b8d8f0 100%);
}
.property-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.property-card:hover .property-card__img-wrap img { transform: scale(1.06); }

.property-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge--available { background: var(--green); color: #fff; }
.badge--hot       { background: var(--orange); color: #fff; }
.badge--new       { background: var(--blue); color: #fff; }

.property-card__fav {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.property-card__fav:hover { transform: scale(1.15); }
.property-card__fav.active { color: #e03; }

.property-card__body { padding: 18px; }

.property-card__price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.property-card__price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-light);
}

.property-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.35;
}

.property-card__location {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.pill {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  background: var(--blue-light);
  color: var(--navy);
}

.property-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f0f2f8;
}

/* ── Services Strip ── */
.services-strip {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 72px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  text-align: center;
  padding: 36px 28px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  transition: all var(--transition);
}
.service-card:hover {
  background: rgba(255,255,255,0.10);
  transform: translateY(-4px);
  border-color: rgba(0,174,255,0.4);
}
.service-card__icon {
  font-size: 44px;
  margin-bottom: 18px;
  display: block;
}
.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  font-family: var(--font-display);
}
.service-card p {
  font-size: 14.5px;
  opacity: 0.72;
  line-height: 1.65;
}
.service-card .btn { margin-top: 20px; }

/* ── Testimonial ── */
.testimonial-section { background: var(--white); }

.testimonial-card {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 52px 40px;
  border-radius: 24px;
  background: var(--bg);
  border: 1px solid #eef0f8;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -24px; left: 40px;
  font-size: 120px;
  font-family: Georgia, serif;
  color: var(--blue);
  opacity: 0.15;
  line-height: 1;
}
.testimonial-card__text {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-dark);
  margin-bottom: 28px;
  font-style: italic;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.testimonial-card__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
}
.testimonial-card__name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
}
.testimonial-card__role {
  font-size: 13px;
  color: var(--text-mid);
  margin-top: 2px;
}
.stars {
  color: #f5c518;
  font-size: 17px;
  margin-top: 6px;
  letter-spacing: 2px;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, #00aeff 0%, #004274 100%);
  padding: 88px 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  top: -200px; right: -100px;
}
.cta-banner::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  bottom: -100px; left: -50px;
}
.cta-banner h2 {
  font-size: clamp(28px, 4.5vw, 48px);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.cta-banner p {
  font-size: 18px;
  opacity: 0.82;
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ── */
.footer {
  background: #111827;
  color: rgba(255,255,255,0.65);
  padding: 64px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}
.footer__socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer__social {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: all var(--transition);
  text-decoration: none;
}
.footer__social:hover {
  background: var(--blue);
  transform: translateY(-3px);
}
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 18px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: 14px;
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--blue); }
.footer__bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom a { opacity: 0.6; }
.footer__bottom a:hover { opacity: 1; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Search Results Page ── */
.search-page {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

.search-top-bar {
  background: var(--white);
  padding: 20px 0;
  border-bottom: 1px solid #eef0f8;
  position: sticky;
  top: var(--nav-height);
  z-index: 100;
}
.search-top-bar .search-box {
  max-width: 100%;
  margin: 0;
  box-shadow: var(--card-shadow);
}

.active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--blue-light);
  color: var(--navy);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background var(--transition);
}
.filter-chip:hover { background: #c4e6fa; }
.filter-chip__remove { font-size: 16px; line-height: 1; }

.search-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 32px 0;
  align-items: start;
}

/* ── Sidebar ── */
.sidebar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
  position: sticky;
  top: calc(var(--nav-height) + 120px);
}
.sidebar h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-light);
  margin-bottom: 14px;
}
.sidebar__section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #f0f2f8;
}
.sidebar__section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 14.5px;
  color: var(--text-dark);
  transition: color var(--transition);
}
.filter-option:hover { color: var(--blue); }
.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  width: 17px; height: 17px;
  accent-color: var(--blue);
  cursor: pointer;
}
.filter-option span { flex: 1; }
.filter-option .count {
  font-size: 12px;
  color: var(--text-light);
  background: #f0f2f8;
  padding: 2px 8px;
  border-radius: 50px;
}

/* Price Range */
.price-range {
  margin-top: 8px;
}
.price-range__labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 12px;
}
.price-range__track {
  height: 6px;
  background: #e0e7ff;
  border-radius: 3px;
  position: relative;
  margin-bottom: 12px;
}
.price-range__fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 70%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: 3px;
}
.price-range__handle {
  position: absolute;
  right: 30%;
  top: 50%;
  transform: translate(50%, -50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,174,255,0.4);
}

/* ── Results Area ── */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.results-count {
  font-size: 15px;
  color: var(--text-mid);
}
.results-count strong { color: var(--text-dark); font-weight: 700; }
.results-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-select {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1.5px solid #e0e4f0;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--white);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--blue); }

.map-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1.5px solid #e0e4f0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}
.map-toggle:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}
.pagination__btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1.5px solid #e0e4f0;
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.pagination__btn:hover, .pagination__btn.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.pagination__btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.pagination__btn--wide {
  width: auto;
  padding: 0 16px;
}

/* ── Property Detail Page ── */
.detail-page {
  padding-top: var(--nav-height);
}

.breadcrumb {
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-mid);
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb__sep { opacity: 0.4; }

/* ── Image Gallery ── */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
  max-height: 520px;
}

.gallery__main {
  grid-column: 1;
  grid-row: 1 / span 2;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}
.gallery__main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery__main:hover img { transform: scale(1.04); }

.gallery__thumb {
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}
.gallery__thumb:hover img { transform: scale(1.06); filter: brightness(0.88); }
.gallery__thumb.active { outline: 3px solid var(--blue); }

.gallery__thumb--last { position: relative; }
.gallery__thumb--last .gallery__more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

/* ── Detail Layout ── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

.detail-main {}

.detail-title {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.detail-tag {
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  background: var(--blue-light);
  color: var(--navy);
}
.detail-tag--orange {
  background: #fff3e8;
  color: var(--orange-dark);
}
.detail-tag--green {
  background: #e8f8ec;
  color: #1a7a30;
}

.detail-location {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 24px;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #f0f2f8;
  flex-wrap: wrap;
}
.detail-price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.detail-price sub { font-size: 16px; font-weight: 400; color: var(--text-mid); }
.detail-price-alt {
  font-size: 14px;
  color: var(--text-mid);
  padding: 6px 12px;
  background: #f8f0e8;
  border-radius: 8px;
  color: var(--orange-dark);
}

.detail-section { margin-bottom: 32px; }
.detail-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-section p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-mid);
}

/* ── Amenities Grid ── */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.amenity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  border: 1.5px solid transparent;
  transition: border-color var(--transition);
}
.amenity-item:hover { border-color: var(--blue); }
.amenity-icon {
  font-size: 22px;
  flex-shrink: 0;
}

/* ── Map Placeholder ── */
.map-placeholder {
  background: linear-gradient(135deg, #e8f0fe 0%, #d0e8ff 100%);
  border-radius: var(--radius-sm);
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid #c5daf5;
  margin-top: 12px;
}
.map-placeholder__icon { font-size: 36px; }

/* ── House Rules ── */
.rules-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rule-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text-dark);
}
.rule-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.rule-icon--ok  { background: #e8f8ec; }
.rule-icon--no  { background: #fee8e8; }

/* ── Booking Sidebar ── */
.booking-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.booking-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
  border: 1px solid #eef0f8;
}

.booking-card__price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.booking-card__price sub {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-mid);
}
.booking-card__deposit {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #f0f2f8;
}
.booking-card__deposit strong { color: var(--orange-dark); }

.booking-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-mid);
  padding: 8px 0;
  border-bottom: 1px solid #f8f9fb;
}
.booking-card__row:last-of-type { border-bottom: none; }
.booking-card__row strong { color: var(--text-dark); }

.booking-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}
.booking-card__actions .btn { width: 100%; justify-content: center; }

.booking-card__share {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f2f8;
  justify-content: center;
}
.share-btn {
  flex: 1;
  padding: 9px 0;
  border-radius: 10px;
  border: 1.5px solid #e0e4f0;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition);
}
.share-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ── Manager Card ── */
.manager-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
  border: 1px solid #eef0f8;
  margin-top: 16px;
}
.manager-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.manager-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
}
.manager-info__name {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--text-dark);
}
.manager-info__role {
  font-size: 12.5px;
  color: var(--text-mid);
  margin-top: 2px;
}
.manager-info__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  background: #e8f8ec;
  padding: 2px 8px;
  border-radius: 50px;
  margin-top: 4px;
}
.manager-contact {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
}
.manager-contact a { color: var(--blue); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    max-height: none;
  }
  .gallery__main { grid-column: 1; grid-row: 1; aspect-ratio: 16/9; }
  .gallery__thumbs-row { display: flex; gap: 8px; }
  .gallery__thumb { flex: 1; aspect-ratio: 4/3; }

  .detail-layout { grid-template-columns: 1fr; }
  .booking-sidebar { position: static; }

  .search-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }

  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cities-scroll { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  .search-box {
    flex-direction: column;
    gap: 0;
    padding: 12px;
    border-radius: 12px;
  }
  .search-box__field {
    border-right: none;
    border-bottom: 1px solid #e8ecf4;
    padding: 10px 8px;
    width: 100%;
  }
  .search-box__field:last-of-type { border-bottom: none; }
  .search-box .btn { width: 100%; justify-content: center; border-radius: 10px; }

  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .cities-scroll { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }

  .hero__trust { gap: 16px; }
  .trust-item { font-size: 12px; }
}

@media (max-width: 480px) {
  .cities-scroll { grid-template-columns: 1fr 1fr; }
}

/* ── Loading skeleton animation ── */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f0f2f8 25%, #e4e8f5 50%, #f0f2f8 75%);
  background-size: 600px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* ── Misc ── */
.text-blue   { color: var(--blue); }
.text-navy   { color: var(--navy); }
.text-orange { color: var(--orange); }
.text-mid    { color: var(--text-mid); }
.fw-700      { font-weight: 700; }
.mb-0        { margin-bottom: 0; }
.mt-auto     { margin-top: auto; }
