/*
Theme Name: Faaz Inc. Theme
Theme URI: https://faazinc.com
Author: Faaz Inc.
Description: Native classic theme for faazinc.com. PHP template hierarchy, no page builder. Layout and styling live here; content is edited in Gutenberg.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: faaz
Tags: custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --faaz-brand: #c01b1b;
  --faaz-brand-dark: #951818;
  --faaz-brand-tint: #fdecec;
  --faaz-sage: #5f7257;
  --faaz-sage-tint: #eef2ea;
  --faaz-paper: #f4f8f2;
  --faaz-surface: #e9efe5;
  --faaz-ink: #1c1814;
  --faaz-muted: #6d6558;
  --faaz-white: #ffffff;

  --faaz-container: 90%;
  --faaz-radius: 8px;
  --faaz-shadow:
    0 1px 2px rgba(16, 24, 40, 0.06), 0 4px 16px rgba(16, 24, 40, 0.08);

  --faaz-body:
    "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--faaz-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--faaz-ink);
  background: var(--faaz-paper);
  -webkit-font-smoothing: antialiased;
}

/* Film-grain overlay: fixed, pointer-events-none, sits above all content. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header is static (in flow); no main offset needed. */

@layer base {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 0.5em;
    color: var(--faaz-ink);
  }
}

@layer base {
  p {
    margin: 0 0 1em;
  }
}

/* Base link color lives in the `base` layer so Tailwind utilities
   (e.g. text-white on buttons) can override it. */
@layer base {
  a {
    color: var(--faaz-brand);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  a:hover {
    color: var(--faaz-brand-dark);
  }
}

@layer base {
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
}

.container {
  max-width: var(--faaz-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--faaz-brand);
  color: #fff;
  padding: 0.5em 1em;
  z-index: 100;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  width: auto;
  height: auto;
  clip: auto;
}

/* ==========================================================================
   Header: two-tier full-width bars (no rounded corners)
   ========================================================================== */
.faaz-header {
  position: relative;
}

.faaz-nav__brand .custom-logo {
  display: block;
  max-height: 40px;
  width: auto;
}

.faaz-nav__title {
  font-family: var(--faaz-body);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--faaz-ink);
}

.faaz-top-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.faaz-top-menu a {
  color: var(--faaz-muted);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.faaz-top-menu a:hover {
  color: var(--faaz-brand);
}

.faaz-nav__desktop {
  display: none;
}

@media (min-width: 768px) {
  .faaz-nav__desktop {
    display: block;
  }
}

.faaz-primary-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.faaz-primary-menu a {
  color: var(--faaz-ink);
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0.8;
  transition:
    opacity 0.3s ease,
    color 0.3s ease;
}

.faaz-primary-menu a:hover {
  opacity: 1;
  color: var(--faaz-brand);
}

/* Dropdown submenus: open on hover / keyboard focus. No rounded corners. */
.faaz-primary-menu .menu-item-has-children,
.faaz-top-menu .menu-item-has-children {
  position: relative;
}

/* Down chevron on parents that have children (flips up when open) */
.faaz-primary-menu .menu-item-has-children > a::after,
.faaz-top-menu .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-left: 0.45em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s ease;
}

.faaz-primary-menu .menu-item-has-children:hover > a::after,
.faaz-primary-menu .menu-item-has-children:focus-within > a::after,
.faaz-top-menu .menu-item-has-children:hover > a::after,
.faaz-top-menu .menu-item-has-children:focus-within > a::after {
  transform: rotate(225deg) translateY(1px);
}

/* Invisible hover bridge across the 24px gap so the menu stays open
   while the mouse travels down into the panel */
.faaz-primary-menu .menu-item-has-children::before,
.faaz-top-menu .menu-item-has-children::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  height: 24px;
}

.faaz-primary-menu .menu-item-has-children > ul,
.faaz-top-menu .menu-item-has-children > ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin-top: 24px;
  padding: 0.75rem 0;
  list-style: none;
  display: block;
  background: var(--faaz-white);
  border: 1px solid rgba(28, 24, 20, 0.08);
  box-shadow: 0 16px 40px rgba(28, 24, 20, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s;
  z-index: 30;
}

.faaz-primary-menu .menu-item-has-children:hover > ul,
.faaz-primary-menu .menu-item-has-children:focus-within > ul,
.faaz-top-menu .menu-item-has-children:hover > ul,
.faaz-top-menu .menu-item-has-children:focus-within > ul {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.faaz-primary-menu .menu-item-has-children > ul a,
.faaz-top-menu .menu-item-has-children > ul a {
  display: block;
  padding: 0.5em 1.25rem;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0.85;
}

.faaz-primary-menu .menu-item-has-children > ul a:hover,
.faaz-top-menu .menu-item-has-children > ul a:hover {
  opacity: 1;
  color: var(--faaz-brand);
}

/* Mobile overlay: nested items render indented + smaller (no hover on touch) */
.faaz-overlay-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
}

.faaz-overlay-menu ul a {
  font-size: 1.5rem;
  opacity: 0.55;
}

/* Hamburger: two bars morph into an X */
.faaz-burger {
  position: relative;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.faaz-burger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--faaz-ink);
  transform: translate(-50%, -50%) translateY(-4px);
  transition:
    transform 0.5s cubic-bezier(0.32, 0.72, 0, 1),
    background 0.4s ease;
}

.faaz-burger span:last-child {
  transform: translate(-50%, -50%) translateY(4px);
}

body.faaz-menu-open .faaz-burger span {
  background: #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}

body.faaz-menu-open .faaz-burger span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (min-width: 768px) {
  .faaz-burger {
    display: none;
  }
}

/* Full-screen glass menu overlay (mobile) */
.faaz-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 20, 16, 0.94);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    visibility 0.5s;
}

body.faaz-menu-open .faaz-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.faaz-overlay__inner {
  width: 100%;
  max-width: 480px;
  padding: 0 1.5rem;
}

.faaz-overlay-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.faaz-overlay-menu a {
  display: block;
  padding: 0.3rem 1rem;
  font-family: var(--faaz-body);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: translateY(3rem);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s ease;
}

.faaz-overlay-menu a:hover {
  color: var(--faaz-brand);
}

body.faaz-menu-open .faaz-overlay-menu a {
  opacity: 1;
  transform: none;
}

.faaz-overlay-menu li:nth-child(1) a {
  transition-delay: 80ms;
}
.faaz-overlay-menu li:nth-child(2) a {
  transition-delay: 140ms;
}
.faaz-overlay-menu li:nth-child(3) a {
  transition-delay: 200ms;
}
.faaz-overlay-menu li:nth-child(4) a {
  transition-delay: 260ms;
}
.faaz-overlay-menu li:nth-child(5) a {
  transition-delay: 320ms;
}
.faaz-overlay-menu li:nth-child(6) a {
  transition-delay: 380ms;
}
.faaz-overlay-menu li:nth-child(7) a {
  transition-delay: 440ms;
}
.faaz-overlay-menu li:nth-child(8) a {
  transition-delay: 500ms;
}

.faaz-overlay-cta {
  margin-top: 2rem;
  display: inline-block;
  background: var(--faaz-brand);
  color: #fff;
  padding: 0.75em 2em;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.faaz-overlay-cta:hover {
  background: var(--faaz-brand-dark);
  color: #fff;
}

/* Pasang Iklan button (main bar): solid brand fill, guaranteed white text */
.faaz-cta-bar {
  background: var(--faaz-brand);
  color: #fff;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.25rem;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.faaz-cta-bar:hover {
  background: var(--faaz-brand-dark);
  color: #fff;
}

/* Header search */
.search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-form .search-field {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  color: #fff;
  padding: 0.4em 0.75em;
  font-size: 0.875rem;
  min-width: 160px;
}

.search-form .search-field::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-form .search-submit {
  background: var(--faaz-brand);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 0.4em 0.9em;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   Eyebrow tags
   ========================================================================== */
.faaz-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.4em 1em;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  border-radius: 4px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.btn {
  background: var(--faaz-brand);
  color: var(--faaz-white);
}

.btn:hover {
  background: var(--faaz-brand-dark);
  transform: translateY(-1px);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: 3rem 0;
}

.section__title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.section__more {
  margin-top: 2rem;
  text-align: center;
}

/* ==========================================================================
   Property grid + card
   ========================================================================== */
.property-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}


/* Card media (Tailwind double-bezel card in partials/property-card.php and front page) */
.faaz-card-media .faaz-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.faaz-card-media:hover .faaz-card-img {
  transform: scale(1.05);
}

/* ==========================================================================
   Entry (single / page)
   ========================================================================== */
.entry__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.entry__thumbnail img {
  border-radius: var(--faaz-radius);
  width: 100%;
}

.entry__content {
  margin-top: 1.5rem;
}

.entry__content .alignwide {
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* Properti hero (single) */
.entry__hero {
  position: relative;
  border-radius: var(--faaz-radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.entry__hero > img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.entry__hero-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(10, 20, 35, 0.85));
  color: #fff;
}

.entry__hero-content .entry__term {
  color: var(--faaz-brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  margin: 0 0 0.25em;
}

.entry__hero-content .entry__title {
  color: #fff;
  margin: 0;
}

.entry__meta {
  color: var(--faaz-muted);
  margin-bottom: 1.5rem;
}

/* Agent contact: inline card on mobile, sticky right sidebar on desktop. */
/* Listing layout: content ~70% left, agent sidebar ~30% right (sticky). */
.faaz-entry-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}

.faaz-entry-main {
  min-width: 0; /* grid track shrink guard */
}

.faaz-agent-side {
  margin-top: 2rem;
}

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

/* Comments: core list markup, styled to the theme's card shape. */
.faaz-comments {
  list-style: none;
  margin: 0;
  padding: 0;
}

.faaz-comments .children {
  list-style: none;
  margin: 1rem 0 0;
  padding-left: 2rem;
  border-left: 1px solid rgba(28, 24, 20, 0.1);
}

.comment-reply-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.75rem;
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
  background: var(--faaz-surface);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--faaz-ink);
  transition: background-color 300ms, color 300ms;
}

.comment-reply-link:hover {
  background: var(--faaz-brand);
  color: #fff;
}

@media (min-width: 768px) {
  .faaz-entry-layout {
    grid-template-columns: 7fr 3fr;
  }

  .faaz-agent-side {
    position: sticky;
    top: 2rem;
    align-self: start;
    margin-top: 0;
  }
}

/* ==========================================================================
   Archive / search / index post list
   ========================================================================== */
.page-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--faaz-surface);
  margin-bottom: 2rem;
}

.page-header__title {
  font-size: 2rem;
  margin: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.breadcrumb__item {
  color: var(--faaz-muted);
  text-decoration: none;
}

.breadcrumb__item:hover {
  color: var(--faaz-brand);
}

.breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--faaz-muted);
}

.breadcrumb__current {
  color: var(--faaz-ink);
}

/* Jasa page template — breadcrumb + hero vertical rhythm. Scoped to
   .page-template-page-jasa (WP body class); unlayered, so it beats the
   Tailwind utility layer. */
.page-template-page-jasa .breadcrumb {
  padding: 1.5rem 0;
  margin-bottom: 0;
}

.page-template-page-jasa .faaz-jasa-hero {
  padding: 8rem 0;
}

@media (min-width: 768px) {
  .page-template-page-jasa .breadcrumb {
    padding: 2rem 0;
  }

  .page-template-page-jasa .faaz-jasa-hero {
    padding: 11rem 0;
  }
}

.post-list {
  display: grid;
  gap: 2rem;
}

.post-list .post {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.post-list .post__thumbnail {
  flex: 0 0 220px;
  border-radius: var(--faaz-radius);
  overflow: hidden;
  background: var(--faaz-surface);
}

.post-list .post__thumbnail img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.post-list .post__title {
  font-size: 1.25rem;
  margin: 0 0 0.4em;
}

.post-list .post__title a {
  color: var(--faaz-ink);
}

.post-list .post__title a:hover {
  color: var(--faaz-brand);
}

.post-list .post__excerpt {
  color: var(--faaz-muted);
  margin: 0;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
  margin: 2.5rem 0;
  display: flex;
  justify-content: center;
}

.pagination .nav-links {
  display: flex;
  gap: 0.4rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border: 1px solid var(--faaz-surface);
  border-radius: 4px;
  color: var(--faaz-ink);
  background: var(--faaz-white);
  font-size: 0.9375rem;
}

.pagination .page-numbers.current {
  background: var(--faaz-brand);
  color: #fff;
  border-color: var(--faaz-brand);
}

.pagination .page-numbers:hover {
  border-color: var(--faaz-brand);
}

/* ==========================================================================
   Empty state
   ========================================================================== */
.empty {
  color: var(--faaz-muted);
  background: var(--faaz-surface);
  border-radius: var(--faaz-radius);
  padding: 1.5rem;
  text-align: center;
}

/* ==========================================================================
   404
   ========================================================================== */
.error-404 {
  text-align: center;
  padding: 5rem 0;
}

.error-404 .error-404__title {
  font-size: 3rem;
}

.error-404 .search-form {
  max-width: 420px;
  margin: 1.5rem auto 0;
}

.error-404 .search-field {
  background: var(--faaz-surface);
  color: var(--faaz-ink);
  border-color: var(--faaz-surface);
  flex: 1;
}

.error-404 .search-submit {
  background: var(--faaz-brand);
  color: #fff;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--faaz-brand);
  color: #fff;
  padding: 3rem 0 2rem;
}

.site-footer .footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.site-footer .footer-nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer .footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
}

.site-footer .footer-nav a:hover {
  text-decoration: underline;
  text-decoration-color: #fff;
  text-underline-offset: 3px;
}

.site-footer .site-info {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0;
}

/* Property sliders (featured + latest): equal-height cards.
   Stretch slides to the tallest in the row, card fills the slide so the
   h-full chain inside the card resolves. Unlayered on purpose. */
.faaz-swiper .swiper-wrapper {
  align-items: stretch;
}

.faaz-swiper .swiper-slide {
  height: auto;
  display: flex;
  flex-direction: column;
}

.faaz-swiper .swiper-slide > * {
  height: 100%;
}

/* Featured properties slider: faded prev/next buttons at the ends
   (Swiper adds swiper-button-disabled). Unlayered on purpose so it
   beats Tailwind utilities. */
.faaz-slider-btn.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ==========================================================================
   Offer choice buttons (partials/offer-choice.php) — hero + panel search bar
   ========================================================================== */

/* "Saya ingin Beli" = find Dijual, "Saya ingin Sewa" = find Disewakan (99.co
   style). PHP renders data-faaz-active on the offer the page already carries
   (default `dijual`), theme.js moves it on click. The pills carry no ring:
   the search bar row they sit above takes the outline (rounded-sm ring-1
   ring-ink/15 in partials/hero.php + partials/search-panel.php). Unlayered
   rules beat the Tailwind pill utilities (bg-white / text-ink), so the chosen
   pill is brand-filled and the other stays white. */
.faaz-offer-choice [data-faaz-offer][data-faaz-active] {
  background: var(--faaz-brand);
  color: #fff;
}

.faaz-offer-choice [data-faaz-offer][data-faaz-active]:hover {
  background: var(--faaz-brand-dark);
  color: #fff;
}

/* ==========================================================================
   Search filter panel (partials/search-panel.php)
   ========================================================================== */

/* Filter modal: floating card over the page (rumah123 style). The wrapper is
   a fixed scrim that centres the card; closed = inert + invisible, so its
   fields stay unreachable but keep submitting their prefilled values (the
   summary line under the trigger is the no-JS proof of what the page carries).
   The card scales in on open. z-9999 = always above everything else (header
   bars z-80/100, mobile menu overlay z-60). */
.faaz-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(28, 24, 20, 0.55);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 320ms cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s linear 320ms;
}

.faaz-modal[data-faaz-open] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 320ms cubic-bezier(0.32, 0.72, 0, 1);
}

.faaz-modal-card {
  max-height: calc(100dvh - 3rem);
  overflow: auto;
  transform: translateY(12px) scale(0.97);
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
}

.faaz-modal[data-faaz-open] .faaz-modal-card {
  transform: none;
}

/* Toggle funnel: static icon (open state is carried by aria-expanded, the
   modal itself, and the pill's ring — a funnel has no meaningful rotation). */
.faaz-panel-toggle svg {
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
}

/* Featured/latest sliders: Swiper owns the touch surface. */
.faaz-swiper {
  touch-action: none;
}

/* ==========================================================================
   Listing photo lightbox (single-properti.php)
   ========================================================================== */

/* Full-screen scrim over the page (same open/close choreography as the search
   modal). Closed = invisible + inert, so its Swiper stays unmeasured until the
   first click opens it (gallery-lightbox.js inits Swiper on open). */
.faaz-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(20, 16, 12, 0.92);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 280ms cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s linear 280ms;
}

.faaz-lightbox[data-faaz-open] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 280ms cubic-bezier(0.32, 0.72, 0, 1);
}

/* Swiper fills the viewport; one photo per slide, contained so tall shots
   never crop. Swiper's own prev/next buttons come from the bundle CSS. */
.faaz-lightbox .swiper {
  width: 100%;
  height: 100%;
}

.faaz-lightbox .swiper-slide {
  display: grid;
  place-items: center;
}

.faaz-lightbox-img {
  max-height: calc(100dvh - 4rem);
  max-width: calc(100vw - 4rem);
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Thumbnail nav strip sits under the main image; the close button must beat
   both the Swiper slides and the strip. */
.faaz-lightbox-nav {
  z-index: 20;
}

.faaz-lightbox-prev,
.faaz-lightbox-next {
  z-index: 20;
}

.faaz-lightbox-close {
  z-index: 30;
}

.faaz-lightbox-thumb {
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.faaz-lightbox-thumb[data-faaz-gallery-current] {
  border: 2px solid var(--faaz-brand);
}

@media (prefers-reduced-motion: reduce) {
  .faaz-modal,
  .faaz-modal-card,
  .faaz-panel-toggle svg,
  .faaz-lightbox {
    transition: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .property-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .post-list .post {
    flex-direction: column;
  }

  .post-list .post__thumbnail {
    flex-basis: auto;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .property-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3.5rem 0;
  }

  .site-header__inner {
    justify-content: center;
  }
}
