/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:       #C9A96E;
  --primary-rgb:   201, 169, 110;
  --secondary:     #E8C99A;
  --bg:            #0a0a0a;
  --card-bg:       rgba(255, 255, 255, 0.05);
  --card-border:   rgba(255, 255, 255, 0.10);
  --text-white:    #ffffff;
  --text-muted:    #888888;
  --whatsapp:      #25D366;
  --radius-card:   12px;
  --radius-btn:    8px;
  --radius-map:    8px;
}

html, body {
  min-height: 100%;
  background-color: var(--bg);
  color: var(--text-white);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-image: radial-gradient(
    ellipse 80% 40% at 50% 0%,
    rgba(var(--primary-rgb), 0.10) 0%,
    transparent 70%
  );
  background-attachment: fixed;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; }

/* ─── Utility ───────────────────────────────────────────────── */
.hidden { display: none !important; }
.view   { min-height: 100vh; }

/* ─── Shimmer Skeleton ──────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position:  200% 0; }
  100% { background-position: -200% 0; }
}

.shimmer {
  background: linear-gradient(
    90deg,
    #1a1a1a 25%,
    #2a2a2a 50%,
    #1a1a1a 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

.skeleton-wrapper {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 16px 24px;
}

.sk-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.sk-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sk-line {
  height: 14px;
  border-radius: 8px;
}
.sk-title    { width: 55%; height: 20px; }
.sk-subtitle { width: 38%; }

.sk-card {
  width: 100%;
  height: 230px;
  border-radius: var(--radius-card);
  margin-bottom: 16px;
}

/* ─── Fade Animations ───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-view {
  animation: fadeUp 0.4s ease-out forwards;
}

.branch-card {
  opacity: 0;
  animation: fadeUp 0.4s ease-out forwards;
}

/* ─── Generic View ──────────────────────────────────────────── */
.generic-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 32px;
  text-align: center;
  gap: 28px;
}

.generic-logo {
  width: 110px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.generic-msg {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 280px;
}

/* ─── Business View ─────────────────────────────────────────── */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 16px 16px;
}

.biz-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 36px;
  gap: 8px;
}

.biz-logo-wrap {
  margin-bottom: 4px;
}

.biz-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary);
  box-shadow: 0 8px 32px rgba(201, 169, 110, 0.15);
}

.biz-name {
  color: var(--text-white);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
}

.biz-slogan {
  color: var(--secondary);
  font-size: 14px;
  font-style: italic;
  line-height: 1.5;
}

/* ─── Branch Cards ──────────────────────────────────────────── */
.branches-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 40px;
}

.branch-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.branch-name {
  color: var(--text-white);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 4px;
}

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

.branch-map {
  display: block;
  width: 100%;
  height: 150px;
  border-radius: var(--radius-map);
  border: 1px solid var(--card-border);
  margin-bottom: 12px;
}

/* ─── Action Buttons ────────────────────────────────────────── */
.branch-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover,
.btn:active {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.btn-call {
  background-color: var(--primary);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
}

.btn svg {
  flex-shrink: 0;
  pointer-events: none;
}

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-powered {
  color: var(--text-muted);
  font-size: 12px;
}

.footer-logo {
  width: 20px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.75;
}

.footer-link {
  color: var(--text-muted);
  font-size: 12px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--text-white);
}

/* ─── Floating Logo ─────────────────────────────────────────── */
@keyframes floatAnim {
  0%, 100% { transform: translateY(-5px); }
  50%       { transform: translateY(5px); }
}

.float-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
  transition: bottom 0.3s ease, right 0.3s ease;
}

.float-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  flex-shrink: 0;
  transition: width 0.3s ease, height 0.3s ease;
}

.float-logo.float-anim {
  animation: floatAnim 3s ease-in-out infinite;
}

.float-logo.mini {
  width: 30px;
  height: 30px;
  animation: none;
}

/* ─── Bubbles ───────────────────────────────────────────────── */
.bubbles {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bubbleOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(4px); }
}

.bubble {
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 16px 16px 4px 16px;
  padding: 12px 16px;
  max-width: 220px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  animation: bubbleIn 0.4s ease-out forwards;
  pointer-events: none;
}

.bubble::after {
  content: '';
  position: absolute;
  bottom: -7px;
  right: 12px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid #ffffff;
}

.bubble.fade-out {
  animation: bubbleOut 0.3s ease-out forwards;
}

/* ─── Responsive — Tablet / Desktop ────────────────────────── */
@media (min-width: 768px) {
  .container {
    padding: 48px 24px 24px;
  }

  .branch-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
  }

  .btn {
    flex: 1;
  }
}
