/* ════════════════════════════════════════════════════════════
   Google Knowledge Panel — style Google SERP sidebar
   Palette Dayclic (navy + gold) + typo Playfair Display/Sora
   ════════════════════════════════════════════════════════════ */

#gk-panel {
  display: block;
  background: #fff;
  border: 1px solid #DDE2EA;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(12, 31, 54, 0.06);
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0C1F36;
}

#gk-panel[hidden] { display: none; }

/* ── Photos header ── */
.gk-photos {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 110px 110px;
  gap: 3px;
  background: #eee;
  position: relative;
  cursor: pointer;
}
.gk-photos .gk-photo {
  background-size: cover;
  background-position: center;
  background-color: #F5F7FA;
  transition: opacity 0.2s;
}
.gk-photos .gk-photo:hover { opacity: 0.88; }
.gk-photos .gk-photo.main { grid-row: span 2; }
.gk-photos .gk-photo-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(6px);
}
.gk-photos .gk-photo-badge:hover { background: rgba(0, 0, 0, 0.85); }
.gk-photos .gk-photo-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #0C1F36;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

/* ── Body ── */
.gk-body { padding: 18px 20px 6px; }

.gk-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.gk-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  color: #0C1F36;
  margin: 0;
  flex: 1;
}
.gk-info-btn {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid #DDE2EA;
  background: #fff;
  color: #6B7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

.gk-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 14px;
}
.gk-rating-value { font-weight: 700; color: #0C1F36; }
.gk-stars { color: #E7711B; letter-spacing: 1px; font-size: 14px; line-height: 1; }
.gk-stars .gk-star-empty { color: #DDE2EA; }
.gk-reviews-count {
  color: #1A73E8;
  text-decoration: none;
  font-size: 14px;
}
.gk-reviews-count:hover { text-decoration: underline; }

.gk-subtitle {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 14px;
}

/* ── Buttons row (pills) ── */
.gk-actions {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 14px;
  border-bottom: 1px solid #EEF0F3;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.gk-actions::-webkit-scrollbar { display: none; }
.gk-action {
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 64px;
  padding: 8px 10px;
  border: 1px solid #DDE2EA;
  border-radius: 999px;
  background: #fff;
  color: #1A73E8;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.gk-action:hover { background: #F1F6FF; border-color: #1A73E8; }
.gk-action svg { width: 18px; height: 18px; }
.gk-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  min-width: 0;
  flex-direction: row;
}

/* ── Info list (address, phone, hours) ── */
.gk-info-list { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; }
.gk-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #F3F5F8;
  font-size: 13px;
  color: #202124;
}
.gk-info-item:last-child { border-bottom: none; }
.gk-info-item svg {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  color: #6B7280;
}
.gk-info-item a { color: #1A73E8; text-decoration: none; }
.gk-info-item a:hover { text-decoration: underline; }

.gk-hours-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
}
.gk-hours-toggle .gk-chevron { transition: transform 0.2s; }
.gk-hours.open .gk-hours-toggle .gk-chevron { transform: rotate(180deg); }
.gk-hours-list {
  display: none;
  margin-top: 8px;
  padding-left: 0;
  list-style: none;
  font-size: 13px;
  color: #5F6368;
}
.gk-hours.open .gk-hours-list { display: block; }
.gk-hours-list li { padding: 3px 0; }
.gk-hours-list li.today { color: #0C1F36; font-weight: 600; }
.gk-open-status { font-weight: 600; }
.gk-open-status.open { color: #137333; }
.gk-open-status.closed { color: #C5221F; }

/* ── Footer ── */
.gk-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 20px 16px;
  border-top: 1px solid #EEF0F3;
  font-size: 12px;
  color: #6B7280;
}
.gk-footer a { color: #1A73E8; text-decoration: none; }
.gk-footer a:hover { text-decoration: underline; }
.gk-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #9AA0A6;
}

/* ── Loading ── */
.gk-loading {
  padding: 24px;
  text-align: center;
  color: #6B7280;
  font-size: 13px;
}

/* ── Lightbox ── */
.gk-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gk-lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
}
.gk-lightbox-close, .gk-lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gk-lightbox-close { top: 16px; right: 16px; }
.gk-lightbox-nav.prev { left: 16px; top: 50%; transform: translateY(-50%); }
.gk-lightbox-nav.next { right: 16px; top: 50%; transform: translateY(-50%); }
.gk-lightbox-attr {
  position: absolute;
  bottom: 12px; left: 12px; right: 12px;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}
.gk-lightbox-attr a { color: rgba(255, 255, 255, 0.85); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .gk-photos { grid-template-rows: 90px 90px; }
  .gk-title { font-size: 19px; }
  .gk-body { padding: 14px 16px 4px; }
  .gk-footer { padding: 10px 16px 14px; }
}
