/* ============================================
   SRI KASI NATTUKOTTAI NAGARA SATRAM
   Gallery Stylesheet – gallery.css
   Professional Premium Aesthetics
============================================ */

/* ── Base Gallery Styles ── */
.gallery-main-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--clr-bg) 0%, #FFFFFF 100%);
}

.gallery-locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

/* ── Location Card ── */
.location-card {
  background: var(--clr-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(232, 99, 26, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
}

.location-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(232, 99, 26, 0.15);
}

/* ── Card Image ── */
.location-img-wrap {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.location-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(232,99,26,0) 40%, rgba(232, 98, 26, 0.342) 100%);
  pointer-events: none;
}

.location-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.location-card:hover .location-img {
  transform: scale(1.08);
}

.location-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(18, 47, 42, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* ── Card Content ── */
.location-content {
  padding: 30px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.location-city {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  color: var(--clr-primary);
  margin-bottom: 8px;
  font-weight: 700;
}

.location-area {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.location-area::before {
  content: '\f3c5'; /* fa-location-dot */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--clr-primary);
}

/* ── Card Details (Glassmorphism inspired borders) ── */
.location-details {
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--clr-text);
  line-height: 1.5;
}

.detail-icon {
  color: var(--clr-primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 99, 26, 0.1);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Card Actions ── */
.location-actions {
  margin-top: 24px;
}

.btn-map-view {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: transparent;
  color: var(--clr-primary);
  border: 1px solid var(--clr-primary);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-map-view:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  box-shadow: 0 4px 15px rgba(232, 99, 26, 0.2);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .gallery-locations-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== GLASSY SHINE HOVER EFFECT ===== */
@keyframes glassShine {
  0% { left: -150%; }
  100% { left: 150%; }
}

.location-img-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  z-index: 2;
  pointer-events: none;
}
.location-card:hover .location-img-wrap::before {
  animation: glassShine 0.8s ease forwards;
}

/* -- Contact Reference Table -- */
.contact-reference-section {
  padding-bottom: 50px;
}

.chatram-contact-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--clr-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-top: 20px;
}

.chatram-contact-table th {
  background: rgba(232, 99, 26, 0.05);
  color: var(--clr-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 18px 24px;
  text-align: left;
  border-bottom: 2px solid rgba(232, 99, 26, 0.1);
}

.chatram-contact-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--clr-border);
  vertical-align: middle;
  color: var(--clr-text);
}

.chatram-contact-table tbody tr:last-child td {
  border-bottom: none;
}

.chatram-contact-table tbody tr:hover {
  background: rgba(232, 99, 26, 0.02);
}

.loc-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--clr-dark);
}

.mgr-info {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mgr-info i {
  color: var(--clr-accent);
}

.state-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.state-tn { background: #e3f2fd; color: #1565c0; }
.state-up { background: #f3e5f5; color: #7b1fa2; }
.state-bh { background: #e8f5e9; color: #2e7d32; }
.state-mh { background: #fff3e0; color: #e65100; }
.state-wb { background: #ffebee; color: #c62828; }

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

