/* ===== LIST: tenant-grid-scope ===== */
.tenant-grid-scope #tenant-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.tenant-grid-scope .tenant-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: all .25s ease-in-out;
  cursor: pointer;
}
.tenant-grid-scope .tenant-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
}
.tenant-grid-scope .tenant-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.tenant-grid-scope .tenant-info {
  padding: 16px;
}
.tenant-grid-scope .tenant-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #222;
}
.tenant-grid-scope .tenant-info .desc {
  font-size: 14px;
  color: #666;
  height: 40px;
  overflow: hidden;
}

/* ===== DETAIL: tenant-detail-scope ===== */
.tenant-detail-scope .tenant-header {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}
.tenant-detail-scope .tenant-thumb img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 탭 네비게이션 */
.tenant-detail-scope .tenant-tabs {
  border-top: 1px solid #eee;
  padding-top: 20px;
}
.tenant-detail-scope .tab-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 탭 개수에 맞춰 조정 */
  border-radius: 10px;
  overflow: hidden;
}
.tenant-detail-scope .tab-nav li {
  text-align: center;
  padding: 14px 0;
  cursor: pointer;
  background: linear-gradient(135deg, #f9f9f9, #f0f0f0);
  font-weight: 500;
  color: #333;
  transition: all 0.25s ease-in-out;
  border: 1px solid #ddd;
}
.tenant-detail-scope .tab-nav li:hover {
  background: linear-gradient(135deg, #e9f3fb, #dcecf9);
  color: #0073aa;
}
.tenant-detail-scope .tab-nav li.active {
  background: linear-gradient(135deg, #0073aa, #005c88);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 1;
}
.tenant-detail-scope .tab-content {
  display: none;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 0 0 12px 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
  min-height: 500px;
  animation: fadeIn .3s ease-in-out;
}
.tenant-detail-scope .tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== 테이블 ===== */
.tenant-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
}
.tenant-table th,
.tenant-table td {
  border: 1px solid #eee;
  padding: 10px 14px;
  text-align: center;
}
.tenant-table th {
  background: #f7f9fb;
  font-weight: 600;
  color: #0073aa;
}
.tenant-table tr:hover {
  background: #f0f7ff;
}
.tenant-table img {
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ===== 썸네일 툴팁 ===== */
.thumb-wrap {
  position: relative;
  display: inline-block;
}
.thumb-preview {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.98);
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 99;
}
.thumb-preview img {
  max-width: 320px;
  height: auto;
  display: block;
  border-radius: 6px;
}
.thumb-wrap:hover .thumb-preview {
  display: block;
  animation: fadeIn .2s ease-in-out;
}

/* ===== 지점 박스 ===== */
.branch-block {
  margin-bottom: 40px;
  padding: 20px;
  border: 2px solid #0073aa;
  border-radius: 12px;
  background: linear-gradient(135deg, #f9fbfd, #ffffff);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: transform 0.25s ease-in-out;
}
.branch-block:hover {
  transform: translateY(-4px);
}
.branch-title {
  margin: 0 0 15px;
  font-size: 20px;
  font-weight: 700;
  color: #0073aa;
}


/* ===== 회사소개 테이블 ===== */
.tenant-detail-scope #about .tenant-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
}

.tenant-detail-scope #about .tenant-table th,
.tenant-detail-scope #about .tenant-table td {
  border: 1px solid #eee;
  padding: 10px 14px;
}

.tenant-detail-scope #about .tenant-table th {
  background: #f7f9fb;
  font-weight: 600;
  color: #0073aa;
  width: 250px;
}
.tenant-detail-scope #reservation .tenant-table th {
  width: 250px;
}


@media (max-width: 768px){
  .tenant-detail-scope #about .tenant-table th ,
  .tenant-detail-scope #reservation .tenant-table th{
    width: 100px !important;
  }
  .tenant-table th, .tenant-table td {
    text-align: left !important;
  }
  .tenant-detail-scope .tab-content {
    min-height: auto !important;
  }
  .tab-content .branch-block {
    padding: 15px !important;
  }
}


.tenant-detail-scope #about .tenant-table tr:hover {
  background: #f0f7ff;
}

.tenant-detail-scope #about .tenant-table a {
  color: #0073aa;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.tenant-detail-scope #about .tenant-table a:hover {
  color: #005c88;
  text-decoration: underline;
}


  .tenant-images img:hover { cursor: zoom-in; } 
  .tenant-thumb img:hover { cursor: zoom-in; }    

  .img-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; display: none;
  }
  .img-modal img {
    max-width: 80%; max-height: 80%; border-radius: 10px;
  }