/* ========= PREMIUM GALLERY – TEAM THEME MATCH ========= */

.gallery-wrapper-premium {
  /* background: linear-gradient(180deg, #f2faff, #ffffff); */
  width: 100%;
  padding-bottom: 90px;
  padding: 1.25rem var(--spacing-lg) 16rem;
}

/* ---------- HEADER ---------- */
.gallery-header {
  max-width: 780px;
  margin: auto;
  text-align: center;
}

.gallery-pill {
  display: inline-block;
  background: rgba(79,195,255,0.18);
  color: #007ACC;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 14px;
}

.gallery-header h2 {
  font-size: 38px;
  font-weight: 800;
  color: #0b3a63;
}

.gallery-header p {
  font-size: 17px;
  color: #556b82;
  margin-top: 10px;
}

/* ---------- FILTER ---------- */
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 50px 0;
}

.filter-btn {
  border: 1px solid rgba(79,195,255,0.35);
  background: rgba(255,255,255,0.85);
  padding: 12px 26px;
  border-radius: 999px;
  color: #007ACC;
  font-weight: 700;
  transition: all .35s ease;
  backdrop-filter: blur(8px);
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(135deg, #007ACC, #4FC3FF);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(79,195,255,0.4);
}

/* ---------- GRID ---------- */
.gallery-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 34px;
}

/* ---------- CARD (MATCH TEAM CARD) ---------- */
.gallery-item {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(79,195,255,0.18), transparent 60%),
    rgba(255,255,255,0.96);
  border-radius: 22px;
  overflow: hidden;
  padding: 12px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* glow ring */
.gallery-item::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 10% 0%, rgba(79,195,255,0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.gallery-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 26px 55px rgba(0,0,0,0.14);
  border-color: rgba(79,195,255,0.45);
}
.gallery-item:hover::before {
  opacity: 1;
}

/* ---------- IMAGE ---------- */
.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.14);
  transition: transform 0.7s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ---------- INFO OVERLAY ---------- */
.gallery-info {
  position: absolute;
  inset: 12px;
  border-radius: 18px;
  background: linear-gradient(
    to top,
    rgba(11,58,99,0.9),
    rgba(11,58,99,0.15)
  );
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  opacity: 0;
  transition: .45s ease;
}

.gallery-item:hover .gallery-info {
  opacity: 1;
}

.gallery-info h4 {
  font-size: 19px;
  font-weight: 700;
}

.gallery-info span {
  font-size: 14px;
  opacity: .95;
  line-height: 1.5;
}

/* ---------- VIDEO CARD ---------- */
.gallery-video {
  position: absolute;
  inset: 12px;
  border-radius: 18px;
  background: rgba(11,58,99,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.gallery-video i {
  font-size: 48px;
  z-index: 2;
}

.gallery-video h4 {
  margin-top: 12px;
  font-weight: 700;
}

/* ---------- PULSE ---------- */
.pulse {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {transform: scale(.7); opacity: 1;}
  100% {transform: scale(1.8); opacity: 0;}
}

/* ---------- MOBILE ---------- */
@media(max-width:768px){
  .gallery-header h2 {font-size: 28px;}
  .gallery-item img {height: 240px;}
}
/* ===== MATCH TEAM PAGE APPOINTMENT LOOK ===== */

/* ========= ADVANCED GALLERY FILTER ========= */

.gallery-filter-section {
    margin: 50px 0;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- SEARCH BAR ---------- */
.gallery-search-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.search-input-group {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-input-group i:first-child {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #007ACC;
    pointer-events: none;
    z-index: 1;
}

.gallery-search-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid rgba(79, 195, 255, 0.3);
    border-radius: 999px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    outline: none;
}

.gallery-search-input:focus {
    border-color: #007ACC;
    box-shadow: 0 0 0 3px rgba(79, 195, 255, 0.15);
    background: rgba(255, 255, 255, 1);
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #007ACC;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 18px;
    transition: all 0.2s ease;
}

.search-clear-btn:hover {
    background: rgba(79, 195, 255, 0.1);
    border-radius: 50%;
}

/* ---------- FILTER TABS ---------- */
.gallery-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(79, 195, 255, 0.35);
    background: rgba(255, 255, 255, 0.9);
    padding: 11px 22px;
    border-radius: 999px;
    color: #007ACC;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #007ACC, #4FC3FF);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.filter-btn:hover {
    border-color: #007ACC;
    transform: translateY(-3px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #007ACC, #4FC3FF);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(79, 195, 255, 0.4);
    border-color: #007ACC;
}

.filter-btn i {
    font-size: 16px;
}

/* ---------- ACTIVE FILTERS DISPLAY ---------- */
.gallery-active-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(79, 195, 255, 0.1), rgba(79, 195, 255, 0.05));
    border-radius: 16px;
    border: 1px solid rgba(79, 195, 255, 0.2);
}

.filter-label {
    font-weight: 600;
    color: #007ACC;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-chips-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #007ACC;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    animation: chipFadeIn 0.3s ease;
}

@keyframes chipFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.filter-chip-remove {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    padding: 0 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 12px;
    width: 18px;
    height: 18px;
}

.filter-chip-remove:hover {
    background: rgba(255, 255, 255, 0.6);
}

.clear-all-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 2px solid #007ACC;
    color: #007ACC;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-all-btn:hover {
    background: #007ACC;
    color: white;
}

/* ---------- RESULTS INFO ---------- */
.gallery-results-info {
    text-align: center;
    margin-bottom: 25px;
    font-size: 14px;
    color: #556b82;
    min-height: 20px;
}

.gallery-results-info strong {
    color: #007ACC;
    font-weight: 700;
}

/* ---------- NO RESULTS MESSAGE ---------- */
.gallery-no-results {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
}

.no-results-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.no-results-icon {
    font-size: 64px;
    color: rgba(79, 195, 255, 0.3);
    opacity: 0.5;
}

.no-results-title {
    font-size: 24px;
    font-weight: 700;
    color: #0b3a63;
    margin: 0;
}

.no-results-text {
    font-size: 15px;
    color: #556b82;
    max-width: 500px;
    line-height: 1.6;
}

.no-results-action {
    margin-top: 10px;
}

.no-results-action button {
    background: linear-gradient(135deg, #007ACC, #4FC3FF);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.no-results-action button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(79, 195, 255, 0.4);
}

/* ---------- MOBILE RESPONSIVE ---------- */
@media (max-width: 768px) {
    .gallery-filter-section {
        margin: 30px 0;
    }

    .search-input-group {
        max-width: 100%;
    }

    .gallery-filter-tabs {
        gap: 10px;
        margin-bottom: 20px;
    }

    .filter-btn {
        padding: 9px 16px;
        font-size: 13px;
    }

    .filter-btn i {
        font-size: 14px;
    }

    .gallery-active-filters {
        gap: 10px;
        padding: 10px 15px;
    }

    .filter-label {
        font-size: 12px;
    }

    .filter-chip {
        font-size: 12px;
        padding: 5px 10px;
    }

    .clear-all-btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    .no-results-title {
        font-size: 20px;
    }

    .no-results-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .filter-btn {
        padding: 8px 14px;
        font-size: 12px;
        gap: 4px;
    }

    .filter-btn i {
        display: none;
    }

    .gallery-active-filters {
        flex-direction: column;
        gap: 8px;
    }

    .filter-chips-container {
        width: 100%;
        justify-content: center;
    }
}

.stats-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 122, 204, 0.1);
    border: 1px solid rgba(0, 122, 204, 0.3);
    color: #007ACC;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
    z-index: 101;
}

.stats-close-btn:hover {
    background: #007ACC;
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 122, 204, 0.3);
}

.stats-close-btn:active {
    transform: rotate(90deg) scale(0.95);
}

@media (max-width: 640px) {
    .stats-close-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
        top: 10px;
        right: 10px;
    }
}




/* ========= RESPONSIVE ADJUSTMENTS ========= */

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) {
    .stats-cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 20px;
        width: calc(100% + 30px);
    }
}

/* Tablet/iPad Mini (640px - 768px) */
@media (max-width: 768px) {
    .stats-cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px;
        width: calc(100% + 20px);
        left: 50%;
        transform: translate(calc(-50% - 10px), -50%) scale(0.95);
    }

    .stats-cards-wrapper[style*="display: grid"] {
        animation: overlaySlideDown 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    .stat-card {
        padding: 14px 10px;
    }
}

/* Small Mobile (max 640px) */
@media (max-width: 640px) {
    .stats-cards-wrapper {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px;
        width: calc(100% + 20px);
        left: 50%;
        transform: translate(calc(-50% - 10px), -50%) scale(0.95);
    }

    .stat-card {
        padding: 12px 10px;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-title {
        font-size: 0.75rem;
    }
}

/* Extra Small Mobile (max 480px) */
@media (max-width: 480px) {
    .stats-cards-wrapper {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
        width: calc(100% + 16px);
        left: 50%;
        transform: translate(calc(-50% - 8px), -50%) scale(0.9);
    }

    .stat-card {
        padding: 10px 8px;
    }

    .stat-number {
        font-size: 1.1rem;
    }

    .stat-title {
        font-size: 0.7rem;
    }
}


.stats-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 122, 204, 0.1);
    border: 2px solid rgba(0, 122, 204, 0.3);
    color: #007ACC;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 20px;
    z-index: 102;
    padding: 0;
}

.stats-close-btn:hover {
    background: #007ACC;
    color: white;
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 6px 16px rgba(0, 122, 204, 0.4);
}

.stats-close-btn:active {
    transform: rotate(90deg) scale(0.95);
}

@media (max-width: 768px) {
    .stats-close-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .stats-close-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}

.breadcrumb-area {
    background-image: url('../images/inner_bg_gal.jpg');
}\n\n/* ==========================================================
   GALLERY FINAL ENHANCEMENT — SAFE OVERRIDES ONLY
   Existing gallery structure retained.
   ========================================================== */
body.gallery-page .gallery-content-section{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 8% 10%,rgba(67,189,242,.14),transparent 25%),
    radial-gradient(circle at 92% 22%,rgba(239,61,61,.07),transparent 22%),
    linear-gradient(180deg,#eef9ff 0%,#f8fcff 48%,#ffffff 100%)!important;
}
body.gallery-page .gallery-content-section:before{
  content:\"\";position:absolute;inset:0;pointer-events:none;
  background-image:linear-gradient(rgba(8,127,189,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(8,127,189,.035) 1px,transparent 1px);
  background-size:38px 38px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.55),transparent 78%);
}
body.gallery-page .gallery-wrapper-premium{position:relative;z-index:2;}
body.gallery-page .gallery-filter-section{
  margin:0 0 34px!important;padding:18px 20px;border-radius:22px;
  background:rgba(255,255,255,.76);border:1px solid rgba(8,127,189,.12);
  box-shadow:0 16px 45px rgba(11,58,99,.07);backdrop-filter:blur(10px);
}
body.gallery-page .gallery-filter-tabs{margin-bottom:12px;}
body.gallery-page .gallery-results-info{margin:6px 0 0;min-height:0;}
body.gallery-page .gallery-grid-premium{gap:26px;}
body.gallery-page .gallery-item{
  padding:10px;background:rgba(255,255,255,.95);border:1px solid rgba(8,127,189,.13);
  box-shadow:0 18px 42px rgba(11,58,99,.10);
}
body.gallery-page .gallery-item:after{
  content:\"\";position:absolute;left:22px;right:22px;bottom:0;height:3px;border-radius:999px;
  background:linear-gradient(90deg,#ef3d3d,#43bdf2,#087fbd);opacity:0;transform:scaleX(.4);transition:.35s ease;z-index:4;
}
body.gallery-page .gallery-item:hover:after{opacity:1;transform:scaleX(1);}
body.gallery-page .gallery-item img{height:285px;background:linear-gradient(145deg,#dff3fc,#f8fcff);}
body.gallery-page .gallery-item:hover{transform:translateY(-8px);box-shadow:0 28px 58px rgba(11,58,99,.16);}
body.gallery-page .floating-socials.fixed{z-index:10020!important;}
@media(max-width:768px){
 body.gallery-page .gallery-content-section{padding-top:28px!important;}
 body.gallery-page .gallery-filter-section{padding:14px 12px;margin-bottom:24px!important;}
 body.gallery-page .gallery-grid-premium{gap:20px;}
 body.gallery-page .gallery-item img{height:245px;}
}


/* ===== GALLERY FUNCTION + SOCIALS FIX ===== */
.gallery-grid-premium .gallery-item.gallery-item--hidden {
  display: none !important;
}

/* Same floating social treatment used on the Team page, scoped to Gallery. */
body.gallery-page .floating-socials.fixed {
  position: fixed !important;
  right: 18px !important;
  top: 70% !important;
  transform: translateY(-50%) !important;
  z-index: 10020 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  visibility: visible !important;
  opacity: 1 !important;
}
body.gallery-page .floating-socials.fixed .social-link {
  width: 50px !important;
  height: 50px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 22px !important;
  box-shadow: 0 10px 24px rgba(11,58,99,.16) !important;
  transition: transform .25s ease, box-shadow .25s ease !important;
}
body.gallery-page .floating-socials.fixed .social-link:hover {
  transform: translateX(-4px) scale(1.04);
  box-shadow: 0 14px 30px rgba(11,58,99,.22) !important;
}
body.gallery-page .floating-socials.fixed .social-fb { background: #1877f2 !important; }
body.gallery-page .floating-socials.fixed .social-ig { background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af,#515bd4) !important; }
body.gallery-page .floating-socials.fixed .social-wa { background: #25d366 !important; }

@media (max-width: 767px) {
  body.gallery-page .floating-socials.fixed {
    right: 10px !important;
    gap: 8px !important;
  }
  body.gallery-page .floating-socials.fixed .social-link {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    font-size: 19px !important;
  }
}


/* ===== GALLERY APPOINTMENT ALIGNMENT — MATCH TEAM.PHP ===== */
/* gallery.php already loads About styles; keep the same appointment card spacing used by Team. */
body.gallery-page .appointment-luxury-card {
  margin-top: var(--spacing-3xl) !important;
}
body.gallery-page .lux-appointment-form label { cursor: pointer; }
body.gallery-page .lux-appointment-form input,
body.gallery-page .lux-appointment-form textarea { min-width: 0; }
body.gallery-page .lux-appointment-form textarea {
  resize: vertical;
  min-height: 110px;
}
@media (max-width: 767px) {
  body.gallery-page .appointment-luxury-card {
    margin-left: 15px !important;
    margin-right: 15px !important;
  }
  body.gallery-page .lux-form-wrapper,
  body.gallery-page .lux-appointment-form,
  body.gallery-page .form-group {
    width: 100%;
    min-width: 0;
  }
}
