/* SRK Honda – Locations (Theme matched with home_page.css) */

:root {
  --red: #d50000;
  --red-soft: #ffebee;
  --red-dark: #a50000;
  --gold: #d4af37;

  --dark: #0a0a0a;

  --gray-900: #0a0a0a;
  --gray-700: #2e2e2e;
  --gray-600: #424242;
  --gray-500: #616161;
  --gray-200: #e0e0e0;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --shadow-soft: 0 12px 36px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-strong: 0 20px 50px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.5);

  --maxw: 1280px;
}

body { background: #f5f5f7; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HERO */
.hero-header {
  margin-top: 18px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.35), rgba(255,255,255,0) 50%),
    linear-gradient(135deg, rgba(213,0,0,0.08), rgba(212,175,55,0.08));
  min-height: clamp(160px, 26vw, 260px);
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  padding: clamp(16px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--gray-900);
}

.hero-title {
  font-size: clamp(22px, 3.2vw, 40px);
  line-height: 1.05;
  margin: 0 0 8px 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0;
  opacity: .9;
  font-size: clamp(12px, 1.1vw, 14px);
  color: var(--gray-600);
}

/* Titles */
.page-title {
  margin: 18px 0 6px;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 800;
  color: var(--gray-900);
}

.page-subtitle {
  margin: 0 0 18px;
  font-size: clamp(12px, 1.1vw, 13px);
  color: var(--gray-500);
}

/* GRID */
.locations-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .locations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 920px) {
  .locations-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1320px) {
  .locations-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* CARD */
.location-card {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(255,255,255,0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.location-header {
  padding: 14px 16px 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.location-header h3 {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.loc-sub {
  margin: 6px 0 0;
  font-size: 12px;
  opacity: .9;
}

.location-body {
  padding: 14px 16px 10px;
  flex: 1;
}

.loc-address {
  margin: 0 0 10px;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.45;
}

.loc-phone {
  margin: 0;
  color: var(--gray-900);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

a { text-decoration: none; }

/* BUTTONS */
.btn-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  width: 100%;
  min-width: 0;
  box-sizing: border-box;

  padding: 8px 12px;
  border-radius: var(--radius-pill);

  font-size: 11px;
  font-weight: 800;
  text-align: center;

  border: 1px solid rgba(0,0,0,0.08);
  color: var(--gray-900);
  background: #fff;

  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;

  white-space: nowrap;
  line-height: 1;
  min-height: 44px;

  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  background: #fff;
}

.btn-wa {
  border-color: rgba(34,197,94,.30);
  background: rgba(34,197,94,.10);
}

.btn-map {
  border-color: rgba(213,0,0,.25);
  background: rgba(213,0,0,.08);
}
.btn-map:hover { background: rgba(213,0,0,.12); }

.btn-staff {
  border-color: rgba(212,175,55,.45);
  background: rgba(212,175,55,.14);
}
.btn-staff:hover { background: rgba(212,175,55,.20); }

.btn-staff.is-disabled{
  opacity: .55;
  filter: grayscale(.2);
  pointer-events: none;
}

/* Button Icons */
.btn-pill::before{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  flex: 0 0 12px;
  text-align: center;
  font-weight: 900;
  opacity: .9;
  line-height: 1;
}

.btn-pill.btn-call::before{ content: "\260E"; }
.btn-pill.btn-wa::before{ content: "\2706"; }
.btn-pill.btn-staff::before{ content: "\263B"; }
.btn-pill.btn-map::before{ content: "\27A4"; }

/* ACTIONS LAYOUT */
.location-actions{
  padding: 12px 16px 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  align-items: stretch;
}

.location-actions .btn-pill{
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.location-actions .btn-map{
  grid-column: 1 / -1;
}

/* Mobile */
@media (max-width: 420px){
  .location-actions{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .location-actions .btn-map{ grid-column: 1 / -1; }

  .btn-pill{ gap: 4px; font-size: 10px; padding: 7px 10px; min-height: 42px; }
  .btn-pill::before{ width: 11px; flex-basis: 11px; }
}

@media (max-width: 520px){
  .btn-pill{ font-size: 10px; padding: 7px 10px; }
}