﻿/**
 * Global Styles â€“ Temple Connect Public Frontend
 * Light warm golden / saffron theme. Fully responsive.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800&family=Crimson+Pro:wght@400;600;700&display=swap');

/* â”€â”€â”€ CSS Variables â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
  --gold: #d4af37;
  --gold-light: #f5d56f;
  --gold-pale: #fef9e7;
  --beige: #f5f1e8;
  --beige-dark: #ede8da;
  --saffron: #e8902a;
  --saffron-light: #fff3e0;
  --deep-red: #672d01;
  --maroon: #8b4513;
  --white: #ffffff;

  --text: #2c2c2c;
  --text-light: #666;
  --text-muted: #999;

  --success: #4CAF50;
  --success-bg: #e8f5e9;
  --success-light: #f0fdf4;
  --success-border: #bbf7d0;
  --error: #e53e3e;
  --error-bg: #fff5f5;
  --warning: #dd6b20;
  --warning-bg: #fffaf0;
  --info: #3182ce;
  --info-bg: #ebf8ff;

  --border: rgba(212, 175, 55, 0.3);
  --border-light: rgba(212, 175, 55, 0.15);

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 4px 18px rgba(212, 175, 55, 0.28);
  --shadow-gold-hover: 0 8px 28px rgba(212, 175, 55, 0.40);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-2xl: 48px;
  --sp-3xl: 64px;

  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --transition: 240ms ease-in-out;
  --transition-slow: 400ms ease-in-out;
  --nav-h: 68px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Crimson Pro', Georgia, serif;
}

/* â”€â”€â”€ Reset â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text);
  background: var(--beige);
  min-height: 100vh;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

::selection {
  background: rgba(245, 213, 111, 0.45);
  color: var(--deep-red);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--gold-pale);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: var(--radius-full);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  color: var(--deep-red);
}

/* â”€â”€â”€ Utilities â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-sm {
  gap: var(--sp-sm);
}

.gap-md {
  gap: var(--sp-md);
}

.gap-lg {
  gap: var(--sp-lg);
}

.text-muted {
  color: var(--text-muted);
}

.text-gold {
  color: var(--gold);
}

.text-deep {
  color: var(--deep-red);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}

/* â”€â”€â”€ Spinner â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.spinner-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-3xl) 0;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.spinner-sm {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* logo */
.sidebar-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-primary-gold), var(--color-dark-gold));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-golden);
  flex-shrink: 0;
}

/* â”€â”€â”€ Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--deep-red);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  box-shadow: var(--shadow-gold-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--deep-red);
  background: var(--gold-pale);
}

.btn-ghost {
  color: var(--text-light);
}

.btn-ghost:hover {
  color: var(--deep-red);
  background: var(--gold-pale);
  border-radius: var(--radius-md);
}

.btn-danger {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(229, 62, 62, 0.2);
}

.btn-danger:hover {
  background: var(--error);
  color: var(--white);
}

.btn-sm {
  padding: 7px 14px;
  font-size: var(--fs-xs);
}

.btn-lg {
  padding: 14px 28px;
  font-size: var(--fs-base);
}

.btn-icon {
  padding: 8px;
  border-radius: var(--radius-md);
}

/* â”€â”€â”€ Follow Button â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  transition: all var(--transition);
  cursor: pointer;
  border: 1.5px solid var(--border);
}

.follow-btn.following {
  background: linear-gradient(135deg, #fff3e0, var(--saffron-light));
  color: var(--saffron);
  border-color: rgba(232, 144, 42, 0.35);
  box-shadow: 0 2px 8px rgba(232, 144, 42, 0.20);
}

.follow-btn.unfollow {
  background: var(--white);
  color: var(--text-light);
}

.follow-btn:hover {
  transform: translateY(-1px);
}

/* â”€â”€â”€ Navigation â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(103, 45, 1, 0.06);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  width: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.navbar-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
}

.navbar-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--deep-red);
  display: block;
}

.navbar-search {
  flex: 1;
  max-width: 440px;
  position: relative;
}

.navbar-search input {
  width: 100%;
  padding: 9px 16px 9px 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--gold-pale);
  font-size: var(--fs-sm);
  font-family: var(--font-body);
  color: var(--text);
  transition: all var(--transition);
}

.navbar-search input:focus {
  background: var(--white);
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.navbar-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.navbar-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
}

.navbar-search-clear:hover {
  color: var(--deep-red);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-shrink: 0;
}

.navbar-follow-count {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-xs);
  color: var(--saffron);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--saffron-light);
  border: 1px solid rgba(232, 144, 42, 0.25);
  transition: all var(--transition);
}

.navbar-follow-count:hover {
  background: rgba(232, 144, 42, 0.2);
}

/* â”€â”€â”€ Badge â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge-info {
  background: var(--info-bg);
  color: var(--info);
}

.badge-saffron {
  background: var(--saffron-light);
  color: var(--saffron);
}

/* â”€â”€â”€ Hero â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero {
  background: linear-gradient(135deg, var(--beige) 0%, var(--gold-pale) 50%, var(--beige-dark) 100%);
  padding: var(--sp-3xl) 0 var(--sp-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(245, 213, 111, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--saffron);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-md);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  color: var(--deep-red);
  margin-bottom: var(--sp-md);
}

.hero-subtitle {
  font-size: clamp(var(--fs-base), 2vw, var(--fs-lg));
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto var(--sp-xl);
}

.hero-search {
  display: flex;
  gap: var(--sp-sm);
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow-md);
}

.hero-search input {
  flex: 1;
  border: none;
  background: none;
  font-size: var(--fs-base);
  font-family: var(--font-body);
  color: var(--text);
  outline: none;
  min-width: 0;
}

.hero-filters {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--sp-lg);
}

.filter-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-light);
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--gold-pale);
  color: var(--deep-red);
  border-color: var(--gold);
}

/* â”€â”€â”€ Section / Cards Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--sp-lg);
  gap: var(--sp-md);
}

.section-title {
  font-size: var(--fs-2xl);
  color: var(--deep-red);
}

.section-sub {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: var(--fw-normal);
}

.temples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-lg);
}

/* â”€â”€â”€ Temple Card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.temple-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.temple-card:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
  border-color: var(--border);
}

.temple-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--gold-pale), var(--beige-dark));
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.temple-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.temple-card:hover .temple-card-img img {
  transform: scale(1.05);
}

.temple-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  opacity: 0.45;
  background: linear-gradient(135deg, var(--gold-pale) 0%, var(--beige-dark) 100%);
}

.temple-card-badge {
  position: absolute;
  top: var(--sp-sm);
  right: var(--sp-sm);
}

.temple-card-follow {
  position: absolute;
  top: var(--sp-sm);
  left: var(--sp-sm);
}

.temple-card-body {
  padding: var(--sp-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.temple-card-name {
  font-size: var(--fs-lg);
  color: var(--deep-red);
  font-weight: var(--fw-bold);
  line-height: 1.2;
}

.temple-card-location {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.temple-card-desc {
  font-size: var(--fs-xs);
  color: var(--text-light);
  line-height: 1.55;
  margin-top: 4px;
  flex: 1;
}

.temple-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-sm);
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--border-light);
}

.temple-card-meta {
  display: flex;
  gap: var(--sp-sm);
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* â”€â”€â”€ Followed Temples Strip â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.followed-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: var(--sp-md) 0;
}

.followed-strip-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  overflow-x: auto;
  scrollbar-width: none;
}

.followed-strip-inner::-webkit-scrollbar {
  display: none;
}

.followed-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--deep-red);
}

.followed-chip img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.followed-chip .chip-placeholder {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.followed-chip:hover {
  background: var(--beige-dark);
  box-shadow: var(--shadow-sm);
}

.followed-chip.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: var(--shadow-gold);
}

.followed-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--saffron);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* â”€â”€â”€ Temple Detail Page â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.detail-hero {
  height: 320px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold-pale), var(--beige-dark));
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
}

.detail-hero-content {
  position: absolute;
  bottom: var(--sp-xl);
  left: 0;
  right: 0;
  color: var(--white);
}

.detail-hero-name {
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.detail-hero-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-sm);
  margin-top: 6px;
}

.detail-hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  opacity: 0.35;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-xl);
  align-items: start;
  margin-top: var(--sp-xl);
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  max-height: 32rem;
  overflow-y: auto;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.info-card-title {
  font-size: var(--fs-lg);
  color: var(--deep-red);
  margin-bottom: var(--sp-md);
  display: flex;
  align-items: center;
  gap: 8px;
}

.timing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  gap: var(--sp-md);
}

.timing-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.timing-label {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--text);
}

.timing-time {
  font-size: var(--fs-sm);
  color: var(--saffron);
  font-weight: var(--fw-medium);
}

.timing-days {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: capitalize;
}

.festival-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.festival-item:last-child {
  border-bottom: none;
}

.festival-name {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--deep-red);
}

.festival-date {
  font-size: var(--fs-xs);
  color: var(--saffron);
  margin-top: 2px;
}

.festival-desc {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

/* â”€â”€â”€ Gallery â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--sp-sm);
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* â”€â”€â”€ Lightbox â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-md);
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: var(--sp-md);
  right: var(--sp-md);
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  padding: 8px;
  cursor: pointer;
  display: flex;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* â”€â”€â”€ Sidebar Detail Widgets â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.address-map-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--info-bg);
  color: var(--info);
  border-radius: var(--radius-md);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  border: 1px solid rgba(49, 130, 206, 0.2);
  transition: all var(--transition);
  margin-top: var(--sp-sm);
  text-decoration: none;
  width: fit-content;
}

.address-map-btn:hover {
  background: var(--info);
  color: var(--white);
}

/* â”€â”€â”€ Alert / Toast â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(229, 62, 62, 0.2);
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.alert-info {
  background: var(--info-bg);
  color: var(--info);
  border: 1px solid rgba(49, 130, 206, 0.2);
}

/* â”€â”€â”€ Empty / No Results â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.empty-state {
  text-align: center;
  padding: var(--sp-3xl) var(--sp-xl);
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
}

.empty-icon {
  font-size: 4rem;
  opacity: 0.45;
}

.empty-title {
  font-size: var(--fs-xl);
  color: var(--deep-red);
}

.empty-sub {
  font-size: var(--fs-sm);
  max-width: 360px;
}

/* â”€â”€â”€ Pagination â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-xl);
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-light);
}

.page-btn:hover,
.page-btn.active {
  background: var(--gold-pale);
  color: var(--deep-red);
  border-color: var(--gold);
}

.page-btn.active {
  font-weight: var(--fw-bold);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* â”€â”€â”€ Footer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border-light);
  padding: var(--sp-xl) 0;
  margin-top: var(--sp-3xl);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-md);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-copy {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: var(--sp-md);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--deep-red);
}

/* â”€â”€â”€ Skeleton Loader â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@keyframes shimmer {
  0% {
    background-position: -400px 0
  }

  100% {
    background-position: 400px 0
  }
}

.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, rgba(255, 255, 255, 0.5) 50%, var(--border-light) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius-sm);
}

/* â”€â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (min-width: 640px) {
  .navbar-title {
    font-size: var(--fs-2xl);
  }
}

@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    order: -1;
  }

  .mobile-col {
    flex-direction: column !important;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: var(--sp-xl) 0 var(--sp-lg);
  }

  .hero-search {
    flex-direction: column;
    padding: var(--sp-sm);
    border-radius: var(--radius-xl);
  }

  .hero-search input {
    font-size: var(--fs-sm);
  }

  .temples-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    height: 220px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-header {
    flex-direction: column;
    gap: 4px;
  }

  .navbar-search {
    display: none;
  }

  /* search in hero on mobile */
  .footer-inner {
    flex-direction: column;
    gap: var(--sp-sm);
  }
}

/* â”€â”€â”€ Contact Popup â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1999;
}

.contact-card {
  box-shadow: var(--shadow-lg) !important;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md);
  border-radius: var(--radius-md);
  background: var(--gold-pale);
  border: 1.5px solid var(--border-light);
  width: 100%;
  text-align: left;
  transition: all var(--transition);
  color: var(--deep-red);
  font-weight: var(--fw-medium);
}

.contact-option:hover {
  background: var(--white);
  border-color: var(--gold);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.contact-option span {
  font-size: var(--fs-sm);
}

/* â”€â”€â”€ PWA Install Prompt â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pwa-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 2999;
}

.pwa-container {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  width: min(92%, 460px);
  pointer-events: auto;
}

.pwa-container-banner {
  bottom: var(--sp-lg);
}

.pwa-container-modal {
  top: 50%;
  transform: translate(-50%, -50%);
}

.pwa-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--border-light);
  padding: var(--sp-lg);
  overflow: hidden;
}

/* Minimal Banner adjustments */
.pwa-container-banner .pwa-card {
  padding: var(--sp-md) var(--sp-lg);
}

.pwa-header {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}

.pwa-container-banner .pwa-header {
  margin-bottom: 0;
}

.pwa-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
}

.pwa-container-banner .pwa-icon {
  width: 36px;
  height: 36px;
  font-size: 1.25rem;
}

.pwa-title-group h3 {
  font-size: var(--fs-lg);
  margin: 0;
  color: var(--deep-red);
}

.pwa-title-group p {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.pwa-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
}

.pwa-benefit-item {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 8px 12px;
  background: var(--gold-pale);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  color: var(--maroon);
}

.pwa-benefit-icon {
  color: var(--saffron);
  display: flex;
  align-items: center;
}

.pwa-actions {
  display: flex;
  gap: var(--sp-md);
}

.pwa-actions .btn {
  flex: 1;
  padding: 12px !important;
}

@media (max-width: 600px) {
  .pwa-container-banner {
    bottom: var(--sp-sm);
    width: 95%;
  }

  .pwa-container {
    width: 94%;
  }

  .pwa-card {
    padding: var(--sp-md);
  }

  /* In banner mode on mobile, stack things very tightly */
  .pwa-container-banner .pwa-header {
    flex-wrap: nowrap;
    gap: var(--sp-sm);
  }

  .pwa-container-banner .pwa-title-group p {
    display: none;
    /* Hide subtitle to save vertical space */
  }

  .pwa-container-banner .pwa-actions {
    margin-top: var(--sp-md);
    gap: var(--sp-sm);
  }

  .pwa-container-modal .pwa-benefits {
    grid-template-columns: 1fr;
    /* Single column on mobile modal */
    margin-bottom: var(--sp-lg);
  }

  .pwa-actions {
    flex-direction: row;
    /* Keep buttons side by side for banner if possible */
  }
}