/* ===========================
   MYJIN TATTOO - Location Page Final CSS
   (SEO/UX 대응 + 접근성 + 반응형)
   =========================== */

/* 변수 폴백 (common.css에 있으면 중복 무방) */
:root{
    --wealth-gold: #d4af37;
    --bright-gold: #ffd700;
    --white-text: #f5f5f5;
    --navy-bg: #0a0f1a;
    --ink-900: #0d0d0d;
    --ink-700: #333;
    --ink-400: #7a7a7a;
    --surface: #111;
  }
  
  /* 접근성 유틸 */
  .visually-hidden{
    position:absolute !important;
    height:1px;width:1px;
    overflow:hidden;
    clip:rect(1px,1px,1px,1px);
    white-space:nowrap;
    clip-path: inset(50%);
    border:0;padding:0;margin:-1px;
  }
  
  /* 상단 여백 보장 - 고정 헤더 대응(필요시 0 유지) */
  .main-content{ padding-top:0; }
  
  /* ===========================
     히어로 섹션
     =========================== */
  .hero-section{
    background: url('/assets/images/location/location-bg.jpg') center/cover no-repeat;
    color:#fff;
    padding:100px 0 80px;
    text-align:center;
    position:relative;
    overflow:hidden;
  }
  .hero-section::before{
    content:'';
    position:absolute; inset:0;
    background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity:.3;
  }
  .hero-section h1 {
    font-size:3rem;
    font-weight:900;
    color:#fff;
    letter-spacing:-0.03em;
    margin:0;
    position:relative; 
    z-index:2;
    text-shadow:0 2px 4px rgba(0,0,0,0.3);
    word-break:keep-all;
    line-height:1.4;
    text-align:center;
  }
  .hero-section h2 {
    font-size:2.2rem;
    font-weight:800;
    color:#fff;
    letter-spacing:-0.02em;
    margin:0 0 30px; /* ← 아래쪽만 20px 여백 */
    position:relative; 
    z-index:2;
    word-break:keep-all;
    line-height:1.3;
    text-align:center;
  }
  .hero-section .lede{
    font-size:1.125rem;
    line-height:1.75;
    color:rgba(255,255,255,0.9);
    max-width:760px;
    margin:12px auto 60px;
    position:relative; z-index:2;
    word-break:keep-all;
    text-align:center;
    hyphens:auto;
  }
  
  /* 상단 빠른 CTA */
  .quick-cta{
    display:flex; gap:12px; justify-content:center; align-items:center;
    margin-top:18px; flex-wrap:wrap;
    position:relative; z-index:2;
  }
  
  /* 버튼 베이스 & 변형 */
  .btn{
    appearance:none;
    border:1px solid transparent;
    padding:14px 20px;
    border-radius:14px;
    font-weight:700; font-size:1rem;
    text-decoration:none;
    display:inline-flex; align-items:center; justify-content:center; gap:10px;
    transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease;
    cursor:pointer;
  }
  .btn i{ font-size:1.05em; }
  .btn:focus-visible{ 
    outline:3px solid var(--bright-gold); 
    outline-offset:2px;
    box-shadow:0 0 0 1px var(--bright-gold);
  }
  
  .btn-primary{
    background:linear-gradient(135deg,var(--bright-gold),#f7d86a);
    color:#1a1a1a; border-color:rgba(0,0,0,0.1);
    box-shadow:0 8px 22px rgba(255,215,0,.35);
  }
  .btn-primary:hover{ transform:translateY(-2px); }
  
  .btn-outline{
    background:transparent; color:#fff;
    border-color:rgba(255,255,255,.35);
  }
  .btn-outline:hover{
    transform:translateY(-2px);
    border-color:rgba(255,255,255,.6);
    box-shadow:0 8px 20px rgba(255,255,255,.15);
  }
  
  /* ===========================
     지도 섹션
     =========================== */
  .map-section{
    padding:100px 0;
    background:#fff;
    color:#111; position:relative;
  }
  .map-container{
    max-width:1200px; margin:0 auto; padding:0 20px;
    position:relative; z-index:2;
  }
  
  /* 통일된 버튼 시스템 */
  .map-actions{
    display:flex; gap:15px; justify-content:center; flex-wrap:wrap;
    margin-bottom:60px;
  }
  
  /* 메인 길찾기 버튼 */
  .btn-map{
    min-width:220px;
    background:var(--bright-gold) !important; color:#1a1a1a !important;
    border:1px solid var(--bright-gold) !important;
    font-weight:700;
  }
  .btn-map:hover{
    transform:translateY(-5px);
    box-shadow:0 8px 25px rgba(255,215,0,0.5);
    border-color:var(--bright-gold) !important;
  }
  
  
  /* 지도 프레임 (지연 로딩 iframe) */
  .map-frame{
    border-radius:16px; overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.15);
    background:#fff;
    margin:0 0 40px 0;
  }
  .map-frame iframe{
    display:block; width:100%; height:420px; border:0;
  }
  
  @media (max-width: 768px) {
    .map-frame iframe {
      height: 300px; /* 모바일에서 높이 줄임 */
    }
  }
  
  /* 랜드마크 텍스트 경로 */
  .landmark-directions{
    background:linear-gradient(135deg, var(--surface) 0%, var(--ink-700) 50%, var(--surface) 100%);
    border-radius:20px; padding:25px;
    box-shadow:0 8px 25px rgba(0,0,0,.3);
    transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    border:1px solid var(--wealth-gold);
    color:var(--white-text);
    text-align:center;
  }
  .landmark-directions:hover{
    transform:translateY(-3px);
    box-shadow:0 15px 35px rgba(212,175,55,0.3);
    border-color:var(--bright-gold);
  }
  .landmark-directions h3{
    margin:0 0 8px; font-size:1.2rem; color:var(--bright-gold);
    font-weight:600;
    text-shadow:0 0 10px rgba(212,175,55,.3);
    padding-bottom:0;
    border-bottom:none;
    text-align:center;
  }
  .landmark-directions p{ 
    margin:0 0 15px; 
    color:var(--white-text);
    line-height:1.6;
    padding-bottom:10px;
    border-bottom:1px solid var(--wealth-gold);
  }
  .landmark-directions p:last-of-type{
    border-bottom:none;
  }
  .landmark-directions ol{
    margin:6px auto 25px auto; padding:0 0 15px 0; line-height:1.65;
    color:var(--white-text);
    border-bottom:1px solid var(--wealth-gold);
    text-align:center;
    list-style-position:inside;
  }
  
  /* 마지막 ol 요소는 경계선 제거 */
  .landmark-directions ol:last-of-type{
    border-bottom:none;
    margin-bottom:0;
  }
  
  /* 공통 섹션 타이틀 */
  .section-title{
    font-size:1.5rem; font-weight:800; letter-spacing:-0.01em;
    margin:0 0 40px; color:#111;
  }
  
  /* ===========================
     정보 블록 섹션
     =========================== */
  .info-section{ padding:40px 0; background:#fff; }
  .info-section .section-title{ color:#111; }
  
  .info-grid{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap:25px;
  }
  .info-block{
    background:linear-gradient(135deg, var(--surface) 0%, var(--ink-700) 50%, var(--surface) 100%);
    border-radius:20px; padding:25px;
    box-shadow:0 8px 25px rgba(0,0,0,.3);
    transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    border:1px solid var(--wealth-gold);
  }
  .info-block:hover{
    transform:translateY(-3px);
    box-shadow:0 15px 35px rgba(212,175,55,0.3);
    border-color:var(--bright-gold);
  }
  .block-header{
    display:flex; align-items:center;
    margin-bottom:20px; padding-bottom:15px;
    border-bottom:2px solid var(--wealth-gold);
  }
  .block-header i{
    font-size:1.8rem; color:var(--bright-gold); margin-right:12px;
    text-shadow:0 0 10px rgba(255,215,0,.5);
  }
  .block-header h3{
    font-size:1.4rem; font-weight:600; color:var(--wealth-gold); margin:0;
    text-shadow:0 0 10px rgba(212,175,55,.3);
  }
  .block-content{ display:flex; flex-direction:column; gap:15px; }
  
  .info-item{
    display:flex; justify-content:space-between; align-items:center;
    padding:12px 0; border-bottom:1px solid var(--wealth-gold);
  }
  .info-item:last-child{ border-bottom:none; }
  .info-item .label{
    font-weight:600; color:var(--bright-gold); font-size:.9rem; min-width:80px;
  }
  .info-item .value{
    color:var(--white-text); font-weight:500; text-align:right; flex:1; margin-left:15px;
  }
  
  /* address 태그의 기본 기울임체 제거 */
  .info-item address,
  .info-item address .value,
  .info-item address span{
    font-style:normal;
  }
  
  /* 내부 링크 네비 */
  .inline-nav{ 
    margin-top:20px; 
    padding-top:15px;
    border-top:1px solid var(--wealth-gold);
    display:flex; 
    gap:15px; 
    flex-wrap:wrap; 
    justify-content:center;
    align-items:center;
  }
  .inline-nav .text-link{
    background:transparent;
    color:var(--bright-gold);
    border:1px solid var(--wealth-gold);
    border-radius:8px;
    padding:8px 16px;
    text-decoration:none;
    font-weight:600;
    font-size:0.9rem;
    transition:all .3s ease;
    position:relative;
    overflow:hidden;
  }
  .inline-nav .text-link::before{
    content:'';
    position:absolute; inset:0;
    background:linear-gradient(135deg, var(--bright-gold), #f7d86a);
    opacity:0;
    transition:opacity .3s ease;
    z-index:-1;
  }
  .inline-nav .text-link:hover{
    color:#1a1a1a;
    border-color:var(--bright-gold);
    transform:translateY(-2px);
    box-shadow:0 4px 12px rgba(255,215,0,0.3);
  }
  .inline-nav .text-link:hover::before{
    opacity:1;
  }
  
  /* ===========================
     방문 FAQ
     =========================== */
  .faq-section{ padding:28px 0 48px; }
  .faq-section .section-title{ color:#111; }
  
  .faq-section details{
    border:1px solid #eaeaea; border-radius:12px; padding:14px 16px;
    background:#fff; box-shadow:0 8px 20px rgba(0,0,0,.06);
    margin-bottom:10px; text-align:center;
    transition:all 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, 
                background 0.3s ease, border 0.3s ease;
    position:relative; overflow:hidden;
  }
  .faq-section details::before{
    content:''; position:absolute; inset:0;
    background:linear-gradient(135deg, rgba(255,215,0,0.05) 0%, rgba(212,175,55,0.1) 50%, rgba(255,215,0,0.05) 100%);
    opacity:0; transition:opacity 0.3s ease; z-index:0;
  }
  .faq-section details:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 30px rgba(0,0,0,.1);
    border:1px dashed var(--wealth-gold);
  }
  .faq-section details:hover::before{
    opacity:1;
  }
  .faq-section summary{
    cursor:pointer; list-style:none; font-weight:700; 
    color:var(--wealth-gold); text-align:center;
    transition:color 0.3s ease, font-size 0.3s ease;
    position:relative; z-index:1;
  }
  .faq-section summary:hover{
    color:var(--bright-gold);
    font-size:1.05em;
  }
  .faq-section summary::-webkit-details-marker{ display:none; }
  .faq-section details[open]{ 
    border-color:var(--wealth-gold); 
    box-shadow:0 8px 25px rgba(212,175,55,0.2);
  }
  .faq-section details[open] summary{
    color:var(--bright-gold);
  }
  .faq-section details p{ 
    color:#333; margin:10px 0 0; line-height:1.7; text-align:center; 
    transition:color 0.3s ease; position:relative; z-index:1;
  }
  .faq-section details[open] p{
    color:#444;
  }
  .faq-section summary:focus-visible{ 
    outline:3px solid var(--bright-gold); 
    outline-offset:2px;
    box-shadow:0 0 0 1px var(--bright-gold);
  }
  
  /* ===========================
     반응형
     =========================== */
  @media (max-width: 992px){
    .hero-section h1{ 
      font-size:2.2rem; 
      line-height:1.15;
      word-break:keep-all;
    }
    .hero-section h2{ 
      font-size:1.7rem; 
      line-height:1.25;
      word-break:keep-all;
    }
    .hero-section .lede{ 
      font-size:1.05rem; 
      line-height:1.6;
      word-break:keep-all;
    }
  }
  
  @media (max-width: 768px){
    .hero-section{ padding:80px 0 60px; }
    .map-section{ padding:80px 0; }
  
    .quick-cta{ gap:10px; }
    .btn{ width:100%; max-width:480px; }
  
    .btn-map{ min-width:220px; }
    
    /* 모바일에서 지도 영역 숨기기 */
    .map-frame{ 
      display: none !important; 
    }
  
    .section-title{ font-size:1.35rem; }
    .landmark-directions{ padding:16px 14px; }
  
    .info-grid{ grid-template-columns:1fr; gap:20px; }
    .info-block{ padding:20px; }
    .block-header h3{ font-size:1.3rem; }
  
    .info-item{ flex-direction:column; align-items:flex-start; gap:5px; }
    .info-item .label{ min-width:auto; }
    .info-item .value{ text-align:left; margin-left:0; }
  }
  
  @media (max-width: 480px){
    .hero-section{ padding:60px 0 40px; }
    .hero-section h1{ 
      font-size:1.8rem; 
      line-height:1.1;
      word-break:keep-all;
    }
    .hero-section h2{ 
      font-size:1.45rem; 
      line-height:1.2;
      word-break:keep-all;
    }
    .hero-section .lede{ 
      font-size:.98rem; 
      line-height:1.5;
      word-break:keep-all;
      max-width:90%;
    }
  
    .map-section{ padding:60px 0; }
    
    /* 480px 이하에서도 지도 영역 숨기기 */
    .map-frame{ 
      display: none !important; 
    }
  
    .info-section{ padding:30px 0; }
    .info-block{ padding:18px; }
    .block-header h3{ font-size:1.2rem; }
  }
  
  /* ===========================
     모션 최소화
     =========================== */
  @media (prefers-reduced-motion: reduce){
    *{ transition:none !important; animation:none !important; }
  }

  /* 1) direction 버튼 alias: HTML의 .btn-direction-secondary도 동일 스타일 적용 */
.btn-direction-secondary{
    min-width:200px;
    padding:12px 20px; border-radius:14px;
    text-decoration:none; font-weight:600; font-size:1rem;
    transition:all .3s ease; display:inline-flex; align-items:center; gap:8px;
    justify-content:center;
    background:transparent; 
    color:var(--wealth-gold);
    border:1px solid var(--wealth-gold);
    cursor:pointer; font-family:inherit;
    position:relative;
    overflow:hidden;
  }
  .btn-direction-secondary::before{
    content:'';
    position:absolute; inset:0;
    background:linear-gradient(135deg, var(--bright-gold), #f7d86a);
    opacity:0;
    transition:opacity .3s ease;
    z-index:-1;
  }
  .btn-direction-secondary:hover{
    transform:translateY(-4px);
    box-shadow:0 6px 20px rgba(255,215,0,0.4);
    border-color:var(--bright-gold);
    color:#1a1a1a;
  }
  .btn-direction-secondary:hover::before{
    opacity:1;
  }
  
  /* 2) 보조 버튼 컨테이너 레이아웃 (.map-actions-secondary 누락 보완) */
  .map-actions-secondary{
    display:flex;
    gap:10px;
    justify-content:center;
    flex-wrap:wrap;
    margin-top:15px;
  }
  
  /* 3) 히어로 섹션에 container가 같이 붙은 경우(마크업 유지 시) 배경 풀폭 유지 */
  .hero-section.container{
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
  .hero-section.container > .container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* 4) 반응형에서 .btn-direction-secondary도 함께 축소 */
  @media (max-width: 768px){
    .btn-direction-secondary{ min-width:200px; }
  }
  
  