/* ========================================
   Homepage Refresh (Wedding UX/UI)
   Scoped to homepage section classes
======================================== */

.home-hero-search .search-belt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(250, 248, 245, 0.96) 100%);
  border: 1px solid #f1dce9;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(38, 22, 31, 0.12);
  padding: 20px;
}

.home-hero-search .glowna-nad-wyszukiwarka h1 {
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.home-hero-search .hero-microcopy {
  margin: 0 0 18px;
  font-size: 14px;
  color: #5f5660;
}

.home-hero-search .hero-microcopy strong {
  color: #af4082;
  font-weight: 700;
}

.home-hero-search .hero-dot {
  display: inline-block;
  margin: 0 8px;
  color: #b8a7b1;
}

.home-hero-search .hero-search-submit {
  font-weight: 700;
  border-radius: 12px;
}

.home-ad-card {
  padding-bottom: 20px;
}

.home-ad-card .announcement-card-inner {
  border: 1px solid #f0e6ec;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-ad-card .announcement-card-inner:hover {
  transform: translateY(-2px);
  border-color: #e3c6d7;
  box-shadow: 0 14px 30px rgba(60, 41, 53, 0.12);
}

.home-ad-card .announcement-thumb-link {
  display: block;
  position: relative;
  background: #f7f7f7;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.home-ad-card .home-card-badge {
  position: absolute;
  left: 10px;
  top: auto;
  bottom: 10px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.86);
  color: #1f2937;
  border: 1px solid rgba(31, 41, 55, 0.12);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(31, 41, 55, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.home-ad-card .announcement-thumb {
  width: 100% !important;
  height: 100% !important;
  margin: 0;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.home-ad-card .announcement-card-inner:hover .announcement-thumb {
  transform: scale(1.03);
}

.home-ad-card .announcement-card-content {
  padding: 12px 12px 14px;
}

.home-ad-card .announcement-city {
  color: #7d6f77;
  margin-bottom: 6px;
}

.home-ad-card .announcement-title {
  margin: 0 0 8px;
  min-height: 42px;
  line-height: 1.35;
  font-weight: 700;
  color: #1f2937;
}

.home-ad-card .announcement-title a {
  color: inherit;
  text-decoration: none;
}

.home-ad-card .announcement-title a:hover,
.home-ad-card .announcement-title a:focus {
  color: #af4082;
  text-decoration: none;
}

.home-ad-card .announcement-price {
  color: #374151;
  font-weight: 600;
}

.home-city-popular {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.home-city-chip {
  display: inline-block;
  border: 1px solid #ead8e3;
  border-radius: 999px;
  padding: 7px 12px;
  color: #4a3f45;
  background: #fff;
  transition: all 0.2s ease;
}

.home-city-chip:hover,
.home-city-chip:focus {
  color: #fff;
  background: #af4082;
  border-color: #af4082;
  text-decoration: none;
}

.home-city-search {
  position: relative;
  margin-bottom: 14px;
}

.home-city-search-label {
  display: block;
  font-size: 13px;
  color: #6a5f65;
  margin: 0 0 6px;
  font-weight: 600;
}

.home-city-quick-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 25;
  background: #fff;
  border: 1px solid #e8dee4;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(39, 28, 33, 0.12);
  max-height: 280px;
  overflow-y: auto;
}

.home-city-result-item {
  display: block;
  padding: 10px 12px;
  color: #3d3338;
  border-bottom: 1px solid #f3edf1;
}

.home-city-result-item:last-child {
  border-bottom: none;
}

.home-city-result-item:hover,
.home-city-result-item:focus {
  color: #af4082;
  background: #fdf5f9;
  text-decoration: none;
}

.home-seo-details {
  border: 1px solid #eadde6;
  background: #fff;
  border-radius: 14px;
  margin: 0 0 14px;
  overflow: hidden;
}

.home-seo-details > summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  font-weight: 700;
  color: #3d3137;
  background: #fcf8fb;
}

.home-seo-details > summary::-webkit-details-marker {
  display: none;
}

.home-seo-details[open] > summary {
  border-bottom: 1px solid #efe5eb;
}

.home-seo-details .home-text {
  padding: 14px 18px;
}

.home-faq {
  margin: 18px 0 0;
}

.home-faq-items {
  display: grid;
  gap: 14px;
}

.home-faq-item {
  border: 1px solid #eadde6;
  background: #fff;
  border-radius: 14px;
  padding: 14px 18px;
}

.home-faq-q {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #3d3137;
}

.home-faq-a {
  margin: 0;
  color: #4a3f45;
}

.categories-subcats-details {
  margin-top: 14px;
  border-top: 1px solid #d4d4d9;
  padding-top: 10px;
}

.categories-subcats-details > summary {
  cursor: pointer;
  font-weight: 700;
  color: #2a2a42;
}

.categories-subcats-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.categories-subcats-title a {
  display: inline-block;
  font-weight: 700;
  color: #2a2a42;
  text-decoration: none;
}

.categories-subcats-links {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.categories-subcats-links a {
  display: inline-block;
  padding: 2px 0;
  color: #2a2a42;
  text-decoration: none;
}

.categories-subcats-links a:hover,
.categories-subcats-links a:focus {
  color: #55900f;
  text-decoration: underline;
}

.categories-subcats-more {
  font-weight: 700;
}

@media (max-width: 767px) {
  .categories-subcats-grid {
    grid-template-columns: 1fr;
  }
}

.news-section .home-blog-card {
  border: 1px solid #efe5eb;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 18px;
  height: 100%;
  background: #fff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-section .home-blog-card:hover {
  border-color: #e2c8d8;
  box-shadow: 0 10px 24px rgba(52, 34, 45, 0.1);
}

.news-section .single-news .news-thumb {
  border-radius: 10px;
  margin-bottom: 12px;
}

.news-section .home-blog-wp-teaser .single-news .news-thumb,
.news-section .blog_post .news-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f5f1f3;
}

.news-section .home-blog-wp-teaser .single-news {
  display: flex;
  margin-bottom: 18px;
}

.news-section .home-blog-wp-teaser .home-blog-card--wp {
  width: 100%;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.news-section .home-blog-wp-teaser .home-blog-card--wp .news-title {
  margin: 0 0 10px;
  min-height: 52px;
}

.news-section .home-blog-wp-teaser .home-blog-card--wp .news-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.news-section .home-blog-wp-teaser .home-blog-card--wp .news-preface {
  margin: 0 0 8px;
  color: #5b4f56;
  line-height: 1.52;
  min-height: 96px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.news-section .home-blog-wp-teaser .home-blog-card--wp .more-link {
  margin-top: auto;
  display: inline-block;
  white-space: nowrap;
}

.news-section .single-news .news-title {
  margin: 0 0 8px;
  line-height: 1.3;
}

.news-section .single-news .news-title a {
  font-size: 18px;
  font-weight: 700;
}

.stats-section .single-stat-card {
  border: 1px solid #eadfe6;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
}

.stats-section .single-stat-card img {
  width: 48px;
  height: auto;
}

/* Center icon + text inside stats cards (override legacy floats/margins). */
.stats-section .single-stat-card > span {
  float: none !important;
  display: block;
  margin: 0 !important;
}

.stats-section .single-stat-card > span.pull-left {
  flex: 0 0 auto;
}

.stats-section .single-stat-card > span:not(.pull-left) {
  flex: 0 1 auto;
  line-height: 1.25;
}

.stats-section .single-stat-card > .clearfix {
  display: none;
}

/* --- Mobile: Hide stats section (hero already shows key numbers) --- */
@media (max-width: 767px) {
  .stats-section {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .home-hero-search .search-belt {
    padding: 14px;
    border-radius: 14px;
  }

  .home-hero-search .hero-microcopy {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .home-ad-card .announcement-title {
    min-height: 0;
    font-size: 15px;
  }

  .home-city-popular {
    margin-bottom: 10px;
  }

  .home-city-chip {
    font-size: 13px;
    padding: 6px 10px;
  }

  .home-seo-details > summary {
    padding: 12px 14px;
    font-size: 15px;
  }

  .home-seo-details .home-text {
    padding: 12px 14px;
  }

  .news-section .home-blog-wp-teaser .home-blog-card--wp .news-title {
    min-height: 0;
  }

  .news-section .home-blog-wp-teaser .home-blog-card--wp .news-preface {
    min-height: 0;
    -webkit-line-clamp: 5;
  }
}

/* P1 cleanup overrides */
.home-hero-search .search-belt {
  padding: 26px 24px;
  border: 1px solid #e8d4dd;
  box-shadow: 0 20px 50px rgba(219, 39, 119, 0.08);
}

.home-hero-search .glowna-nad-wyszukiwarka h1 {
  font-size: clamp(28px, 3vw, 42px);
  margin-bottom: 8px;
}

.home-hero-search .hero-microcopy {
  font-size: 15px;
  color: #5f4f58;
  margin-bottom: 18px;
}

.home-hero-search .form-control,
.home-hero-search .select-distance,
.home-hero-search .hero-search-submit {
  min-height: 50px;
  font-size: 15px;
}

.home-ad-card .announcement-title {
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-ad-card .announcement-price {
  font-size: 17px;
}

.home-ad-card .announcement-city {
  font-size: 13px;
}

.promoted-section .home-card-badge {
  top: 10px;
  bottom: auto;
  border-color: rgba(175, 64, 130, 0.28);
  color: #8f2f6d;
}

.last-added-section .home-card-badge {
  border-color: rgba(52, 114, 188, 0.28);
  color: #2b5f9b;
}

.city-or-state-section .cities-list {
  display: none !important;
}

.home-city-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.home-city-actions .btn {
  margin: 0 !important;
}

.btn-home-action-main {
  font-weight: 700;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 12px;
}

.btn-home-action-secondary {
  font-weight: 600;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 12px;
}

.home-text-intro {
  max-width: 860px;
}

.home-text-intro-note {
  margin: 8px 0 0;
  color: #4d4349;
}

.news-section .subtitle-outer {
  margin-bottom: 16px;
}

.news-section .single-news .news-title a {
  font-size: 20px;
  line-height: 1.3;
}

/* Mobile density tuning: last added cards should be more compact */
@media (min-width: 360px) and (max-width: 767px) {
  .last-added-section .row {
    margin-left: -6px;
    margin-right: -6px;
  }

  .last-added-section .single-announcement {
    width: 50%;
    float: left;
    padding-left: 6px;
    padding-right: 6px;
  }

  .last-added-section .home-ad-card {
    padding-bottom: 12px;
  }

  .last-added-section .home-ad-card .announcement-thumb-link {
    aspect-ratio: 4 / 5;
  }

  .last-added-section .home-ad-card .announcement-card-content {
    padding: 10px 10px 12px;
  }

  .last-added-section .home-ad-card .announcement-city {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .last-added-section .home-ad-card .announcement-title {
    font-size: 14px;
    line-height: 1.3;
    min-height: 36px;
    margin-bottom: 6px;
  }

  .last-added-section .home-ad-card .announcement-price {
    font-size: 19px;
    line-height: 1.15;
  }
}

@media (max-width: 359px) {
  .last-added-section .home-ad-card .announcement-thumb-link {
    aspect-ratio: 4 / 5;
  }

  .last-added-section .home-ad-card .announcement-title {
    font-size: 15px;
  }

  .last-added-section .home-ad-card .announcement-price {
    font-size: 20px;
  }
}

@media (min-width: 992px) {
  .navbar-brand img {
    max-height: 42px;
    width: auto;
  }

  .nav.navbar-nav.navbar-menu > li > a.img-before {
    font-size: 14px;
    font-weight: 500;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .navbar .navbar-nav.navbar-right .btn {
    min-height: 40px;
    line-height: 1.2;
    padding: 10px 16px;
    font-weight: 600;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .navbar .navbar-nav.navbar-right .btn.btn-img {
    padding-right: 44px;
  }

  .navbar .navbar-nav.navbar-right .btn.btn-img::after {
    width: 38px;
    background-size: 16px 16px;
    opacity: 0.95;
  }

  .subtitle-with-line {
    font-size: 36px;
    margin-bottom: 30px;
  }

  .promoted-section,
  .last-added-section,
  .city-or-state-section {
    padding-top: 46px;
    padding-bottom: 24px;
  }
}

@media (max-width: 991px) {
  .home-city-actions {
    display: block;
  }

  .home-city-actions .btn {
    width: 100%;
    margin-bottom: 10px !important;
  }
}
/* ========================================
   Hero Search V3 (Modern Standard) & Fixes
   ======================================== */

/* 1. Typography */
/* Playfair Display is loaded in templates/website/index.smarty (C1). */

.hero-title, 
.subtitle-with-line,
.home-ad-card .announcement-price {
    font-family: 'Playfair Display', "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.home-ad-card .announcement-price {
    font-family: inherit;
}

/* 2. Hero Search Section */
.home-hero-search {
	    position: relative;
	    /* Background image for hero is defined once in the responsive overrides near the end of this file. */
	    padding: 140px 0 80px !important; /* Added top padding for fixed header */
	    /* Allow dropdowns (city suggestions) to extend over following sections. */
	    overflow: visible;
	    margin-top: 0 !important;
}

.home-hero-search::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(219, 39, 119, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    margin-bottom: 32px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #2D2D2D;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.hero-stats {
    font-size: 15px;
    color: #6B7280;
    margin: 0;
}

.hero-stats strong {
    color: #DB2777;
    font-weight: 700;
}

.hero-stats span {
    margin: 0 8px;
    color: #D1D5DB;
}

/* 3. Modern Search Box */
.search-box-modern {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 20px 50px rgba(219, 39, 119, 0.08);
    padding: 24px;
    border: 1px solid rgba(219, 39, 119, 0.1);
}

.search-fields {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}

/* Desktop: subtle translucency on hero search capsule (matches mobile glass feel). */
.home-hero-search .search-box-modern {
    background: rgba(255, 255, 255, 0.94);
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
    .home-hero-search .search-box-modern {
        background: rgba(255, 255, 255, 0.86);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

/* If the hero uses the "capsule" layout (transparent form), apply glass to the capsule itself. */
.home-hero-search .search-fields {
    background: rgba(255, 255, 255, 0.92) !important;
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
    .home-hero-search .search-fields {
        background: rgba(255, 255, 255, 0.84) !important;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

@media (max-width: 768px) {
    .search-fields {
        grid-template-columns: 1fr;
    }
    /* Mobile: city first, then phrase — location is the primary filter for wedding dresses */
    .search-field-location { order: -1; }
}

.search-field {
    position: relative;
    display: flex;
    align-items: center;
}

.search-field label {
    display: block;
    position: relative;
    margin: 0;
    width: 100%;
}

.search-field .icon,
.search-field .input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    color: #9CA3AF;
    pointer-events: none;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-field .input-icon svg {
    display: block;
}

.search-field .form-control {
    width: 100%;
    height: 56px !important;
    padding: 6px 16px 6px 50px !important; /* increased padding-left for icon */
    border: 2px solid #E5E7EB !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    color: #1F2937 !important;
    background: #FAFAFA !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.search-field .form-control:focus {
    border-color: #DB2777 !important;
    background: white !important;
    box-shadow: 0 0 0 4px rgba(219, 39, 119, 0.08) !important;
}

/* 4. Search Button */
.btn-search-hero {
    height: 56px;
    padding: 0 32px;
    background: linear-gradient(135deg, #DB2777 0%, #BE185D 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(219, 39, 119, 0.3);
}

.btn-search-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(219, 39, 119, 0.4);
    background: linear-gradient(135deg, #BE185D 0%, #9F1853 100%);
    text-decoration: none;
    color: white;
}

/* 5. Quick Filters */
.search-quick-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #F3F4F6;
}

.filter-label {
    font-size: 13px;
    color: #6B7280;
    font-weight: 600;
    margin-right: 4px;
}

.filter-chip {
    display: inline-block;
    padding: 8px 16px;
    background: #FFF5F7;
    border: 1px solid #FDE4EC;
    border-radius: 999px;
    font-size: 13px;
    color: #DB2777;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background: #DB2777;
    color: white;
    border-color: #DB2777;
    transform: translateY(-1px);
    text-decoration: none;
}

/* 6. Fix Card Aspect Ratio */
.home-ad-card .announcement-thumb-link {
    display: block;
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f7f7f7;
    height: auto !important; /* Override potential fixed height */
    padding-bottom: 0 !important; /* Remove old aspect ratio hack if exists */
}

.home-ad-card .announcement-thumb {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    margin: 0;
}

/* 7. Fix Badges Color */
.home-ad-card .home-card-badge {
    background: rgba(255, 255, 255, 0.86) !important;
    color: #1f2937 !important;
    border: 1px solid rgba(31, 41, 55, 0.12) !important;
    box-shadow: 0 10px 22px rgba(31, 41, 55, 0.12) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* 8. Fix SEO Details */
.home-seo-details {
    margin-bottom: 20px;
    border: 1px solid #eadde6;
    border-radius: 14px;
    overflow: hidden;
}

.home-seo-details[open] summary {
    border-bottom: 1px solid #efe5eb;
}

@media (max-width: 768px) {
    .home-hero-search {
        /* Mobile-first tuning: less top gap + show the bride's face. */
        /* Body has padding-top for the fixed navbar; pull hero background up to cover it. */
        margin-top: -66px !important;
        background-image:
          linear-gradient(135deg, rgba(255, 245, 247, 0.9) 0%, rgba(250, 248, 245, 0.0) 50%, rgba(255, 255, 255, 0.7) 100%),
          url('../images/glowna-photo-suknia-slubna.webp') !important;
        background-repeat: no-repeat !important;
        padding: 96px 0 42px !important;
        background-position: 88% 0% !important;
    }

    .home-hero-search .hero-content {
        margin-bottom: 18px;
    }

    .home-hero-search .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.18;
        margin-bottom: 8px;
    }

    .home-hero-search .hero-stats {
        font-size: 13px !important;
        color: #6B7280 !important; /* neutral text; numbers are emphasized separately */
    }

    .home-hero-search .hero-stats strong {
        color: #DB2777 !important; /* brand highlight */
        font-weight: 700;
    }

    .home-hero-search .hero-stats span {
        margin: 0 8px;
        color: #D1D5DB !important; /* neutral dot separator */
        font-weight: 400;
    }

    .home-hero-search .search-box-modern {
        padding: 18px;
        border-radius: 18px;
    }

    .home-hero-search .search-field .form-control {
        height: 52px !important;
    }

    .home-hero-search .btn-search-hero {
        height: 52px;
    }
}

@keyframes heroCardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .home-hero-search .search-box-modern {
    animation: heroCardIn 420ms ease-out both;
    will-change: transform, opacity;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-search .search-box-modern {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   LOCATION SECTION - Modern Wedding Premium
============================================================ */

.location-section-modern {
  background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);
  padding: 56px 0 70px;
}

.location-section-modern .section-header-modern {
  text-align: center;
  margin-bottom: 40px;
}

.location-section-modern .section-title-modern {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 600;
  color: #2d2d2d;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.location-section-modern .section-title-modern strong {
  color: #db2777;
}

.location-section-modern .section-subtitle-modern {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
}

.location-section-modern .location-category {
  margin-bottom: 42px;
}

.location-section-modern .location-category:last-of-type {
  margin-bottom: 0;
}

.location-section-modern .location-category-title {
  font-size: 18px;
  font-weight: 700;
  color: #374151;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f3f4f6;
  position: relative;
}

.location-section-modern .location-category-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 58px;
  height: 2px;
  background: #db2777;
}

.location-section-modern .location-states-carousel-outer {
  margin: 0 -8px;
}

.location-section-modern .location-states-carousel-outer::after {
  display: none !important;
}

.location-section-modern .location-states-carousel .grid-column-carousel__list {
  margin-left: 0;
  margin-right: 0;
}

.location-section-modern .location-states-carousel .state-slide {
  padding-left: 8px;
  padding-right: 8px;
}

.location-section-modern .state-card-modern {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  aspect-ratio: 4 / 3;
  min-height: 160px;
  padding: 16px 16px 15px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.25s ease;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.location-section-modern .location-states-carousel-outer .prev,
.location-section-modern .location-states-carousel-outer .next {
  top: 50%;
  margin-top: -21px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
  color: #db2777;
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.location-section-modern .location-states-carousel-outer .prev {
  right: calc(100% + 4px);
}

.location-section-modern .location-states-carousel-outer .next {
  left: calc(100% + 4px);
}

.location-section-modern .location-states-carousel-outer .prev span,
.location-section-modern .location-states-carousel-outer .next span {
  font-size: 20px;
}

.location-section-modern .location-states-carousel-outer .prev:hover,
.location-section-modern .location-states-carousel-outer .next:hover {
  background: #fff;
  color: #be185d;
}

.location-section-modern .state-card-modern > * {
  position: relative;
  z-index: 2;
}

.location-section-modern .state-card-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.4s ease;
  z-index: 0;
  display: block;
}

.location-section-modern .state-card-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0.48) 56%, rgba(15, 23, 42, 0.72) 100%),
    radial-gradient(circle at 86% 16%, rgba(219, 39, 119, 0.34), transparent 48%);
  z-index: 1;
}

.location-section-modern .state-card-modern::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #db2777 0%, #f472b6 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.location-section-modern .state-card-modern:hover {
  border-color: rgba(253, 228, 236, 0.65);
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.22);
}

.location-section-modern .state-card-modern:hover::before {
  transform: scaleX(1);
}

.location-section-modern .state-card-modern:hover .state-card-bg-image {
  transform: scale(1.06);
}

.location-section-modern .state-card-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
  border-radius: 12px;
  color: #db2777;
  transition: all 0.25s ease;
}

.location-section-modern .state-card-modern:hover .state-card-icon {
  background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
  color: #fff;
}

.location-section-modern .state-card-content {
  flex: 1;
  min-width: 0;
}

.location-section-modern .state-card-name {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.32);
}

.location-section-modern .state-card-count {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  color: #7a1f4f;
  font-weight: 700;
}

.location-section-modern .state-card-arrow {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.25s ease;
}

.location-section-modern .state-card-modern:hover .state-card-arrow {
  color: #fff;
  transform: translateX(3px);
}

.location-section-modern .cities-chips-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.location-section-modern .city-chip-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.location-section-modern .city-chip-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #db2777 0%, #f472b6 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.location-section-modern .city-chip-modern:hover::before {
  opacity: 1;
}

.location-section-modern .city-chip-modern:hover {
  border-color: #db2777;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(219, 39, 119, 0.2);
}

.location-section-modern .city-chip-name,
.location-section-modern .city-chip-count {
  position: relative;
  z-index: 1;
}

.location-section-modern .city-chip-name {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.location-section-modern .city-chip-count {
  font-size: 12px;
  font-weight: 700;
  color: #7a1f4f;
  background: #ffe4f1;
  padding: 2px 10px;
  border-radius: 999px;
}

.location-section-modern .city-chip-modern:hover .city-chip-name {
  color: #fff;
}

.location-section-modern .city-chip-modern:hover .city-chip-count {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
}

.location-section-modern .location-search-box {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.location-section-modern .location-search-input-wrapper {
  position: relative;
}

.location-section-modern .location-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  z-index: 2;
  pointer-events: none;
}

.location-section-modern .location-search-input {
  width: 100%;
  height: 54px;
  padding: 0 50px 0 50px;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  font-size: 15px;
  color: #1f2937;
  background: #fff;
  transition: all 0.25s ease;
}

.location-section-modern .location-search-input:focus {
  outline: none;
  border-color: #db2777;
  box-shadow: 0 0 0 4px rgba(219, 39, 119, 0.08);
}

.location-section-modern .location-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.location-section-modern .location-search-clear[hidden] {
  display: none !important;
}

.home-hero-search .search-field-location .location-search-clear[hidden] {
  display: none !important;
}

.location-search-results[hidden] {
  display: none !important;
}

.location-section-modern .location-search-clear:hover {
  background: #e5e7eb;
  color: #db2777;
}

.location-search-results {
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.location-search-group {
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.location-search-group:last-child {
  border-bottom: none;
}

.location-search-group-title {
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.location-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: all 0.15s ease;
}

.location-search-item:hover,
.location-search-item.is-active {
  background: #fff5f7;
  border-left-color: #db2777;
}

.location-search-item-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border-radius: 8px;
  color: #6b7280;
  flex-shrink: 0;
}

.location-search-item-content {
  flex: 1;
  min-width: 0;
}

.location-search-item-name {
  display: block;
  margin: 0 0 1px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.location-search-item-meta {
  display: block;
  font-size: 12px;
  color: #9ca3af;
}

.location-search-empty {
  padding: 28px 18px;
  text-align: center;
  color: #9ca3af;
}

.location-search-empty-text {
  margin: 0;
  font-size: 14px;
}

.location-section-modern .location-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 120;
}

.home-hero-search .search-field-location {
  position: relative;
}

.home-hero-search {
  position: relative;
  /* Must sit above following sections so the city suggestions dropdown is never clipped/hidden. */
  z-index: 200 !important;
  overflow: visible !important;
}

.home-hero-search .search-box-modern {
  position: relative;
  z-index: 60;
  overflow: visible;
}

.home-hero-search .search-fields {
  overflow: visible;
}

.home-hero-search .search-field-query .form-control {
  padding-right: 54px !important;
}

.home-hero-search .search-field-query .phrase-search-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 6;
}

.home-hero-search .search-field-query .phrase-search-clear:hover {
  background: #e5e7eb;
  color: #db2777;
}

.home-hero-search .search-field-query .phrase-search-clear[hidden] {
  display: none !important;
}

.home-hero-search .search-field-location .form-control {
  padding-right: 54px !important;
}

.home-hero-search .search-field-location .location-search-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 6;
}

.home-hero-search .search-field-location .location-search-clear:hover {
  background: #e5e7eb;
  color: #db2777;
}

.home-hero-search .search-field-location .location-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 100000;
}

.location-search-results.location-search-results--portal {
  position: fixed !important;
  left: 0;
  top: 0;
  right: auto;
  bottom: auto;
  z-index: 1000000 !important;
}

.location-section-modern .location-search-group {
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.location-section-modern .location-search-group:last-child {
  border-bottom: none;
}

.location-section-modern .location-search-group-title {
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.location-section-modern .location-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: all 0.15s ease;
}

.location-section-modern .location-search-item:hover {
  background: #fff5f7;
  border-left-color: #db2777;
}

.location-section-modern .location-search-item.is-active {
  background: #fff5f7;
  border-left-color: #db2777;
}

.location-section-modern .location-search-item-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border-radius: 8px;
  color: #6b7280;
  flex-shrink: 0;
}

.location-section-modern .location-search-item-content {
  flex: 1;
  min-width: 0;
}

.location-section-modern .location-search-item-name {
  display: block;
  margin: 0 0 1px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.location-section-modern .location-search-item-meta {
  display: block;
  font-size: 12px;
  color: #9ca3af;
}

.location-section-modern .location-search-item-count {
  font-size: 12px;
  font-weight: 700;
  color: #db2777;
  background: #fff5f7;
  border-radius: 999px;
  padding: 3px 9px;
  flex-shrink: 0;
}

.location-section-modern .location-search-empty {
  padding: 28px 18px;
  text-align: center;
  color: #9ca3af;
}

.location-section-modern .location-search-empty-text {
  margin: 0;
  font-size: 14px;
}

.location-section-modern .home-city-actions {
  justify-content: center;
}

@media (max-width: 991px) {
  .location-section-modern {
    padding: 40px 0 50px;
  }

  .location-section-modern .section-header-modern {
    margin-bottom: 30px;
  }

  .location-section-modern .location-category {
    margin-bottom: 30px;
  }

  .location-section-modern .state-card-modern {
    min-height: 154px;
  }

  .location-section-modern .state-card-name {
    font-size: 16px;
  }

  .location-section-modern .city-chip-modern {
    padding: 8px 12px;
  }

  .location-section-modern .location-states-carousel-outer {
    width: 100%;
    margin: 0;
  }

  .location-section-modern .location-states-carousel-outer .prev,
  .location-section-modern .location-states-carousel-outer .next {
    width: 36px;
    height: 36px;
    margin-top: -18px;
  }

  .location-section-modern .location-states-carousel-outer .prev {
    right: calc(100% - 14px);
  }

  .location-section-modern .location-states-carousel-outer .next {
    left: calc(100% - 14px);
  }
}

/* --- Mobile: Horizontal swipe strip for voivodship cards (2.5 visible + peek) --- */
@media (max-width: 767px) {
  /* Disable JS carousel on mobile — use native horizontal scroll */
  .location-section-modern .location-states-carousel {
    overflow: visible !important;
  }

  .location-section-modern .location-states-carousel .grid-column-carousel__list {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    transform: none !important;
    transition: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 12px;
    padding: 4px 0;
    margin: 0;
    /* Let native scroll work — block touchSwipe interference */
    touch-action: pan-x;
  }

  .location-section-modern .location-states-carousel .grid-column-carousel__list::-webkit-scrollbar {
    display: none;
  }

  /* Each card: ~40% width = ~2.4 visible + peek of third */
  .location-section-modern .state-slide {
    flex: 0 0 40% !important;
    width: 40% !important;
    max-width: 40% !important;
    padding: 0 !important;
    scroll-snap-align: start;
  }

  /* First/last card spacing from screen edge */
  .location-section-modern .state-slide:first-child {
    margin-left: 16px !important;
  }

  .location-section-modern .state-slide:last-child {
    margin-right: 16px !important;
  }

  /* Wedding premium cards — elegant gradient, no photos on mobile */
  .location-section-modern .state-card-modern {
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
    border-radius: 16px;
    padding: 12px 14px;
    background: linear-gradient(145deg, #fffbfd 0%, #fdf2f8 50%, #fce7f3 100%) !important;
    border: 1px solid rgba(219, 39, 119, 0.10) !important;
    box-shadow: 0 2px 12px rgba(175, 64, 130, 0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
  }

  /* Subtle decorative ring (wedding ornament) */
  .location-section-modern .state-card-modern::after {
    content: '';
    position: absolute;
    right: -18px;
    top: -18px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(219, 39, 119, 0.08);
    pointer-events: none;
  }

  .location-section-modern .state-card-modern:hover {
    border-color: rgba(219, 39, 119, 0.25) !important;
    box-shadow: 0 6px 20px rgba(219, 39, 119, 0.12);
    transform: translateY(-2px);
  }

  /* Hide photo and overlay */
  .location-section-modern .state-card-bg-image,
  .location-section-modern .state-card-overlay,
  .location-section-modern .state-card-modern::before {
    display: none !important;
  }

  /* Icon — elegant rose circle */
  .location-section-modern .state-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #db2777 0%, #f472b6 100%) !important;
    box-shadow: 0 3px 8px rgba(219, 39, 119, 0.25) !important;
    color: #fff !important;
    order: -1;
    flex-shrink: 0;
  }

  .location-section-modern .state-card-icon svg {
    width: 16px;
    height: 16px;
  }

  /* Name — elegant serif, single line */
  .location-section-modern .state-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    font-weight: 700;
    color: #2d2d2d !important;
    text-shadow: none !important;
    margin-bottom: 0;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  /* Badge — soft pill */
  .location-section-modern .state-card-count {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    background: rgba(219, 39, 119, 0.10) !important;
    color: #be185d !important;
    border-radius: 999px;
    letter-spacing: 0.02em;
  }

  /* Content stacking */
  .location-section-modern .state-card-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .location-section-modern .state-card-arrow {
    display: none;
  }

  /* Hide prev/next buttons on mobile */
  .location-section-modern .location-states-carousel-outer .prev,
  .location-section-modern .location-states-carousel-outer .next {
    display: none !important;
  }

  .location-section-modern .location-states-carousel-outer {
    overflow: visible;
  }

  /* --- Cities: horizontal scroll strip (matching voivodships style) --- */
  .location-section-modern .cities-chips-modern {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    gap: 8px;
    padding: 0 16px 4px;
    margin: 0 -16px;
  }

  .location-section-modern .cities-chips-modern::-webkit-scrollbar {
    display: none;
  }

  .location-section-modern .city-chip-modern {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 8px 12px;
    border-color: #f0e6ec;
  }

  .location-section-modern .city-chip-name {
    font-size: 13px;
    white-space: nowrap;
  }

  .location-section-modern .city-chip-count {
    font-size: 11px;
    padding: 1px 7px;
  }
}

/* =========================================
   Wedding Premium 2026 - Hero Search Redesign (High Contrast)
   ========================================= */

/* 1. Typography - The Emotion */
/* Playfair Display is loaded in templates/website/index.smarty (C1). */

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2a2a42; /* DARK NAVY - Visible on light bg */
    letter-spacing: -1px;
    text-shadow: none; /* Clean look */
}

/* The stats text - was invisible white, now DARK GREY */
.hero-stats {
    font-size: 1.2rem;
    color: #4b5563 !important; /* DARK GREY */
    font-weight: 500;
    opacity: 1;
    text-shadow: none;
    margin-bottom: 40px;
}
.hero-stats span {
    color: #af4082 !important; /* Keep numbers Pink */
    font-weight: 700;
}

/* 2. Background Overlay - Brand Radial Vignette */
.container-search-belt-small {
    position: relative;
    /* Ensure no residual borders from legacy styles */
    border: none !important;
    box-shadow: none !important;
}
.container-search-belt-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* STRONGER Vignette: 
       Center is transparent (0.0) so the light photo shows. 
       Edges are white/light to blend? NO.
       Let's use a subtle dark vignette to frame it, but keep center 100% clear. */
    background: radial-gradient(circle at center, transparent 30%, rgba(255,255,255,0.0) 100%);
    z-index: 1;
    pointer-events: none;
    display: none; /* Remove dark overlay since we switched to DARK TEXT on LIGHT BG styling */
}

.home-hero-search {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}

.hero-content {
    text-align: center;
}

/* 3. The "Floating Capsule" Search Bar */
/* IMPORTANT: Force remove any inherited borders on the form container */
.search-box-modern.search-belt {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    max-width: 980px;
    margin: 0 auto;
    display: block;
}

/* The actual white capsule containing inputs */
.search-fields {
    background: #ffffff;
    border-radius: 100px;
    padding: 8px;
    /* Clean, soft shadow */
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    display: flex;
    width: 100%;
    align-items: center;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Glass effect on hero capsule (desktop + mobile fallback) */
.home-hero-search .search-fields {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
    .home-hero-search .search-fields {
        background: rgba(255, 255, 255, 0.82) !important;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

.search-field {
    flex: 1;
    position: relative;
    border-right: 1px solid #f0f0f0;
    padding: 0 20px;
}
.search-field:last-child { 
    border-right: none; 
    padding-right: 0;
}

/* Inputs styling - NUCLEAR OVERRIDE */
/* Target specifically to beat legacy styles */
body .search-box-modern input.form-control,
body .search-box-modern input[type="text"],
body .search-box-modern input.input-phrase,
body .search-box-modern input.input-city {
    border: none !important;
    background-color: transparent !important;
    background-image: none !important; /* KILL LEGACY ICONS */
    box-shadow: none !important;
    outline: none !important;
    font-size: 16px;
    color: #2a2a42 !important;
    height: 50px;
    padding-left: 50px !important; /* Space for MY icon */
    padding-right: 15px !important;
    font-weight: 500;
    position: relative;
    z-index: 2;
    margin: 0 !important;
    width: 100% !important;
}

/* Focus State */
body .search-box-modern input.form-control:focus,
body .search-box-modern input[type="text"]:focus {
    border: none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Hide placeholder on focus */
body .search-box-modern input:focus::placeholder {
    color: transparent !important;
    opacity: 0; 
}

body .search-box-modern input::placeholder {
    color: #888;
    opacity: 1;
}

/* My Custom Icons - Force Visibility */
.input-icon {
    pointer-events: none; 
    z-index: 50 !important;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #af4082;
    opacity: 1 !important;
    width: 20px;
    height: 20px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.input-icon svg {
    stroke: currentColor;
    width: 20px;
    height: 20px;
    display: block !important;
}

/* 6. Autocomplete Dropdown - The "Premium Card" Look */
/* Target both jQuery UI and Awesomplete just in case */

/* jQuery UI */
body .ui-autocomplete {
    background: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    padding: 10px 0 !important;
    margin-top: 10px !important;
    font-family: inherit !important;
    z-index: 9999 !important;
    max-width: 400px;
    overflow: hidden;
}

body .ui-menu-item {
    font-size: 14px;
    color: #4b5563;
    padding: 12px 20px !important;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    cursor: pointer;
    margin: 0 !important;
    list-style: none !important;
    background: #fff;
}

body .ui-menu-item:last-child {
    border-bottom: none;
}

/* Hover/Active State */
body .ui-menu-item:hover,
body .ui-state-focus,
body .ui-state-active,
body .ui-menu-item-wrapper:hover {
    background: #fdf2f8 !important; /* Light Pink */
    color: #af4082 !important;
    border: none !important;
    border-bottom: 1px solid #f3f4f6 !important; /* Keep divider */
}

/* Awesomplete Override (if used) */
.awesomplete > ul {
    background: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    padding: 10px 0 !important;
    margin-top: 10px !important;
    z-index: 9999 !important;
}

.awesomplete > ul > li {
    font-size: 14px;
    color: #4b5563;
    padding: 12px 20px !important;
    border-bottom: 1px solid #f3f4f6;
    background: #fff;
}

.awesomplete > ul > li:hover,
.awesomplete > ul > li[aria-selected="true"] {
    background: #fdf2f8 !important;
    color: #af4082 !important;
}

/* 4. Search Button */
.btn-search-hero {
    background: linear-gradient(135deg, #af4082 0%, #7c285b 100%);
    border: none;
    border-radius: 50px;
    padding: 0 45px;
    height: 60px;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(175, 64, 130, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
    flex-shrink: 0;
}

.btn-search-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(175, 64, 130, 0.6);
}

/* 5. Quick Filters - Clean & Readable */
.search-quick-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
    width: 100%;
}

.filter-label {
    color: #6b7280; /* Dark Grey - matches minimalist clean look */
    font-weight: 700;
    margin-right: 8px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-shadow: none; /* Removed "dirty" shadow */
}

.filter-chip {
    background: rgba(255, 255, 255, 0.95); /* Solid white for readability */
    color: #2a2a42 !important;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.filter-chip:hover {
    background: #af4082;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    border-color: #af4082;
}

/* Responsive Implementation */
@media (max-width: 991px) {
    .search-fields {
        flex-direction: column;
        background: rgba(255,255,255,0.98);
        border-radius: 24px;
        padding: 20px;
    }

    .search-field {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 10px 0;
        margin-bottom: 10px;
    }
    
    .search-field:last-child {
        border-bottom: none;
    }
    
    .input-icon {
        left: 0; 
    }
    .search-box-modern .form-control {
        padding-left: 35px !important;
    }

    .btn-search-hero {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 10px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* Quick filter chips container (wrapper) */
.search-quick-filters .filter-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Mobile (hero): label above + chips in one row */
@media (max-width: 768px) {
  .home-hero-search .search-quick-filters {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    /* Make the chips scroller span the full viewport width (not the hero card width). */
    box-sizing: border-box;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Narrower hero card on mobile (lets the background breathe). */
  .home-hero-search .search-box-modern {
    width: clamp(280px, 80vw, 420px);
    margin-left: auto;
    margin-right: auto;
  }

  /* Frosted-glass depth behind the hero card (mobile-only; desktop stays unchanged). */
  .home-hero-search .search-fields {
    background: rgba(255, 255, 255, 0.92);
  }

  @supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
    .home-hero-search .search-fields {
      background: rgba(255, 255, 255, 0.84);
      -webkit-backdrop-filter: blur(10px);
      backdrop-filter: blur(10px);
    }
  }

  .home-hero-search .search-quick-filters .filter-label {
    width: 100%;
    margin: 0 !important;
    text-align: center;
  }

  .home-hero-search .search-quick-filters .filter-chips {
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 10px;
    flex-wrap: nowrap !important;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 6px 6px;
  }

  .home-hero-search .search-quick-filters .filter-chips::-webkit-scrollbar {
    display: none;
  }

	  .home-hero-search .search-quick-filters .filter-chip {
	    flex: 0 0 auto;
	    white-space: nowrap;
	    display: inline-flex !important;
	    width: auto !important;
	  }
	}

/* Desktop hero: final, high-priority overrides for background + glass search capsule. */
@media (min-width: 769px) {
  .home-hero-search {
    /* Single knob for desktop hero background framing. */
    /* Keep this simple and predictable: anchor to the bottom on desktop. */
    background-image:
      linear-gradient(135deg, rgba(255, 245, 247, 0.9) 0%, rgba(250, 248, 245, 0.0) 50%, rgba(255, 255, 255, 0.7) 100%),
      url('../images/glowna-photo-suknia-slubna-desktop.webp') !important;
    background-repeat: no-repeat !important;
    /* Lower framing: show more of the lower part of the photo. */
    background-position: 68% 65% !important;
    background-size: cover !important;
  }

  .home-hero-search .search-fields {
    /* Match the mobile "glass" look on desktop too. */
    background: rgba(255, 255, 255, 0.78) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
  }

  @supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
    .home-hero-search .search-fields {
      background: rgba(255, 255, 255, 0.62) !important;
      -webkit-backdrop-filter: blur(6px) saturate(120%);
      backdrop-filter: blur(6px) saturate(120%);
    }
  }
}

/* "Wszystkie" chip — highlighted CTA style (mobile only) */
.filter-chip.filter-chip-all {
  background: linear-gradient(135deg, #db2777 0%, #f472b6 100%);
  color: #fff !important;
  border-color: #db2777;
  font-weight: 700;
}

.filter-chip.filter-chip-all:hover {
  background: linear-gradient(135deg, #be185d 0%, #db2777 100%);
  color: #fff !important;
}


/* ============================================================
   ENTITY BLOCK — "Czym jest SprzedajSuknie.pl"
   Wedding Premium 2026
   ============================================================ */

.home-entity-section {
  background: #fff;
  padding: 60px 0 50px;
}

.entity-block {
  max-width: 960px;
  margin: 0 auto;
}

.entity-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 600;
  color: #2d2d2d;
  text-align: center;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.entity-title strong {
  color: #db2777;
}

.entity-definition {
  text-align: center;
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
  max-width: 720px;
  margin: 0 auto 40px;
}

.entity-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.entity-card {
  background: #fdfbfc;
  border: 1px solid #f0e6ec;
  border-radius: 18px;
  padding: 28px 24px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.entity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #db2777 0%, #f472b6 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.entity-card:hover {
  border-color: #e2c8d8;
  box-shadow: 0 12px 32px rgba(219, 39, 119, 0.08);
  transform: translateY(-3px);
}

.entity-card:hover::before {
  transform: scaleX(1);
}

.entity-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  border-radius: 14px;
  color: #db2777;
  margin-bottom: 16px;
}

.entity-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #2d2d2d;
  margin: 0 0 12px;
}

.entity-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.entity-card-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: #4b5563;
}

.entity-card-list li:last-child {
  margin-bottom: 0;
}

.entity-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #db2777, #f472b6);
}

@media (max-width: 767px) {
  .home-entity-section {
    padding: 40px 0 32px;
  }

  .entity-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .entity-card {
    padding: 22px 20px;
  }

  .entity-definition {
    font-size: 15px;
    margin-bottom: 28px;
  }
}


/* ============================================================
   SEO CONTENT SECTION — Article with accordion details
   ============================================================ */

.home-seo-content-section {
  background: #faf8f6;
  padding: 50px 0 40px;
}

.seo-article {
  max-width: 840px;
  margin: 0 auto;
}

.seo-article-block {
  margin-bottom: 32px;
}

.seo-article-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 600;
  color: #2d2d2d;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.seo-article-h2 strong {
  color: #db2777;
}

.seo-article-h3 {
  font-size: 16px;
  font-weight: 700;
  color: #374151;
  margin: 20px 0 10px;
}

.seo-article-body {
  font-size: 15px;
  line-height: 1.72;
  color: #4b5563;
}

.seo-article-body p {
  margin: 0 0 14px;
}

.seo-article-body p:last-child {
  margin-bottom: 0;
}

.seo-article-list {
  padding-left: 0;
  list-style: none;
  margin: 12px 0 16px;
}

.seo-article-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: #4b5563;
}

.seo-article-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #db2777;
  opacity: 0.6;
}

.seo-article-steps {
  padding-left: 0;
  list-style: none;
  margin: 12px 0 16px;
  counter-reset: step;
}

.seo-article-steps li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: #4b5563;
  counter-increment: step;
}

.seo-article-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #db2777 0%, #f472b6 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- SEO Details Accordion --- */

.seo-details-block {
  background: #fff;
  border: 1px solid #f0e6ec;
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.seo-details-block:hover {
  border-color: #e2c8d8;
}

.seo-details-block[open] {
  box-shadow: 0 4px 16px rgba(219, 39, 119, 0.06);
  border-color: #e2c8d8;
}

.seo-details-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 18px 22px;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
}

.seo-details-summary::-webkit-details-marker {
  display: none;
}

.seo-details-summary .seo-article-h2 {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.seo-details-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fdf2f8;
  transition: all 0.25s ease;
}

.seo-details-chevron::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid #db2777;
  border-bottom: 2px solid #db2777;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.25s ease;
}

.seo-details-block[open] .seo-details-chevron {
  background: #db2777;
}

.seo-details-block[open] .seo-details-chevron::after {
  border-color: #fff;
  transform: rotate(-135deg);
  margin-top: 3px;
}

.seo-details-block[open] > .seo-details-summary {
  border-bottom: 1px solid #f5ecf1;
}

.seo-details-block .seo-article-body {
  padding: 18px 22px 20px;
}

@media (max-width: 767px) {
  .home-seo-content-section {
    padding: 36px 0 28px;
  }

  .seo-details-summary {
    padding: 14px 16px;
  }

  .seo-details-block .seo-article-body {
    padding: 14px 16px 16px;
  }
}


/* ============================================================
   FAQ SECTION — Modern accordion (Wedding Premium 2026)
   ============================================================ */

.home-faq-section {
  background: #fff;
  padding: 60px 0 70px;
}

.faq-header {
  text-align: center;
  margin-bottom: 40px;
}

.faq-section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 600;
  color: #2d2d2d;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.faq-section-subtitle {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
}

.faq-grid {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fdfbfc;
  border: 1px solid #f0e6ec;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: #e2c8d8;
}

.faq-item[open] {
  background: #fff;
  border-color: #e2c8d8;
  box-shadow: 0 6px 20px rgba(219, 39, 119, 0.06);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
  color: #2d2d2d;
  line-height: 1.4;
  user-select: none;
  -webkit-user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fdf2f8;
  transition: all 0.25s ease;
}

.faq-chevron::after {
  content: '';
  width: 9px;
  height: 9px;
  border-right: 2px solid #db2777;
  border-bottom: 2px solid #db2777;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-chevron {
  background: linear-gradient(135deg, #db2777 0%, #f472b6 100%);
  box-shadow: 0 4px 12px rgba(219, 39, 119, 0.25);
}

.faq-item[open] .faq-chevron::after {
  border-color: #fff;
  transform: rotate(-135deg);
  margin-top: 3px;
}

.faq-item[open] > .faq-question {
  border-bottom: 1px solid #f5ecf1;
}

.faq-answer {
  padding: 16px 22px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
}

.faq-answer p {
  margin: 0;
}

@media (max-width: 767px) {
  .home-faq-section {
    padding: 40px 0 50px;
  }

  .faq-header {
    margin-bottom: 28px;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 12px 16px 16px;
    font-size: 14px;
  }

  .faq-chevron {
    width: 28px;
    height: 28px;
  }

  .faq-section-subtitle {
    font-size: 14px;
  }
}
