:root {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #252720;
  background: #f6f5f0;
  font-synthesis: none;
  --muted: #696d64;
  --line: #dedfd6;
  --orange: #d34b1a;
  --dark: #20251e;
  --green: #2c6e49;
  --green-bg: #eaf4ee;
  --amber: #9a5b13;
  --amber-bg: #fef6e6;
  --blue: #1a56db;
  --blue-bg: #eef4ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled,
fieldset:disabled {
  opacity: 0.55;
  cursor: wait;
}

[hidden] {
  display: none !important;
}

.site-header {
  min-height: 82px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1440px;
  padding: 0 40px;
  margin: auto;
  flex-wrap: wrap;
}

.brand {
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -0.04em;
  font-size: 24px;
}

.brand span {
  color: var(--orange);
  font-size: 14px;
  letter-spacing: 0;
}

.customer-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.customer-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.customer-nav a[aria-current="page"] {
  color: var(--orange);
  border-color: var(--orange);
  font-weight: 750;
}

.customer-nav small {
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 5px;
  margin-left: 4px;
}

.header-account {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

main {
  max-width: 1280px;
  margin: auto;
  padding: 28px 32px 64px;
}

.eyebrow {
  font-weight: 750;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 0 0 10px;
  font-weight: 750;
}

h2 {
  font-size: 22px;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

h3 {
  font-size: 16px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
  line-height: 1.6;
}

.primary,
.secondary,
.danger-btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 16px;
  background: white;
  font-weight: 650;
  font-size: 13px;
  color: inherit;
  line-height: 1.35;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.primary {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

.danger-btn {
  background: #fff0ea;
  color: #9e3214;
  border-color: #f0c5b2;
}

.quiet {
  background: none;
  border: 0;
  padding: 8px 6px;
  font-weight: 650;
  color: var(--orange);
  font-size: 13px;
}

button:hover,
.primary:hover,
.secondary:hover {
  filter: brightness(0.97);
}

.full {
  width: 100%;
}

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 6px 24px rgba(37, 39, 32, 0.03);
}

.notice {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eeefe9;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.notice.error {
  background: #fff0ea;
  color: #9e3214;
  border-color: #f0c5b2;
}

.notice.success {
  background: var(--green-bg);
  color: var(--green);
  border-color: #b7dfc5;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin: 14px 0 6px;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  border: 1px solid #cbd0c3;
  border-radius: 8px;
  padding: 11px 13px;
  background: white;
  color: inherit;
  font-size: 14px;
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  margin: 10px 0;
  cursor: pointer;
}

.check input {
  margin-top: 3px;
  accent-color: var(--orange);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Top Hero & Permission Bar */
.gbp-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.gbp-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.permission-banner {
  background: linear-gradient(135deg, #20251e 0%, #2d3429 100%);
  color: #fafaf6;
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.permission-banner h2 {
  color: #ffffff;
  margin-bottom: 6px;
}

.permission-banner p {
  color: #c8cfc1;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  max-width: 680px;
}

.permission-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.google-connect-btn {
  background: #ffffff;
  color: #1f231c;
  border: 0;
  border-radius: 10px;
  padding: 13px 20px;
  font-weight: 750;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.google-g-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #4285F4;
  color: white;
  font-weight: 800;
  font-size: 13px;
  display: inline-grid;
  place-items: center;
}

.connections-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  width: 100%;
}

.connection-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #f3f4ef;
}

.connection-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
}

.connection-dot.expired {
  background: #fbbf24;
}

/* Multi-Profile Bar */
.profiles-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 22px;
}

.profile-selector-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  flex: 1;
}

.profile-selector-group select {
  max-width: 360px;
  font-weight: 700;
  font-size: 15px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge.verified {
  background: var(--green-bg);
  color: var(--green);
}

.badge.workspace {
  background: var(--amber-bg);
  color: var(--amber);
}

.badge.google {
  background: var(--blue-bg);
  color: var(--blue);
}

/* Overview KPIs */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.kpi-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.kpi-card .kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.kpi-card .kpi-value {
  font-size: 26px;
  font-weight: 800;
  margin: 6px 0 2px;
  letter-spacing: -0.03em;
}

.kpi-card .kpi-sub {
  font-size: 12px;
  color: var(--muted);
}

/* GBP Section Tabs */
.gbp-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.gbp-tab {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 14px 18px;
  font-weight: 650;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gbp-tab[aria-selected="true"] {
  color: var(--orange);
  border-bottom-color: var(--orange);
  font-weight: 750;
}

.tab-count {
  background: #ecece4;
  color: #252720;
  font-size: 11px;
  font-weight: 750;
  padding: 2px 7px;
  border-radius: 99px;
}

.gbp-tab[aria-selected="true"] .tab-count {
  background: #fde6dc;
  color: var(--orange);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* Hours table */
.hours-list {
  border-top: 1px solid var(--line);
  margin-top: 12px;
}

.hours-row {
  display: grid;
  grid-template-columns: 140px 110px 1fr 110px;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #ebebe5;
}

.hours-day {
  font-weight: 700;
  font-size: 14px;
}

.hours-times {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hours-times input[type="time"] {
  max-width: 150px;
  padding: 8px 10px;
}

/* Attributes Grid */
.attributes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 12px 0 18px;
}

/* Tags / Chips */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip {
  background: #f0efe8;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chip button {
  background: none;
  border: 0;
  padding: 0;
  font-weight: 800;
  color: var(--muted);
  font-size: 13px;
}

/* Reviews */
.review-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
  background: #ffffff;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.stars {
  color: #e59819;
  font-size: 16px;
  letter-spacing: 1px;
}

.review-reply-box {
  margin-top: 14px;
  padding: 14px 16px;
  background: #f8f7f3;
  border-left: 3px solid var(--orange);
  border-radius: 8px;
}

/* Posts, Services & Products Grids */
.items-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.item-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.item-card img.item-thumb {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.price-pill {
  font-weight: 750;
  font-size: 14px;
  color: var(--dark);
  background: #f2efe7;
  padding: 4px 10px;
  border-radius: 8px;
}

/* Media / Pictures Gallery */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.media-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: white;
  display: flex;
  flex-direction: column;
}

.media-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #eae9e2;
}

.media-card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.upload-dropzone {
  border: 2px dashed #bfc4b6;
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  background: #faf9f5;
  cursor: pointer;
  display: block;
  transition: border-color 0.15s, background 0.15s;
}

.upload-dropzone:hover {
  border-color: var(--orange);
  background: #fffdfb;
}

dialog {
  width: min(680px, calc(100% - 28px));
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  background: white;
  color: inherit;
}

dialog::backdrop {
  background: rgba(22, 32, 19, 0.55);
}

footer {
  max-width: 1280px;
  margin: auto;
  padding: 24px 32px 36px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 720px) {
  .site-header {
    padding: 14px 20px;
  }

  main {
    padding: 20px 18px 48px;
  }

  .form-grid,
  .form-grid-3,
  .items-grid,
  .attributes-grid {
    grid-template-columns: 1fr;
  }

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

  .hours-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }
}

/* Inter, served from this site (brand move 1, 2026-11-17) */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2'); }
