/* ==============================================================
   ILBARATTO.COM - Mobile-First Detail Stylesheet
   Version: 20261126-v2
   Scope: Single Ad Presentation, Touch Gallery, AdSense Compliance,
          Top Breadcrumb & Quick Search Bar
   ============================================================== */

:root {
  --ib-primary: #0284c7;
  --ib-primary-hover: #0369a1;
  --ib-success: #08785f;
  --ib-success-hover: #065f46;
  --ib-text-main: #0f172a;
  --ib-text-muted: #64748b;
  --ib-card-bg: #ffffff;
  --ib-bg-soft: #f8fafc;
  --ib-border-color: #e2e8f0;
  --ib-fb-blue: #1877f2;
  --ib-fb-hover: #166fe5;
}

/* --------------------------------------------------------------
   0. RESET OVERRIDES FOR DETAIL CONTAINER
   -------------------------------------------------------------- */
.ib-detail-main-section {
  padding-top: 1rem !important;
  padding-bottom: 2.5rem !important;
  background-color: #f1f5f9;
}

/* --------------------------------------------------------------
   1. BREADCRUMB & QUICK SEARCH BAR (Upper Section)
   -------------------------------------------------------------- */
.ib-detail-breadcrumb-bar {
  margin-top: 82px !important;
  background: #ffffff;
  border-bottom: 1px solid var(--ib-border-color);
  padding: 0.65rem 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  position: relative;
  z-index: 10;
}

.ib-breadcrumb-search-flex {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .ib-breadcrumb-search-flex {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.ib-breadcrumb-nav {
  flex: 1 1 auto;
}

.ib-breadcrumb {
  background: transparent !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.ib-breadcrumb .breadcrumb-item a {
  color: var(--ib-primary);
  text-decoration: none;
}

.ib-breadcrumb .breadcrumb-item a:hover {
  text-decoration: underline;
}

.ib-breadcrumb .breadcrumb-item.active {
  color: #475569;
  font-weight: 600;
}

.ib-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "›" !important;
  color: #94a3b8;
  padding: 0 0.45rem;
  font-weight: bold;
}

.ib-top-quick-search {
  width: 100%;
}

@media (min-width: 768px) {
  .ib-top-quick-search {
    max-width: 320px;
  }
}

.ib-quick-search-form .input-group {
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-radius: 6px;
  overflow: hidden;
}

.ib-quick-search-form input.form-control {
  border: 1px solid #cbd5e1;
  font-size: 0.85rem;
  padding: 0.35rem 0.65rem;
}

.ib-quick-search-form button.btn-primary {
  background: #08785f !important;
  border-color: #08785f !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
}

.ib-top-quick-search {
  flex: 0 0 auto;
  min-width: 260px;
}

@media (max-width: 767px) {
  .ib-top-quick-search {
    width: 100%;
  }
}

.ib-quick-search-form .input-group {
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border-radius: 6px;
  overflow: hidden;
}

.ib-quick-search-form .form-control {
  border: 1px solid #cbd5e1;
  font-size: 0.85rem;
  height: calc(1.9rem + 2px);
  padding: 0.25rem 0.6rem;
}

.ib-quick-search-form .btn {
  font-size: 0.82rem;
  font-weight: 600;
  background-color: var(--ib-primary);
  border-color: var(--ib-primary);
  padding: 0.25rem 0.75rem;
}

/* --------------------------------------------------------------
   2. GALLERY & PHOTO PRESENTATION (Smart Fallbacks)
   -------------------------------------------------------------- */
.ib-gallery-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--ib-border-color);
  padding: 0.75rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  margin-bottom: 1.25rem;
}

/* No photos available */
.ib-gallery-empty {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 10px;
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--ib-text-muted);
  border: 1px dashed #cbd5e1;
}

.ib-gallery-empty i {
  font-size: 2.25rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  display: block;
}

.ib-gallery-empty span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
}

/* Single Photo */
.ib-gallery-single {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
  text-align: center;
}

.ib-gallery-single a {
  display: block;
}

.ib-photo-single-img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.25s ease;
}

.ib-photo-single-img:hover {
  transform: scale(1.01);
}

.ib-zoom-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* Touch Native Multi-Photo Swipe Carousel & Snap Gallery */
.ib-gallery-snap-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
  width: 100%;
}

.ib-gallery-snap-track,
.ib-swipe-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  border-radius: 10px;
  background: #0f172a;
  position: relative;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important;  /* IE/Edge */
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.ib-gallery-snap-track::-webkit-scrollbar,
.ib-swipe-track::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.ib-gallery-snap-slide,
.ib-swipe-slide {
  flex: 0 0 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  scroll-snap-align: start !important;
  scroll-snap-stop: always !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 240px;
  max-height: 480px;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background: #0f172a;
}

.ib-gallery-snap-slide a,
.ib-swipe-slide a {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  align-items: center !important;
  justify-content: center !important;
}

.ib-gallery-snap-slide img,
.ib-swipe-slide img {
  max-width: 100% !important;
  max-height: 480px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

.ib-gallery-counter-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 5;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* Nav arrows for desktop click & mobile tap */
.ib-gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 6;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.ib-gallery-nav-btn:hover,
.ib-gallery-nav-btn:active {
  background: rgba(8, 120, 95, 0.95);
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.ib-gallery-prev {
  left: 10px;
}

.ib-gallery-next {
  right: 10px;
}

/* Thumbnail selector bar */
.ib-gallery-thumbs {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto !important;
  padding-bottom: 4px;
}

.ib-gallery-thumb-btn,
.ib-thumb-btn {
  flex: 0 0 70px !important;
  width: 70px !important;
  height: 52px !important;
  border-radius: 6px;
  border: 2px solid transparent !important;
  padding: 0 !important;
  overflow: hidden;
  background: #0f172a;
  cursor: pointer;
  opacity: 0.65;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.ib-gallery-thumb-btn img,
.ib-thumb-btn img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.ib-gallery-thumb-btn.active,
.ib-gallery-thumb-btn:hover,
.ib-thumb-btn.active,
.ib-thumb-btn:hover {
  border-color: #08785f !important;
  opacity: 1 !important;
  box-shadow: 0 0 0 2px rgba(8, 120, 95, 0.3) !important;
}

.ib-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------
   3. AD CONTENT CARD (Title, Price, Location, Description)
   -------------------------------------------------------------- */
.ib-detail-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--ib-border-color);
  padding: 1.25rem 1.25rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .ib-detail-card {
    padding: 1.75rem 2rem;
  }
}

.ib-ad-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ib-text-main);
  line-height: 1.3;
  margin-bottom: 0.85rem;
  letter-spacing: -0.015em;
}

@media (min-width: 768px) {
  .ib-ad-title {
    font-size: 1.75rem;
  }
}

/* Price presentation */
.ib-price-tag-wrap {
  display: inline-block;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1rem;
}

.ib-price-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ib-success);
  line-height: 1;
}

@media (min-width: 768px) {
  .ib-price-value {
    font-size: 1.9rem;
  }
}

.ib-price-currency {
  font-size: 1.1rem;
  margin-right: 2px;
}

/* Metadata Bar */
.ib-ad-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.875rem;
  color: var(--ib-text-muted);
}

.ib-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ib-meta-item i {
  color: var(--ib-primary);
}

.ib-community-badge {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #bfdbfe;
}

/* Description Text */
.ib-ad-description-wrap {
  color: #334155;
  font-size: 1rem;
  line-height: 1.75;
  word-break: break-word;
}

.ib-ad-description-wrap p {
  margin-bottom: 1rem;
}

/* Strip any legacy green borders or notes */
.ib-ad-description-wrap .note,
.ib-ad-description-wrap .note-success,
.ib-ad-description-wrap .border-success,
.ib-ad-description-wrap .note-secondary {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  color: inherit !important;
}

/* --------------------------------------------------------------
   4. CONTACT & SELLER CARD (Facebook Community / Standard)
   -------------------------------------------------------------- */
.ib-seller-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--ib-border-color);
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  margin-bottom: 1.5rem;
}

.ib-community-seller-card {
  border-top: 4px solid var(--ib-fb-blue);
}

.ib-community-author-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ib-avatar-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
}

.ib-avatar-fallback {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.ib-seller-name {
  font-weight: 800;
  color: var(--ib-text-main);
  font-size: 1.05rem;
}

.ib-seller-sub {
  font-size: 0.8rem;
  color: var(--ib-text-muted);
}

.ib-fb-cta-btn {
  background-color: var(--ib-fb-blue) !important;
  border-color: var(--ib-fb-blue) !important;
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.25);
  transition: all 0.2s ease;
}

.ib-fb-cta-btn:hover {
  background-color: var(--ib-fb-hover) !important;
  border-color: var(--ib-fb-hover) !important;
  transform: translateY(-1px);
}

/* Standard seller phone buttons */
.ib-standard-phone-btn {
  border-radius: 8px;
  font-weight: 700;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.ib-whatsapp-btn {
  background-color: #25d366 !important;
  border-color: #25d366 !important;
  color: #ffffff !important;
}

.ib-whatsapp-btn:hover {
  background-color: #20ba5a !important;
}

/* --------------------------------------------------------------
   5. GOOGLE ADSENSE INTEGRATION CARD (Compliant & Protected)
   -------------------------------------------------------------- */
.ib-adsense-card {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  text-align: center;
  margin: 1.25rem auto !important;
  box-shadow: none !important;
  max-width: 100%;
}

.ib-ads-container {
  min-height: auto !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Auto-collapse empty / blocked ad containers so they leave zero visual pollution */
.ib-adsense-card ins:empty,
.ib-adsense-card ins[data-ad-status="unfilled"],
.ib-ads-container ins:empty,
.ib-ads-container ins[data-ad-status="unfilled"] {
  display: none !important;
}

.ib-adsense-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.ib-adsense-container {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* --------------------------------------------------------------
   6. MOBILE STICKY CONTACT BAR (Floating Bottom)
   -------------------------------------------------------------- */
.ib-sticky-contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #cbd5e1;
  padding: 0.55rem 0.85rem;
  z-index: 1040;
  box-shadow: 0 -3px 12px rgba(0,0,0,0.08);
  backdrop-filter: blur(8px);
}

.ib-sticky-contact-bar .ib-sticky-btn {
  width: 100%;
  border-radius: 8px;
  font-weight: 700;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ib-sticky-btn-group {
  display: flex;
  gap: 0.5rem;
}

.ib-sticky-btn-half {
  flex: 1 1 50%;
  border-radius: 8px;
  font-weight: 700;
  padding: 0.6rem 0.5rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Add bottom padding to body on mobile so sticky bar doesn't overlap footer */
@media (max-width: 991px) {
  body {
    padding-bottom: 70px !important;
  }
}

/* --------------------------------------------------------------
   7. SIMILAR ADS CARD (2-Column Mobile Grid)
   -------------------------------------------------------------- */
.ib-simili-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.ib-simili-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ib-text-main);
  margin-bottom: 1rem;
}

.ib-simili-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .ib-simili-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.ib-simili-item-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--ib-border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none !important;
  color: inherit !important;
}

.ib-simili-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.ib-simili-thumb-wrap {
  aspect-ratio: 4/3;
  width: 100%;
  background: #0f172a;
  overflow: hidden;
}

.ib-simili-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ib-simili-body {
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.ib-simili-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ib-text-main);
  line-height: 1.3;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ib-simili-item-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ib-success);
  margin-top: auto;
}


/* --------------------------------------------------------------
   10. DESKTOP SIDEBAR & SELLER BADGES POLISH
   -------------------------------------------------------------- */
.badge-success-soft {
  background-color: #d1fae5;
  color: #065f46;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
}

.ib-desktop-sidebar.sticky-top {
  position: -webkit-sticky;
  position: sticky;
  top: 100px;
  z-index: 10;
}

@media (min-width: 992px) {
  .ib-detail-card {
    padding: 2rem !important;
  }
  .ib-detail-title {
    font-size: 1.75rem !important;
  }
}


/* --------------------------------------------------------------
   RESPONSIVE PHOTO FIX (.ib-main-photo, .ib-gallery-single)
   -------------------------------------------------------------- */
.ib-gallery-single {
  position: relative !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #0f172a !important;
  text-align: center !important;
  min-height: 240px !important;
  max-height: 480px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ib-gallery-single a.ib-photo-lightbox {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 480px !important;
  text-decoration: none !important;
}

.ib-photo-single-img,
.ib-main-photo {
  max-width: 100% !important;
  width: auto !important;
  max-height: 460px !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

.ib-gallery-snap-slide img,
.ib-swipe-slide img {
  max-width: 100% !important;
  max-height: 460px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

@media (max-width: 767px) {
  .ib-gallery-single,
  .ib-gallery-snap-wrap,
  .ib-gallery-snap-slide {
    min-height: 220px !important;
    max-height: 340px !important;
    border-radius: 10px !important;
  }
  .ib-photo-single-img,
  .ib-main-photo {
    max-height: 340px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }
}

/* --------------------------------------------------------------
   METADATA BADGE PILLS & TITOLO OTTIMIZZATO (MARKETPLACE STANDARD)
   -------------------------------------------------------------- */
.ib-detail-badge-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.45rem !important;
  margin-top: 0.25rem !important;
  margin-bottom: 0.65rem !important;
}

.ib-category-pill {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.2rem 0.65rem !important;
  background: #e6f4ea !important;
  color: #08785f !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  border: 1px solid rgba(8, 120, 95, 0.15) !important;
}

.ib-location-pill {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.2rem 0.65rem !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  border-radius: 9999px !important;
  border: 1px solid #e2e8f0 !important;
}

.ib-location-pill i {
  color: #dc2626 !important;
  margin-right: 0.25rem !important;
}

.ib-id-pill {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.2rem 0.65rem !important;
  background: #f8fafc !important;
  color: #64748b !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9999px !important;
}

.ib-community-tag {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.2rem 0.65rem !important;
  background: #eef2ff !important;
  color: #4338ca !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(67, 56, 202, 0.15) !important;
}

/* Titolo Principale - Proporzionato, moderno, mai esagerato */
.ib-detail-title {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #0f172a !important;
  margin: 0.25rem 0 0.65rem 0 !important;
  letter-spacing: -0.015em !important;
  word-break: break-word !important;
}

@media (min-width: 768px) {
  .ib-detail-title {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
  }
}

@media (min-width: 992px) {
  .ib-detail-title {
    font-size: 1.45rem !important;
    line-height: 1.3 !important;
  }
}

/* ==========================================================================
   Curated Stylish Category Placeholders (No-Photo State)
   ========================================================================== */
.ib-gallery-placeholder {
  position: relative;
  width: 100%;
  min-height: 270px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
  color: #ffffff !important;
  box-shadow: 0 10px 28px rgba(18, 50, 40, 0.12);
  margin-bottom: 20px;
}

@media (max-width: 575.98px) {
  .ib-gallery-placeholder {
    min-height: 220px;
    padding: 24px 16px;
    border-radius: 14px;
  }
}

/* Category Specific Duotone Gradients */
.ib-gallery-placeholder--motori {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0284c7 100%);
}
.ib-gallery-placeholder--immobili {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 55%, #059669 100%);
}
.ib-gallery-placeholder--elettronica {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #0d9488 100%);
}
.ib-gallery-placeholder--lavoro {
  background: linear-gradient(135deg, #172554 0%, #1e3a8a 55%, #2563eb 100%);
}
.ib-gallery-placeholder--casa {
  background: linear-gradient(135deg, #451a03 0%, #78350f 55%, #d97706 100%);
}
.ib-gallery-placeholder--varie {
  background: linear-gradient(135deg, #134e4a 0%, #0f766e 55%, #0d9488 100%);
}

/* Frosted glass icon circle */
.ib-gallery-placeholder-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
  transition: transform 0.25s ease;
}

.ib-gallery-placeholder:hover .ib-gallery-placeholder-icon-wrap {
  transform: scale(1.05);
}

@media (max-width: 575.98px) {
  .ib-gallery-placeholder-icon-wrap {
    width: 64px;
    height: 64px;
    font-size: 1.75rem;
    margin-bottom: 10px;
  }
}

/* Category Pill */
.ib-gallery-placeholder-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff !important;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

/* Typography */
.ib-gallery-placeholder-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 4px 0;
  color: #ffffff !important;
  position: relative;
  z-index: 2;
  letter-spacing: -0.015em;
}

@media (max-width: 575.98px) {
  .ib-gallery-placeholder-title {
    font-size: 1.05rem;
  }
}

.ib-gallery-placeholder-desc {
  font-size: 0.88rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.9) !important;
  max-width: 440px;
  position: relative;
  z-index: 2;
  line-height: 1.35;
}

@media (max-width: 575.98px) {
  .ib-gallery-placeholder-desc {
    font-size: 0.8rem;
  }
}

/* Subtle giant watermark icon */
.ib-gallery-placeholder-watermark {
  position: absolute;
  right: -15px;
  bottom: -25px;
  font-size: 9.5rem;
  color: #ffffff;
  opacity: 0.07;
  pointer-events: none;
  z-index: 1;
  line-height: 1;
}


/* Inline SVG icon styles for placeholders */
.ib-placeholder-svg {
  width: 44px;
  height: 44px;
  stroke: #ffffff !important;
  color: #ffffff !important;
  display: block;
}

@media (max-width: 575.98px) {
  .ib-placeholder-svg {
    width: 36px;
    height: 36px;
  }
}

.ib-gallery-placeholder-watermark .ib-placeholder-svg {
  width: 180px;
  height: 180px;
  opacity: 0.10 !important;
  stroke: #ffffff !important;
}
