:root {
      --primary: #1f5c4a;
      --primary-dark: #174637;
      --secondary: #d8a45d;
      --cream: #f7f5ef;
      --light: #eef3ef;
      --dark: #18231f;
      --muted: #6d7771;
      --white: #ffffff;
      --border: #e5e9e5;
      --shadow: 0 18px 45px rgba(24, 35, 31, 0.1);
      --radius-lg: 24px;
      --radius-md: 16px;
      --radius-sm: 10px;
    }

    body {
      font-family: "DM Sans", sans-serif;
      color: var(--dark);
      background: var(--white);
      line-height: 1.5;
    }

    .container {
      width: min(1180px, calc(100% - 40px));
      margin: 0 auto;
    }

    .section-heading {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 24px;
      margin-bottom: 36px;
    }

    .eyebrow {
      display: inline-block;
      margin-bottom: 12px;
      color: var(--secondary);
      font-size: 0.76rem;
      font-weight: 700;
      letter-spacing: 0.15em;
      text-transform: uppercase;
    }

    h1,
    h2,
    h3 {
      line-height: 1.1;
    }

    h1,
    h2 {
      font-family: "Playfair Display", serif;
    }

    h2 {
      font-size: clamp(2rem, 4vw, 3.2rem);
      letter-spacing: -0.04em;
    }

    .section-description {
      max-width: 470px;
      color: var(--muted);
      font-size: 1rem;
    }

    .text-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--primary);
      font-size: 0.92rem;
      font-weight: 700;
      white-space: nowrap;
    }

    .text-link span {
      transition: transform 0.2s ease;
    }

    .text-link:hover span {
      transform: translateX(4px);
    }

    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 84px;
    }

    .logo {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: 1.28rem;
      font-weight: 700;
      letter-spacing: -0.04em;
    }

    .logo-mark {
      display: grid;
      width: 34px;
      height: 34px;
      place-items: center;
      border: 2px solid var(--secondary);
      border-radius: 10px 10px 10px 2px;
      color: var(--secondary);
      font-size: 1.1rem;
      transform: rotate(-10deg);
    }

    .logo span:last-child {
      transform: translateY(-1px);
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 34px;
      margin-left: auto;
      margin-right: 34px;
      font-size: 0.9rem;
    }

    .nav-links a {
      opacity: 0.88;
      transition: opacity 0.2s ease;
    }

    .nav-links a:hover {
      opacity: 1;
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .login-link {
      font-size: 0.9rem;
    }

    .nav-button,
    .primary-button,
    .secondary-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 46px;
      padding: 0 20px;
      border-radius: 999px;
      font-size: 0.9rem;
      font-weight: 700;
      transition: 0.2s ease;
    }

    .nav-button,
    .primary-button {
      color: var(--white);
      background: var(--secondary);
    }

    .nav-button:hover,
    .primary-button:hover {
      background: #c58c46;
      transform: translateY(-2px);
    }

    .secondary-button {
      color: var(--primary);
      background: var(--white);
    }

    .secondary-button:hover {
      background: var(--cream);
      transform: translateY(-2px);
    }

    .menu-button {
      display: none;
      width: 42px;
      height: 42px;
      color: var(--white);
      background: transparent;
      font-size: 1.5rem;
    }

    /* Hero */
    .hero {
      position: relative;
      display: flex;
      align-items: center;
      min-height: 720px;
      overflow: hidden;
      color: var(--white);
      background:
        linear-gradient(90deg, rgba(12, 33, 27, 0.88) 0%, rgba(12, 33, 27, 0.56) 50%, rgba(12, 33, 27, 0.18) 100%),
        url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=2000&q=85")
        center / cover;
    }

    .hero::after {
      position: absolute;
      right: -140px;
      bottom: -210px;
      width: 510px;
      height: 510px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 50%;
      content: "";
    }

    .hero-content {
      position: relative;
      z-index: 1;
      max-width: 720px;
      padding-top: 54px;
    }

    .hero h1 {
      max-width: 730px;
      margin-bottom: 24px;
      font-size: clamp(3.4rem, 7vw, 6.4rem);
      letter-spacing: -0.07em;
    }

    .hero-description {
      max-width: 545px;
      margin-bottom: 38px;
      color: rgba(255, 255, 255, 0.84);
      font-size: 1.1rem;
    }

    .search-panel {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
      gap: 10px;
      padding: 10px;
      max-width: 1000px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.95);
      box-shadow: var(--shadow);
    }

    .search-field {
      display: flex;
      align-items: center;
      gap: 11px;
      min-height: 58px;
      padding: 0 16px;
      border-right: 1px solid var(--border);
      color: var(--muted);
    }

    .search-field:last-of-type {
      border-right: 0;
    }

    .search-icon {
      color: var(--secondary);
      font-size: 1.15rem;
    }

    .search-field label {
      display: block;
      color: var(--muted);
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .search-field select,
    .search-field input {
      width: 100%;
      margin-top: 3px;
      border: 0;
      outline: 0;
      color: var(--dark);
      background: transparent;
      font-size: 0.92rem;
      font-weight: 600;
    }

    .search-field select {
      appearance: none;
    }

    .search-button {
      min-width: 122px;
      border-radius: 11px;
      color: var(--white);
      background: var(--primary);
      font-weight: 700;
      transition: 0.2s ease;
    }

    .search-button:hover {
      background: var(--primary-dark);
    }

    .hero-stats {
      display: flex;
      gap: 38px;
      margin-top: 38px;
    }

    .hero-stat strong {
      display: block;
      color: var(--secondary);
      font-family: "Playfair Display", serif;
      font-size: 2rem;
    }

    .hero-stat span {
      color: rgba(255, 255, 255, 0.72);
      font-size: 0.82rem;
    }

    /* =========================================
       CHOOSE YOUR PROPERTY SECTION 
       ========================================= */
    .choose {
      --ink: #1a1a1a;
      --hair: #eaeaea;
      padding: 96px 0;
      background: #fff;
    }
    
    .choose-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 40px 30px;
    }

    .choose-title {
      align-self: start;
      padding-top: 10px;
      color: var(--ink);
      font-size: clamp(2rem, 3.5vw, 2.8rem);
      font-weight: 800;
      line-height: 1.05;
      letter-spacing: -0.02em;
      text-transform: uppercase;
      font-family: "DM Sans", sans-serif;
    }

    .choose-title::after {
      content: "";
      display: block;
      width: 50px;
      height: 25px;
      margin-top: 15px;
      border-bottom: 2px solid #2a9d8f;
      border-left: 2px solid #2a9d8f;
      border-bottom-left-radius: 4px;
      clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 90%, 10% 90%, 10% 0);
    }

    .tile { 
      display: flex; 
      flex-direction: column;
      color: var(--ink); 
      text-align: center; 
      cursor: pointer;
    }
    
    .tile .stage { 
      position: relative; 
      height: 280px; 
      display: flex;
      justify-content: center;
      align-items: flex-end;
      margin-bottom: 20px;
    }

    .tile .block {
      position: absolute; 
      left: 10%; 
      bottom: 15px; 
      width: 80%; 
      height: 70%;
      background: var(--tint); 
      border-radius: 6px;
      z-index: 1;
    }

    .tile .shot {
      position: relative; 
      z-index: 2;
      width: 55%; 
      aspect-ratio: 3 / 4;
      object-fit: cover; 
      border: 6px solid #fff; 
      border-radius: 4px;
      box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
      transform: rotate(var(--tilt, 6deg)) translateY(-10px);
      transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .tile:hover .shot {
      transform: rotate(0deg) translateY(-15px) scale(1.05);
    }

    .tile h3 {
      padding-bottom: 15px;
      border-bottom: 2px solid var(--hair);
      font-size: 0.95rem; 
      font-weight: 700; 
      line-height: 1.3;
      font-family: "DM Sans", sans-serif;
      margin: 0 15px;
    }

    .tile--card {
      background: #fff; 
      border: 1px solid var(--hair); 
      border-radius: 4px;
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
      overflow: hidden;
    }
    
    .tile--card .stage {
      height: 220px;
      margin-bottom: 0;
      align-items: center;
    }

    .tile--card .block {
      inset: 0; 
      left: 0;
      bottom: 0;
      width: 100%; 
      height: 100%; 
      border-radius: 0;
      clip-path: polygon(0 0, 100% 0, 100% 65%, 0 100%);
      z-index: 1;
    }

    .tile--card .shot { 
      width: 50%;
      border: 6px solid #fff; 
      top: 10px;
    }

    .tile--card .copy { 
      padding: 15px 20px 25px; 
      position: relative;
      z-index: 3;
      background: #fff;
    }
    
    .tile--card h3 { 
      border: none; 
      padding-bottom: 5px;
      margin: 0;
      font-size: 1.05rem;
    }
    
    .tile--card p { 
      color: #6d7771; 
      font-size: 0.8rem; 
      line-height: 1.4;
    }

    @media (max-width: 900px) {
      .choose-grid { grid-template-columns: repeat(2, 1fr); }
      .choose-title { grid-column: 1 / -1; padding-bottom: 20px; }
    }
    @media (max-width: 600px) {
      .choose-grid { grid-template-columns: 1fr; }
      .tile .stage { height: 250px; }
    }

    /* =========================================
       NEW INTERACTIVE CITIES SECTION (xp-card)
       ========================================= */
    .cities-section { background: var(--cream); }

    .xp { display: flex; gap: 14px; height: 560px; }
    .xp-card {
      position: relative; flex: 1; min-width: 0; overflow: hidden; color: #fff;
      border-radius: var(--radius-lg); background: var(--primary-dark);
      transition: flex 0.65s cubic-bezier(.2,.8,.2,1);
    }
    .xp-card.on { flex: 4.4; }
    .xp-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.2s ease; }
    .xp-card.on img { transform: scale(1); }
    .xp-card::after {
      position: absolute; inset: 0; content: "";
      background: linear-gradient(0deg, rgba(10,23,19,.8), rgba(10,23,19,.12) 60%), rgba(10,23,19,.28);
      transition: background 0.5s ease;
    }
    .xp-card.on::after { background: linear-gradient(0deg, rgba(10,23,19,.82), rgba(10,23,19,0) 62%); }

    /* collapsed state: vertical city name */
    .xp-mini {
      position: absolute; z-index: 1; left: 50%; bottom: 26px; margin-left: -.55em;
      writing-mode: vertical-rl; transform: rotate(180deg);
      font-family: "Playfair Display", serif; font-size: 1.6rem; letter-spacing: -.01em; white-space: nowrap;
      transition: opacity 0.3s ease;
    }
    .xp-card.on .xp-mini { opacity: 0; }

    /* expanded state: details */
    .xp-body {
      position: absolute; z-index: 1; left: 30px; bottom: 30px; width: 400px; max-width: calc(100% - 60px);
      opacity: 0; transform: translateY(16px); pointer-events: none;
      transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .xp-card.on .xp-body { opacity: 1; transform: none; pointer-events: auto; transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s; }
    .xp-tag {
      display: inline-block; margin-bottom: 14px; padding: 6px 14px; border: 1px solid rgba(255,255,255,.35);
      border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); font-size: .8rem; font-weight: 700;
    }
    .xp-body h3 { font-family: "Playfair Display", serif; font-size: clamp(2.3rem, 4.4vw, 3.6rem); letter-spacing: -.04em; }
    .xp-body p { margin: 8px 0 20px; color: rgba(255,255,255,.82); font-size: .92rem; }
    .xp-go {
      display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
      color: var(--primary); background: var(--white); font-size: .88rem; font-weight: 700;
    }
    .xp-card:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }

    @media (max-width: 760px) {
      .xp { flex-direction: column; height: auto; gap: 10px; }
      .xp-card { flex: none; height: 86px; transition: height 0.55s cubic-bezier(.2,.8,.2,1); }
      .xp-card.on { flex: none; height: 380px; }
      .xp-mini { writing-mode: horizontal-tb; transform: none; left: 22px; bottom: 50%; margin: 0 0 -.65em; font-size: 1.5rem; }
      .xp-body { left: 20px; bottom: 22px; width: auto; max-width: none; right: 20px; }
    }
    @media (prefers-reduced-motion: reduce) { .xp-card, .xp-card img, .xp-body { transition: none !important; } }

    /* Featured properties */
    .property-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
    }

    .property-card {
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      background: var(--white);
      transition: 0.25s ease;
    }

    .property-card:hover {
      box-shadow: var(--shadow);
      transform: translateY(-5px);
    }

    .property-image {
      position: relative;
      height: 245px;
    }

    .property-image img {
      height: 100%;
    }

    .property-tag,
    .property-save {
      position: absolute;
      top: 15px;
    }

    .property-tag {
      left: 15px;
      padding: 6px 11px;
      border-radius: 999px;
      color: var(--primary-dark);
      background: #e3f0e8;
      font-size: 0.72rem;
      font-weight: 700;
    }

    .property-save {
      display: grid;
      right: 15px;
      width: 35px;
      height: 35px;
      place-items: center;
      border-radius: 50%;
      color: var(--dark);
      background: rgba(255, 255, 255, 0.9);
      font-size: 1.1rem;
    }

    .property-details {
      padding: 22px;
    }

    .property-price {
      margin-bottom: 7px;
      color: var(--primary);
      font-size: 1.25rem;
      font-weight: 700;
    }

    .property-title {
      margin-bottom: 8px;
      font-size: 1.08rem;
    }

    .property-location {
      display: flex;
      align-items: center;
      gap: 5px;
      margin-bottom: 18px;
      color: var(--muted);
      font-size: 0.84rem;
    }

    .property-meta {
      display: flex;
      gap: 17px;
      padding-top: 15px;
      border-top: 1px solid var(--border);
      color: var(--muted);
      font-size: 0.78rem;
    }

    .property-meta span {
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }

    /* =========================================
       REDESIGNED FEATURES SECTION
       ========================================= */
    .features-section {
      background: #3b4a36; 
      color: var(--white);
      padding: 120px 0;
    }

    .features-section .section-heading {
      display: none;
    }

    .features-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0;
      border-top: 1px solid rgba(255, 255, 255, 0.15);
      padding-top: 40px;
    }

    .feature-column {
      padding: 0 30px;
      display: flex;
      flex-direction: column;
      position: relative;
      border-left: 1px solid rgba(255, 255, 255, 0.15);
    }

    .feature-column:first-child {
      border-left: none;
      padding-left: 0;
    }

    .feature-column:last-child {
      padding-right: 0;
    }

    .feature-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 20px;
    }

    .feature-label {
      font-size: 0.85rem;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.8);
    }

    .feature-line {
      height: 1px;
      width: 40px;
      background: rgba(255, 255, 255, 0.3);
    }

    .feature-column h3 {
      font-family: "DM Sans", sans-serif;
      font-size: 1.1rem;
      font-weight: 600;
      line-height: 1.4;
      margin-bottom: 40px;
      color: var(--white);
    }

    .feature-image-wrapper {
      width: 100%;
      border-radius: 8px;
      overflow: hidden;
    }

    .feature-image-wrapper img {
      width: 100%;
      height: 250px;
      object-fit: cover;
      transition: transform 0.4s ease;
    }

    .feature-image-wrapper:hover img {
      transform: scale(1.05);
    }

    .feature-column:nth-child(1) .feature-image-wrapper { margin-top: 120px; }
    .feature-column:nth-child(2) .feature-image-wrapper { margin-top: 40px; }
    .feature-column:nth-child(3) .feature-image-wrapper { margin-top: 90px; }
    .feature-column:nth-child(4) .feature-image-wrapper { margin-top: 10px; }

    /* CTA */
    .cta-section {
      padding: 76px 0;
      background: var(--cream);
    }

    .cta-box {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 30px;
      padding: 54px 60px;
      border-radius: var(--radius-lg);
      background:
        linear-gradient(100deg, rgba(31, 92, 74, 0.98), rgba(31, 92, 74, 0.78)),
        url("/images/sell-rent-cta.webp")
        center / cover;
      color: var(--white);
    }

    .cta-box h2 {
      max-width: 570px;
      font-size: clamp(2rem, 4vw, 3rem);
    }

    .cta-box p {
      max-width: 520px;
      margin-top: 12px;
      color: rgba(255, 255, 255, 0.72);
    }

    /* Footer */
    .footer {
      padding: 70px 0 28px;
      color: rgba(255, 255, 255, 0.68);
      background: #122d25;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
      gap: 50px;
      padding-bottom: 52px;
    }

    .footer .logo {
      margin-bottom: 18px;
      color: var(--white);
    }

    .footer-description {
      max-width: 280px;
      font-size: 0.88rem;
      line-height: 1.8;
    }

    .footer h3 {
      margin-bottom: 18px;
      color: var(--white);
      font-size: 0.94rem;
    }

    .footer-links {
      display: grid;
      gap: 11px;
      font-size: 0.86rem;
    }

    .footer-links a:hover {
      color: var(--white);
    }

    .newsletter-form {
      display: flex;
      margin-top: 16px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 8px;
    }

    .newsletter-form input {
      min-width: 0;
      flex: 1;
      padding: 12px;
      border: 0;
      outline: 0;
      color: var(--white);
      background: transparent;
      font-size: 0.8rem;
    }

    .newsletter-form input::placeholder {
      color: rgba(255, 255, 255, 0.48);
    }

    .newsletter-form button {
      padding: 0 15px;
      color: var(--primary-dark);
      background: var(--secondary);
      font-weight: 700;
    }

    .footer-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding-top: 24px;
      border-top: 1px solid rgba(255, 255, 255, 0.12);
      font-size: 0.78rem;
    }

    .social-links {
      display: flex;
      gap: 16px;
    }

    .social-links a {
      color: rgba(255, 255, 255, 0.7);
    }

    .social-links a:hover {
      color: var(--white);
    }

    /* Responsive Adjustments */
    @media (max-width: 1024px) {
      .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
      }
      .feature-column:nth-child(odd) {
        border-left: none;
        padding-left: 0;
      }
      .feature-column .feature-image-wrapper {
        margin-top: 0 !important;
      }
    }

    @media (max-width: 900px) {
      .nav-links,
      .login-link,
      .nav-button {
        display: none;
      }
      .menu-button {
        display: block;
      }
      .nav {
        position: relative;
      }
      .nav-links.open {
        position: absolute;
        top: 72px;
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin: 0;
        padding: 22px;
        border-radius: 16px;
        background: var(--primary-dark);
      }
      .search-panel {
        grid-template-columns: 1fr 1fr;
      }
      .search-field:nth-child(even) {
        border-right: 0;
      }
      .search-button {
        grid-column: 1 / -1;
        min-height: 54px;
      }
      .property-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .property-card:last-child {
        display: none;
      }
      .footer-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 640px) {
      .container {
        width: min(100% - 28px, 1180px);
      }
      .section {
        padding: 70px 0;
      }
      .section-heading {
        display: block;
      }
      .section-heading .text-link {
        margin-top: 18px;
      }
      .hero {
        min-height: 790px;
        background-position: 62% center;
      }
      .hero h1 {
        font-size: clamp(3.1rem, 15vw, 5rem);
      }
      .hero-description {
        font-size: 0.98rem;
      }
      .search-panel {
        grid-template-columns: 1fr;
      }
      .search-field {
        min-height: 53px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
      }
      .search-field:last-of-type {
        border-bottom: 0;
      }
      .hero-stats {
        gap: 22px;
      }
      .hero-stat strong {
        font-size: 1.55rem;
      }
      .property-grid,
      .footer-grid {
        grid-template-columns: 1fr;
      }
      .property-card:last-child {
        display: block;
      }
      /* Features Section Mobile */
      .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        border-top: none;
        padding-top: 0;
      }
      .feature-column {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        padding: 30px 0 0 0;
      }
      .feature-column:first-child {
        border-top: none;
        padding-top: 0;
      }
      .cta-box {
        display: block;
        padding: 38px 26px;
      }
      .cta-box .secondary-button {
        margin-top: 25px;
      }
      .footer-bottom {
        display: block;
      }
      .social-links {
        margin-top: 16px;
      }
    }

/* ---------- Discover block: scrolling sections (left) + sticky enquiry form (right) ---------- */
.hub { padding-top: 56px; }
.hub-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; align-items: start; }
.hub-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; min-width: 0; }
.hub-main > * { min-width: 0; }
.hub-block, .bh-panel { min-width: 0; max-width: 100%; }
.hub-side { align-self: stretch; }               /* as tall as the whole block, so the form can slide along it */
.hub-sticky { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; scrollbar-width: none; }
.hub-sticky::-webkit-scrollbar { display: none; }

.hub-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.hub-head h3 { margin: 0; color: var(--primary-dark); font-family: "Playfair Display", serif; font-size: 1.65rem; line-height: 1.2; }
.hub-head p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.hub-head > a { flex: none; color: var(--primary); font-size: .9rem; font-weight: 700; white-space: nowrap; }
.hub-head > a:hover { color: var(--primary-dark); }

/* shared carousel */
.hs-wrap { position: relative; }
.hs-track { display: flex; gap: 18px; overflow-x: auto; padding: 6px 2px 12px; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.hs-track::-webkit-scrollbar { display: none; }
.hs-arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; transform: translateY(-50%); border: 0; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(24,35,31,.22); color: var(--dark); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: transform .2s; }
.hs-arrow:hover { transform: translateY(-50%) scale(1.08); }
.hs-arrow[hidden] { display: none; }
.hs-prev { left: -12px; } .hs-next { right: -12px; }

/* Newly launched projects */
.np-panel { padding: 26px 24px 24px; border-radius: var(--radius-lg); background: var(--light); min-width: 0; }
.np-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.np-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--primary); color: #fff; font-size: 1.5rem; }
.np-head h2 { margin: 0; color: var(--primary-dark); font-family: "Playfair Display", serif; font-size: 1.7rem; line-height: 1.2; }
.np-head p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.np-card { position: relative; flex: 0 0 min(350px, 88%); scroll-snap-align: start; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; box-shadow: 0 6px 18px rgba(24,35,31,.06); }
.np-ribbon { position: absolute; top: -1px; left: -8px; z-index: 1; padding: 4px 14px 4px 10px; background: #f6e3bf; color: #7a5413; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%); }
.np-main { display: flex; gap: 16px; padding: 38px 16px 16px; color: inherit; text-decoration: none; }
.np-thumb { flex: 0 0 72px; width: 72px; height: 72px; overflow: hidden; border-radius: 50%; background: #cfd8d3; }
.np-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-info { display: grid; gap: 3px; min-width: 0; }
.np-info h3 { margin: 0; overflow: hidden; color: var(--dark); font-size: 1.05rem; text-overflow: ellipsis; white-space: nowrap; }
.np-loc, .np-price em, .np-note { color: var(--muted); font-size: .88rem; font-style: normal; }
.np-price { display: flex; gap: 8px; align-items: baseline; overflow: hidden; white-space: nowrap; }
.np-price strong { color: var(--dark); font-size: .95rem; }
.np-price em::before { content: "|"; margin-right: 8px; color: var(--border); }
.np-note { color: #1b7a4b; font-size: .8rem; font-weight: 600; }
.np-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px dashed var(--border); }
.np-offer { display: grid; color: var(--dark); font-size: .82rem; font-weight: 600; line-height: 1.3; }
.np-offer b { display: none; }
.np-offer small { color: var(--muted); font-weight: 500; }
.np-btn { flex: none; padding: 10px 16px; border-radius: 6px; background: var(--primary); color: #fff; font-size: .88rem; font-weight: 700; text-decoration: none; transition: background .2s; }
.np-btn:hover { background: var(--primary-dark); }

/* Trending homes */
.tr-card { flex: 0 0 252px; scroll-snap-align: start; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: #fff; transition: transform .25s, box-shadow .25s; }
.tr-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tr-card > a { display: block; color: inherit; text-decoration: none; }
.tr-img { position: relative; height: 172px; background: #dfe6e1; }
.tr-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-price { position: absolute; left: 12px; bottom: 12px; padding: 5px 11px; border-radius: 999px; background: var(--secondary); color: var(--dark); font-size: .85rem; font-weight: 800; }
.tr-views { position: absolute; top: 12px; right: 12px; padding: 4px 9px; border-radius: 999px; background: rgba(24,35,31,.72); color: #fff; font-size: .74rem; font-weight: 600; backdrop-filter: blur(4px); }
.tr-body { padding: 14px 15px 15px; }
.tr-body h3 { margin: 0 0 4px; overflow: hidden; color: var(--dark); font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.tr-loc { margin: 0; overflow: hidden; color: var(--muted); font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.tr-loc i { color: var(--primary); margin-right: 3px; }
.tr-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; padding: 0; list-style: none; }
.tr-facts li { padding: 4px 9px; border-radius: 8px; background: var(--light); color: var(--primary-dark); font-size: .78rem; font-weight: 600; }
.tr-facts i { margin-right: 3px; font-size: .72rem; }
.tr-foot { display: flex; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); color: var(--muted); font-size: .78rem; }
.tr-foot b { color: var(--dark); }

/* Premium picks */
.pm-card { position: relative; flex: 0 0 232px; height: 320px; scroll-snap-align: start; overflow: hidden; border-radius: 20px; background: linear-gradient(160deg, var(--primary), var(--primary-dark)); color: #fff; text-decoration: none; }
.pm-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pm-card:hover img { transform: scale(1.07); }
.pm-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,16,0) 35%, rgba(10,20,16,.88) 100%); }
.pm-type { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 4px 11px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: rgba(255,255,255,.14); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; backdrop-filter: blur(6px); }
.pm-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 3px; padding: 16px; }
.pm-price { color: var(--secondary); font-family: "Playfair Display", serif; font-size: 1.35rem; }
.pm-title { overflow: hidden; font-size: .98rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.pm-loc, .pm-info small { overflow: hidden; color: rgba(255,255,255,.82); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }

/* Shop by bedrooms */
.bh-panel { padding: 26px 24px 24px; border-radius: var(--radius-lg); background: var(--cream); }
.bh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 14px; }
.bh-tile { position: relative; display: grid; gap: 2px; padding: 18px 16px 16px; overflow: hidden; border: 1px solid #ece6d8; border-radius: 16px; background: #fff; color: var(--dark); text-decoration: none; transition: background .25s, color .25s, transform .25s; }
.bh-tile:hover { transform: translateY(-4px); background: var(--primary); color: #fff; }
.bh-num { font-family: "Playfair Display", serif; font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--primary); transition: color .25s; }
.bh-label { font-size: .85rem; font-weight: 700; }
.bh-tile small { color: var(--muted); font-size: .8rem; transition: color .25s; }
.bh-tile i { position: absolute; top: 16px; right: 14px; color: var(--secondary); font-size: .9rem; }
.bh-tile:hover .bh-num, .bh-tile:hover small { color: rgba(255,255,255,.88); }

/* Sticky enquiry form */
.hub-form { overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.hub-form-top { position: relative; padding: 16px 18px 14px; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; }
.hub-form-top::after { content: ""; position: absolute; right: -28px; top: -28px; width: 110px; height: 110px; border-radius: 50%; background: rgba(216,164,93,.22); }
.hub-eyebrow { display: inline-block; margin-bottom: 6px; color: var(--secondary); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hub-form-top h3 { position: relative; z-index: 1; margin: 0 0 4px; font-family: "Playfair Display", serif; font-size: 1.2rem; line-height: 1.2; }
.hub-form-top p { position: relative; z-index: 1; margin: 0; color: rgba(255,255,255,.85); font-size: .8rem; line-height: 1.35; }
.hub-form-body { display: grid; padding: 14px 16px 16px; gap: 9px; }
.hub-field { display: grid; gap: 4px; color: var(--dark); font-size: .78rem; font-weight: 700; }
.hub-field > label, .hub-lbl { display: block; line-height: 1.2; }
.hub-field b { color: #c0392b; }
.hub-field em { color: var(--muted); font-style: normal; font-weight: 500; }
.hub-label { font-size: .8rem; font-weight: 700; }
.hub-form-body input, .hub-form-body textarea, .hub-form-body select { padding: 8px 12px; font-size: .88rem; font-weight: 500; }
.hub-form-body .geo-btn { padding: 8px 10px; font-size: .88rem; }
.hub-form-body .phone-input { grid-template-columns: minmax(96px, 34%) 1fr; gap: 6px; }
.hub-form-body input:focus, .hub-form-body textarea:focus { outline: 2px solid rgba(31,92,74,.28); border-color: var(--primary); }
.hub-form-body textarea { resize: none; min-height: 46px; height: 46px; }
.hub-err { color: #c0392b; font-size: .76rem; font-weight: 600; }
.hub-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hub-chips label { position: relative; cursor: pointer; }
.hub-chips input { position: absolute; opacity: 0; pointer-events: none; }
.hub-chips span { display: block; padding: 6px 0; border: 1.5px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); font-size: .85rem; font-weight: 700; text-align: center; transition: all .2s; }
.hub-chips input:checked + span { border-color: var(--primary); background: var(--primary); color: #fff; }
.hub-chips input:focus-visible + span { outline: 2px solid var(--secondary); outline-offset: 2px; }
.hub-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hub-submit { min-height: 42px; border-radius: 999px; background: var(--secondary); color: var(--dark); font: inherit; font-size: .95rem; font-weight: 800; cursor: pointer; transition: background .2s, transform .2s; }
.hub-submit:hover { background: #c58c46; transform: translateY(-2px); }
.hub-note { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.3; text-align: center; }
.hub-note i { margin-right: 3px; color: var(--primary); }

@media (max-width: 1020px) {
  .hub-grid { grid-template-columns: minmax(0, 1fr); }
  .hub-side { align-self: auto; }
  .hub-sticky { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 640px) {
  .np-panel, .bh-panel { padding: 20px 14px; }
  .np-head h2 { font-size: 1.35rem; }
  .hub-head h3 { font-size: 1.35rem; }
  .hs-arrow { display: none; }
  .pm-card { flex-basis: 78%; }
  .tr-card { flex-basis: 78%; }
}


/* =====================================================================
   RESPONSIVE LAYER - phones, tablets, laptops, large screens
   (kept at the end of the file so it overrides the older rules above)
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; }

/* hero: dropdown panels may hang below the hero, only the decorative circle is clipped */
.hero { position: relative; z-index: 6; overflow-x: clip; overflow-y: visible; }
.hero-content { max-width: none; }                 /* search bar can use the full container width */
.hero h1 { max-width: 730px; }
.hero-description { max-width: 545px; }
.hero-stats { flex-wrap: wrap; }
.search-field { padding: 0 14px; border-right: 1px solid var(--border); }
.search-field:nth-child(4) { border-right: 0; }

/* ---- laptops / small desktops: 4 fields + button stay in one row ---- */
@media (max-width: 1240px) {
  .search-panel { max-width: 920px; }
  .search-button { min-height: 58px; }
}

/* ---- tablets ---- */
@media (max-width: 1020px) {
  .hub-side { width: 100%; max-width: 560px; margin: 0 auto; }
  .hs-prev { left: 4px; } .hs-next { right: 4px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero { min-height: 0; align-items: flex-start; padding: 128px 0 60px; }
  .hero-content { padding-top: 0; }
  .search-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
  .search-field { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .search-field:nth-child(even) { border-right: 0; }
  .search-field:nth-child(n+3) { border-bottom: 0; }
  .search-button { grid-column: 1 / -1; min-height: 54px; }
  .nav-links.open { max-height: calc(100vh - 96px); overflow-y: auto; }
}

/* ---- phones ---- */
@media (max-width: 640px) {
  .hero { padding: 108px 0 44px; }
  .hero h1 { margin-bottom: 16px; }
  .hero-description { margin-bottom: 24px; }
  .search-panel { grid-template-columns: 1fr; max-width: none; padding: 8px; }
  .search-field { min-height: 56px; border-right: 0; border-bottom: 1px solid var(--border); }
  .search-field:nth-child(n+3) { border-bottom: 1px solid var(--border); }
  .search-field:nth-child(4) { border-bottom: 0; }
  .search-field .fs-panel { left: -6px; width: calc(100% + 12px); min-width: 0; max-width: calc(100vw - 28px); }
  .fs-search, .hub-form-body input, .hub-form-body textarea, .hub-form-body select { font-size: 16px; } /* stops iOS zoom-on-focus */
  .fs-list li { min-height: 44px; }
  .hero-stats { gap: 16px 26px; margin-top: 26px; }

  .hub { padding-top: 36px; }
  .hub-main { gap: 30px; }
  .hub-head { flex-wrap: wrap; gap: 8px; }
  .np-main { gap: 12px; padding: 34px 12px 12px; }
  .np-thumb { flex-basis: 56px; width: 56px; height: 56px; }
  .np-foot { flex-wrap: wrap; }
  .pm-card { height: 290px; }
  .bh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hub-form-body .geo-panel { max-width: calc(100vw - 40px); }
  .features-grid { grid-template-columns: 1fr; }
}

/* ---- very small phones (320-380px) ---- */
@media (max-width: 380px) {
  .container { width: calc(100% - 24px); }
  .hero h1 { font-size: clamp(2.4rem, 13vw, 3rem); }
  .search-field { padding: 0 12px; gap: 9px; }
  .tr-card, .pm-card { flex-basis: 84%; }
  .cta-box { padding: 30px 18px; }
  .hub-chips span { font-size: .82rem; }
  .auth-btn { padding: 0 9px; font-size: .72rem; }
}

/* ---- touch devices: no hover-only lifts ---- */
@media (hover: none) {
  .tr-card:hover, .bh-tile:hover, .hub-submit:hover { transform: none; }
  .pm-card:hover img { transform: none; }
}

/* ---- phones in landscape (short screens) ---- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding: 96px 0 36px; }
  .hub-sticky { position: static; max-height: none; overflow: visible; }
}

/* ---- large monitors ---- */
@media (min-width: 1600px) {
  .container { width: min(1360px, calc(100% - 80px)); }
  .search-panel { max-width: 1280px; }
  .hub-grid { grid-template-columns: minmax(0, 1fr) 360px; }
}

/* Match the centered composition shown in the home hero reference. */
.hero-content { width: 100%; max-width: 800px; margin-left: auto; margin-right: auto; text-align: center; }
.hero h1,
.hero-description,
.search-panel { margin-left: auto; margin-right: auto; }
.hero h1,
.hero-description { text-align: center; }
.hero h1 { width: 100%; overflow-wrap: normal; word-break: normal; }
.hero-stats { justify-content: center; }
.hero-stat { text-align: center; }

@media (max-width: 900px) {
  .hero { min-height: 100vh; min-height: 100svh; align-items: center; }
  .hero h1 { font-size: clamp(2.8rem, 11vw, 5rem); }
}

@media (max-width: 640px) {
  .hero { min-height: 100vh; min-height: 100svh; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 4.2rem); }
  .hero-description { max-width: 100%; }
  .search-panel { width: 100%; }
}

/* Full-width Owl Carousel background with fixed search and stats overlays. */
.hero { display:block; min-height:720px; padding:0; overflow-x:clip; overflow-y:visible; }
.hero-carousel { position:absolute; inset:0; z-index:0; width:100%; }
.hero-carousel .owl-stage-outer,
.hero-carousel .owl-stage,
.hero-carousel .owl-item { height:100%; }
.hero-slide { position:relative; display:block; height:720px; min-height:100%; overflow:hidden; padding:0; color:var(--white); text-align:center; }
.hero-slide::after { position:absolute; inset:0; z-index:0; background:linear-gradient(90deg,rgba(12,33,27,.88) 0%,rgba(12,33,27,.56) 50%,rgba(12,33,27,.18) 100%); content:""; }
.hero-slide-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; }
.hero-slide-copy { position:relative; z-index:1; width:min(800px,100%); margin:0 auto; padding:100px 20px 0; text-align:center; }
.hero-slide-copy .eyebrow { margin-bottom:12px; }
.hero-slide-copy h1 { max-width:730px; margin:0 auto 24px; text-align:center; }
.hero-slide-copy .hero-description { max-width:545px; margin:0 auto; text-align:center; }
.hero .hero-content { position:absolute; inset:0; z-index:2; width:min(1180px,calc(100% - 40px)); height:100%; min-height:0; max-width:none; margin:0 auto; padding:0; pointer-events:none; }
.hero .hero-content .search-panel { position:absolute; z-index:3; top:70%; left:50%; width:100%; max-width:1000px; margin:0; transform:translate(-50%,-50%); pointer-events:auto; }
.hero .hero-content .hero-stats { position:absolute; z-index:1; top:79%; left:50%; margin:0; transform:translateX(-50%); pointer-events:auto; }
.hero-carousel .owl-dots { position:absolute; right:0; bottom:6px; left:0; margin:0; }
.hero-carousel.owl-theme .owl-dots .owl-dot span { background:rgba(255,255,255,.55); }
.hero-carousel.owl-theme .owl-dots .owl-dot.active span,
.hero-carousel.owl-theme .owl-dots .owl-dot:hover span { background:#fff; }

@media (max-width:900px) {
  .hero { min-height:850px; }
  .hero-slide { height:850px; }
  .hero-slide-copy { padding-top:110px; }
  .hero .hero-content { min-height:850px; }
  .hero .hero-content .search-panel { top:63%; }
  .hero .hero-content .hero-stats { top:84%; }
}

@media (max-width:640px) {
  .hero { min-height:950px; }
  .hero-slide { height:950px; }
  .hero-slide-copy { padding:108px 20px 0; }
  .hero .hero-content { min-height:950px; width:calc(100% - 28px); }
  .hero .hero-content .search-panel { top:52%; transform:translate(-50%,0); }
  .hero .hero-content .hero-stats { top:42%; left:0; width:100%; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; gap:8px; transform:none; }
  .hero .hero-content .hero-stat { min-width:0; padding:0 3px; text-align:center; }
  .hero .hero-content .hero-stat:not(:last-child) { border-right:1px solid rgba(255,255,255,.22); }
  .hero .hero-content .hero-stat strong { font-size:clamp(1.2rem,5vw,1.55rem); line-height:1.15; white-space:nowrap; }
  .hero .hero-content .hero-stat span { display:block; font-size:clamp(.62rem,2.8vw,.76rem); line-height:1.3; }
  .hero-carousel .owl-dots { bottom:8px; }
}
