/* Font Size Variables - Import from home.css hierarchical system */
:root {
  /* Master Font Sizes - Location Page Specific */
  --font-display-xl: clamp(4rem, 12vw, 8rem);
  --font-display-lg: clamp(4rem, 8vw, 7rem);
  --font-display-md: 4.2rem;
  --font-display-sm: 3.2rem;
  --font-title-xl: 3rem;
  --font-title-lg: clamp(2rem, 4vw, 2.2rem);
  --font-title-md: 1.6rem;
  --font-title-sm: 1.2rem;
  --font-body-xl: clamp(1.8rem, 3vw, 2rem);
  --font-body-lg: 1.5rem;
  --font-body-md: 1.8rem;
  --font-body-base: clamp(1.5rem, 2.5vw, 1.7rem);
  --font-body-sm: 1.7rem;
  --font-text-lg: 2rem;
  --font-text-md: 1.5rem;
  --font-text-base: 18px;
  --font-text-sm: 1.1rem;
  --font-text-xs: 0.9rem;
  
  /* Location Page Specific Assignments */
  --map-title: var(--font-body-xl);
  --map-description: var(--font-text-lg);
  --map-overlay: var(--font-text-lg);
  --map-overlay-icon: 2rem;
  --card-title: var(--font-title-md);
  --card-icon: 32px;
  --address-main: var(--font-text-lg);
  --address-detail: var(--font-text-lg);
  --postal-code: var(--font-text-xs);
  --phone-link: var(--font-title-lg);
  --phone-note: var(--font-text-lg);
  --transport-type: 0.8rem;
  --transport-desc: 0.95rem;
  --parking-text: 1rem;
  --parking-note: var(--font-text-xs);
  --parking-tel: 0.95rem;
  --notice-icon: 2.5rem;
  --notice-title: var(--font-title-md);
  --notice-text: var(--font-text-lg);
}

/* Location Container */
.location-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 50px;
}

/* Map Section */
.map-section {
  grid-column: span 2;
  margin-bottom: 30px;
}

.map-card {
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.map-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2c2c2c 0%, #555 50%, #2c2c2c 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.map-card:hover::before {
  opacity: 1;
}

.map-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  border-color: #ddd;
}

.map-header {
  margin-bottom: 30px;
}

.map-header h3 {
  font-size: var(--map-title);
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.map-header p {
  color: #666;
  font-size: var(--map-description);
  margin-bottom: 0;
  line-height: 1.6;
  letter-spacing: -0.1px;
}

/* Map Container */
.map-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.map-container:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  transform: scale(1.02);
}

.map-link {
  display: block;
  position: relative;
  text-decoration: none;
}

.map-image {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.3s ease;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 44, 44, 0.5);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: var(--map-overlay);
}

.map-overlay i {
  font-size: var(--map-overlay-icon);
  margin-bottom: 10px;
}

.map-link:hover .map-overlay {
  opacity: 1;
}

.map-link:hover .map-image {
  transform: scale(1.05);
}

/* Information Section */
.info-section {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Information Cards */
.info-card {
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  padding: 35px 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2c2c2c 0%, #555 50%, #2c2c2c 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.info-card:hover::before {
  opacity: 1;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  border-color: #ddd;
}

/* Card Icon */
.card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #2c2c2c 0%, #444 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: all 0.3s ease;
  position: relative;
}

.card-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #666, #333, #666);
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.info-card:hover .card-icon::after {
  opacity: 1;
}

.card-icon i {
  font-size: var(--card-icon);
  color: white;
  transition: all 0.3s ease;
}

.info-card:hover .card-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, #333 0%, #555 100%);
}

/* Card Content */
.card-content h3 {
  font-size: var(--card-title);
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

/* Address Card Specific */
.address-info {
  margin: 20px 0;
}

.address-main {
  font-size: var(--address-main);
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.address-detail {
  font-size: var(--address-detail);
  font-weight: 600;
  color: #444;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.postal-code {
  font-size: var(--postal-code);
  color: #666;
  font-weight: 500;
  margin-bottom: 0;
}

/* Phone Card Specific */
.phone-info {
  margin: 20px 0;
}

.phone-link {
  display: block;
  color: #2c2c2c;
  text-decoration: none;
  font-weight: 500;
  font-size: var(--phone-link);
  margin-bottom: 8px;
  transition: all 0.3s ease;
  letter-spacing: -0.3px;
}

.phone-link:hover {
  color: #000;
  text-decoration: none;
  transform: scale(1.05);
}

.phone-note {
  color: #666;
  font-size: var(--phone-note);
  font-weight: 500;
  margin-bottom: 0;
}

/* Transportation Card Specific */
.transport-info {
  margin: 20px 0;
}

.transport-item {
  margin-bottom: 15px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  transition: all 0.3s ease;
}

.info-card:hover .transport-item {
  background: rgba(255, 255, 255, 0.95);
  border-color: #ddd;
  transform: scale(1.02);
}

.transport-type {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: var(--transport-type);
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: -0.2px;
}

.transport-type.subway {
  background: linear-gradient(135deg, #2c2c2c 0%, #444 100%);
  color: white;
}

.transport-type.bus {
  background: linear-gradient(135deg, #555 0%, #777 100%);
  color: white;
}

.transport-desc {
  display: block;
  color: #444;
  font-size: var(--transport-desc);
  font-weight: 500;
  margin-top: 5px;
  letter-spacing: -0.2px;
}

/* Parking Card Specific */
.parking-info {
  margin: 20px 0;
}

.parking-info p {
  margin-bottom: 8px;
  font-size: var(--parking-text);
  font-weight: 600;
  color: #2c2c2c;
  letter-spacing: -0.2px;
}

.parking-note {
  color: #666 !important;
  font-weight: 500 !important;
  font-size: var(--parking-note) !important;
}

.parking-tel {
  color: #444 !important;
  font-weight: 600 !important;
  font-size: var(--parking-tel) !important;
}

/* Individual Card Accent Colors */
.address-card:hover {
  background: linear-gradient(135deg, #fafafa 0%, #f0f8ff 100%);
}

.phone-card:hover {
  background: linear-gradient(135deg, #fafafa 0%, #f8fff8 100%);
}

.transportation-card:hover {
  background: linear-gradient(135deg, #fafafa 0%, #fff8f0 100%);
}

.parking-card:hover {
  background: linear-gradient(135deg, #fafafa 0%, #f8f0ff 100%);
}

/* Additional Info */
.additional-info {
  margin-top: 60px;
}

.visit-notice {
  background: linear-gradient(135deg, #2c2c2c 0%, #444 100%);
  color: white;
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 25px;
  transition: all 0.3s ease;
}

.visit-notice:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(44, 44, 44, 0.2);
  background: linear-gradient(135deg, #333 0%, #555 100%);
}

.notice-icon {
  flex-shrink: 0;
}

.notice-icon i {
  font-size: var(--notice-icon);
  color: #fff;
}

.notice-content h4 {
  font-size: var(--notice-title);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.notice-content p {
  font-size: var(--notice-text);
  line-height: 1.6;
  margin-bottom: 0;
  opacity: 0.95;
}

.notice-content strong {
  font-weight: 700;
  color: #fff;
}

/* Responsive Design */
@media (max-width: 992px) {
  .location-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .map-section,
  .info-section {
    grid-column: span 1;
  }
  
  .info-section {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  :root {
    /* Tablet font adjustments */
    --map-title: 1.5rem;
    --map-description: 1rem;
    --map-overlay: 1rem;
    --map-overlay-icon: 1.5rem;
    --card-title: 1.25rem;
    --card-icon: 28px;
    --address-main: 1rem;
    --address-detail: 1rem;
    --postal-code: 0.9rem;
    --phone-link: 1.15rem;
    --phone-note: 0.9rem;
    --transport-type: 0.8rem;
    --transport-desc: 1rem;
    --parking-text: 1rem;
    --parking-note: 0.9rem;
    --parking-tel: 1rem;
    --notice-icon: 2rem;
    --notice-title: 1.25rem;
    --notice-text: 1.05rem;
  }
  
  .location-content {
    gap: 25px;
    margin-top: 40px;
  }
  
  .map-card {
    padding: 30px 25px;
    border-radius: 16px;
  }
  
  .map-container {
    border-radius: 12px;
  }
  
  .map-overlay i {
    margin-bottom: 8px;
  }
  
  .info-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .info-card {
    padding: 30px 25px;
    min-height: 220px;
    border-radius: 16px;
  }
  
  .card-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
  }
  
  .transport-item {
    padding: 10px;
  }
  
  .transport-type {
    padding: 3px 10px;
  }
  
  .additional-info {
    margin-top: 40px;
  }
  
  .visit-notice {
    padding: 30px 25px;
    flex-direction: column;
    text-align: center;
    gap: 20px;
    border-radius: 16px;
  }
  
  .info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 480px) {
  :root {
    /* Mobile font adjustments */
    --map-title: 1.3rem;
    --card-title: 1.15rem;
    --card-icon: 24px;
    --address-main: 1rem;
    --phone-link: 1rem;
    --notice-title: 1.1rem;
    --notice-text: 1rem;
  }
  
  .map-card {
    padding: 25px 20px;
  }
  
  .info-card {
    padding: 25px 20px;
    min-height: 200px;
  }
  
  .card-icon {
    width: 60px;
    height: 60px;
  }
  
  .visit-notice {
    padding: 25px 20px;
  }
}