/* =====================================================================
   Barbar Real Estate - front-end styles
   Palette taken from the original site: primary #0068ff, accent #ea723d
   ===================================================================== */
:root {
  --primary: #0068ff;
  --primary-dark: #0053cc;
  --accent: #ea723d;
  --dark: #1a1a1a;
  --text: #444;
  --muted: #808080;
  --light: #f7fafb;
  --border: #e4e8ee;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(20, 40, 80, .08);
  --font-head: 'DM Sans', system-ui, sans-serif;
  --font-body: 'Rubik', system-ui, sans-serif;
  --container: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--white); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 700; color: var(--dark); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 2.4rem; } h2 { font-size: 2rem; } h3 { font-size: 1.25rem; } h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { padding: 0; margin: 0; list-style: none; }
address { font-style: normal; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.bg-light { background: var(--light); }
.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 10px; top: 10px; background: #fff; padding: 8px; z-index: 999; }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }

/* buttons ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 26px; border-radius: 6px; font-weight: 500; font-family: var(--font-head); font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: .2s; line-height: 1.2; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: var(--accent); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }
.btn-link { background: none; color: var(--muted); padding: 10px 6px; }
.btn-whatsapp { background: #25d366; color: #fff; width: 100%; margin-top: 10px; }
.btn-whatsapp:hover { background: #1ebe5b; color: #fff; }

/* forms -------------------------------------------------------------- */
label { display: block; font-size: .9rem; font-weight: 500; color: var(--dark); margin-bottom: 12px; }
input[type=text], input[type=email], input[type=number], input[type=password], input[type=datetime-local], input[type=date], input[type=url], select, textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 6px; font: inherit; font-size: .95rem; color: var(--dark); background: #fff; margin-top: 5px; transition: border .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,104,255,.12); }
textarea { resize: vertical; }

/* alerts ------------------------------------------------------------- */
.alert { max-width: var(--container); margin: 16px auto 0; padding: 14px 20px; border-radius: 8px; font-weight: 500; }
.alert-success { background: #e6f7ec; color: #14663a; border: 1px solid #b9e7c9; }
.alert-error { background: #fdecec; color: #a4262c; border: 1px solid #f5c2c2; }
.alert-info { background: #e8f0fe; color: #1d4ed8; border: 1px solid #c7d7fd; }

/* header ------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 28px; max-width: 1340px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--dark); flex-shrink: 0; }
.brand img { width: 50px; height: auto; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav ul { display: flex; gap: 2px; }
.site-nav li a { display: block; padding: 8px 11px; font-weight: 500; color: var(--dark); border-radius: 6px; font-size: .95rem; white-space: nowrap; }
.site-nav li a:hover, .site-nav li a.active { color: var(--primary); background: rgba(0,104,255,.07); }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--dark); background: var(--light); padding: 10px 16px; border-radius: 6px; white-space: nowrap; }
.header-phone:hover { background: var(--primary); color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 3px; width: 26px; background: var(--dark); border-radius: 2px; margin: 0 auto; transition: .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* sections ----------------------------------------------------------- */
.section { padding: 80px 0; }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-title.left { text-align: left; margin: 0 0 24px; }
.section-title .subtitle, .subtitle { display: block; color: var(--accent); font-family: var(--font-head); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin-bottom: 8px; }
.section-title h2 { margin-bottom: 10px; }
.section-title p { color: var(--muted); margin: 0; }
.section-title.light h2, .section-title.light p { color: #fff; }
.section-title.light .subtitle { color: #ffd9c7; }

/* hero --------------------------------------------------------------- */
.hero { position: relative; background: var(--dark); }
.hero-slider { position: relative; min-height: 640px; height: calc(100vh - 76px); max-height: 820px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; display: flex; align-items: flex-end; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.75) 100%); }
.hero-content { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding-bottom: 110px; flex-wrap: wrap; }
.hero-video { display: inline-flex; align-items: center; gap: 14px; color: #fff; margin-bottom: 20px; }
.hero-video .play { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(234,114,61,.25); transition: .2s; }
.hero-video:hover .play { transform: scale(1.06); }
.hero-video-text small { display: block; font-size: .8rem; opacity: .8; text-transform: uppercase; letter-spacing: .1em; }
.hero-video-text strong { font-family: var(--font-head); font-size: 1.15rem; }
.hero-box { background: rgba(255,255,255,.96); border-radius: 12px; padding: 28px 32px; max-width: 620px; box-shadow: var(--shadow); }
.hero-meta { display: flex; gap: 28px; margin-bottom: 14px; flex-wrap: wrap; }
.hero-meta li { display: flex; flex-direction: column; }
.hero-meta small { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hero-meta strong { font-family: var(--font-head); font-size: 1.4rem; color: var(--dark); }
.hero-address { color: var(--muted); font-size: .9rem; margin: 8px 0 4px; }
.hero-title { font-size: 2rem; margin: 0 0 8px; }
.hero-title a { color: var(--dark); }
.hero-title a:hover { color: var(--primary); }
.hero-desc { color: var(--text); margin-bottom: 16px; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-price { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--primary); margin-right: auto; }
.hero-price small { font-size: .8rem; color: var(--muted); font-weight: 500; }
.hero-actions .btn-light { background: var(--light); }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: var(--dark); font-size: 1.1rem; cursor: pointer; transition: .2s; }
.slider-nav:hover { background: var(--primary); color: #fff; }
.slider-nav.prev { left: 20px; } .slider-nav.next { right: 20px; }
.slider-dots { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: 96px; display: flex; gap: 8px; }
.slider-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.slider-dots button.active { background: var(--accent); width: 26px; border-radius: 5px; }

.quick-search { position: relative; z-index: 4; margin-top: -60px; }
.qs-tabs { display: inline-flex; background: rgba(255,255,255,.9); border-radius: 8px 8px 0 0; overflow: hidden; }
.qs-tabs label { margin: 0; cursor: pointer; }
.qs-tabs input { display: none; }
.qs-tabs span { display: block; padding: 10px 20px; font-weight: 600; color: var(--dark); }
.qs-tabs input:checked + span { background: var(--primary); color: #fff; }
.qs-fields { display: grid; grid-template-columns: 1fr 260px auto; gap: 12px; background: #fff; padding: 16px; border-radius: 0 10px 10px 10px; box-shadow: var(--shadow); }
.qs-fields input, .qs-fields select { margin: 0; }

/* badges ------------------------------------------------------------- */
.badge { display: inline-block; padding: 4px 12px; border-radius: 4px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--primary); }
.badge-rent { background: var(--accent); }
.badge-both { background: #6a3fd8; }
.badge-featured { background: #e0b500; color: #1a1a1a; }
.badge-status { background: #c62828; }

/* property cards ----------------------------------------------------- */
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.property-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.property-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(20,40,80,.14); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e9eef5; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.property-card:hover .card-media img { transform: scale(1.05); }
.card-media .badge { position: absolute; top: 14px; left: 14px; }
.card-media .badge + .badge { left: auto; right: 14px; }
.media-count { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.6); color: #fff; padding: 3px 9px; border-radius: 4px; font-size: .8rem; display: inline-flex; align-items: center; gap: 4px; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-city { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.card-title { font-size: 1.15rem; margin-bottom: 4px; }
.card-title a { color: var(--dark); }
.card-title a:hover { color: var(--primary); }
.card-address { font-size: .85rem; color: var(--muted); margin-bottom: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: var(--text); margin-bottom: 16px; }
.card-meta li { display: inline-flex; align-items: center; gap: 6px; }
.card-meta svg { color: var(--primary); }
.card-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.price { font-family: var(--font-head); font-weight: 700; color: var(--primary); font-size: 1.15rem; }
.price small { color: var(--muted); font-weight: 500; font-size: .75rem; }
.price .sep { color: var(--border); margin: 0 4px; }

/* services ----------------------------------------------------------- */
.services-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.services-intro img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; margin-bottom: 18px; box-shadow: var(--shadow); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service { background: #fff; border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); transition: transform .25s; }
.service:hover { transform: translateY(-5px); }
.service-icon { width: 70px; height: 70px; border-radius: 14px; background: rgba(0,104,255,.08); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.service-icon img { width: 40px; }
.service h3 { font-size: 1.15rem; }
.service p { margin: 0; font-size: .95rem; }

/* about -------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.about-image img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* stats -------------------------------------------------------------- */
.section-stats { background: var(--primary) center/cover no-repeat; position: relative; padding: 56px 0; color: #fff; }
.section-stats::before { content: ""; position: absolute; inset: 0; background: rgba(0,83,204,.82); }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.stat { display: flex; align-items: center; gap: 16px; }
.stat img { width: 46px; filter: brightness(0) invert(1); }
.stat svg { width: 46px; height: 46px; flex: none; opacity: .95; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1; }
.stat span { font-size: .9rem; opacity: .9; }

/* gallery ------------------------------------------------------------ */
.gallery-grid { columns: 4 240px; column-gap: 14px; }
.gallery-item { display: block; margin-bottom: 14px; border-radius: 8px; overflow: hidden; break-inside: avoid; position: relative; }
.gallery-item img { width: 100%; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item::after { content: "+"; position: absolute; inset: 0; background: rgba(0,104,255,.35); color: #fff; font-size: 2.5rem; display: flex; align-items: center; justify-content: center; opacity: 0; transition: .25s; }
.gallery-item:hover::after { opacity: 1; }

/* location ----------------------------------------------------------- */
.section-location { background: var(--primary) center/cover; position: relative; color: #fff; }
.section-location::before { content: ""; position: absolute; inset: 0; background: rgba(0,83,204,.85); }
.section-location .container { position: relative; }
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.map { width: 100%; height: 480px; background: #dfe6ee; z-index: 0; }
.map.tall { height: 380px; border-radius: var(--radius); margin-top: 20px; }
.map-card { position: absolute; z-index: 2; top: 30px; left: 30px; width: 300px; background: var(--white) right bottom/contain no-repeat; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); color: var(--text); }
.map-card h4 { color: var(--primary); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; }
.map-card p { color: var(--dark); font-weight: 500; }

/* team --------------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.member { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.member-photo { aspect-ratio: 4 / 4.4; overflow: hidden; background: #e9eef5; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.member-body { padding: 24px; }
.member-body h3 { margin-bottom: 2px; }
.member-role { display: block; color: var(--accent); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.member-body p { font-size: .93rem; margin: 0; }
.member-contact { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }

/* tour --------------------------------------------------------------- */
.tour-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.tour-text h2 { font-size: 2.2rem; }
.tour-form { background: var(--light); border-radius: var(--radius); padding: 36px; }
.tour-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.tour-row label { margin: 0; font-family: var(--font-head); font-size: 1.05rem; color: var(--dark); white-space: nowrap; }
.tour-row input { flex: 1 1 200px; margin: 0; border: 0; border-bottom: 2px solid var(--primary); border-radius: 0; background: transparent; padding: 6px 4px; font-size: 1.05rem; }
.tour-row input:focus { box-shadow: none; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.contact-list svg { flex: none; margin-top: 4px; color: var(--primary); }
.contact-list.big li { flex-direction: column; gap: 0; margin-bottom: 18px; }
.contact-list.big strong { color: var(--dark); }
.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; }

/* page hero / breadcrumbs -------------------------------------------- */
.page-hero { background: linear-gradient(135deg, #062a66, var(--primary)); color: #fff; padding: 56px 0 44px; }
.page-hero.small { padding: 36px 0 30px; }
.page-hero h1 { color: #fff; margin-bottom: 4px; }
.page-hero p { margin: 0; opacity: .85; }
.breadcrumb { font-size: .85rem; opacity: .85; margin-bottom: 10px; }
.breadcrumb a { color: #fff; }
.breadcrumb span { margin: 0 6px; opacity: .6; }
.single-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.single-badges { display: flex; gap: 8px; margin-bottom: 10px; }
.single-address { opacity: .85; }
.single-price { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: #fff; }
.single-price small { font-size: .9rem; opacity: .8; }

/* listing page ------------------------------------------------------- */
.listing-layout { display: grid; grid-template-columns: 290px 1fr; gap: 36px; align-items: start; }
.filters { background: var(--light); border-radius: var(--radius); padding: 24px; position: sticky; top: 96px; }
.filters h3 { margin-bottom: 14px; }
.filter-tabs { display: flex; gap: 4px; background: #fff; border-radius: 6px; padding: 4px; margin-bottom: 16px; }
.filter-tabs a { flex: 1; text-align: center; padding: 7px 4px; border-radius: 4px; font-weight: 600; font-size: .85rem; color: var(--dark); }
.filter-tabs a.active { background: var(--primary); color: #fff; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filters .btn { width: 100%; }
.section-properties .property-grid { grid-template-columns: repeat(2, 1fr); }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; }
.pagination a, .pagination .current { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid var(--border); font-weight: 600; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.empty { padding: 60px 20px; text-align: center; }
.empty h1 { font-size: 5rem; color: var(--primary); margin: 0; }

/* single property ---------------------------------------------------- */
.single-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.single-gallery .main-image { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: #e9eef5; }
.single-gallery .main-image img, .single-gallery .placeholder { width: 100%; height: 100%; object-fit: cover; }
.single-gallery .thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 8px; }
.single-gallery .thumbs a { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #e9eef5; }
.single-gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.fact-strip { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.fact-strip li { flex: 1 1 120px; background: var(--light); border-radius: 8px; padding: 14px 18px; display: flex; flex-direction: column; }
.fact-strip small { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fact-strip strong { font-family: var(--font-head); font-size: 1.2rem; color: var(--dark); }
.block { margin-bottom: 36px; }
.block h2 { font-size: 1.45rem; padding-bottom: 10px; border-bottom: 2px solid var(--light); margin-bottom: 18px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 30px; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; color: var(--dark); text-align: right; }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.feature-list li::before { content: "✓"; color: var(--primary); font-weight: 700; margin-right: 8px; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin-bottom: 14px; }
.video-embed.portrait { aspect-ratio: auto; height: 640px; max-width: 420px; background: #fff; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.side-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin-bottom: 20px; }
.side-card h3 { font-size: 1.15rem; }
.side-card .btn-primary { width: 100%; }
.side-share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.side-share h4 { margin: 0; margin-right: auto; }
.side-share a { font-weight: 600; font-size: .9rem; }

/* footer ------------------------------------------------------------- */
.site-footer { background: #0d1b2e; color: #b7c3d5; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr 1.2fr; gap: 40px; padding: 70px 20px 40px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer-col p { font-size: .92rem; }
.footer-brand img { width: 80px; margin-bottom: 16px; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.social a:hover { background: var(--primary); }
.site-footer .contact-list a { color: #fff; }
.site-footer .contact-list svg { color: var(--accent); }
.footer-form label { color: #d6dfeb; font-size: .85rem; margin-bottom: 8px; }
.footer-form input, .footer-form textarea { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #fff; }
.footer-form .btn { margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: .85rem; }
.footer-bottom .container { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.footer-bottom a { color: #fff; }
.scroll-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: .3s; z-index: 50; }
.scroll-top.show { opacity: 1; pointer-events: auto; }

/* lightbox ----------------------------------------------------------- */
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s; }
.lb.open { opacity: 1; pointer-events: auto; }
.lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-caption { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #fff; font-size: .95rem; }
.lb-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lb-btn:hover { background: var(--primary); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 30px; left: 30px; color: #fff; opacity: .8; }

/* responsive --------------------------------------------------------- */
@media (max-width: 1400px) {
  .brand-text { display: none; }                 /* logo only, so the menu stays on one line */
  .site-nav li a { font-size: .9rem; padding: 8px 9px; }
  .header-phone { padding: 9px 13px; font-size: .92rem; }
}
@media (max-width: 1024px) {
  .property-grid, .services-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .single-layout, .listing-layout, .contact-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .section-properties .property-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .site-nav { position: fixed; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 20px 24px; gap: 12px; box-shadow: 0 10px 20px rgba(0,0,0,.08); transform: translateY(-120%); transition: transform .3s; z-index: 99; max-height: calc(100vh - 76px); overflow: auto; }
  .nav-open .site-nav { transform: translateY(0); }
  .site-nav ul { flex-direction: column; }
  .site-nav li a { font-size: 1rem; padding: 10px 12px; }
  .brand-text { display: block; }
  .header-phone { justify-content: center; }
}
@media (max-width: 860px) {
  .hero-slider { min-height: 560px; }
  .hero-content { padding-bottom: 90px; }
  .hero-box { padding: 22px; }
  .hero-title { font-size: 1.5rem; }
  .slider-nav { display: none; }
  .qs-fields { grid-template-columns: 1fr; }
  .services-intro, .about-grid, .tour-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 56px 0; }
  h1 { font-size: 1.9rem; } h2 { font-size: 1.6rem; }
  .map-card { position: static; width: auto; margin-bottom: 14px; }
  .map { height: 340px; }
  .facts, .feature-list { grid-template-columns: 1fr; }
  .single-gallery .thumbs { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .property-grid, .services-grid, .team-grid, .section-properties .property-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 16px; }
  .hero-actions .btn { width: 100%; }
  .hero-price { width: 100%; margin: 0 0 6px; }
  .tour-form { padding: 22px; }
  .single-price { font-size: 1.5rem; }
}
