/* Base container */
.kaia-locations-archive,
.kaia-locations-single {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.kaia-location-card {
  margin-bottom: 1.5rem;
}

/*
 * Location Detail Page Styles
 * (ported from the child theme so templates can live in the plugin)
 */
.kaia-location-single {
  padding: 0;
}

.kaia-location-article {
  margin: 0;
}

/* Hero Section */
.kaia-location-hero {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: #2c2c2c;
}

.kaia-location-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kaia-location-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 40px 20px;
}

.kaia-location-hero-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.kaia-location-hero-content .kaia-location-title {
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.kaia-location-hero-content .kaia-location-group {
  color: #ff22a2;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Header (when no image) */
.kaia-location-header {
  background: #fff;
  padding: 60px 20px 40px;
  text-align: center;
  border-bottom: 1px solid #e8e8e8;
}

.kaia-location-header .kaia-location-title {
  font-size: 48px;
  font-weight: 700;
  color: #2c2c2c;
  margin: 0 0 12px 0;
}

.kaia-location-header .kaia-location-group {
  color: #ff22a2;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

/* Content Wrapper */
.kaia-location-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 60px;
  align-items: start;
}

/* Main Content */
.kaia-location-main {
  min-width: 0;
}

.kaia-location-description {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 40px;
}

.kaia-location-description p {
  margin-bottom: 1.5em;
}

.kaia-location-section-title {
  font-size: 32px;
  font-weight: 700;
  color: #2c2c2c;
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 2px solid #ff22a2;
}

.kaia-location-map-section {
  margin-top: 40px;
}

.kaia-location-map {
  width: 100%;
  height: 400px;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  position: relative;
}

.kaia-location-map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666;
  font-size: 16px;
}

/* Sidebar */
.kaia-location-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.kaia-location-info-card,
.kaia-location-group-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.kaia-location-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #2c2c2c;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #ff22a2;
}

.kaia-location-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.kaia-location-info-item:last-child {
  margin-bottom: 0;
}

.kaia-location-info-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #ff22a2;
  margin-top: 2px;
}

.kaia-location-info-icon svg {
  width: 100%;
  height: 100%;
}

.kaia-location-info-content {
  flex: 1;
  min-width: 0;
}

.kaia-address-line {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 4px;
}

.kaia-address-line:last-child {
  margin-bottom: 0;
}

.kaia-location-phone-link {
  font-size: 15px;
  color: #ff22a2;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.kaia-location-phone-link:hover {
  color: #e01a8f;
  text-decoration: underline;
}

.kaia-location-member-login {
  display: block;
  padding: 12px 24px;
  background: #ff22a2;
  color: #fff !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
  margin-top: 8px;
}

.kaia-location-member-login:hover {
  background: #e01a8f;
}
