/* ========================================
   ACF Slider & Gallery Styles
   ======================================== */

/* Store Slider Section */
.store-slider-section {
  margin-bottom: 40px;
}

.store-slider {
  position: relative;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
}

.slider-main {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* 1:1 Aspect Ratio */
  background: #000;
  overflow: hidden;
}

.slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slide-item.active {
  opacity: 1;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Thumbnail Navigation */
.slider-thumbnails {
  display: flex;
  gap: 8px;
  padding: 15px;
  background: #ffffff;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.thumbnail {
  flex: 0 0 80px;
  height: 80px;
  border: 2px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail:hover {
  border-color: #e74c3c;
  transform: scale(1.05);
}

.thumbnail.active {
  border-color: #e74c3c;
  box-shadow: 0 0 8px rgba(231, 76, 60, 0.3);
}

/* Slider Info */
.slider-info {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.slide-counter {
  display: flex;
  gap: 4px;
}

.store-slider-placeholder {
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #999;
  text-align: center;
  border-radius: 8px;
}

/* Store Info Panel */
.store-info-panel {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin: 30px 0;
}

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

.info-item {
  display: flex;
  flex-direction: column;
}

.info-item label {
  font-size: 12px;
  color: #7f8c8d;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item .info-value {
  font-size: 14px;
  color: #2c3e50;
  font-weight: 500;
}

/* Pricing Section */
.store-pricing-section {
  margin: 40px 0;
}

.store-pricing-section h2 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8e8e8;
}

.pricing-highlight {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.price-item label {
  display: block;
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-value {
  font-size: 48px;
  font-weight: bold;
  line-height: 1;
}

.price-value .time {
  display: block;
  font-size: 14px;
  opacity: 0.9;
  margin-top: 8px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.pricing-table tbody tr {
  border-bottom: 1px solid #e8e8e8;
}

.pricing-table td {
  padding: 12px 15px;
}

.pricing-table td:first-child {
  color: #7f8c8d;
  font-weight: 500;
}

.pricing-table td:last-child {
  text-align: right;
  color: #2c3e50;
  font-weight: 600;
}

.pricing-table .time {
  display: inline-block;
  font-size: 12px;
  color: #999;
  margin-left: 8px;
}

.pricing-table .rate-info td {
  background: #f9f9f9;
  font-size: 13px;
}

/* Rating Section */
.store-rating-section {
  margin: 40px 0;
}

.store-rating-section h2 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8e8e8;
}

.rating-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
}

.rating-item {
  text-align: center;
}

.rating-item label {
  display: block;
  font-size: 12px;
  color: #7f8c8d;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rating-stars {
  font-size: 20px;
}

/* Cast Gallery */
.store-cast-gallery-section {
  margin: 40px 0;
}

.store-cast-gallery-section h2 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8e8e8;
}

.cast-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.cast-photo-item {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.cast-photo-item:hover {
  transform: scale(1.05);
}

.cast-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Instagram Section */
.store-instagram-section {
  margin: 40px 0;
}

.store-instagram-section h2 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8e8e8;
}

.instagram-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.instagram-embed-wrapper {
  display: flex;
  justify-content: center;
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
}

.instagram-embed-wrapper iframe {
  max-width: 100%;
}

/* Map Section */
.store-map-section {
  margin: 40px 0;
}

.store-map-section h2 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8e8e8;
}

.store-address {
  color: #7f8c8d;
  margin-bottom: 15px;
  font-size: 14px;
}

.gmaps-embed {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Reviews Section */
.store-reviews-section {
  margin: 40px 0;
}

.store-reviews-section h2 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8e8e8;
}

/* Store Header Actions */
.store-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.btn-favorite,
.btn-call,
.btn-line {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #ffffff;
  color: #2c3e50;
  text-decoration: none;
  display: inline-block;
}

.btn-call,
.btn-line {
  background: #2c3e50;
  color: #ffffff;
  border-color: #2c3e50;
}

.btn-favorite:hover {
  border-color: #e74c3c;
  color: #e74c3c;
}

.btn-call:hover,
.btn-line:hover {
  background: #34495e;
  border-color: #34495e;
}

/* Responsive */
@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .price-value {
    font-size: 36px;
  }

  .slider-thumbnails {
    padding: 10px;
    gap: 6px;
  }

  .thumbnail {
    flex: 0 0 70px;
    height: 70px;
  }
}

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

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

  .cast-gallery {
    grid-template-columns: 1fr;
  }

  .store-header-actions {
    flex-direction: column;
  }

  .btn-favorite,
  .btn-call,
  .btn-line {
    width: 100%;
    text-align: center;
  }

  .pricing-highlight {
    padding: 20px;
  }

  .price-value {
    font-size: 32px;
  }
}
