.range-page {
  padding: 0px 16px 80px;
  max-width: 1300px;
  margin: 0 auto;
}

@media (max-width: 1000px) {
  .range-page {
    padding: 0px 12px 40px;
  }
}


.range-hero {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 200px;   
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  margin-bottom: 40px; 
}

.range-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../Pictures/Boats/nautique-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.6);            
  transform: scale(1.05);            
}

.range-hero-content {
  position: relative;
  max-width: 900px;
  padding: 20px 16px;
}

.range-hero-content h1 {
  font-size: 36px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.range-hero-content p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 700px) {
  .range-hero {
    height: 180px;
  }

  .range-hero-content h1 {
    font-size: 26px;
    letter-spacing: 0.12em;
  }

  .range-hero-content p {
    font-size: 14px;
  }
}

.range-section {
  max-width: 1400px;     
  margin: 0 auto;
  padding: 0px 3vw 70px; 
}

/* Title + description */
.range-header {
  text-align: center;
  margin-bottom: 32px;
}

.range-header h1 {
  font-size: 28px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #111827;
}

.range-header p {
  font-size: 14px;
  color: #6b7280;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============
   GRID LAYOUT
   ========= */

.range-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 wide cards */
  gap: 26px;
}

/* 3 per row on laptops */
@media (max-width: 1300px) {
  .range-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 2 per row on tablets */
@media (max-width: 1000px) {
  .range-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1 per row on phones */
@media (max-width: 600px) {
  .range-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== MOBILE VIEW TOGGLE (NAUTIQUE RANGE) ===== */

.range-view-toggle {
  display: none;               /* hidden on desktop */
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 16px;
  font-size: 13px;
}

.view-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.view-btn.active {
  background: #2f7fdc;
  border-color: #2f7fdc;
  color: #ffffff;
}

/* only show toggle on phone */
@media (max-width: 700px) {
  .range-view-toggle {
    display: flex;
  }
}



/* ===========
   BOAT CARDS
   ======== */

.boat-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.boat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
}

/* IMAGE AREA */
.boat-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  flex-shrink: 0; 
}

.boat-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.boat-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;   
  object-position: center;
  background: #ffffff;  
}


/* TEXT AREA */
.boat-body {
  padding: 18px 20px 22px;
  text-align: center;

  /* make button stick to bottom */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.boat-body h2 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #111827;
}

.boat-body p {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ======
   BUTTON
   ====== */

.boat-btn {
  display: inline-block;
  padding: 9px 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-radius: 999px;
  border: 1px solid #2f7fdc;
  color: #2f7fdc;
  background: #ffffff;
  transition: background 0.2s ease, color 0.2s ease;

  /* push to bottom of card */
  margin-top: auto;
}

.boat-btn:hover {
  background: #2f7fdc;
  color: #ffffff;
}

/* ==================
   MOBILE IMAGE TWEAK
   ================ */

@media (max-width: 600px) {
  .boat-image img {
    height: 220px;
  }
}

/* list view modifier */
.range-grid.list-view {
  grid-template-columns: 1fr !important;
}
/* ===== MOBILE GRID ===== */

@media (max-width: 700px) {
  .range-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .range-grid.list-view {
    grid-template-columns: 1fr !important;
  }
}

