.author .adt-seller-detail-section .adt-search-ads-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}
.author .adt-seller-detail-section .search_with_labels_grid {
  width: 100% !important;
  max-width: none !important;
  margin-bottom: 0 !important;
}
.author .adt-seller-detail-section .search_with_labels_grid .adt-category-ad-card {
  width: 100%;
  height: 100%;
}
.gpcm-public-profile-sidebar .gpcm-profi-badge {
  margin-left: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #facc15;
  background: #fff7cc;
  color: #854d0e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2px;
}
.gpcm-public-profile-sidebar .gpcm-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.gpcm-public-profile-sidebar .gpcm-social-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d4dbe6;
  border-radius: 999px;
  color: #0f172a;
  text-decoration: none;
  background: #fff;
}
.gpcm-public-profile-sidebar .gpcm-social-icon:hover,
.gpcm-public-profile-sidebar .gpcm-social-icon:focus {
  border-color: #0f766e;
  color: #0f766e;
}
.gpcm-profile-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.gpcm-profile-tabs-nav button {
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  cursor: pointer;
}
.gpcm-profile-tabs-nav button.is-active {
  border-color: rgba(0, 0, 0, .2);
  font-weight: 600;
}
.gpcm-profile-tabs-content .gpcm-tab-panel {
  display: none;
}
.gpcm-profile-tabs-content .gpcm-tab-panel.is-active {
  display: block;
}
.gpcm-profile-map-canvas {
  width: 100%;
  height: 240px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
}

.gpcm-public-profile-sidebar .gpcm-public-header {
  display: none !important;
}

.gp-author-tabs-wrap {
  display: grid;
  gap: 16px;
}

.gp-author-hero {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 28px;
  background: linear-gradient(135deg, #1f2937 0%, #0f172a 48%, #f97316 100%);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.16);
}

.gp-author-hero.has-image {
  background-position: center;
  background-size: cover;
}

.gp-author-hero__backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.48) 52%, rgba(249, 115, 22, 0.34) 100%);
}

.gp-author-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  min-height: 220px;
  padding: 24px 26px;
}

.gp-author-hero__avatar {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  overflow: hidden;
  flex: 0 0 86px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.12);
}

.gp-author-hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gp-author-hero__meta {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.gp-author-hero__eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gp-author-hero__meta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.gp-author-hero__meta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 500;
}

.gp-author-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gp-author-hero__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.gp-author-hero__chip--partner {
  background: rgba(5, 150, 105, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #d1fae5;
}

.gp-author-hero__chip--pro {
  background: rgba(250, 204, 21, 0.14);
  border: 1px solid rgba(253, 224, 71, 0.5);
  color: #fef3c7;
}

.gp-author-tabs-wrap .gp-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.gp-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, .08);
}
.gp-tab.is-active {
  border-color: rgba(0, 0, 0, .18);
  font-weight: 600;
}
.gp-katalog-link {
  margin-top: 10px;
}
.gp-map-label {
  margin-bottom: 10px;
}
.gp-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.gp-contact-list li strong {
  margin-right: 4px;
}
.gp-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.gp-contact-note {
  margin: 10px 0 0;
  color: #4b5563;
  font-size: 13px;
}
.gp-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 96px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .12);
  text-decoration: none;
  font-weight: 600;
  color: #111;
  background: #fff;
}
.gp-contact-btn--call {
  border-color: #1d8f4f;
  color: #1d8f4f;
}
.gp-contact-btn--sms {
  border-color: #1163d6;
  color: #1163d6;
}
.gp-contact-btn--wa {
  border-color: #25d366;
  color: #128c45;
}
.gp-contact-btn--viber {
  border-color: #7360f2;
  color: #5c4ac9;
}
.gp-social-wrap h4 {
  margin: 16px 0 8px;
}
.gp-social-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gp-social-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .12);
  text-decoration: none;
  color: #111;
  background: #fff;
  font-size: 13px;
  line-height: 1.2;
}

.gp-author-filter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 14px;
}
.gp-author-filter-form input,
.gp-author-filter-form select {
  min-height: 40px;
}
.gp-author-filter-form input[type="text"] {
  min-width: 220px;
}

.gp-author-ads-right .adt-search-ads-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}
.gp-author-ads-right .adt-search-ads-grid .adt-category-ad-card,
.gp-author-ads-right .adt-search-ads-grid .search_with_labels_grid {
  width: 100% !important;
  max-width: none !important;
  margin-bottom: 0 !important;
}
.gp-author-ads-right .adt-search-ads-grid .category-img-box {
  height: 170px;
  overflow: hidden;
  position: relative;
}
.gp-author-ads-right .adt-search-ads-grid .category-img-box > a > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gp-author-ads-right .adt-search-ads-grid .category-img-box img.featured-tag {
  width: 42px !important;
  max-width: 42px !important;
  height: auto !important;
  object-fit: contain !important;
  top: 8px;
  left: 8px;
  right: auto;
  bottom: auto;
  transform: none !important;
  z-index: 3;
}
.gp-author-ads-right .adt-search-ads-grid .category-content-box h5 {
  font-size: 21px;
  line-height: 1.2;
  margin-bottom: 6px;
}
.gp-author-ads-right .adt-search-ads-grid .price-box .favourite i {
  font-size: 17px !important;
  line-height: 1;
}
.gp-author-ads-right .gp-ad-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 8px;
}
.gp-author-ads-right .gp-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.gp-author-ads-right .gp-chip--rating {
  border-color: #f59e0b;
  color: #92400e;
  background: #fffbeb;
}
.gp-author-ads-right .gp-chip--partner {
  border-color: #86efac;
  color: #166534;
  background: #f0fdf4;
}
.gp-author-ads-right .gp-chip--pro {
  border-color: #facc15;
  color: #854d0e;
  background: #fffbeb;
}
.gp-author-ads-right .gp-chip--quality-opg {
  border-color: #86efac;
  color: #166534;
  background: #f0fdf4;
}
.gp-author-ads-right .gp-chip--quality-healthy_food {
  border-color: #99f6e4;
  color: #115e59;
  background: #ecfeff;
}
.gp-author-ads-right .gp-chip--quality-croatian_origin {
  border-color: #93c5fd;
  color: #1d4ed8;
  background: #eff6ff;
}
.gp-author-ads-right .gp-chip--quality-superfood {
  border-color: #d8b4fe;
  color: #7e22ce;
  background: #faf5ff;
}
.gp-author-ads-right .gp-chip--weather {
  border-color: #93c5fd;
  color: #1d4ed8;
  background: #eff6ff;
}
.gp-author-ads-right .gp-nearby-block {
  margin-top: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  background: #f8fafc;
}
.gp-author-ads-right .gp-nearby-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}
.gp-author-ads-right .gp-nearby-head span {
  color: #b45309;
  font-size: 11px;
}
.gp-author-ads-right .gp-nearby-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.gp-author-ads-right .gp-nearby-block--compact .gp-nearby-filters {
  display: none;
}
.gp-author-ads-right .gp-nearby-filter {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 11px;
  line-height: 1.2;
  padding: 4px 8px;
  cursor: pointer;
}
.gp-author-ads-right .gp-nearby-filter.is-active {
  border-color: #1d4ed8;
  color: #1d4ed8;
}
.gp-author-ads-right .gp-nearby-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.gp-author-ads-right .gp-nearby-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: start;
}
.gp-author-ads-right .gp-nearby-item a,
.gp-author-ads-right .gp-nearby-item span {
  grid-column: 1 / 2;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: #0f172a;
  text-decoration: none;
}
.gp-author-ads-right .gp-nearby-item small {
  grid-column: 1 / 2;
  font-size: 11px;
  color: #64748b;
}
.gp-author-ads-right .gp-nearby-item em {
  grid-column: 2 / 3;
  grid-row: 1 / span 2;
  justify-self: end;
  white-space: nowrap;
  font-size: 11px;
  color: #475569;
  font-style: normal;
}

.gp-similar-widget {
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.gp-similar-title {
  margin: 0 0 12px;
  font-size: 16px;
}
.gp-similar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gp-similar-item {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  border-radius: 12px;
  padding: 8px;
}
.gp-similar-item:hover {
  background: rgba(0, 0, 0, .03);
}
.gp-similar-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 44px;
}
.gp-similar-name {
  font-weight: 600;
  line-height: 1.2;
}
.gp-similar-sub {
  font-size: 12px;
  opacity: .7;
  margin-top: 2px;
}

@media (max-width: 1320px) {
  .gp-author-ads-right .adt-search-ads-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 1199px) {
  .author .adt-seller-detail-section .adt-search-ads-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 767px) {
  .gp-author-hero__content {
    min-height: 0;
    align-items: flex-start;
    padding: 18px;
    flex-direction: column;
  }
  .gp-author-hero__avatar {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }
  .author .adt-seller-detail-section .adt-search-ads-grid,
  .gp-author-ads-right .adt-search-ads-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

/* UI refresh inspired by imported dashboard/ecommerce kit */
body.author,
body.page-template-page-search {
  --gp-ui-font: "Work Sans", "Segoe UI", sans-serif;
  --gp-ui-bg: #f3f6fb;
  --gp-ui-surface: #ffffff;
  --gp-ui-border: #dbe5f1;
  --gp-ui-text: #18253a;
  --gp-ui-muted: #5f6d82;
  --gp-ui-primary: #ff8a00;
  --gp-ui-primary-dark: #de6f00;
  --gp-ui-success: #0d9f6e;
  --gp-ui-radius: 18px;
  --gp-ui-shadow: 0 14px 34px rgba(20, 36, 58, 0.08);
}

body.author .adt-seller-detail-section,
body.page-template-page-search .adt-map-search-section {
  font-family: var(--gp-ui-font);
}

.author .gpcm-public-profile-sidebar {
  border: 1px solid var(--gp-ui-border);
  border-radius: 24px;
  background: var(--gp-ui-surface);
  box-shadow: var(--gp-ui-shadow);
  overflow: hidden;
}

.author .gpcm-public-profile-sidebar .gpcm-public-header {
  min-height: 88px;
  background: linear-gradient(130deg, #ffe3bf 0%, #ffd79c 48%, #ffc57a 100%);
}

.author .gpcm-public-profile-sidebar .top-meta {
  padding: 16px 18px 12px;
}

.author .gpcm-public-profile-sidebar .top-meta h4 {
  color: var(--gp-ui-text);
  letter-spacing: -0.01em;
}

.author .gpcm-public-profile-sidebar .top-meta .status {
  border-radius: 999px;
  border: 1px solid #efb269;
  background: #fff5e6;
  color: #9a5410;
  padding: 4px 10px;
  font-weight: 700;
}

.gpcm-profile-tabs-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.gpcm-profile-tabs-nav button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--gp-ui-border);
  border-radius: 12px;
  background: #fff;
  color: var(--gp-ui-text);
  font-weight: 600;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.gpcm-profile-tabs-nav button i {
  font-size: 13px;
  color: var(--gp-ui-muted);
}

.gpcm-profile-tabs-nav button.is-active {
  border-color: var(--gp-ui-primary);
  background: #fff7eb;
  box-shadow: 0 6px 14px rgba(255, 138, 0, 0.16);
}
.gpcm-profile-tabs-nav button.is-active i {
  color: var(--gp-ui-primary-dark);
}

.gpcm-profile-map-canvas {
  border-color: var(--gp-ui-border);
  border-radius: 14px;
  min-height: 240px;
}
.gpcm-profile-map-canvas .leaflet-tile-pane img.leaflet-tile,
.gpcm-profile-map-canvas .leaflet-marker-pane img.leaflet-marker-icon,
.gpcm-profile-map-canvas .leaflet-marker-pane img.leaflet-marker-shadow {
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: initial !important;
}

.gp-author-tabs-wrap .gp-tabs {
  padding: 6px;
  border: 1px solid var(--gp-ui-border);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 36, 58, 0.05);
}

.gp-tab {
  color: var(--gp-ui-muted);
  font-weight: 600;
  border-color: transparent;
  transition: color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.gp-tab .gp-tab__icon {
  font-size: 13px;
  opacity: .8;
}

.gp-tab.is-active {
  color: var(--gp-ui-text);
  border-color: #f8d2a2;
  background: #fff5e6;
  box-shadow: 0 6px 12px rgba(255, 138, 0, 0.12);
}

.gp-map-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #dbe5f1;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff9ef 0%, #f8fbff 100%);
}
.gp-map-summary__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.gp-map-summary__text strong {
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #b45309;
}
.gp-map-summary__text span {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.gp-map-summary__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.gp-map-summary__link:hover,
.gp-map-summary__link:focus {
  color: #fff;
  background: #1e293b;
}

.gp-author-filter-form {
  padding: 10px;
  border: 1px solid var(--gp-ui-border);
  border-radius: var(--gp-ui-radius);
  background: #fff;
  box-shadow: 0 8px 20px rgba(20, 36, 58, 0.05);
}

.gp-author-filter-form input,
.gp-author-filter-form select {
  border: 1px solid #d7e2ef;
  border-radius: 12px;
  background: #fff;
  color: var(--gp-ui-text);
}

.gp-author-filter-form .main-btn {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--gp-ui-primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(255, 138, 0, 0.24);
}

.gp-author-filter-form .main-btn:hover,
.gp-author-filter-form .main-btn:focus {
  background: var(--gp-ui-primary-dark);
}

.gp-author-ads-right .adt-search-ads-grid .adt-category-ad-card {
  border: 1px solid var(--gp-ui-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 36, 58, 0.06);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.gp-author-ads-right .adt-search-ads-grid .adt-category-ad-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(20, 36, 58, 0.11);
}

.gp-author-ads-right .adt-search-ads-grid .category-img-box {
  height: 188px;
}

.gp-author-ads-right .adt-search-ads-grid .category-content-box {
  padding: 16px;
}

.gp-author-ads-right .adt-search-ads-grid .category-content-box .ctg-tag {
  font-weight: 700;
  color: #b45309;
}

.gp-author-ads-right .adt-search-ads-grid .category-content-box h5 {
  color: var(--gp-ui-text);
  font-size: clamp(21px, 1.7vw, 24px);
  letter-spacing: -0.01em;
}

.gp-author-ads-right .adt-search-ads-grid .price-box strong {
  color: var(--gp-ui-success);
}

.gp-author-ads-right .gp-chip {
  border-color: #d4deea;
  background: #f8fbff;
  color: #334155;
}

.gp-author-ads-right .gp-nearby-block {
  border-color: #d5e1ee;
  border-radius: 14px;
  background: #f7fbff;
}

.gp-similar-widget {
  border-color: var(--gp-ui-border);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(20, 36, 58, 0.06);
}

.gp-similar-item {
  border-radius: 12px;
  transition: background-color .16s ease, transform .16s ease;
}

.gp-similar-item:hover {
  transform: translateX(2px);
  background: #f8fbff;
}

@media (max-width: 1024px) {
  .gpcm-profile-tabs-nav {
    grid-template-columns: 1fr;
  }

  .gp-map-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .gp-author-filter-form {
    align-items: stretch;
  }

  .gp-author-filter-form input[type="text"] {
    min-width: 100%;
  }
}
