/* ===================================================
   services.css — VicSky Local Services Styles
   =================================================== */

/* ----- Search Bar ----- */
.svc-search {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 16px;
}

.svc-search form {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.svc-search-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 8px;
  width: auto !important;
  box-sizing: border-box;
  min-width: 0;
}

.svc-search-input:focus {
  border-color: #007acc;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,122,204,0.15);
}

.svc-search-btn {
  padding: 10px 16px;
  background: #007acc;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.svc-search-btn:hover { background: #005fa3; }

/* ----- Sort Bar ----- */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0 2px;
  flex-wrap: wrap;
}

.sort-label {
  font-size: 12px;
  color: #888;
  flex-shrink: 0;
}

.sort-btn {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #dde4ed;
  background: #f8f9fa;
  color: #555;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.sort-btn:hover {
  background: #e8f0ff;
  color: #007acc;
  border-color: #b8cef0;
}

.sort-btn.active {
  background: #007acc;
  color: #fff;
  border-color: #007acc;
  font-weight: 600;
}

/* ----- Category Grid ----- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  border: 1px solid #dde4ed;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.1s;
  text-align: center;
}

.category-tile:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.category-tile-emoji {
  font-size: 2.4rem;
  margin-bottom: 10px;
  line-height: 1;
}

.category-tile-name {
  font-size: 15px;
  font-weight: bold;
  color: #1a1a2e;
}

/* ----- Service Card Grid ----- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .service-grid { grid-template-columns: 1fr; }
}

.service-card {
  display: block;
  border: 1px solid #dde4ed;
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.1s;
}

.service-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.service-card-name {
  font-size: 15px;
  font-weight: bold;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.service-card-sub {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

.service-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lang-badge {
  font-size: 11px;
  padding: 2px 8px;
  background: #e8f4e8;
  color: #2d6a2d;
  border: 1px solid #b8ddb8;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.service-card-contact {
  font-size: 12px;
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ----- Category Nav Bar ----- */
.svc-cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.svc-cat-nav-btn {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #dde4ed;
  background: #f8f9fa;
  color: #555;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.svc-cat-nav-btn:hover {
  background: #e8f0ff;
  color: #007acc;
  border-color: #b8cef0;
}

.svc-cat-nav-btn.active {
  background: #007acc;
  color: #fff;
  border-color: #007acc;
  font-weight: 600;
}

/* ----- No Results ----- */
.svc-no-results {
  color: #d9534f;
  text-align: center;
  padding: 30px;
}

/* ----- Back Link ----- */
.svc-back {
  margin-bottom: 12px;
  font-size: 14px;
}

.svc-back a {
  color: #007acc;
  text-decoration: none;
}

/* ----- Public Submit CTA ----- */
.svc-submit-cta {
  text-align: center;
  margin: 16px 0 8px;
}

.svc-submit-btn {
  display: inline-block;
  padding: 10px 28px;
  background: #28a745;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.svc-submit-btn:hover { background: #218838; }

/* ----- Admin Action Buttons ----- */
.svc-admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.svc-admin-btn {
  padding: 8px 16px;
  background: #f0f4ff;
  border: 1px solid #c5d0e8;
  border-radius: 6px;
  font-size: 13px;
  color: #334;
  text-decoration: none;
  transition: background 0.2s;
}

.svc-admin-btn:hover { background: #dce6ff; }

/* ----- Detail Page ----- */
.svc-detail-title {
  font-size: 22px;
  font-weight: bold;
  color: #1a1a2e;
  margin: 8px 0 4px;
  text-align: left;
}

.svc-detail-subtitle {
  font-size: 15px;
  color: #666;
  margin-bottom: 16px;
}

.svc-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.svc-badge {
  background: #f0f4ff;
  border: 1px solid #c5d0e8;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
  color: #334;
  text-decoration: none;
}

.svc-badge-label {
  color: #888;
  font-size: 11px;
  margin-right: 2px;
}

.svc-contact-section {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.svc-contact-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.svc-contact-row {
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.5;
}

.svc-description {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
}

.svc-image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.svc-image-gallery .image-frame img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

/* ===== Detail Page Redesign (2026-03-13) ===== */

/* Slideshow */
.detail-slideshow {
  position: relative;
  background: #222;
  width: 100%;
  overflow: hidden;
  height: 300px;
  margin-bottom: 12px;
  cursor: pointer;
}
.detail-slideshow .slide-item {
  display: none;
  width: 100%;
  height: 100%;
}
.detail-slideshow .slide-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.detail-slideshow .slide-item.active {
  display: block;
}
.slide-counter-badge {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 10px;
  padding: 2px 9px;
  font-size: 12px;
  pointer-events: none;
}
.slide-placeholder {
  width: 100%;
  height: 100%;
  background: #dde4ed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 15px;
}

/* Detail cards */
.detail-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  margin-bottom: 10px;
}
.detail-card-label {
  font-size: 12px;
  font-weight: 700;
  color: #007acc;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0f4ff;
}
.detail-main-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
  line-height: 1.3;
}
.detail-subtitle {
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
}
.detail-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 8px;
}
.detail-contact-row:last-child { border-bottom: none; padding-bottom: 0; }
.detail-contact-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.detail-contact-icon { font-size: 16px; flex-shrink: 0; }
.detail-contact-meta { min-width: 0; }
.detail-contact-lbl { font-size: 11px; color: #999; }
.detail-contact-val {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.copy-btn {
  background: #007acc;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.copy-btn:hover { background: #005fa3; }
.detail-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #444;
}
.detail-desc p { margin-bottom: 8px; }
.detail-desc ul, .detail-desc ol { padding-left: 20px; margin-bottom: 8px; }
.detail-desc li { margin-bottom: 4px; }
.detail-desc strong { color: #1a1a2e; }
.detail-desc h1, .detail-desc h2, .detail-desc h3 {
  font-size: 15px; font-weight: 700; margin: 12px 0 6px; color: #1a1a2e;
}
.detail-meta {
  font-size: 12px;
  color: #bbb;
  text-align: right;
  padding: 0 2px;
  margin-bottom: 10px;
}
.detail-sticky-bar {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  z-index: 50;
}
.detail-sticky-btn {
  flex: 1;
  border: none;
  border-radius: 8px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.detail-sticky-btn:hover { opacity: 0.85; }
.detail-sticky-btn.wechat { background: #07c160; color: #fff; }
.detail-sticky-btn.phone  { background: #007acc; color: #fff; }
.detail-sticky-btn.email  { background: #ff6b35; color: #fff; }
