/* Responsive layout for homepage cards and hero section */
@media (max-width: 900px) {
  .cardNav,
  .helperNav {
    flex-direction: column !important;
    align-items: stretch;
    gap: 0.75em;
  }
  .navCard {
    width: 100%;
    margin: 0;
    font-size: 1.1em;
  }
  .hero {
    padding: 32px 1em;
  }
  .hero h1,
  .hero h2,
  .hero .hero-heading {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1.05rem;
  }
  .homepage-section {
    padding: 2em 1em;
  }
}

/* Tablet and landscape mobile - 2 column grid */
@media (min-width: 768px) and (max-width: 1200px) {
  .cardNav,
  .helperNav {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
  }

  .navCard {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 600px) {
  .cardNav,
  .helperNav {
    flex-direction: column !important;
    align-items: stretch;
    gap: 0.5em;
  }
  .navCard {
    width: 100%;
    font-size: 1em;
    padding: 1em 0.75em;
    min-height: 44px;
    margin: 0;
  }
  .navCardIcon {
    font-size: 1.3em;
    margin-bottom: 0.3em;
  }
  .hero {
    padding: 18px 1em;
  }
  .hero h1,
  .hero h2,
  .hero .hero-heading {
    font-size: 1.3rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .homepage-section {
    padding: 1.5em 1em;
  }
  .featured-carousel {
    padding: 0 1em;
  }
}

/* Ultra-small phones (iPhone SE, small Android) */
@media (max-width: 374px) {
  /* Hero Section */
  .hero {
    padding: 15px 1em !important;
  }
  .hero h1,
  .hero h2,
  .hero .hero-heading {
    font-size: 1.1rem !important;
    margin-bottom: 12px;
    line-height: 1.3;
  }
  .hero p {
    font-size: 0.85rem !important;
    line-height: 1.4;
    margin-bottom: 20px;
  }
  .hero-btn {
    padding: 10px 20px !important;
    font-size: 0.95rem !important;
    min-height: 44px;
  }
  .hero-actions {
    gap: 0.6em !important;
    margin-top: 1.5em !important;
  }

  /* Featured Carousel */
  .featured-carousel-cell {
    height: 360px !important;
  }
  .featured-carousel {
    padding: 0 15px !important;
  }
  .featured-card-content {
    padding: 0.6rem 0.7rem;
  }
  .featured-card-botname {
    font-size: 0.85rem;
  }
  .featured-card-commonname {
    font-size: 0.7rem;
  }
  .featured-card-status {
    font-size: 0.55rem;
    padding: 0.15rem 0.4rem;
  }

  /* Section Headers */
  .section-title {
    font-size: 1.2rem !important;
  }
  .section-subtitle {
    font-size: 0.9rem;
  }
  .homepage-section {
    padding: 1.2em 1em !important;
  }

  /* Navigation Cards */
  .cardNav,
  .helperNav {
    flex-direction: column !important;
    gap: 0.4em !important;
  }
  .navCard {
    font-size: 0.95em !important;
    padding: 0.9em 0.7em !important;
  }
  .navCardIcon {
    font-size: 1.2em !important;
  }
}

/* Small phones (iPhone 11/12/13 standard) */
@media (min-width: 375px) and (max-width: 390px) {
  /* Hero Section */
  .hero {
    padding: 18px 1em;
  }
  .hero h1,
  .hero h2,
  .hero .hero-heading {
    font-size: 1.4rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .hero-btn {
    padding: 12px 24px;
    font-size: 1rem;
    min-height: 44px;
  }

  /* Featured Carousel */
  .featured-carousel-cell {
    height: 400px;
  }
  .featured-carousel {
    padding: 0 15px;
  }
  .featured-carousel .flickity-button {
    display: block;
    width: 36px;
    height: 36px;
  }

  /* Section Headers */
  .homepage-section {
    padding: 1.3em 1em;
  }
  .section-title {
    font-size: 1.35rem;
  }

  /* Navigation Cards */
  .cardNav,
  .helperNav {
    flex-direction: column !important;
    gap: 0.5em;
  }
  .navCard {
    padding: 1em 0.8em;
  }
}

/* Medium phones (iPhone 12/13 Pro, Pro Max) */
@media (min-width: 391px) and (max-width: 428px) {
  /* Hero Section */
  .hero {
    padding: 20px 1em;
  }
  .hero h1,
  .hero h2,
  .hero .hero-heading {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 1rem;
  }

  /* Featured Carousel */
  .featured-carousel-cell {
    height: 420px;
  }
  .featured-carousel .flickity-button {
    display: block;
    width: 40px;
    height: 40px;
  }

  /* Section Headers */
  .section-title {
    font-size: 1.45rem;
  }

  /* Navigation Cards */
  .cardNav,
  .helperNav {
    flex-direction: column !important;
    gap: 0.6em;
  }
}

/* Large phones / Small devices */
@media (min-width: 480px) and (max-width: 599px) {
  /* Hero Section */
  .hero {
    padding: 22px 1em;
  }
  .hero h1,
  .hero h2,
  .hero .hero-heading {
    font-size: 1.6rem;
  }
  .hero p {
    font-size: 1.05rem;
  }

  /* Featured Carousel */
  .featured-carousel-cell {
    height: 440px;
  }
  .featured-carousel .flickity-button {
    display: block;
    width: 44px;
    height: 44px;
  }

  /* Section Headers */
  .section-title {
    font-size: 1.55rem;
  }

  /* Navigation Cards */
  .cardNav,
  .helperNav {
    flex-direction: column !important;
    gap: 0.65em;
  }
}

/* Ensure minimum touch target sizes across all mobile breakpoints */
@media (max-width: 900px) {
  .hero-btn,
  .navCard,
  .featured-card-link {
    min-height: 44px;
    min-width: 44px;
  }

  .featured-carousel .flickity-button {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Cleaned up: unified hero button styles */
.hero-actions {
  margin-top: 2em;
  display: flex;
  gap: 1em;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-btn .navCardIcon {
  margin-right: 0.6em;
  font-size: 1.3em;
  vertical-align: middle;
}
.hero-btn .navCardText {
  font-size: 1.08em;
  vertical-align: middle;
}
/* Hero Section Styles */
.hero {
  background: var(--secondary_darker_background_color);
  color: var(--primary_txt_color);
  padding: 60px 0;
  text-align: center;
  font-family: "Montserrat", sans-serif;
}
/* Removed max-width for full-width layout */
.hero-content {
  /* no max-width, full width */
}
.hero h1,
.hero h2,
.hero .hero-heading {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--primary_color);
}
.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: var(--secondary_txt_color);
}
.hero-btn {
  background: #fff;
  color: #56ab2f;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition:
    background 0.2s,
    color 0.2s;
}
.hero-btn:hover {
  background: #56ab2f;
  color: #fff;
}
/* HOME PAGE */
.welcomeContent {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.helper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1em;
  width: -webkit-fill-available;
  overflow-y: auto;
}

.helperNav {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cardNav {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: stretch;
  gap: 1em;
}

.navCardIcon {
  font-size: 1.5em;
  margin-bottom: 0.2em;
  line-height: 1;
  display: block;
}

.navCardText {
  font-size: 1em;
  text-align: center;
  font-family: "Montserrat", Verdana, sans-serif;
}

.helper img {
  position: fixed;
  opacity: 0.6;
  width: -webkit-fill-available;
  height: -webkit-fill-available;
  z-index: -1;
}

.helper video {
  position: fixed;
  opacity: 0.6;
  width: -webkit-fill-available;
  z-index: -1;
}

.helper button {
  position: fixed;
  opacity: 0.8;
  z-index: 1;
  left: 0;
  margin: 0.5em;
}

.helperNav a,
.helperNav p {
  font-family: "Montserrat", Verdana, sans-serif;
  padding: 1em 1.2em;
  font-size: 1.08em;
  border-radius: 18px;
  border: none;
  color: #fff;
  font-weight: 600;
  width: 100%;
  text-align: center;
  margin: 0;
  opacity: 0.97;
  text-decoration: none;
  background: linear-gradient(90deg, #56ab2f 0%, #a8e063 100%);
  box-shadow: 0 2px 8px rgba(86, 171, 47, 0.08);
  transition:
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}

.helperNav a:hover {
  background: linear-gradient(90deg, #a8e063 0%, #56ab2f 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(86, 171, 47, 0.16);
  opacity: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Section base styles */
.homepage-section {
  margin-bottom: 3em;
  padding: 2em 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2em;
}

.section-title {
  font-family: "Montserrat", Verdana, sans-serif;
  font-size: 2.2rem;
  color: var(--primary_txt_color);
  font-weight: 700;
  margin: 0;
  padding: 0;
  position: relative;
}

.section-underline {
  display: block;
  border-bottom: 5px groove var(--primary_txt_color);
  width: 100%;
  opacity: 0.2;
  margin-top: 0.5em;
}

/* Section-specific styles */
.featured-inventory-section {
  background: var(--secondary_background_color);
  padding: 3em 0 5em 0; /* Extra bottom padding for carousel page dots */
}

.featured-inventory-section .rootItems {
  display: block; /* Override flex from main.css for carousel */
  overflow: visible; /* Allow carousel controls to overflow */
}

.helper-navigation-section {
  background: transparent;
}

/* Responsive section titles */
@media (max-width: 900px) {
  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 600px) {
  .homepage-section {
    padding: 1.5em 0;
  }
  .section-title {
    font-size: 1.4rem;
  }
}

/* ====================================
   Featured Collection Carousel Styles
   ==================================== */

/* Section subtitle */
.section-subtitle {
  font-family: 'Montserrat', Verdana, sans-serif;
  font-size: 1.1rem;
  color: var(--secondary_txt_color);
  margin-top: 0.5em;
  font-weight: 400;
}

/* Carousel container */
.featured-carousel {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Carousel cell */
.featured-carousel-cell {
  width: 25%; /* 4 items on desktop */
  padding: 0 8px;
  box-sizing: border-box;
  height: 400px; /* Fixed height for consistent card sizes */
}

/* Card link wrapper */
.featured-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

/* Featured card */
.featured-card {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.featured-card:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

/* Carousel focus effect - dim non-selected cards */
.featured-carousel .flickity-cell:not(.is-selected) .featured-card {
  opacity: 0.5;
  filter: blur(1.5px);
  transition: opacity 0.5s ease, filter 0.5s ease;
}

/* Keep selected card fully visible */
.featured-carousel .flickity-cell.is-selected .featured-card {
  opacity: 1;
  filter: none;
  transition: opacity 0.5s ease, filter 0.5s ease;
}

/* Image wrapper - fills entire card */
.featured-card-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary_background_color);
  overflow: hidden;
}

.featured-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-card:hover .featured-card-image {
  transform: scale(1.03);
}

/* Lazy load placeholder */
.featured-card-image.flickity-lazyloading {
  background: var(--secondary_darker_background_color);
}

/* Card content - overlay at bottom */
.featured-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
  color: #fff;
  z-index: 1;
}

/* Botanical name (primary) */
.featured-card-botname {
  font-family: 'Montserrat', Verdana, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Common name (secondary) */
.featured-card-commonname {
  font-family: 'Montserrat', Verdana, sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Card footer */
.featured-card-footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 0.2rem;
  padding-top: 0;
  border-top: none;
}

/* Price */
.featured-card-price {
  font-family: 'Montserrat', Verdana, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Status badge */
.featured-card-status {
  font-family: 'Montserrat', Verdana, sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: none;
}

.featured-card-status.status-available {
  background: var(--success_background_color);
  color: var(--success_color);
}

.featured-card-status.status-reserved {
  background: var(--warning_background_color);
  color: var(--warning_color);
}

.featured-card-status.status-sold {
  background: var(--error_background_color);
  color: var(--error_color);
}

/* Flickity button overrides */
.featured-carousel .flickity-button {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.featured-carousel .flickity-button:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.featured-carousel .flickity-button-icon {
  fill: var(--primary_txt_color);
}

.featured-carousel .flickity-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.featured-carousel .flickity-page-dots {
  bottom: -40px;
}

.featured-carousel .flickity-page-dots .dot {
  width: 10px;
  height: 10px;
  background: var(--secondary_darker_background_color);
  border: 2px solid var(--secondary_txt_color);
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.featured-carousel .flickity-page-dots .dot.is-selected {
  background: var(--secondary_txt_color);
  opacity: 1;
  transform: scale(1.2);
}

/* ====================================
   Carousel Responsive Breakpoints
   ==================================== */

/* Tablet: 3 items */
@media (max-width: 1199px) {
  .featured-carousel-cell {
    width: 33.333%; /* 3 items */
    height: 380px; /* Slightly smaller for tablet */
  }

  .featured-card-botname {
    font-size: 0.8rem;
  }

  .featured-card-commonname {
    font-size: 0.7rem;
  }

  .featured-card-price {
    font-size: 0.95rem;
  }

  .featured-card-status {
    font-size: 0.6rem;
  }

  .featured-card-content {
    padding: 0.7rem 0.9rem;
  }
}

/* Small tablet / Large mobile: 2 items */
@media (max-width: 767px) {
  .featured-carousel-cell {
    width: 50%; /* 2 items */
    padding: 0 6px;
    height: 350px; /* Smaller for mobile */
  }

  .featured-card-content {
    padding: 0.6rem 0.8rem;
    gap: 0.3rem;
  }

  .featured-card-botname {
    font-size: 0.75rem;
  }

  .featured-card-commonname {
    font-size: 0.65rem;
  }

  .featured-card-price {
    font-size: 0.85rem;
  }

  .featured-card-status {
    font-size: 0.55rem;
    padding: 0.15rem 0.4rem;
  }

  .featured-carousel .flickity-button {
    width: 40px;
    height: 40px;
  }
}

/* Mobile: 1 item */
@media (max-width: 479px) {
  .featured-carousel-cell {
    width: 100%; /* 1 item */
    padding: 0 4px;
    height: 450px; /* Larger for single-item view */
  }

  .featured-carousel {
    padding: 0 10px;
  }

  .featured-card-content {
    padding: 0.7rem 0.9rem;
    gap: 0.35rem;
  }

  .featured-card-botname {
    font-size: 0.9rem;
  }

  .featured-card-commonname {
    font-size: 0.75rem;
  }

  .featured-card-price {
    font-size: 0.95rem;
  }

  .featured-card-status {
    font-size: 0.6rem;
  }
}

/* Hide carousel buttons only on ultra-small screens */
@media (max-width: 374px) {
  .featured-carousel .flickity-button {
    display: none; /* Hide prev/next only on ultra-small screens */
  }
}

/* ====================================
   Carousel Accessibility
   ==================================== */

/* Focus states */
.featured-card-link:focus {
  outline: 3px solid var(--primary_color);
  outline-offset: 2px;
  border-radius: 12px;
}

.featured-carousel .flickity-button:focus {
  outline: 3px solid var(--primary_color);
  outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .featured-card,
  .featured-card-image,
  .featured-carousel .flickity-page-dots .dot,
  .featured-carousel .flickity-cell .featured-card {
    transition: none !important;
  }

  .featured-card-content {
    background: rgba(0, 0, 0, 0.75);
  }

  /* Disable blur for reduced motion, keep opacity dimming */
  .featured-carousel .flickity-cell:not(.is-selected) .featured-card {
    filter: none !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .featured-card {
    border: 2px solid var(--primary_txt_color);
  }

  .featured-card-status {
    border: 1px solid currentColor;
  }

  .featured-card-content {
    background: rgba(0, 0, 0, 0.85);
  }
}

/* ====================================
   Google Reviews Section Styles
   ==================================== */

/* Section styling */
.reviews-section {
  background: var(--secondary_background_color);
  padding: 3em 0 5em 0;
}

.reviews-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Review carousel */
.reviews-carousel {
  width: 100%;
}

/* Review cell */
.review-carousel-cell {
  width: 33.333%; /* 3 reviews on desktop */
  padding: 0 12px;
  box-sizing: border-box;
}

/* Review card */
.review-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card.clickable {
  cursor: pointer;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Review header */
.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.review-author-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary_color);
}

.review-author-info {
  flex: 1;
}

.review-author-name {
  font-family: 'Montserrat', Verdana, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary_txt_color);
  margin: 0 0 0.25rem 0;
}

.review-time {
  font-family: 'Montserrat', Verdana, sans-serif;
  font-size: 0.8rem;
  color: var(--secondary_txt_color);
  margin: 0;
}

/* Star rating */
.review-rating {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.review-star {
  color: #ffa500;
  font-size: 1.1rem;
  line-height: 1;
}

.review-star.empty {
  color: #ddd;
}

/* Review text */
.review-text {
  font-family: 'Montserrat', Verdana, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--primary_txt_color);
  margin: 0;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5; /* Limit to 5 lines */
  -webkit-box-orient: vertical;
}

/* Expand hint */
.review-expand-hint {
  font-family: 'Montserrat', Verdana, sans-serif;
  font-size: 0.8rem;
  color: var(--primary_color);
  margin: 0;
  font-style: italic;
  text-align: center;
  font-weight: 600;
}

/* Google logo footer */
.review-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--secondary_background_color);
}

.google-logo {
  width: 60px;
  height: auto;
}

.review-source {
  font-family: 'Montserrat', Verdana, sans-serif;
  font-size: 0.75rem;
  color: var(--secondary_txt_color);
}

/* No reviews state */
.no-reviews-message {
  text-align: center;
  padding: 3rem 1rem;
  font-family: 'Montserrat', Verdana, sans-serif;
  color: var(--secondary_txt_color);
}

/* Flickity overrides for reviews */
.reviews-carousel .flickity-button {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.reviews-carousel .flickity-button:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.reviews-carousel .flickity-button-icon {
  fill: var(--primary_txt_color);
}

.reviews-carousel .flickity-page-dots {
  bottom: -40px;
}

.reviews-carousel .flickity-page-dots .dot {
  width: 10px;
  height: 10px;
  background: var(--secondary_darker_background_color);
  border: 2px solid var(--secondary_txt_color);
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.reviews-carousel .flickity-page-dots .dot.is-selected {
  background: var(--secondary_txt_color);
  opacity: 1;
  transform: scale(1.2);
}

/* ====================================
   Reviews Responsive Breakpoints
   ==================================== */

/* Tablet: 2 reviews */
@media (max-width: 1024px) {
  .review-carousel-cell {
    width: 50%;
  }
}

/* Mobile: 1 review */
@media (max-width: 640px) {
  .review-carousel-cell {
    width: 100%;
    padding: 0 8px;
  }

  .review-card {
    padding: 1.25rem;
  }

  .review-text {
    font-size: 0.9rem;
  }

  .reviews-carousel .flickity-button {
    width: 40px;
    height: 40px;
  }
}

/* Ultra-small screens */
@media (max-width: 374px) {
  .reviews-carousel .flickity-button {
    display: none;
  }

  .review-card {
    padding: 1rem;
  }
}

/* ====================================
   Reviews Accessibility
   ==================================== */

/* Focus states */
.review-card:focus-within {
  outline: 3px solid var(--primary_color);
  outline-offset: 2px;
}

.reviews-carousel .flickity-button:focus {
  outline: 3px solid var(--primary_color);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .review-card {
    transition: none !important;
  }
}

/* High contrast */
@media (prefers-contrast: high) {
  .review-card {
    border: 2px solid var(--primary_txt_color);
  }
}

/* ====================================
   Review Modal Styles
   ==================================== */

/* Modal content container */
.review-modal-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0.5rem;
}

/* Modal header */
.review-modal-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--secondary_background_color);
}

.review-modal-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary_color);
  flex-shrink: 0;
}

.review-modal-author-info {
  flex: 1;
}

.review-modal-author-name {
  font-family: 'Montserrat', Verdana, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary_txt_color);
  margin: 0 0 0.5rem 0;
}

.review-modal-time {
  font-family: 'Montserrat', Verdana, sans-serif;
  font-size: 0.95rem;
  color: var(--secondary_txt_color);
  margin: 0;
}

/* Modal star rating */
.review-modal-rating {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.review-modal-rating .review-star {
  font-size: 1.5rem;
}

/* Modal review text */
.review-modal-text {
  font-family: 'Montserrat', Verdana, sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--primary_txt_color);
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Modal footer */
.review-modal-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--secondary_background_color);
  margin-top: auto;
}

.review-modal-footer .google-logo {
  width: 70px;
  height: auto;
}

.review-modal-footer .review-source {
  font-size: 0.85rem;
}

/* Modal scrollability */
.ui-dialog:has(.review-modal-content) .ui-dialog-content {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
}

/* Mobile modal adjustments */
@media (max-width: 640px) {
  .review-modal-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .review-modal-photo {
    width: 56px;
    height: 56px;
  }

  .review-modal-author-name {
    font-size: 1.15rem;
  }

  .review-modal-time {
    font-size: 0.85rem;
  }

  .review-modal-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .review-modal-rating .review-star {
    font-size: 1.25rem;
  }
}
