:root {
  --f-black: #333;
  --f-gray: #666;
  --f-bg-gray: #f5f5f5;
  --f-border-gray: #f8f9fa;
  --f-brand: #462cc5;
  --f-brand-2: #7d65f2;
  --f-brand-bg: #f6f5ff;
  --f-brand-border: #f6f5ff;
  --f-kakao-bg-color: #fee500;
  --f-kakao-font-color: #381E1F;
  --f-kakao-bg-hover: #f1da06;
  --f-best-color: #FF5B84;
}

.fpl-page,
.fpd-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

.fpl-hero {
  background: #333;
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 12px 12px;
}

.fpl-hero-inner {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fpl-hero-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fpl-brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.fpl-hero-title {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.2px;
  margin: 0;
  display: flex;
  align-items: center;
}

.fpl-hero-badge {
  font-size: 12px;
  font-weight: 400;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.fpl-hero-desc {
  font-size: 16px;
  color: #fff;
  margin: 0;
}

.fpl-panel {
  padding: 0;
  margin-bottom: 90px;
}

.fpl-panel-row {
  background: #fff;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.fpl-filter-toggles {
  display: flex;
  align-items: center;
  gap: 24px;
}

.fpl-toggle-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.fpl-toggle-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--f-black);
  opacity: 0.6;
  transition: opacity 0.3s;
}

.fpl-toggle-switch input[type="checkbox"]:checked~.fpl-toggle-label {
  opacity: 1;
  font-weight: 500;
}

.fpl-toggle-switch input[type="checkbox"] {
  display: none;
}

.fpl-toggle-slider {
  position: relative;
  width: 44px;
  height: 24px;
  background: #e9ecef;
  border-radius: 999px;
  transition: background 0.3s ease;
}

.fpl-toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fpl-toggle-switch input[type="checkbox"]:checked~.fpl-toggle-slider {
  background: var(--f-brand-2);
}

.fpl-toggle-switch input[type="checkbox"]:checked~.fpl-toggle-slider::before {
  transform: translateX(20px);
}

.fpl-item[data-filter-hidden="true"] {
  display: none;
}

.fpl-filter-form {
  display: flex;
  justify-content: flex-start;
}

.fpl-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  width: 160px;
}

.fpl-select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e9ecef;
  background: #fff;
  color: var(--f-black);
  font-size: 13px;
  padding: 10px 32px 10px 10px;
  appearance: none;
}

.fpl-select-icon {
  position: absolute;
  right: 10px;
  pointer-events: none;
  color: #adb5bd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fpl-tabs {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0;  
}

.fpl-tab {
  flex: 1 1 0;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  padding: 4px 12px;
  border-radius: 26px;
  background: var(--f-border-gray);
  color: var(--f-black);
  border: 1px solid #33333380;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}


.fpl-tab-text {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 500;
}

.fpl-tab-caret {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--f-black);
  font-size: 12px;
}

.fpl-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 10px;
}

.fpl-search-chip {
  font-size: 12px;
  font-weight: 400;
  color: #fff;
  background: #ff5a3c;
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
}

.fpl-search-input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 13px;
  color: var(--f-black);
  background: transparent;
}

.fpl-search-clear {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  text-decoration: none;
  background: #f8f9fa;
  border: 1px solid #f1f3f5;
}

.fpl-search-btn {
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 400;
  background: var(--f-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fpl-banner {
  width: 100%;
  max-height: 70px;
  border: 1px solid #eef1f4;
  background: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  padding: 0;
}

.fpl-banner.is-hidden {
  display: none;
}

.fpl-banner-link {
  display: flex;
  flex: 1;
  text-decoration: none;
}

.fpl-banner-picture {
  width: 100%;
  display: flex;
}

.fpl-banner-img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.fpl-banner-close {
  position: absolute;
  top: 2px;
  right: 4px;
  /*width: 32px;
  height: 32px;*/
  border: none;
  background: none;
  color: var(--f-black);
  /*display: flex;
  align-items: center;
  justify-content: center;*/
}

.fpl-banner-close i {
  font-size: 24px;
}

.fpl-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 20px;
  margin-top: 24px;
}

.fpl-actions-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fpl-action-pill {
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid #e9ecef;
  background: #fff;
  color: var(--f-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fpl-action-pill-primary {
  background: var(--f-black);
  color: #fff;
  border-color: var(--f-black);
}

.fpl-action-pill-active {
  background: var(--f-black);
  color: #fff;
  border-color: var(--f-black);
}

.fpl-action-pill {
  cursor: pointer;
  transition: all 0.2s ease;
}

.fpl-action-pill:hover {
  opacity: 0.8;
}

.fpl-actions-right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--f-gray);
  text-decoration: none;
}


.fpl-actions-right span {
  font-size: 14px;
  font-weight: 400;
}

.fpl-list {
  padding: 6px 0;
  display: grid;
  gap: 8px;
}

.fpl-item {
  background: #fff;
  border-bottom: 2px solid var(--f-bg-gray);
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.fpl-item-must-read {
  background: var(--f-border-gray);
  border-left: 4px solid var(--f-best-color);
  padding: 12px 0 12px 16px;  
}


.fpl-item-must-read .fpl-item-body {
  margin-bottom: 0;
  gap: 4px;
}

.fpl-item-content {
  margin-top: 12px;
}

.fpl-item-content-images {
  margin-top: 12px;
}

.fpl-item-left {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.fpl-item-icon {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fpl-item-icon .fpl-grade-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  color: var(--f-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.fpl-item-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.fpl-item-company {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fpl-item-company-text {
  font-size: 13px;
  font-weight: 400;
  color: var(--f-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 0 auto;
  min-width: 0;
}

.fpl-item-no-addservice-icon,
.fpl-item-verified-icon {
  width: 60px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.fpl-verified {
  font-size: 11px;
  font-weight: 400;
  color: var(--f-brand);
  background: var(--f-brand-bg);
  border: 1px solid var(--f-brand-border);
  padding: 4px 8px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.fpl-item-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.fpl-item-prefix {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--f-gray);
  line-height: 1.35;
  flex-shrink: 0;
}

.fpl-item-title-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--f-black);
  line-height: 1.4;
  word-wrap: break-word;
  word-break: break-word;
  flex: 1;
  min-width: 0;
}

.fpl-item-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* 양 끝 정렬 */
  gap: 12px;
  flex-wrap: wrap;
  color: var(--f-gray);
}

.fpl-item-meta-left {
  display: flex;
  align-items: center;
  gap: 6px;
  /* 아이콘과 업체명 사이 간격 */
  cursor: pointer;
  transition: opacity 0.2s;
  position: relative;
  /* ensure it sits above the background link if z-ordering is an issue, though nested interactive works via event model */
}

.fpl-item-meta-left:hover {
  opacity: 0.7;
}

.fpl-item-meta-right {
  display: flex;
  align-items: center;
  gap: 4px;
  /* 시간, 구분점, 조회수 사이 간격 */
}

.fpl-item-time,
.fpl-item-sep,
.fpl-item-hits {
  font-size: 13px;
}

.fpl-item-preview {
  font-size: 16px;
  color: var(--f-gray);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.fpl-item-thumb {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  background: #f8f9fa;
  border: 1px solid #eef1f4;
  overflow: hidden;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fpl-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fpl-thumb-fallback {
  color: #adb5bd;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}


/* 무한 스크롤 로더 */
.fpl-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.fpl-loader.hidden {
  display: none;
}

.fpl-loader.loading {
  display: flex;
}

.fpl-loader .spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e6e6e6;
  border-top-color: #7d65f2;
  border-radius: 50%;
  animation: fpl-spin 0.9s linear infinite;
}

@keyframes fpl-spin {
  to {
    transform: rotate(360deg);
  }
}

#fpl-load-more {
  height: 1px;
  width: 100%;
}

.fpl-empty {
  padding: 20px;
  background: #fff;
  border: 1px solid #eef1f4;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.fpl-empty-title {
  font-size: 14px;
  font-weight: 400;
  color: var(--f-black);
}

.fpl-empty-desc {
  font-size: 12px;
  color: var(--f-gray);
}

.fpl-pagination {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fpl-page-btn {
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  background: #fff;
  color: var(--f-black);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
}

.fpl-page-btn.disabled {
  color: #adb5bd;
  background: #f1f3f5;
  border-color: #f1f3f5;
}

.fpl-page-info {
  font-size: 12px;
  font-weight: 400;
  color: #868e96;
}

/* =========================
   Pagination (reviews와 동일 클래스)
========================= */

.pagination-container {
  display: flex;
  justify-content: center;
  padding-top: 80px;
  margin-bottom: 70px;
}

.pagination {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination-item {
  display: flex;
}

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fff;
  color: #33333380;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.pagination-item.active .pagination-link {
  background: var(--f-brand-bg);
  color: var(--f-brand-2);
}

.pagination-item.disabled .pagination-link {
  background: var(--f-bg-gray);
  color: #ccc;
  border-color: #e0e0e0;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-item.disabled .pagination-link:hover {
  background: var(--f-bg-gray);
  color: #ccc;
  border-color: #e0e0e0;
}

/* =========================
   Region Modal
========================= */

.fpl-modal-open {
  overflow: hidden;
}

.fpl-modal {
  position: fixed;
  inset: 0;
  z-index: 13;
  display: none;
}

.fpl-modal.open {
  display: flex;
}

.fpl-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.fpl-modal-dialog {
  position: relative;
  margin: auto;
  width: min(560px, calc(100% - 24px));
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eef1f4;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fpl-modal-head {
  padding: 14px 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fpl-modal-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--f-black);
}

.fpl-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #fff;
  color: var(--f-black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fpl-modal-body {
  padding: 14px;
}

.fpl-modal-cols {
  display: flex;
  gap: 12px;
}

.fpl-modal-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fpl-modal-col-title {
  font-size: 12px;
  font-weight: 400;
  color: var(--f-gray);
}

.fpl-modal-list {
  border: 1px solid #eef1f4;
  border-radius: 14px;
  background: #fff;
  overflow-y: auto;
  height: 280px;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
}

.fpl-modal-item {
  width: 100%;
  padding: 12px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--f-black);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fpl-modal-item:first-child {
  border-top: 0;
}

.fpl-modal-item.active {
  background: var(--f-brand-bg);
  color: var(--f-brand);
}

.fpl-modal-foot {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.fpl-modal-apply {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 12px;
  background: var(--f-brand-2);
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   Detail
========================= */
.fpd-topbar {
  background: #fff;
  border-bottom: 1px solid #eef1f4;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fpd-back {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f8f9fa;
  border: 1px solid #eef1f4;
  color: var(--f-black);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.fpd-topbar-title {
  font-size: 14px;
  font-weight: 400;
  color: var(--f-black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.fpd-topbar-spacer {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.fpd-card,
.fpd-section,
.fpd-media,
.fpd-gallery,
.fpd-footer {
  padding: 24px 0;
}

.fpd-card-head {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fpd-company-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fpd-company {
  font-size: 12px;
  font-weight: 400;
  color: var(--f-black);
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fpd-title {
  font-size: 16px;
  font-weight: 400;
  color: var(--main-text);
  margin: 0;
  line-height: 1.35;
}

.fpd-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--sub-text);
}

.fpd-media {
  display: flex;
}

.fpd-main-img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #eef1f4;
  background: #fff;
  display: block;
}

.fpd-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fpd-gallery-item {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
}

.fpd-gallery-link {
  width: 100%;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.fpd-gallery-link:hover {
  opacity: 0.9;
}

.fpd-gallery-img {
  width: 100%;
  display: block;
}

.fpd-section-title {
  font-size: 13px;
  font-weight: 400;
  color: var(--sub-text);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
}

.fpd-content {
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  color: var(--main-text);
  line-height: 1.6;
  word-break: break-word;
  padding: 16px;
  border-radius: 12px;
}

.fpd-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #fff;
  border: 1px solid #eef1f4;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}

.fpd-list-item {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--f-black);
  border-top: 1px solid #f1f3f5;
}

.fpd-list-item:first-child {
  border-top: 0;
}

/*
.fpd-immunity .fpd-content {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 16px;
}*/

.fpd-footer {
  padding-top: 8px;
}

.fpd-footer-btn {
  width: 100%;
  text-decoration: none;
  border-radius: 14px;
  padding: 14px 12px;
  background: var(--f-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   Top Banner (Responsive)
========================= */
.fpl-top-banner {
  width: 100%;
  display: block;
  padding: 0;
  margin-top: -9px;
  /* spacing below banner */
}

.fpl-top-banner a {
  display: block;
  width: 100%;
}

.fpl-top-banner img {
  width: 100%;
  display: block;
  height: auto;
  object-fit: cover;
  /* Optional: rounds corners if desired */
}

/* Branch Info Modal */
.fpl-branch-modal-dialog {
  width: min(500px, calc(100% - 32px));
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.fpl-branch-modal-body {
  overflow-y: auto;
  padding: 0;
}

.fpl-branch-images {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  background: #f8f9fa;
  height: 200px;
}

.fpl-branch-img-wrap {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fpl-branch-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.fpl-branch-info-section {
  padding: 20px 40px;
}

.fpl-branch-name {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fpl-branch-grade {
  height: 20px;
  width: auto;
}

.fpl-branch-info-row {
  display: flex;  
  font-size: 14px;
}

.fpl-branch-info-row:last-child {
  margin-bottom: 0;
}

.fpl-branch-label {
  flex: 0 0 80px;
  color: #888;
  font-weight: 500;
}

.fpl-branch-value {
  flex: 1;
  color: #333;
  font-weight: 400;
  line-height: 1.5;
}

.fpl-branch-link {
  color: var(--f-brand-2);
  text-decoration: underline;
}

/* =========================
   Banner Swiper (Swiper 기반)
========================= */
.fpl-banner-swiper {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: 12px 12px 0 0;
}

.fpl-banner-swiper-inner {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.fpl-banner-swiper-inner .swiper-wrapper {
  height: 100%;
}

.fpl-banner-slide {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* 배너 슬라이드별 배경 이미지 */
.fpl-banner-slide.fpl-banner-slide-01 {
  background-image: url('https://assets.thessadang.com/images/phones/borad-ad-top-banner-01-pc.webp');
}

.fpl-banner-slide.fpl-banner-slide-02 {
  background-image: url('https://assets.thessadang.com/images/phones/borad-ad-top-banner-02-pc.webp');
}

.fpl-banner-slide.fpl-banner-slide-03 {
  background-image: url('https://assets.thessadang.com/images/phones/borad-ad-top-banner-03-pc.webp');
}

/* 배너 전체 클릭 영역 */
.fpl-banner-slide .fpl-banner-link {
  position: absolute;
  inset: 0;
  display: block;
  text-indent: -9999px;
  overflow: hidden;
}

/* 배너 페이지네이션: 점 + 진행바 */
.fpl-banner-swiper-inner .fpl-banner-pagination {
  display: flex;
  align-items: center;
  gap: 0px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  position: absolute;
  left: 5% !important;
  bottom: 26px !important;
  z-index: 6;
}

.fpl-banner-swiper-inner .fpl-banner-pagination .swiper-pagination-bullet {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 8px;
  width: 8px;
  border-radius: 999px;
  background: #5f5f5f;
  opacity: 1;
  overflow: hidden;
  transition: width 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.fpl-banner-swiper-inner .fpl-banner-pagination .swiper-pagination-bullet .progress {
  display: block;
  height: 100%;
  width: 0;
  background: #333;
  border-radius: 999px;
}

.fpl-banner-swiper-inner .fpl-banner-pagination .swiper-pagination-bullet.is-active {
  width: 40px;
  /* 활성 시 길어짐 */
  background: #fff;
  border: 1px solid #fff;
}

.fpl-banner-swiper-inner .fpl-banner-pagination .swiper-pagination-bullet.is-active .progress {
  animation: fplBannerBulletProgress var(--fplBannerAutoplayDelay, 3000ms) linear forwards;
}

@keyframes fplBannerBulletProgress {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}


/* 모바일 스타일 */
@media (max-width: 768px) {
  .fpl-page {
    padding: 0;
  }

  .fpl-top-banner {
    margin-top: 0;
  }

  .fpl-album-grid {
    gap: 10px;
  }
  .fpl-item {
    padding: 3px 0;
  }

  /* 모바일에서 preview 숨기기 */
  .fpl-item-preview {
    display: none;
  }

  .fpl-item-body {
    gap: 0;
  }

  .fpl-item-must-read {
    margin: 0 -20px;
    padding: 12px 0 12px 16px;
  }

  .fpl-list {
    gap: 12px;
    padding: 6px 20px;
  }

  .fpl-panel-row {
    align-items: center;
    gap: 12px;
    padding: 20px  20px 12px;
    position: sticky;
    top: calc(var(--fpl-sticky-top, 0px) + env(safe-area-inset-top));
    z-index: 1;
    background: #fff;
    border-bottom: 1px solid var(--f-border-gray);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
  }

  .fpl-filter-toggles {
    gap: 16px;
    flex-wrap: wrap;
  }

  .fpl-item-title {
    flex-direction: column;
    align-items: flex-start;
    margin: 8px 0;
    font-size: 14px;
  }

  .fpl-item-title-text {
    font-size: 14px;
  }

  .fpl-item-title-must-read {
    flex-direction: row;
    align-items: center;
    margin: 0;
  }

  .fpl-item-meta-left-must-read {
    display: none;
  }

  .fpl-item-time,
  .fpl-item-sep,
  .fpl-item-hits,
  .fpl-item-company-text {
    font-size: 12px;
  }

  .fpl-item-thumb {
    width: 80px;
    height: 80px;

  }

  .fpl-hero-title {
    font-size: 16px;
  }

  .fpl-hero {
    border-radius: 0;
    margin-top: 12px;
  }

  .fpl-banner-swiper {
    padding: 0;
    margin-top: 14px;
    border-radius: 0;
  }

  .fpl-banner-swiper-inner {
    height: 120px;
  }

  .fpl-banner-swiper-inner .fpl-banner-pagination {
    left: 3% !important;    
    bottom: 9px !important;
  }

  /* 모바일 배경 이미지 */
  .fpl-banner-slide.fpl-banner-slide-01 {
    background-image: url('https://assets.thessadang.com/images/phones/borad-ad-top-banner-01-mo.webp');
  }

  .fpl-banner-slide.fpl-banner-slide-02 {
    background-image: url('https://assets.thessadang.com/images/phones/borad-ad-top-banner-02-mo.webp');
  }

  .fpl-banner-slide.fpl-banner-slide-03 {
    background-image: url('https://assets.thessadang.com/images/phones/borad-ad-top-banner-03-mo.webp');    
  }

  .fpl-banner-swiper-inner .fpl-banner-pagination .swiper-pagination-bullet {
    height: 6px;
    width: 6px;
  }

  .fpl-banner-swiper-inner .fpl-banner-pagination .swiper-pagination-bullet.is-active {
    width: 30px;
  }

}

/* 버튼 숨기기 */
.floating-action-btn {
  display: none;
}

/* =========================
   업체 정보 모달 (Branch Info Modal)
========================= */
.fpl-branch-info-modal {
  position: fixed;
  inset: 0;
  z-index: 14;
  display: none;
}

.fpl-branch-info-modal.open {
  display: flex;
}

.fpl-branch-info-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.fpl-branch-info-modal-dialog {
  position: relative;
  margin: auto;
  width: min(550px, calc(100% - 24px));
  max-height: 70vh;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eef1f4;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fpl-branch-info-modal-head {
  padding: 20px 40px;
  display: flex;
  align-items: center;  
  justify-content: space-between;
  gap: 10px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.fpl-branch-info-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--f-black);
}

.fpl-branch-info-modal-close {
  width: 36px;
  height: 36px;
  font-size: 18px;
  border: none;
  background: #fff;
  color: var(--f-black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fpl-branch-info-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.fpl-branch-info-loading {
  padding: 40px 20px;
  text-align: center;
  color: var(--f-gray);
  font-size: 14px;
}

.fpl-branch-info-content {
  display: flex;
  flex-direction: column;
}

/* 이미지 슬라이더 */
.fpl-branch-info-slider {
  position: relative;
  width: 100%;
  background: #f8f9fa;
}

.fpl-branch-info-slider .swiper {
  width: 100%;
  height: 280px;
}

.fpl-branch-info-slider .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fpl-branch-info-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fpl-branch-info-slider .swiper-button-prev,
.fpl-branch-info-slider .swiper-button-next {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.fpl-branch-info-slider .swiper-button-prev::after,
.fpl-branch-info-slider .swiper-button-next::after {
  font-size: 14px;
  font-weight: 700;
}

.fpl-branch-info-slider .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.6;
}

.fpl-branch-info-slider .swiper-pagination-bullet-active {
  background: #fff;
  opacity: 1;
}

/* 업체 정보 섹션 */
.fpl-branch-info-name-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.fpl-branch-info-name {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fpl-branch-info-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 12px;
  white-space: nowrap;
}

.fpl-item-must-read-badge {
  font-size: 12px;
  padding: 0px 8px;
  background: #FFF3F6;
  color: var(--f-best-color);
  border: 2px solid var(--f-best-color);
  border-radius: 12px;
  white-space: nowrap;
}

.fpl-branch-info-grade {
  width: 24px;
  height: 24px;
}

.fpl-branch-info-row {
  display: flex;
  padding: 14px 0;
  border-bottom: 1px solid #f1f3f5;
}

.fpl-branch-info-row:last-child {
  border-bottom: none;
}

.fpl-branch-info-label {
  flex: 0 0 80px;
  font-size: 14px;
  font-weight: 500;
  color: var(--f-gray);
}

.fpl-branch-info-value {
  flex: 1;
  font-size: 14px;
  color: var(--f-black);
  font-weight: 500;
}

.fpl-branch-info-link {
  color: var(--f-black);
  text-decoration: underline;
  font-weight: 500;
}

/* 소개 아코디언 */
.fpl-branch-info-intro-wrap {
  position: relative;
}

.fpl-branch-info-intro-content {
  white-space: pre-line;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  line-height: 1.5;
}

.fpl-branch-info-intro-content.is-collapsed {
  max-height: 4.5em;
}

.fpl-branch-info-intro-toggle {
  display: none;
  margin-top: 8px;
  padding: 8px 0;
  background: none;
  border: none;
  color: var(--f-gray);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.fpl-branch-info-intro-toggle i {
  margin-left: 4px;
  transition: transform 0.3s ease;
  display: inline-block;
  transform: rotate(0deg);
}

.fpl-branch-info-intro-toggle.is-expanded i {
  transform: rotate(180deg);
}

.fpl-branch-info-intro-wrap.has-overflow .fpl-branch-info-intro-toggle {
  display: inline-flex;
  align-items: center;
}

/* 모바일 스타일 */
@media (max-width: 768px) {
  .fpl-branch-info-modal-dialog {
    width: calc(100% - 0px);
    max-height: 100vh;
    border-radius: 0;
  }

  .fpl-branch-info-slider .swiper {
    height: 200px;
  }

  .fpl-branch-info-section {
    padding: 16px;
  }

  .fpl-branch-info-name {
    font-size: 18px;
  }

  .fpl-item-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}