@charset "utf-8";
/* ==========================================================================
   2. List Page Layout (Split View) — item.php
   ========================================================================== */
.sub-content-wrap.split-view-wrap {
  padding-top: var(--header-h-default);
  padding-bottom: 0;
  min-height: 100vh;
  background-color: #fff;
}
.split-container {
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-height: calc(100vh - var(--header-h-default));
}
.list-side {
  width: 60%;
  background-color: #fff;
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--header-h-default));
}
.list-header-box {
  padding: 110px 24px 20px 24px;
  background: #fff;
}
.list-content-box {
  padding: 0 24px 50px;
}
.product-grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.product-grid-item {
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 32px;
  transition: all 0.3s ease;
  background-color: #fff;
  overflow: hidden;
}
.product-grid-item.active-highlight {
  border-color: var(--primary-color) !important;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.15),
    0 5px 10px rgba(0, 0, 0, 0.05) !important;
  transform: translateY(-2px);
  padding: 6px;
  z-index: 10;
}
.map-side {
  width: 40%;
  box-sizing: border-box;
  padding: 0 24px 24px 6px;
  position: sticky;
  background-color: #fff;
  z-index: 5;
  top: calc(var(--header-h-default) + var(--map-gap));
  height: calc(100vh - (var(--header-h-default) + var(--map-gap)));
  transition:
    top 0.3s ease,
    height 0.3s ease;
}
body.is-scrolled .map-side {
  top: calc(var(--header-h-scroll) + var(--map-gap));
  height: calc(100vh - (var(--header-h-scroll) + var(--map-gap)));
}
.map-side #splitMap {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
/* ==========================================================================
   3. UI Components (Sort Button & Map Controls) — item.php
   ========================================================================== */
.btn-sort-custom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px 3px 3px;
  height: 30px;
  border-radius: 30px;
  background-color: #fff;
  color: #666;
  border: 1px solid #e1e1e1;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 13px;
  font-weight: 500;
}
.btn-sort-custom .icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background-color: #f5f5f5;
  border-radius: 50%;
  color: #888;
  transition: all 0.3s ease;
  font-size: 11px;
}
.btn-sort-custom .icon-circle i {
  line-height: 1;
  margin-top: -1px;
}
.btn-sort-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
  border-color: #555;
  color: #333;
}
.btn-sort-custom:hover .icon-circle {
  background-color: #555;
  color: #fff;
  transform: rotate(15deg) scale(1.1);
}
.btn-sort-custom.active {
  border-color: #555 !important;
  color: #333 !important;
  font-weight: 700 !important;
  background-color: #fff !important;
  transform: none !important;
  box-shadow: none !important;
}
.btn-sort-custom.active .icon-circle {
  background-color: #555 !important;
  color: #fff !important;
}
.mobile-map-btn-wrap {
  display: none;
  position: fixed;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
}
.map-btn-group .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 15px;
  width: 180px;
  padding: 10px 12px;
  border-radius: 24px;
  transition: all 0.2s ease;
}
.map-btn-group .btn img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  margin-right: 10px;
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .map-btn-group .btn {
    flex-direction: column;
    width: auto;
    flex: 1;
    padding: 10px 4px;
    border-radius: 16px;
  }
  .map-btn-group .btn img {
    margin-right: 0;
    margin-bottom: 6px;
  }
}
.btn-floating-map {
  background-color: rgba(34, 34, 34, 0.7);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  backdrop-filter: blur(2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.2s,
    background-color 0.2s;
}
.btn-floating-map i {
  font-size: 14px;
  margin: 0 !important;
}
.btn-floating-map:active {
  transform: scale(0.95);
  background-color: rgba(34, 34, 34, 0.9);
}
.map-bottom-ctrl {
  position: absolute;
  bottom: 24px;
  left: 0;
  width: 100%;
  z-index: 10;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: bottom 0.3s ease;
}
.map-bottom-ctrl.above-card {
  bottom: 234px;
}
.map-bottom-ctrl button {
  pointer-events: auto;
}
#mobileMapLoading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(2px);
}
.custom-map-offcanvas.full-screen-map {
  height: 100% !important;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  z-index: 2200 !important;
}
.custom-map-offcanvas .offcanvas-header {
  height: 60px;
  padding: 0 16px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
}
.design-card {
  width: 100%;
  display: block;
}
.card-img-box {
  width: 100%;
}
/* ==========================================================================
   4. Detail Page Styles — item.view.php
   ========================================================================== */
.gallery-wrapper {
  width: 100%;
  height: 546px;
}
.gallery-main {
  width: 970px;
  height: 100%;
  flex-shrink: 0;
}
.gallery-main .swiper-slide {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.gallery-main .swiper-pagination {
  position: absolute;
  bottom: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 10 !important;
  width: auto !important;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gallery-main .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: #fff;
  opacity: 0.4;
  margin: 0 !important;
  border-radius: 4px;
  transition: all 0.4s;
}
.gallery-main .swiper-pagination-bullet-active {
  width: 24px;
  opacity: 1;
  background-color: #fff;
  transform: none;
}
.gallery-thumbs {
  width: calc(100% - 960px - 20px);
  height: 100%;
  box-sizing: border-box;
}
.gallery-thumbs .swiper-slide {
  width: 100%;
  height: calc((100% - 50px) / 6) !important;
  cursor: pointer;
}
.gallery-thumbs .thumb-img {
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.gallery-thumbs .swiper-slide-thumb-active .thumb-img {
  border-color: var(--primary-color);
  opacity: 1;
}
.gallery-thumbs .swiper-slide:not(.swiper-slide-thumb-active) .thumb-img {
  opacity: 0.5;
  filter: grayscale(30%);
}
.gallery-thumbs .swiper-slide:hover .thumb-img {
  opacity: 1;
  filter: grayscale(0%);
}
.map-wrapper {
  border-radius: 26px;
}
/* ==========================================================================
   5. Media Queries
   ========================================================================== */
@media (max-width: 1399px) {
  .gallery-main {
    width: 75%;
  }
  .gallery-thumbs {
    width: 25%;
  }
}
@media (min-width: 992px) {
  .cp-floating-btn {
    display: none !important;
  }
}
@media (max-width: 991px) {
  .gallery-wrapper {
    height: 540px !important;
    margin-bottom: 30px !important;
  }
  .gallery-main {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
  }
  .gallery-thumbs {
    display: none !important;
  }
  .table-responsive {
    border: 1px solid #eee;
    border-radius: 8px;
  }
}
@media (max-width: 767px) {
  .gallery-wrapper {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    height: 360px !important;
    margin-bottom: 24px !important;
  }
  .gallery-main {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .gallery-main .swiper-pagination {
    bottom: 20px !important;
  }
  .sub-content-wrap.split-view-wrap {
    padding-top: 84px;
  }
  .split-container {
    display: block;
  }
  .list-side {
    width: 100%;
  }
  .list-header-box {
    padding: 70px 16px 10px;
  }
  .list-content-box {
    padding: 0 16px 40px;
  }
  .map-side {
    display: none;
  }
  .product-grid-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
  }
  .btn-sort-custom {
    padding: 0;
    width: 24px;
    height: 24px;
    justify-content: center;
    border-radius: 50%;
    gap: 0;
    transform: none !important;
    box-shadow: none !important;
  }
  .btn-sort-custom .text-label {
    display: none;
  }
  .btn-sort-custom .icon-circle {
    background: transparent;
    width: 100%;
    height: 100%;
    color: #999;
    font-size: 12px;
    transform: none !important;
  }
  .list-header-box .btn-sort-custom.active {
    background-color: #555 !important;
    color: #fff !important;
    border-color: #555 !important;
  }
  .list-header-box .btn-sort-custom.active .icon-circle,
  .list-header-box .btn-sort-custom.active:hover .icon-circle {
    background-color: transparent !important;
    color: #fff !important;
  }
  .list-header-box .btn-sort-custom:not(.active):hover {
    border-color: #555 !important;
  }
  .list-header-box .btn-sort-custom:not(.active):hover .icon-circle {
    background-color: transparent !important;
    color: #999 !important;
  }
  .mobile-map-btn-wrap {
    display: block;
    animation: fadeInUp 0.5s ease-out 0.5s backwards;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
/* ==========================================================================
   6. Mobile Floating Buttons — item.view.php
   ========================================================================== */
.cp-floating-btn {
  position: fixed;
  right: 16px;
  bottom: 80px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 18px;
  background-color: var(--coupon-color);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.cp-floating-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
/* ==========================================================================
   14. Detail Page Extracted Utility & Component Classes
   ========================================================================== */
.gap-10px {
  gap: 10px !important;
}
.card-img-box-map {
  height: 135px !important;
  border-radius: 0 !important;
}
.map-height-360 {
  height: 360px !important;
}
.w-100px {
  width: 100px !important;
}
.min-h-85px {
  min-height: 85px !important;
}
.min-h-44px {
  min-height: 44px !important;
}
.cursor-pointer {
  cursor: pointer !important;
}
.z-2 {
  z-index: 2 !important;
}
.bg-cover-absolute {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}
.bg-cover-block {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.map-inner {
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
}
.map-ctrl-inner {
  top: 20px !important;
  right: 20px !important;
  pointer-events: auto !important;
}
.item-sort-label {
  font-size: 13px;
  color: var(--trip-color);
  margin-bottom: 2px;
}
.spinner-2rem {
  width: 2rem;
  height: 2rem;
}
/* ==========================================================================
   15. item.view.php Custom Utilities
   ========================================================================== */
.detail-title-main {
  word-break: keep-all !important;
  padding-right: 10px !important;
  font-size: 24px !important;
}
.ls-n05 {
  letter-spacing: -0.5px !important;
}
.icon-check-orange {
  font-size: 16px !important;
  color: var(--trip-color) !important;
}
.coupon-badge-text {
  font-size: 14px !important;
  line-height: 1.3 !important;
  letter-spacing: -0.5px !important;
}
.timer-text-small {
  font-size: 12px !important;
  font-weight: 400 !important;
  opacity: 0.9 !important;
}
.float-timer-text {
  font-size: 11px !important;
  font-weight: 400 !important;
  opacity: 0.9 !important;
}
.coupon-inner-box {
  display: flex !important;
  flex-direction: column !important;
}
.btn-action-primary {
  background-color: var(--coupon-color) !important;
  font-size: 16px !important;
  border: none !important;
}
.btn-action-secondary {
  background-color: #6c757d !important;
  font-size: 16px !important;
  border: none !important;
}
.btn-action-dark {
  background-color: #555 !important;
  font-size: 16px !important;
  border: none !important;
}
.btn-action-primary-wait {
  background-color: var(--coupon-color) !important;
  font-size: 16px !important;
  border: none !important;
  opacity: 0.75 !important;
  line-height: 1.4 !important;
}
.btn-float-primary {
  background-color: var(--coupon-color) !important;
  border: none !important;
}
.btn-float-secondary {
  background-color: #6c757d !important;
  border: none !important;
}
.btn-float-dark {
  background-color: #555 !important;
  border: none !important;
}
.btn-float-primary-wait {
  background-color: var(--coupon-color) !important;
  border: none !important;
  opacity: 0.75 !important;
  line-height: 1.2 !important;
}
.max-w-340px {
  max-width: 340px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
