* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Keep anchor targets visible below the sticky header */
html {
  scroll-padding: 115px 0 0 0;
}

/* Desktop: explicit scroll-padding so anchor links clear the sticky header */
@media (min-width: 769px) {
  html {
    scroll-padding: 115px 0 0 0;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #232628;
}

/* Header */
.header {
  background-color: #006400;
  color: white;
  padding: 1rem 0 0 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.header-top {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  padding: 1rem 0 0.35rem 0;
  gap: 1rem;
  position: relative;
}

@media (max-width: 768px) {
  .header-top {
    padding-bottom: 1.25rem;
  }
}

.logo,
.header-logo {
  grid-column: 1;
}

.header-logo {
  display: block;
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

/* Center search in the header so it aligns with the nav menu below */
.header-search {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 450px;
}

.cart-icon {
  grid-column: 3;
  justify-self: end;
}

.header-menu-toggle {
  grid-column: 4;
}

.header-nav-section {
  background: #006400;
  padding: 0.15rem 0 1.1rem 0;
  border-top: none;
  display: block;
}

.header-menu-toggle {
  display: none;
  background: none;
  border: 2px solid white;
  color: white;
  padding: 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

/* Shopping Cart Icon */
.cart-icon-wrap {
  position: relative;
  display: inline-block;
}

.cart-icon-wrap.cart-icon {
  font-size: 1.8rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s;
  order: 2;
}

.cart-icon-wrap.cart-icon:hover {
  transform: scale(1.1);
}

.cart-count-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 4px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
  color: #fff;
  background: #c00;
  border-radius: 10px;
  box-sizing: border-box;
}

.cart-count-badge:empty {
  display: none !important;
}

.hero-nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-nav-menu {
  display: flex;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  text-align: left;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

.nav-menu a:hover {
  color: #D2B48C;
}

/* Header Search Form */
.header-search {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  max-width: 450px;
  flex: 1;
}

.header-search-input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 1rem;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: #232628;
}

.header-search-input::placeholder {
  color: #999;
}

.header-search-clear {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0 0.5rem;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: color 0.2s;
}

.header-search-clear:hover {
  color: #222;
}

.header-search-button {
  flex-shrink: 0;
  background-color: rgb(218, 180, 140);
  color: #222222;
  border: none;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background-color 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.header-search-button:hover {
  background-color: #CD7F32;
  color: white;
}

.phone {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.phone-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.phone-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
}


.btn-primary {
  background-color: #228B22;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #8B4513;
}

/* Admin Panel Styles */
.admin-btn {
  background-color: #228B22;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
  display: inline-block;
}

.admin-btn:hover {
  background-color: #8B4513;
}

.admin-link {
  color: #228B22;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.admin-link:hover {
  color: #8B4513;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section - hidden on desktop; header nav shows the same links */
.hero {
  display: none;
  background: #006400;
  color: white;
  padding: 0.25rem 0 1rem 0;
  text-align: center;
}

.hero-nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-menu-toggle {
  display: none;
  background: none;
  border: 2px solid white;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  margin: 0 auto 1rem;
}

.hero-menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: #ccc;
}

.search-box {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
}

.search-box input {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

.search-box button {
  padding: 1rem 2rem;
  background-color: #228B22;
  border: none;
  border-radius: 5px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-box button:hover {
  background-color: #8B4513;
}

/* Grand Opening Section */
.grand-opening {
  background: #CD7F32;
  color: white;
  padding: 1.5rem 2rem;
  text-align: center;
}

.grand-opening-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: auto;
}

.grand-opening-left,
.grand-opening-right {
  width: 100%;
  text-align: center;
  transition: opacity 0.3s ease;
}

.grand-opening-left h2 {
  white-space: normal;
}

.grand-opening-right p {
  margin: 0;
  color: #000000;
}

/* How It Works Section */
.how-it-works {
  padding: 1.5rem 0 1rem 0;
  background: #F5F5F3;
}

/* Hide carousel dots on desktop */
.how-it-works-carousel-dots {
  display: none;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.how-it-works-card {
  position: relative;
  background: white;
  padding: 2rem 2rem 2rem 4rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-it-works-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.how-it-works-details-link {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: #228B22;
  text-decoration: underline;
  cursor: pointer;
}

.how-it-works-details-link:hover {
  color: #1a6b1a;
}

.card-number {
  position: absolute;
  left: -26px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: #228B22;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  border: 4px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-content h3 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  color: #232628;
}

.card-content p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}


.grand-opening-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  border: 2px solid white;
}

.grand-opening h2 {
  font-size: 2.5rem;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.grand-opening-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.grand-opening-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary {
  background-color: white;
  color: #228B22;
  padding: 0.75rem 1.5rem;
  border: 2px solid white;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
}

.btn-secondary:hover {
  background-color: transparent;
  color: white;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section */
.section {
  padding: 4rem 0;
}

.rental-details {
  background-color: #F5F5F3;
  padding: 1rem 0;
}

@keyframes rental-details-pulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 0 2px rgba(34, 139, 34, 0.25);
  }
  50% {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(34, 139, 34, 0.35);
  }
}

.rental-details-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  border: 2px solid #228B22;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 0 2px rgba(34, 139, 34, 0.2);
  animation: rental-details-pulse 2.5s ease-in-out infinite;
}

.rental-details.rental-dates-set .rental-details-row {
  animation: none;
  border: 1px solid #ddd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.rental-dates-group {
  display: flex;
  flex: 1;
  min-width: 0;
}

.rental-date-field {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 110px;
  border: none;
  border-right: 1px solid #e5e5e5;
  background: #fff;
  padding: 0 0.5rem 0 2.25rem;
  position: relative;
  font-size: 0.9rem;
  color: #232628;
}

.rental-date-field:last-of-type {
  border-right: none;
}

.rental-date-field .rental-date-icon {
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  color: #228B22;
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rental-date-field .rental-date-icon svg {
  width: 1rem;
  height: 1rem;
}

.rental-date-field .rental-date-placeholder {
  position: absolute;
  left: 2.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 0.9rem;
  pointer-events: none;
}

.rental-date-field.has-value .rental-date-placeholder {
  display: none;
}

.rental-date-field input {
  width: 100%;
  min-width: 0;
  border: none;
  padding: 0.5rem 0;
  font-size: inherit;
  color: transparent;
  background: transparent;
  outline: none;
}

/* When field has a value, show the date text */
.rental-date-field.has-value input {
  color: #232628;
}

/* Hide native empty-state text (e.g. "mm/dd/yyyy") so only our placeholder shows - WebKit/Chrome */
.rental-date-field:not(.has-value) input::-webkit-datetime-edit,
.rental-date-field:not(.has-value) input::-webkit-datetime-edit-year-field,
.rental-date-field:not(.has-value) input::-webkit-datetime-edit-month-field,
.rental-date-field:not(.has-value) input::-webkit-datetime-edit-day-field,
.rental-date-field:not(.has-value) input::-webkit-datetime-edit-text {
  color: transparent;
}

.rental-date-field input::placeholder {
  color: transparent;
}

/* Hide the browser's native calendar icon; we use our green icon instead */
.rental-date-field input::-webkit-calendar-picker-indicator,
.rental-date-field input::-webkit-inner-spin-button {
  display: none;
  -webkit-appearance: none;
}

.rental-type-segment {
  display: flex;
  border-left: 1px solid #ddd;
  background: #f9f9f9;
}

.rental-type-segment label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: #666;
  cursor: pointer;
  margin: 0;
  border: none;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

.rental-type-segment label:first-of-type {
  border-right: 1px solid #e5e5e5;
}

.rental-type-segment input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.rental-type-segment label:has(input:checked) {
  background: rgba(34, 139, 34, 0.12);
  color: #228B22;
  font-weight: 600;
}

.rental-details-cta {
  padding: 0.5rem 1.25rem;
  background: #228B22;
  color: white;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.rental-details-cta:hover {
  background: #1a6b1a;
}

.rental-details-clear-dev {
  padding: 0.5rem 0.9rem;
  background: transparent;
  color: #666;
  border: 1px solid #ccc;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 4px;
}

.rental-details-clear-dev:hover {
  background: #f0f0f0;
  color: #333;
}

.categories-section {
  padding-top: 2rem;
}

#services {
  padding-top: 2rem;
}

#why-choose-us {
  background-color: #CD7F32;
  color: white;
  padding-top: 2rem;
}

#why-choose-us .section-title,
#why-choose-us .section-subtitle {
  color: white;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  text-align: left;
  color: #666;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Equipment Grid */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Equipment Grid - Single Column */
.equipment-grid-single-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.equipment-grid > a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.equipment-grid-single-column > a {
  display: block;
  text-decoration: none;
  color: inherit;
  min-width: 0; /* allow grid/flex inside to size correctly */
}

/* Horizontal card layout for single column (only when NOT two-rows) */
.equipment-grid-single-column .equipment-card:not(.equipment-card-two-rows) {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

/* Placeholder: category card two-row grid moved to after .equipment-card base rules so it wins cascade */
.equipment-grid-single-column .equipment-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.equipment-grid-single-column .equipment-card-content h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.equipment-grid-single-column .equipment-card-content p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

.equipment-grid-single-column .equipment-card-pricing-availability {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.equipment-grid-single-column .equipment-card-pricing {
  padding: 1.5rem 1.5rem 1.5rem 0;
  padding-left: 0;
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 0.25rem;
  margin-left: 0;
}

/* Mobile: stack two-row cards vertically below 640px */
@media (max-width: 640px) {
  .equipment-grid-single-column .equipment-card:not(.equipment-card-two-rows) {
    flex-direction: column;
  }
}

.equipment-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.equipment-card.category-card-hidden-unavailable {
  display: none !important;
}

.equipment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.equipment-card img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  background-color: #ffffff;
  padding: 1rem;
}

.equipment-card-content {
  padding: 1.5rem;
}

.equipment-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #222222;
}

.equipment-card p {
  color: #666;
  margin-bottom: 1rem;
}

.equipment-card .btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #F5F5F3;
  color: #222222;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.equipment-card .btn-secondary:hover {
  background-color: #D2B48C;
}

/* Search redirect highlight: briefly highlight the card we scrolled to */
.equipment-card.search-highlight {
  box-shadow: 0 0 0 3px #228B22;
  animation: search-highlight-fade 2.5s ease-out forwards;
}
@keyframes search-highlight-fade {
  0% { box-shadow: 0 0 0 4px #228B22; }
  60% { box-shadow: 0 0 0 3px #228B22; }
  100% { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
}

/* ========== Category page: two-row equipment card ========== */
/* 4 direct children: header | row2: image | specs | pricing. Placement by position so it works even if DOM order/classes differ. */
.equipment-grid-single-column .equipment-card.equipment-card-two-rows {
  display: grid !important;
  grid-template-columns: 320px 1fr 320px;
  grid-template-rows: auto auto;
  grid-template-areas:
    "header header header"
    "image  specs  pricing";
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: visible;
}

/* Place by position (nth-child) so layout is correct regardless of which child has which class */
.equipment-grid-single-column .equipment-card.equipment-card-two-rows > *:nth-child(1) {
  grid-area: header;
}
.equipment-grid-single-column .equipment-card.equipment-card-two-rows > *:nth-child(2) {
  grid-area: image;
}
.equipment-grid-single-column .equipment-card.equipment-card-two-rows > *:nth-child(3) {
  grid-area: specs;
}
.equipment-grid-single-column .equipment-card.equipment-card-two-rows > *:nth-child(4) {
  grid-area: pricing;
}

/* When only 2 direct children (anchor wrapping header+img+key-stats, and pricing): header spans all 3 cols, row 2 = image | specs | pricing */
.equipment-grid-single-column .equipment-card.equipment-card-two-rows:has(> *:nth-child(2)):not(:has(> *:nth-child(3))) {
  grid-template-rows: auto minmax(200px, auto);
}
/* Use subgrid so row 2 is shared with the card – pricing and image/specs then share the same row line */
/* !important needed: the <a> has inline style="display: block" in category.php which would prevent the inner grid */
.equipment-grid-single-column .equipment-card.equipment-card-two-rows:has(> *:nth-child(2)):not(:has(> *:nth-child(3))) > *:nth-child(1) {
  grid-column: 1 / 4;
  grid-row: 1 / 3;
  display: grid !important;
  grid-template-columns: minmax(280px, 320px) 1fr 320px;
  grid-template-rows: subgrid;
  grid-template-areas:
    "header header header"
    "image  specs  .";
  gap: 1.5rem;
  align-items: start;
  min-width: 0;
}
.equipment-grid-single-column .equipment-card.equipment-card-two-rows:has(> *:nth-child(2)):not(:has(> *:nth-child(3))) > *:nth-child(1) > .equipment-card-header {
  grid-area: header;
  grid-column: 1 / -1; /* span all columns so name + description are full width */
}
.equipment-grid-single-column .equipment-card.equipment-card-two-rows:has(> *:nth-child(2)):not(:has(> *:nth-child(3))) > *:nth-child(1) > img {
  grid-area: image;
  grid-column: 1;
  grid-row: 2;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 320px;
  height: auto;
  object-fit: contain;
  background-color: #ffffff;
  padding: 1rem;
}
.equipment-grid-single-column .equipment-card.equipment-card-two-rows:has(> *:nth-child(2)):not(:has(> *:nth-child(3))) > *:nth-child(1) > .equipment-card-key-stats {
  grid-area: specs;
  grid-column: 2;
  grid-row: 2;
  padding: 1.5rem 1.5rem 1.5rem 0;
  background-color: #ffffff;
  border-radius: 8px;
}
/* Pricing in row 2 col 3: reset grid-area (default gives it "image") and pin to top of row */
.equipment-grid-single-column .equipment-card.equipment-card-two-rows:has(> *:nth-child(2)):not(:has(> *:nth-child(3))) > *:nth-child(2) {
  grid-area: unset;
  grid-column: 3;
  grid-row: 2;
  align-self: start !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  min-width: 0;
  overflow: visible;
  z-index: 1;
  position: relative;
}
/* Align pricing content with image/key-stats row: same top padding as key-stats (1.5rem) */
.equipment-grid-single-column .equipment-card.equipment-card-two-rows:has(> *:nth-child(2)):not(:has(> *:nth-child(3))) > *:nth-child(2) > .equipment-card-pricing {
  padding-top: 1.5rem;
}

/* When only 3 direct children (header, wrapper with img+key-stats, pricing): row2 = wrapper spans 2 cols | pricing */
.equipment-grid-single-column .equipment-card.equipment-card-two-rows:has(> *:nth-child(3)):not(:has(> *:nth-child(4))) {
  grid-template-areas:
    "header header header"
    "image  image  pricing";
}
/* !important: the <a> has inline style="display: block" in category.php which would prevent the inner grid */
.equipment-grid-single-column .equipment-card.equipment-card-two-rows:has(> *:nth-child(3)):not(:has(> *:nth-child(4))) > *:nth-child(2) {
  grid-area: image;
  display: grid !important;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
  align-items: start;
  min-height: 0;
}
/* Fixed-size image container so attachment card layout never breaks with large images */
.category-attachment-card .category-attachment-card-image-wrap {
  grid-column: 1;
  width: 300px;
  min-width: 0;
  height: 280px;
  overflow: hidden;
  background-color: #ffffff;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-attachment-card .category-attachment-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.equipment-grid-single-column .equipment-card.equipment-card-two-rows:has(> *:nth-child(3)):not(:has(> *:nth-child(4))) > *:nth-child(2) > .equipment-card-key-stats {
  grid-column: 2;
  padding: 1.5rem 1.5rem 1.5rem 0;
  background-color: #ffffff;
  border-radius: 8px;
}
.equipment-grid-single-column .equipment-card.equipment-card-two-rows:has(> *:nth-child(3)):not(:has(> *:nth-child(4))) > *:nth-child(3) {
  grid-area: pricing;
}

/* Typography and spacing (shared) */
.equipment-grid-single-column .equipment-card.equipment-card-two-rows .equipment-card-header h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #222222;
}
.equipment-grid-single-column .equipment-card.equipment-card-two-rows .equipment-card-header p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}
.equipment-grid-single-column .equipment-card.equipment-card-two-rows > .equipment-card-header {
  padding-bottom: 1rem;
}

.equipment-grid-single-column .equipment-card.equipment-card-two-rows > img,
.equipment-grid-single-column .equipment-card.equipment-card-two-rows > * > img {
  width: 300px;
  min-width: 300px;
  max-width: 100%;
  max-height: 280px;
  height: auto;
  object-fit: contain;
  object-position: center;
  background-color: #ffffff;
  padding: 1rem;
}

.equipment-grid-single-column .equipment-card.equipment-card-two-rows > .equipment-card-key-stats {
  padding: 1.5rem 1.5rem 1.5rem 0;
  background-color: #ffffff;
  border-radius: 8px;
}

.equipment-grid-single-column .equipment-card.equipment-card-two-rows > .equipment-card-pricing-availability,
.equipment-grid-single-column .equipment-card.equipment-card-two-rows .equipment-card-pricing-availability {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.equipment-grid-single-column .equipment-card.equipment-card-two-rows .equipment-card-pricing {
  padding: 1.5rem 1.5rem 1.5rem 0;
  padding-left: 0;
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 0.25rem;
  margin-left: 0;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  .equipment-grid-single-column .equipment-card.equipment-card-two-rows {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "header"
      "image"
      "specs"
      "pricing";
    gap: 1rem;
    padding: 1rem;
  }

  .equipment-grid-single-column .equipment-card.equipment-card-two-rows:has(> *:nth-child(3)):not(:has(> *:nth-child(4))) {
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "header"
      "image"
      "pricing";
  }

  /* 2-child: anchor stacks (header, image, specs); pricing in own row below */
  .equipment-grid-single-column .equipment-card.equipment-card-two-rows:has(> *:nth-child(2)):not(:has(> *:nth-child(3))) {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "main"
      "pricing";
  }
  .equipment-grid-single-column .equipment-card.equipment-card-two-rows:has(> *:nth-child(2)):not(:has(> *:nth-child(3))) > *:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    display: grid !important; /* override inline display:block so inner grid stacks header | image | specs */
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "header"
      "image"
      "specs";
    min-width: 0;
  }
  .equipment-grid-single-column .equipment-card.equipment-card-two-rows:has(> *:nth-child(2)):not(:has(> *:nth-child(3))) > *:nth-child(1) > .equipment-card-header {
    grid-area: header;
    grid-column: 1 / -1;
  }
  .equipment-grid-single-column .equipment-card.equipment-card-two-rows:has(> *:nth-child(2)):not(:has(> *:nth-child(3))) > *:nth-child(1) > img {
    grid-area: image;
    width: 100%;
    min-width: 100%;
    height: 280px;
  }
  .equipment-grid-single-column .equipment-card.equipment-card-two-rows:has(> *:nth-child(2)):not(:has(> *:nth-child(3))) > *:nth-child(1) > .equipment-card-key-stats {
    grid-area: specs;
    grid-column: 1;
  }
  .equipment-grid-single-column .equipment-card.equipment-card-two-rows:has(> *:nth-child(2)):not(:has(> *:nth-child(3))) > *:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .equipment-grid-single-column .equipment-card.equipment-card-two-rows > .equipment-card-header,
  .equipment-grid-single-column .equipment-card.equipment-card-two-rows .equipment-card-header {
    padding-bottom: 0.75rem;
  }

  .equipment-grid-single-column .equipment-card.equipment-card-two-rows > img,
  .equipment-grid-single-column .equipment-card.equipment-card-two-rows > * > img {
    width: 100%;
    min-width: 100%;
    height: 280px;
  }

  .equipment-grid-single-column .equipment-card.equipment-card-two-rows:has(> *:nth-child(3)):not(:has(> *:nth-child(4))) > *:nth-child(2) {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    grid-template-areas: "img" "specs";
  }
  .equipment-grid-single-column .equipment-card.equipment-card-two-rows:has(> *:nth-child(3)):not(:has(> *:nth-child(4))) > *:nth-child(2) > .category-attachment-card-image-wrap,
  .equipment-grid-single-column .equipment-card.equipment-card-two-rows:has(> *:nth-child(3)):not(:has(> *:nth-child(4))) > *:nth-child(2) > img {
    grid-area: img;
  }
  .equipment-grid-single-column .equipment-card.equipment-card-two-rows:has(> *:nth-child(3)):not(:has(> *:nth-child(4))) > *:nth-child(2) > .equipment-card-key-stats {
    grid-area: specs;
    grid-column: 1;
  }

  /* Align key-stats and pricing left edge with Check Availability form on mobile */
  .equipment-grid-single-column .equipment-card.equipment-card-two-rows > .equipment-card-key-stats,
  .equipment-grid-single-column .equipment-card.equipment-card-two-rows .equipment-card-key-stats {
    padding-left: 0;
  }
  .equipment-grid-single-column .equipment-card.equipment-card-two-rows .equipment-card-pricing-availability,
  .equipment-grid-single-column .equipment-card.equipment-card-two-rows .equipment-card-pricing {
    padding-left: 0;
    margin-left: 0;
  }

  /* Keep daily, weekly, monthly on one line on mobile: tighter gap and min-width */
  .equipment-grid-single-column .equipment-card.equipment-card-two-rows .equipment-card-pricing > div {
    gap: 0.25rem;
  }
  .equipment-grid-single-column .equipment-card.equipment-card-two-rows .equipment-card-pricing > div > div {
    min-width: 3rem !important;
  }
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.category-grid > a {
  display: block;
  height: 100%;
}

.category-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  border: 2px solid transparent;
  min-height: 320px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-card:hover {
  border-color: #228B22;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.category-card h3 {
  font-size: 1.2rem;
  color: #222222;
  margin-bottom: 0.5rem;
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.category-icon img {
  background: transparent;
  border-radius: 8px;
}

/* Stats Section */
/* Stats Section */
.stats {
  display: none;
  background-color: #228B22;
  color: white;
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  line-height: 1.2;
  color: #000000;
  font-weight: bold;
}

.stat-item p {
  font-size: 1.1rem;
  line-height: 1.3;
  color: #000000;
  font-weight: 500;
}

/* Desktop view - show grid */
.stats-desktop {
  display: grid;
}

/* Mobile view - hidden by default */
.stats-mobile {
  display: none;
}

/* Mobile Carousel Styles */
.stats-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  gap: 0;
}

.stats-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.stats-carousel .stat-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
  text-align: center;
  padding: 0 1rem;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.carousel-dots .dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.carousel-dots .dot.active {
  background-color: white;
  width: 12px;
  height: 12px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .stats-desktop {
    display: none;
  }
  
  .stats-mobile {
    display: block;
  }
  
  .stat-item h3 {
    font-size: 1.3rem;
  }
  
  .stat-item p {
    font-size: 1rem;
  }
}

/* CTA Section */
.cta-section {
  background: white;
  color: #222222;
  padding: 2rem 0 4rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
}


.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #232628;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn-outline {
  border-color: #006400;
  color: #006400;
}

.cta-section .btn-outline:hover {
  background: #006400;
  color: white;
}

.cta-section .btn-primary {
  background-color: #006400;
}

.cta-section .btn-primary:hover {
  background-color: #004d00;
}

.btn-outline {
  padding: 1rem 2rem;
  border: 2px solid white;
  background: transparent;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
}

.btn-outline:hover {
  background: white;
  color: #222222;
}

/* Footer */
.footer {
  background-color: #222222;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #228B22;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #006400;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
  color: white;
}

.footer-bottom a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom a:visited {
  color: white;
}

.footer-bottom a:hover,
.footer-bottom a:visited:hover {
  color: #006400;
}

/* Search Results Page */
.search-result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  html {
    scroll-padding: 200px 0 0 0;
  }

  .header-top {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    align-items: center;
    gap: 0.5rem 1rem;
  }

  /* Logo link grows to push cart and menu right; order keeps row as logo | cart | menu */
  .header-top > a:first-of-type {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
  }

  .logo {
    order: 1;
    grid-column: unset;
  }

  .cart-icon {
    order: 2;
    grid-column: unset;
    flex: 0 0 auto;
  }

  .header-menu-toggle {
    display: none;
  }

  .how-it-works {
    padding: 1.5rem 0 1rem 0;
  }

  /* Rental date form: smaller on mobile so it fits and "Start Renting" is not cut off */
  .rental-details-row {
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.25rem;
  }
  .rental-dates-group {
    flex: 1 1 100%;
    min-width: 0;
  }
  .rental-date-field {
    min-width: 0;
    padding: 0.25rem 0.35rem 0.25rem 1.75rem;
    font-size: 0.8rem;
  }
  .rental-date-field .rental-date-icon {
    left: 0.4rem;
  }
  .rental-date-field .rental-date-icon svg {
    width: 0.875rem;
    height: 0.875rem;
  }
  .rental-date-field .rental-date-placeholder {
    left: 1.65rem;
    font-size: 0.8rem;
  }
  .rental-date-field input {
    padding: 0.35rem 0;
    font-size: 0.8rem;
  }
  .rental-details-cta {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .how-it-works-grid {
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0;
    margin-top: 0;
    padding: 0;
  }

  .how-it-works-grid::-webkit-scrollbar {
    display: none;
  }
  
  .how-it-works-card {
    flex: 0 0 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    min-width: 100%;
    padding: 1.5rem 1.5rem 1.5rem 3rem;
    box-sizing: border-box;
  }

  /* Show carousel dots on mobile */
  .how-it-works-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0 1rem 0;
    margin-top: 0;
    background-color: white;
  }

  .how-it-works-carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
    padding: 0;
  }

  .how-it-works-carousel-dots .dot.active {
    background-color: #228B22;
  }
  
  .card-number {
    left: 0.75rem;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    border-width: 3px;
  }
  
  .card-content {
    padding-left: 0.75rem;
  }
  
  .card-content h3 {
    font-size: 1.25rem;
  }
  
  .card-content p {
    font-size: 0.95rem;
  }

  .logo {
    font-size: 1.3rem;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: flex-start;
  }

  .cart-icon {
    font-size: 1.5rem;
    order: 2;
    align-self: flex-start;
    padding-top: 0.25rem;
  }

  .header-menu-toggle {
    display: none;
  }

  .header-search {
    position: static;
    left: auto;
    transform: none;
    order: 4;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-top: 0.5rem;
    flex-basis: 100%;
    grid-column: unset;
    justify-self: unset;
  }

  /* Same nav as desktop: always visible, horizontal with wrap */
  .header-nav-section {
    display: block;
    position: relative;
    padding: 0.4rem 0 0.75rem 0;
    background: transparent;
    border: none;
  }

  .hero {
    display: none;
  }

  .nav-menu {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    gap: 0.5rem 0.75rem;
    justify-content: center;
    margin: 0;
    padding: 0;
    position: static;
    min-width: 0;
    box-shadow: none;
  }

  .nav-menu li {
    border-bottom: none;
  }

  .nav-menu a {
    display: inline-block;
    padding: 0.35rem 0;
    text-align: left;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .hero-menu-toggle {
    display: none;
  }

  .grand-opening {
    padding: 1.5rem 0.5rem;
  }

  .grand-opening-content {
    padding: 0;
    justify-content: center;
    text-align: center;
    min-height: auto;
  }

  .grand-opening-left h2 {
    white-space: nowrap;
    word-wrap: normal;
    text-align: center;
  }

  .grand-opening h2 {
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 0;
  }

  .grand-opening-right p {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .grand-opening-text {
    font-size: 1rem;
  }
  
  .grand-opening-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .grand-opening-cta .btn-primary,
  .grand-opening-cta .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .equipment-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

/* Equipment Detail Page Responsive */
@media (max-width: 768px) {
  .equipment-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* Specifications & Documentation Grid */
.specs-documentation-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Equipment Image & Specs Grid */
.equipment-image-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

/* Equipment Detail Content Grid (Image, Specs, Pricing) */
.equipment-detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Equipment Detail Two Column Layout */
.equipment-detail-two-column-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Desktop only: left column order = Image, Attachments, Batteries, Specifications */
@media (min-width: 769px) {
  .equipment-detail-left-column {
    display: flex;
    flex-direction: column;
  }
  .equipment-detail-left-column .equipment-detail-image { order: 0; }
  .equipment-detail-left-column .equipment-detail-free-attachments { order: 1; }
  .equipment-detail-left-column .equipment-detail-available-attachments { order: 2; }
  .equipment-detail-left-column .equipment-detail-included-batteries { order: 3; }
  .equipment-detail-left-column .equipment-detail-additional-batteries { order: 4; }
  .equipment-detail-left-column .equipment-detail-specs { order: 5; }
}

/* Default margins for desktop */
.equipment-detail-image {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

/* Constrain detail page image so large uploads fit the layout; center so any aspect ratio looks good */
.equipment-detail-image img {
  max-width: 100%;
  max-height: min(500px, 60vh);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.equipment-detail-specs {
  margin-bottom: 2rem;
  padding-top: 2.5rem;
}

.equipment-detail-key-specs {
  margin-bottom: 2rem;
}

.equipment-detail-pricing {
  margin-bottom: 2rem;
}

.equipment-detail-availability {
  margin-bottom: 2rem;
}

.equipment-detail-attachments {
  margin-bottom: 2rem;
}

/* Green border on selected free attachment card */
.equipment-detail-free-attachment-card:has(.equipment-detail-free-attachment-radio:checked) {
  border-color: #228B22 !important;
}

.attachment-detail-free-attachment-card:has(.attachment-detail-free-attachment-radio:checked) {
  border-color: #228B22 !important;
}

/* Hide mobile specs card on desktop */
.mobile-only-card {
  display: none;
}

/* Hide carousel dots on desktop */
.equipment-detail-carousel-dots {
  display: none;
}

/* On desktop, carousel should just display normally (not as horizontal scroll) */
.equipment-detail-carousel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-x: visible;
}

@media (max-width: 768px) {
  .specs-documentation-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .equipment-image-specs-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .equipment-detail-content-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .equipment-detail-two-column-grid {
    grid-template-columns: 1fr;
    gap: 0;
    display: block;
  }

  /* Show mobile specs card, hide desktop specs */
  .mobile-only-card {
    display: block;
  }

  /* Container padding for carousel */
  .how-it-works .container {
    padding: 0;
    max-width: 100%;
  }
  
  #specs-table {
    display: none;
  }

  /* Right column should constrain carousel */
  .equipment-detail-right-column {
    display: block;
    width: 100%;
  }

  /* Carousel for mobile cards */
  .equipment-detail-carousel {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    gap: 1rem;
    width: 100%;
  }

  .equipment-detail-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  /* Equipment detail page only: match width of image/attachment cards above */
  .equipment-detail-two-column-grid .equipment-detail-right-column .equipment-detail-card {
    flex: 0 0 100% !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
    box-sizing: border-box;
  }

  .equipment-detail-two-column-grid .equipment-detail-right-column .equipment-detail-key-specs.equipment-detail-card {
    margin-bottom: 1.5rem !important;
  }

  /* Show carousel dots on mobile */
  .equipment-detail-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
  }

  .equipment-detail-carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
    padding: 0;
  }

  .equipment-detail-carousel-dots .dot.active {
    background-color: #228B22;
  }

  /* Remove all default ordering since carousel handles it */
  .equipment-detail-image {
    margin-bottom: 0.5rem;
  }

  .equipment-detail-left-column,
  .equipment-detail-right-column {
    display: block;
  }

  /* Attachments section - mobile responsive */
  .equipment-detail-attachments > div > div {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .equipment-detail-attachments > div > div > div:first-child {
    width: 100% !important;
    height: 200px !important;
  }
}

/* React DatePicker Styling */
.date-picker-wrapper {
  width: 100%;
}

.date-picker-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #D2B48C;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
}

.date-picker-input:focus {
  outline: none;
  border-color: #228B22;
  box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.1);
}

.react-datepicker__input-container input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #D2B48C;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
}

.react-datepicker__input-container input:focus {
  outline: none;
  border-color: #228B22;
  box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.1);
}

.react-datepicker {
  font-family: inherit;
  border: 1px solid #D2B48C;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.react-datepicker__header {
  background-color: #228B22;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding-top: 0.8rem;
}

.react-datepicker__current-month,
.react-datepicker__day-name {
  color: white;
  font-weight: 600;
}

.react-datepicker__day--selected,
.react-datepicker__day--in-selecting-range,
.react-datepicker__day--in-range {
  background-color: #228B22;
  color: white;
}

.react-datepicker__day--keyboard-selected {
  background-color: rgba(255, 165, 0, 0.3);
  color: #232628;
}

.react-datepicker__day:hover {
  background-color: rgba(255, 165, 0, 0.2);
}

.react-datepicker__day--range-start,
.react-datepicker__day--range-end {
  background-color: #8B4513 !important;
  color: white !important;
  font-weight: 600;
}

.react-datepicker__close-icon::after {
  background-color: #999;
  font-size: 1.2rem;
}

.react-datepicker__close-icon:hover::after {
  background-color: #228B22;
}

/* Add to cart modal */
.add-to-cart-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.add-to-cart-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.add-to-cart-modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
}

.add-to-cart-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #eee;
}

.add-to-cart-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #222;
}

.add-to-cart-modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 0 0.25rem;
}

.add-to-cart-modal-close:hover {
  color: #222;
}

.add-to-cart-modal-body {
  padding: 1.25rem 1.5rem;
}

.add-to-cart-modal-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.add-to-cart-modal-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #ccc;
}

.add-to-cart-modal-item-details {
  flex: 1;
  min-width: 0;
}

.add-to-cart-modal-name {
  font-weight: 600;
  color: #222;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.add-to-cart-modal-price-row {
  margin-top: 0.25rem;
}

.add-to-cart-modal-price {
  font-weight: 700;
  color: #228B22;
  font-size: 1rem;
}

.add-to-cart-modal-disclaimer {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.add-to-cart-modal-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid #eee;
}

.add-to-cart-modal-btn {
  display: block;
  text-align: center;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid #228B22;
  box-sizing: border-box;
}

.add-to-cart-modal-btn-primary {
  background: #228B22;
  color: white;
  border-color: #228B22;
}

.add-to-cart-modal-btn-primary:hover {
  background: #1a6b1a;
  color: white;
  border-color: #1a6b1a;
}

.add-to-cart-modal-btn-secondary {
  background: white;
  color: #228B22;
}

.add-to-cart-modal-btn-secondary:hover {
  background: rgba(34, 139, 34, 0.08);
}

/* Cart page */
.cart-section .section-title {
  margin-bottom: 1.5rem;
}

.cart-two-columns {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.cart-column-left {
  flex: 1;
  min-width: 0;
}

.cart-column-right {
  width: 320px;
  flex-shrink: 0;
}

.cart-column-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.cart-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.cart-title-row .cart-title-inline {
  margin: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.cart-title-dates-line {
  margin: 0;
  font-size: 1rem;
  text-align: right;
  flex-shrink: 0;
}

.cart-title-dates-line .cart-title-dates {
  font-weight: 700;
  color: #444;
}

.cart-title-dates-line .cart-title-dates + .cart-title-dates {
  margin-left: 1rem;
}

.cart-title-divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 0.75rem 0 1rem 0;
}

.cart-reservation-disclaimer {
  font-size: 1.05rem;
  line-height: 1.5;
  color: #444;
  margin: 0 0 1rem 0;
}

.cart-order-summary {
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  font-size: 0.95rem;
}

.cart-summary-label {
  color: #232628;
}

.cart-summary-value {
  font-weight: 600;
  color: #222;
}

.cart-summary-total {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #ddd;
  font-size: 1.1rem;
}

.cart-summary-total .cart-summary-label {
  font-weight: 700;
}

.cart-summary-total .cart-total-amount {
  font-size: 1.25rem;
  color: #228B22;
}

@media (max-width: 768px) {
  .cart-two-columns {
    flex-direction: column;
  }
  .cart-column-right {
    width: 100%;
  }
  .cart-section .cart-column-title {
    font-size: 1.2rem;
  }
  .cart-item-name,
  .cart-item-price {
    font-size: 0.7rem;
  }
  .cart-item-dates,
  .cart-item-qty,
  .cart-item-free-badge {
    font-size: 0.8rem;
  }
  .cart-item-qty-label,
  .cart-item-free-attachment-label {
    font-size: 0.75rem;
  }
  .cart-item-remove {
    font-size: 0.75rem;
  }
  .cart-item-qty-controls .cart-item-qty-input {
    width: 2.75rem;
    min-width: 2.75rem;
    font-size: 0.8rem;
    padding: 0.2rem 0.15rem;
  }
  .cart-item-qty-btn {
    width: 2.5rem;
    min-height: 2.5rem;
    font-size: 1rem;
  }
  .cart-item-free-attachment {
    font-size: 0.8rem;
  }
  .cart-item-free-attachment-select,
  .cart-item-free-attachment-select option {
    font-size: 0.7rem;
  }
  .cart-additional-select,
  .cart-additional-select option {
    font-size: 0.7rem;
  }
  .cart-item-image {
    width: 60px;
    height: 60px;
  }
  .cart-order-summary .cart-summary-label,
  .cart-order-summary .cart-summary-value {
    font-size: 0.8rem;
  }
  .cart-summary-total .cart-total-amount {
    font-size: 1rem;
  }
  .cart-disclaimer,
  .cart-additional-attachments-intro {
    font-size: 0.75rem;
  }
  .cart-additional-attachments-title {
    font-size: 1rem;
  }
  .cart-additional-label {
    font-size: 0.75rem;
  }
  .cart-additional-row {
    min-width: 0;
  }
  .cart-additional-select-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    min-width: 0;
  }
  .cart-additional-select {
    font-size: 0.7rem;
    padding: 0.35rem 0.4rem;
    max-width: 100%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .cart-additional-select-wrap .cart-btn-sm,
  .cart-additional-select-wrap .cart-btn-primary {
    align-self: flex-start;
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
  }
  .cart-btn,
  .cart-btn-primary,
  .cart-btn-secondary {
    font-size: 0.8rem;
    padding: 0.5rem 0.85rem;
  }
  .cart-btn-sm {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }
  .cart-empty-message {
    font-size: 1.1rem;
  }
  .cart-empty p {
    font-size: 0.9rem;
  }
}

.cart-empty {
  text-align: center;
  padding: 2rem 1rem;
}

.cart-empty-message {
  font-size: 1.25rem;
  color: #232628;
  margin-bottom: 0.5rem;
}

.cart-empty p {
  margin-bottom: 1rem;
  color: #666;
}

.cart-empty a {
  color: #228B22;
  text-decoration: underline;
}

.cart-empty .cart-btn,
.cart-empty .cart-btn-primary {
  margin-top: 0.5rem;
  display: inline-block;
  text-decoration: none;
}
.cart-empty .cart-btn-primary {
  background: #228B22;
  color: white;
  border: 1px solid #228B22;
}
.cart-empty .cart-btn-primary:hover {
  background: #1a6b1a;
  color: white;
}

.cart-checkout-success {
  padding: 2rem 0;
  max-width: 36rem;
}
.cart-checkout-success .cart-column-title {
  margin-bottom: 0.75rem;
}
.cart-checkout-success p {
  margin-bottom: 1rem;
  color: #232628;
  border-color: #1a6b1a;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.5rem;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.cart-item:first-child {
  padding-top: 0;
}

.cart-item-image-wrap {
  flex-shrink: 0;
}

.cart-item-middle {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #ddd;
}

.cart-item-image-placeholder {
  background: #f0f0f0;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  display: block;
  font-weight: 600;
  color: #222;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  text-decoration: none;
}

.cart-item-name:hover {
  color: #228B22;
  text-decoration: underline;
}

.cart-item-dates,
.cart-item-qty {
  font-size: 0.9rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
}
.cart-item-qty {
  flex-wrap: wrap;
}
.cart-item-qty-msg {
  flex-basis: 100%;
  width: 100%;
  margin: 0.35rem 0 0 0;
}
.cart-item-qty-label {
  margin: 0;
  font-weight: 500;
  color: #232628;
}
.cart-item-qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid #D2B48C;
  border-radius: 4px;
  background: #fff;
}
.cart-item-qty-btn {
  flex-shrink: 0;
  width: 2rem;
  min-height: 2rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: #f5f5f5;
  color: #232628;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cart-item-qty-btn:hover {
  background: #e8e8e8;
  color: #228B22;
}
.cart-item-qty-btn:active {
  background: #ddd;
}
.cart-item-qty-controls .cart-item-qty-input {
  width: 3rem;
  min-width: 3rem;
  border: none;
  border-left: 1px solid #D2B48C;
  border-right: 1px solid #D2B48C;
  border-radius: 0;
  text-align: center;
}
.cart-item-qty-input {
  width: 3.5rem;
  padding: 0.25rem 0.35rem;
  font-size: 0.9rem;
  border: 1px solid #D2B48C;
  border-radius: 4px;
  color: #232628;
  background: #fff;
}
.cart-item-qty-input:focus {
  outline: none;
  border-color: #228B22;
  box-shadow: 0 0 0 2px rgba(34, 139, 34, 0.2);
}
.cart-item-qty-input::-webkit-inner-spin-button,
.cart-item-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cart-item-qty-input {
  -moz-appearance: textfield;
}

.cart-item-free-attachment {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.cart-item-free-attachment-label {
  display: block;
  color: #232628;
  margin-bottom: 0.25rem;
}

.cart-item-free-attachment-select {
  width: 100%;
  max-width: 260px;
  padding: 0.35rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  background: #fff;
}

.cart-free-attachment-message {
  font-weight: 500;
}

#cart-checkout-btn:disabled,
.cart-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.cart-item-free-attachment-row .cart-item-image-wrap,
.cart-item-free-attachment-row .cart-item-image,
.cart-item-free-attachment-row .cart-item-image-placeholder {
  background: #fff;
}

.cart-item-free-attachment-row .cart-item-details .cart-item-name {
  font-weight: 600;
  color: #232628;
}

.cart-item-free-badge {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.15rem;
}

.cart-item-price-free {
  color: #228B22;
  font-weight: 600;
}

.cart-item-right {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.cart-item-price {
  font-weight: 700;
  color: #228B22;
  font-size: 1.1rem;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #666;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.cart-item-remove:hover {
  color: #c00;
}

.cart-summary {
  padding: 1.25rem 0;
  border-top: 2px solid #e5e5e5;
  max-width: 400px;
  margin-left: auto;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cart-total-label {
  color: #232628;
}

.cart-total-amount {
  color: #228B22;
  font-size: 1.35rem;
}

.cart-additional-attachments {
  padding-top: 1rem;
}

.cart-additional-attachments-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 0.35rem 0;
}

.cart-additional-attachments-intro {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 0.75rem 0;
}

.cart-additional-attachments-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-additional-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cart-additional-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

.cart-additional-select-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.cart-additional-select {
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0.5rem;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.cart-btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.cart-disclaimer {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-btn {
  display: block;
  text-align: center;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid #228B22;
  box-sizing: border-box;
}

.cart-btn-primary {
  background: #228B22;
  color: white;
  border-color: #228B22;
}

.cart-btn-primary:hover {
  background: #1a6b1a;
  color: white;
  border-color: #1a6b1a;
}

.cart-btn-secondary {
  background: white;
  color: #228B22;
}

.cart-btn-secondary:hover {
  background: rgba(34, 139, 34, 0.08);
  color: #228B22;
}

/* Legal pages (Privacy, Terms) */
.legal-page {
  padding: 2rem 0 3rem;
  background: #f9f9f9;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #222222;
}

.legal-subtitle {
  font-size: 1rem;
  color: #232628;
  margin-bottom: 2rem;
}

.legal-updated {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 3rem;
}

.legal-content section {
  margin-bottom: 2.5rem;
}

.legal-content section h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #222222;
}

.legal-content section h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #333;
  font-weight: 600;
}

.legal-content section p,
.legal-content section li {
  line-height: 1.8;
  color: #333;
}

.legal-content section p {
  margin-bottom: 1rem;
}

.legal-content section ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content section a {
  color: #228B22;
}

.legal-content section a:hover {
  text-decoration: underline;
}

/* Category: Hide unavailable equipment toggle */
.category-hide-unavailable-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.category-hide-unavailable-slider {
  display: inline-block;
  width: 2.25rem;
  height: 1.2rem;
  background: #228B22;
  border-radius: 1.2rem;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.category-hide-unavailable-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1rem;
  height: 1rem;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.category-hide-unavailable-checkbox:not(:checked) + .category-hide-unavailable-slider {
  background: #999;
}

.category-hide-unavailable-checkbox:not(:checked) + .category-hide-unavailable-slider::after {
  transform: translateX(1.05rem);
}

.category-hide-unavailable-label {
  position: relative;
}

/* Category: Attachment equipment filter buttons */
.category-attachment-filter-btn {
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  background: #e8e8e6;
  border: 1px solid #ccc;
  border-radius: 2rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.category-attachment-filter-btn:hover {
  background: #ddd;
  border-color: #999;
}

.category-attachment-filter-btn.active {
  background: #228B22;
  color: #fff;
  border-color: #228B22;
}

.category-attachment-filter-btn.active:hover {
  background: #1e7a1e;
  border-color: #1e7a1e;
}

/* Attachment filter: hide cards that don't match the selected equipment type */
.category-attachment-card.category-attachment-card-hidden-by-filter {
  display: none !important;
}

/* Attachment cards: show "Enter rental details" when no date range selected */
.category-attachment-card .category-no-dates-message {
  display: block;
}
body.category-has-rental-dates .category-attachment-card .category-no-dates-message {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

