/*
 * responsive.css — Petitfute Real Estate
 * All media queries for the site. style.css contains no @media rules.
 *
 * Breakpoints:
 *   1199px — Laptop / small desktop
 *    991px — Tablet
 *    767px — Mobile large
 *    575px — Mobile small
 */

/* ============================================================
   === BREAKPOINT: 1199px — Laptop / Small Desktop ===
   ============================================================ */

@media (max-width: 1199px) {

  /* Footer */
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 32px;
  }

  /* How It Works */
  .how-it-works-grid {
    gap: 24px;
  }

  /* Sidebar layout */
  .page-layout__sidebar {
    width: 280px;
  }

  /* Team */
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Hero strip — hide on very narrow desktops */
  .hero-strip {
    display: none;
  }

} /* end 1199px */


/* ============================================================
   === BREAKPOINT: 991px — Tablet ===
   ============================================================ */

@media (max-width: 991px) {

  /* Container */
  .container {
    padding: 0 20px;
  }

  /* Section spacing */
  .section {
    padding: 60px 0;
  }

  /* Page layout — sidebar becomes full-width below content */
  .page-layout {
    flex-direction: column;
  }

  .page-layout__sidebar {
    width: 100%;
  }

  /* ---- Footer ---- */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  /* ---- How It Works ---- */
  .how-it-works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  /* ---- Team ---- */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ---- Values ---- */
  .values-grid {
    grid-template-columns: 1fr;
  }

  /* ---- Contact info ---- */
  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  /* ---- Stats ---- */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  /* ---- Search bar ---- */
  .search-bar-form {
    flex-direction: column;
  }

  .search-bar-form select,
  .search-bar-form .search-bar__dropdown,
  .search-bar-form .search-bar__field {
    width: 100%;
  }

  /* ---- Generic grid utilities ---- */
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ---- Hero ---- */
  .hero-strip {
    display: none;
  }

  .hero-featured {
    height: 400px;
  }

  /* ---- Blog section ---- */
  .blog-section-layout {
    flex-direction: column;
  }

  /* ---- Neighbourhood large cards ---- */
  .neighbourhood-card--large {
    flex-direction: column;
  }

  /* ---- Filter sidebar (mobile slide-in panel) ---- */
  .filter-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
    display: none;
  }

  .filter-sidebar-overlay.is-open {
    display: block;
  }

  .filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 300px;
    z-index: 950;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .filter-sidebar.is-open {
    transform: translateX(0);
  }

  /* ---- Mobile filter button ---- */
  .mobile-filter-btn {
    display: flex;
  }

  /* ---- Property gallery thumbs ---- */
  .property-gallery__thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  /* ---- Article nav ---- */
  .article-nav {
    grid-template-columns: 1fr;
  }

  /* ---- Guide cards ---- */
  .guide-card--large {
    height: 300px;
  }

} /* end 991px */


/* ============================================================
   === BREAKPOINT: 767px — Mobile Large ===
   ============================================================ */

@media (max-width: 767px) {

  /* ---- Body / Header ---- */
  body {
    padding-top: 60px;
  }

  .site-header {
    height: 60px;
  }

  /* ---- Navigation ---- */
  .nav-links {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .nav-actions .lang-toggle {
    display: none;
  }

  /* ---- Section spacing ---- */
  .section {
    padding: 48px 0;
  }

  /* ---- Typography scale ---- */
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 18px;
  }

  h4 {
    font-size: 16px;
  }

  .section-title {
    font-size: 26px;
  }

  .page-header__title {
    font-size: 28px;
  }

  /* ---- Hero ---- */
  .hero-featured {
    height: 300px;
  }

  .hero-featured .hero-content__title {
    font-size: 24px;
    max-width: 100%;
  }

  /* ---- Footer ---- */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  /* ---- How It Works ---- */
  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* ---- Team ---- */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ---- Stats ---- */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ---- Generic grid utilities ---- */
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  /* ---- Search bar ---- */
  .search-bar-form {
    flex-direction: column;
  }

  /* ---- Newsletter CTA ---- */
  .newsletter-cta__form {
    flex-direction: column;
  }

  .newsletter-cta__input {
    border-radius: 3px;
    width: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 8px;
  }

  .newsletter-cta__submit {
    border-radius: 3px;
    width: 100%;
  }

  /* ---- Property gallery ---- */
  .property-gallery__hero {
    height: 300px;
  }

  .property-gallery__thumbs {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  /* ---- Features bar ---- */
  .features-bar {
    flex-wrap: wrap;
    gap: 0;
  }

  .features-bar__item {
    width: 50%;
    padding: 16px;
    border-right: none;
  }

  .features-bar__item:nth-child(even) {
    border-right: none;
  }

  /* ---- Property details table ---- */
  .prop-table td:first-child {
    width: 50%;
  }

  /* ---- Blog section ---- */
  .blog-section-layout {
    flex-direction: column;
  }

  /* ---- Guide cards ---- */
  .guide-cards-large {
    flex-direction: column;
  }

  .small-guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ---- Map CTA ---- */
  .map-cta-banner {
    flex-direction: column;
    text-align: center;
  }

  /* ---- Article navigation ---- */
  .article-nav {
    grid-template-columns: 1fr;
  }

  /* ---- Contact info ---- */
  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  /* ---- Pagination ---- */
  .pagination {
    flex-wrap: wrap;
  }

  /* ---- Tab bar ---- */
  .tab-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ---- Price box (unsticky on mobile) ---- */
  .price-box {
    position: static;
  }

  /* ---- Scroll to top button ---- */
  .scroll-to-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

  /* ---- Hamburger animation when nav is open ---- */
  body.nav-open .hamburger-btn span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  body.nav-open .hamburger-btn span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .hamburger-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* ---- Testimonials ---- */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    width: 100%;
  }

} /* end 767px */


/* ============================================================
   === BREAKPOINT: 575px — Mobile Small ===
   ============================================================ */

@media (max-width: 575px) {

  /* ---- Container ---- */
  .container {
    padding: 0 16px;
  }

  /* ---- Section spacing ---- */
  .section {
    padding: 32px 0;
  }

  /* ---- Hero ---- */
  .hero-featured {
    height: 240px;
  }

  .hero-featured .hero-content__title {
    font-size: 20px;
  }

  /* ---- Page header ---- */
  .page-header {
    padding: 32px 0 24px;
  }

  /* ---- Property gallery thumbs (tiny) ---- */
  .property-gallery__thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  /* ---- Stats ---- */
  .stat-item__number {
    font-size: 36px;
  }

  /* ---- Team ---- */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* ---- Card padding ---- */
  .card,
  .property-card,
  .blog-card,
  .team-card,
  .value-card,
  .guide-card {
    padding: 16px;
  }

  /* ---- Price box ---- */
  .price-box__price {
    font-size: 26px;
  }

  /* ---- Author bio ---- */
  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* ---- Pagination — hide middle page numbers ---- */
  .pagination__item--ellipsis {
    display: none;
  }

  .pagination__page:not(.pagination__page.active):not(.pagination__page--prev):not(.pagination__page--next) {
    display: none;
  }

  .pagination__page.active {
    display: inline-flex;
  }

  /* ---- Footer bottom row ---- */
  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-legal-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

} /* end 575px */
