/* details.css - Specific stylesheet for the Details Page */

/* --- Layout --- */
.page-layout {
  display: block;
  margin-bottom: 60px;
}

@media (max-width: 800px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
}

/* --- Breadcrumb & Hero --- */
.breadcrumb {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 20px 0;
}
.breadcrumb strong {
  color: var(--text-primary);
  font-weight: 600;
}

.details-hero {
  display: flex;
  margin-bottom: 40px;
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}

.hero-info {
  flex: 0 0 420px;
  padding: 40px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-info h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.logo {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border: 1px solid #f0f0f0;
}

.logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hero-hr {
  display: none; /* Removed HR for cleaner look */
}

.hero-item {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  font-size: 15px;
  color: #4a4a4a;
  width: 100%;
}

.hero-item svg {
  flex-shrink: 0;
  color: #1a73e8; /* Brand blue icons */
}

.spread-item {
  justify-content: flex-start;
  gap: 15px;
  background: #f8f9fa;
  padding: 12px 16px;
  border-radius: 12px;
  margin-top: 10px;
}

.left-part {
  display: flex;
  gap: 12px;
  align-items: center;
}

.open-now {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #ffffff;
  background: #28a745;
  padding: 4px 10px;
  border-radius: 50px;
  margin-left: auto;
}

.hero-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 8px;
  margin-top: 15px;
  padding: 14px 32px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, #28a745, #20c997);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulseGreen 2s infinite;
  text-decoration: none;
}

.hero-btn:hover {
  background: linear-gradient(135deg, #218838, #1ba87e);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
  transform: translateY(-3px);
  color: #ffffff !important;
}

.hero-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(40, 167, 69, 0.4);
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

.hero-img-box {
  flex: 1;
  height: 450px;
  background-color: #f9f9f9;
  position: relative;
}

.details-slider, .details-slide, .details-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #f5f5f5;
  display: block;
}

@media (max-width: 800px) {
  .details-hero {
    flex-direction: column-reverse; /* Slider on top in mobile */
    margin-bottom: 20px;
    border-radius: 12px;
  }
  .hero-info {
    flex: auto;
    padding: 24px;
    width: 100%;
  }
  .hero-img-box {
    width: 100%;
    height: 300px;
    flex: none;
    display: block !important; /* Ensure it's not hidden */
    visibility: visible !important;
  }
  .hero-info h1 {
    font-size: 22px;
    margin-bottom: 15px;
  }
  .logo {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }
}

/* --- Main content --- */
.center-meta-header {
  margin-bottom: 40px;
}
.center-meta-header h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}
.center-meta-header .subtitle {
  font-size: 15px;
  color: var(--text-secondary);
}

.info-group {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-m);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--card-shadow);
}

.group-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.rating-display {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stars {
  color: #f5a623;
  font-size: 20px;
}
.rating-val {
  font-weight: 600;
}

.address-details {
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.address-details .phone a {
  color: #1a73e8;
  font-weight: 500;
}

.action-btn {
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 500;
}
.action-btn.outline {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}
.action-btn.small {
  padding: 6px 16px;
  font-size: 13px;
}

.qr-code-box {
  display: flex;
  gap: 20px;
  align-items: center;
}
.qr-placeholder img {
  width: 100px;
  height: 100px;
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 4px;
}
.qr-code-box p {
  font-size: 14px;
  color: var(--text-secondary);
}

.hours-list {
  list-style: none;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}
.hours-list li.closed {
  color: #d0021b;
  font-weight: 500;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: var(--accent-color);
  color: var(--text-secondary);
}

/* --- Sidebar --- */
.sidebar-title.center-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  line-height: 1.2;
  letter-spacing: -1px;
}

.nearby-list-container {
  background-color: #f2f2f2;
  padding: 16px;
  border-radius: 4px;
}

.nearby-list {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 12px;
}

/* Custom Scrollbar for nearby list */
.custom-scroll::-webkit-scrollbar {
  width: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background-color: #999;
  border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-button:single-button {
  background-color: transparent;
  display: block;
  height: 12px;
}

.custom-scroll::-webkit-scrollbar-button:single-button:vertical:decrement {
  background: url('data:image/svg+xml;utf8,<svg width="10" height="10" viewBox="0 0 24 24" fill="%23666" xmlns="http://www.w3.org/2000/svg"><path d="M12 8l6 6H6z"/></svg>')
    no-repeat center center;
}

.custom-scroll::-webkit-scrollbar-button:single-button:vertical:increment {
  background: url('data:image/svg+xml;utf8,<svg width="10" height="10" viewBox="0 0 24 24" fill="%23666" xmlns="http://www.w3.org/2000/svg"><path d="M12 16l-6-6h12z"/></svg>')
    no-repeat center center;
}

.nearby-card {
  background: var(--secondary-color);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nearby-card:last-child {
  margin-bottom: 0;
}

.card-heading {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-primary);
}

.card-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 16px 0;
}

.card-text {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.card-stars {
  font-size: 20px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.solid-stars {
  color: #ff9000;
}

.empty-stars {
  color: #d0d0d0;
}

.status-open {
  font-weight: 500;
}

.card-actions {
  display: flex;
  gap: 16px;
}

.pill-btn {
  flex: 1;
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 12px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  text-align: center;
}

.pill-btn:hover {
  background: var(--hover-bg);
}

/* Map and Contact Us Sections */
.section-title.centered {
  text-align: center;
  font-size: 32px;
  margin: 60px 0 30px;
  color: #1a1a1a;
  font-weight: 700;
}

.map-section,
.contact-section {
  margin-top: 40px;
  margin-bottom: 50px;
}

.map-container {
  position: relative;
  border-radius: var(--border-radius-m);
  overflow: hidden;
  height: 400px;
  box-shadow: 0 4px 15px var(--shadow-color);
}

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

.get-directions-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  padding: 12px 30px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
  z-index: 10;
}

.get-directions-btn:hover {
  background: #333;
}

.contact-card {
  background: #fff;
  border-radius: var(--border-radius-m);
  padding: 30px;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.contact-center-name {
  font-size: 20px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.contact-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin-bottom: 25px;
}

.contact-grid {
  display: flex;
  gap: 30px;
}

.contact-left {
  flex: 1;
}

.contact-right {
  flex: 1;
}

.contact-divider-vertical {
  width: 1px;
  background: #ddd;
}

@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
    gap: 20px;
  }
  .contact-divider-vertical {
    display: none;
  }
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-row svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #333;
}

.contact-row p,
.contact-row a {
  font-size: 15px;
  color: #333;
  line-height: 1.5;
  margin: 0;
  text-decoration: none;
}

.contact-row a:hover {
  text-decoration: underline;
}

.blue-link {
  color: #007bff !important;
}

/* Details Slider */
.details-slider {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: block; /* Changed from flex to block since we toggle display: none/block */
}
.details-slide {
  min-width: 100%;
  height: 100%;
  display: none;
}
.details-slide.active {
  display: block;
}
.details-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 24px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.details-prev-btn { left: 10px; }
.details-next-btn { right: 10px; }


.wa-branding {
  text-align: center;
  font-size: 12px;
  color: #888;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.wa-branding span {
  color: #4caf50;
  font-style: italic;
  font-weight: 600;
}

/* Google Ratings Customization */
.google-rating-group {
  display: flex;
  flex-direction: column;
}
.google-rating-display {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.google-score {
  font-size: 48px;
  font-weight: 400;
  color: #1f1f1f;
  line-height: 1;
}
.google-stars-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.google-stars {
  display: flex;
  gap: 2px;
}
.google-stars svg {
  width: 20px;
  height: 20px;
  fill: #fbbc04;
}
.google-review-count {
  font-size: 13px;
  color: #5f6368;
}
.google-review-btn-container {
  margin-top: 12px;
}
.write-google-review-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dadce0;
  border-radius: 18px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #1a73e8;
  text-decoration: none;
  transition: background-color 0.2s;
  width: fit-content;
}
.write-google-review-btn:hover {
  background-color: #f8f9fa;
}

/* Happy Customers Customization */
.happy-customers {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eaeaea;
}
.customer-avatars {
  display: flex;
}
.customer-avatars img,
.avatar-more {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  margin-left: -8px;
}
.customer-avatars img:first-child {
  margin-left: 0;
}
.avatar-more {
  background: #f0f2f5;
  color: #606770;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  z-index: 1;
}
.happy-text {
  font-size: 14px;
  color: #333;
  margin: 0;
}
.happy-text strong {
  color: #1a73e8;
}

/* About Section Customization */
.about-section-container {
  margin-bottom: 24px;
}
.about-content {
  color: #4a4a4a;
}
.about-description {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
  color: #444;
}

.about-description p {
  margin-bottom: 12px;
  text-align: justify;
}

.about-description ul, .about-description ol {
  margin-bottom: 16px;
  padding-left: 20px;
}

.about-description li {
  margin-bottom: 6px;
}
.about-highlights-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 12px;
}
.about-highlights {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.about-highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}
.about-highlights li svg {
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .about-highlights {
    grid-template-columns: 1fr;
  }
}
