/* ═══════════════════════════════════════════════════════
   AdSpaces – Premium Advertising Locations Plugin
   Light luxury theme with gold & charcoal accents
   ═══════════════════════════════════════════════════════ */


/* ─── CSS Custom Properties ─── */
:root {
  --ads-white:        #ffffff;
  --ads-off-white:    #faf9f7;
  --ads-cream:        #f5f2ed;
  --ads-light:        #eeebe5;
  --ads-border:       #e2ddd6;
  --ads-border-dark:  #c8c2b8;
  --ads-charcoal:     #1c1c1e;
  --ads-dark:         #2c2c2e;
  --ads-mid:          #636366;
  --ads-muted:        #aeaeb2;
  --ads-gold:         #b8860b;
  --ads-gold-bright:  #d4af37;
  --ads-gold-light:   #f5e6a3;
  --ads-gold-bg:      #fdf8ed;
  --ads-gold-dim:     rgba(184,134,11,0.10);
  --ads-green:        #2d6a4f;
  --ads-green-bg:     #d8f3dc;
  --ads-red:          #c0392b;
  --ads-red-bg:       #fde8e6;
  --ads-amber:        #92400e;
  --ads-amber-bg:     #fef3c7;
  --ads-radius:       10px;
  --ads-radius-lg:    16px;
  --ads-shadow-sm:    0 1px 4px rgba(0,0,0,0.06), 0 2px 12px rgba(0,0,0,0.04);
  --ads-shadow:       0 4px 20px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --ads-shadow-lg:    0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --ads-shadow-card:  0 2px 8px rgba(0,0,0,0.06);
  --ads-transition:   all 0.28s cubic-bezier(0.4,0,0.2,1);
  --ads-font-display: 'Cormorant Garamond', Georgia, serif;
  --ads-font-body:    'DM Sans', system-ui, sans-serif;
}

/* ─── Base Wrapper ─── */
.adspaces-wrapper {
  color: var(--ads-dark);
  background: var(--ads-off-white);
  min-height: 400px;
  position: relative;
  /* overflow must NOT be hidden — clips native selects and custom dropdowns */
  overflow: visible;
}

.adspaces-wrapper * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Hero Banner ─── */
.adspaces-hero {
  position: relative;
  background: var(--ads-charcoal);
  padding: 64px 56px 60px;
  overflow: hidden;
}

/* Diagonal gold accent strip */
.adspaces-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 42%;
  background: linear-gradient(135deg, transparent 0%, rgba(212,175,55,0.07) 100%);
  pointer-events: none;
}

/* Bottom gold rule */
.adspaces-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ads-gold), var(--ads-gold-bright), transparent);
}

.adspaces-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.adspaces-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ads-gold-bright);
  margin-bottom: 18px;
}

.adspaces-hero__eyebrow::before,
.adspaces-hero__eyebrow::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--ads-gold-bright);
  opacity: 0.6;
}

.adspaces-hero__title {
  font-family: var(--ads-font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 600;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 16px;

}

.adspaces-hero__title em {
  font-style: italic;
  color: var(--ads-gold-bright);
}

.adspaces-hero__sub {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  
  text-transform: uppercase;
}

/* Decorative dot grid */
.adspaces-hero__dots {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: 180px;
  background-image: radial-gradient(circle, rgba(212,175,55,0.3) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: 0.45;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   FANCY FILTER BAR
   ═══════════════════════════════════════════════════════ */
.adspaces-filters {
  background: var(--ads-white);
  border-bottom: 1px solid var(--ads-border);
  padding: 0 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Top gold accent line */
.adspaces-filters::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--ads-gold), var(--ads-gold-bright) 60%, transparent);
  margin: 0 -56px;
}

.adspaces-filters__inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: nowrap;
  /* Must NOT be overflow:auto/hidden — that creates a clipping context
     that breaks the dropdown menu positioning */
  overflow-x: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Each filter item is a vertical pill separated by a line */
.adspaces-filter-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 20px;
  border-right: 1px solid var(--ads-border);
  position: relative;   /* anchor for the dropdown menu */
  min-width: 0;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  /* Must not clip the dropdown that opens below */
  overflow: visible;
}

.adspaces-filter-item:first-child { padding-left: 0; }
.adspaces-filter-item:last-child  { border-right: none; }

.adspaces-filter-item:hover {
  background: var(--ads-cream);
}

.adspaces-filter-item.is-active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--ads-gold);
}

.adspaces-filter-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ads-muted);
  margin-bottom: 4px;
  pointer-events: none;
}

/* Search item */
.adspaces-filter-item--search {
  flex: 1;
  min-width: 180px;
  max-width: 280px;
}

.adspaces-filter-item--search .adspaces-search-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.adspaces-filter-item--search svg {
  width: 15px;
  height: 15px;
  color: var(--ads-gold);
  flex-shrink: 0;
}

.adspaces-filters input[type="text"] {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ads-charcoal);
  width: 100%;
  padding: 0;
}

.adspaces-filters input[type="text"]::placeholder {
  color: var(--ads-muted);
  font-weight: 400;
}

/* Select items */
.adspaces-filter-item--select {
  min-width: 160px;
}

/* ── Custom dropdown (replaces native <select> for cross-theme compatibility) ── */
.adspn-dropdown {
  position: static; /* menu positions relative to .adspaces-filter-item instead */
  width: 100%;
}

.adspn-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ads-charcoal);
  cursor: pointer;
  text-align: left;
  outline: none;
  white-space: nowrap;
}

.adspn-dropdown__trigger svg:first-child {
  width: 13px; height: 13px;
  color: var(--ads-gold);
  flex-shrink: 0;
}

.adspn-dropdown__label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adspn-dropdown__chevron {
  width: 11px; height: 11px;
  color: var(--ads-muted);
  flex-shrink: 0;
  transition: transform .2s;
}

.adspn-dropdown.is-open .adspn-dropdown__chevron {
  transform: rotate(180deg);
}

/* The dropdown panel — absolute under its trigger, high z-index above sticky bar */
.adspn-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 99999;
  background: #ffffff;
  border: 1px solid var(--ads-border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.08);
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 200px;
  max-height: 280px;
  overflow-y: auto;
  display: none;
  /* Ensure it always appears above sticky filter bar */
  isolation: isolate;
}

.adspn-dropdown.is-open .adspn-dropdown__menu {
  display: block;
}

.adspn-dropdown__option {
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--ads-dark);
  cursor: pointer;
  transition: background .12s, color .12s;
  white-space: nowrap;
}

.adspn-dropdown__option:hover {
  background: var(--ads-gold-bg);
  color: var(--ads-gold);
}

.adspn-dropdown__option.is-selected {
  background: var(--ads-gold-dim);
  color: var(--ads-gold);
  font-weight: 600;
}

/* Reset button item */
.adspaces-filter-item--reset {
  padding: 18px 24px;
  flex-shrink: 0;
  border-left: 1px solid var(--ads-border);
  border-right: none;
  margin-left: auto;
}

.adspaces-btn-reset {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ads-muted);
  transition: color 0.2s;
  padding: 0;
}

.adspaces-btn-reset svg {
  width: 16px;
  height: 16px;
}

.adspaces-btn-reset span {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.adspaces-btn-reset:hover {
  color: var(--ads-gold);
}

/* Results bar — below filter row */
.adspaces-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--ads-border);
}

.adspaces-results-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--ads-muted);
}

.adspaces-results-count #adspaces-count {
  color: var(--ads-gold);
  font-weight: 700;
}

/* ─── Grid ─── */
.adspaces-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 56px;
  background: var(--ads-off-white);
  position: relative;
}

@media (max-width: 1024px) {
  .adspaces-grid { grid-template-columns: repeat(2, 1fr); padding: 32px 32px; }
}

@media (max-width: 600px) {
  .adspaces-grid { grid-template-columns: 1fr; padding: 24px 20px; gap: 16px; }
}

/* ─── Card ─── */
.adspaces-card {
  background: var(--ads-white);
  border-radius: var(--ads-radius-lg);
  display: flex;
  flex-direction: column;
  transition: var(--ads-transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ads-border);
  box-shadow: var(--ads-shadow-card);
}

.adspaces-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ads-shadow-lg);
  border-color: var(--ads-gold-bright);
}

/* Image area */
.adspaces-card__image-wrap {
  position: relative;
  width: 100%;
  padding-top: 58%;
  overflow: hidden;
  background: var(--ads-cream);
  flex-shrink: 0;
}

.adspaces-card__image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}

.adspaces-card:hover .adspaces-card__image {
  transform: scale(1.05);
}

.adspaces-card__image-placeholder {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ads-muted);
}

.adspaces-card__image-placeholder svg {
  width: 64px;
  height: 48px;
  opacity: 0.3;
}

.adspaces-card__image-placeholder span {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Bottom gradient on image */
.adspaces-card__image-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
  pointer-events: none;
}

/* Availability badge */
.adspaces-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
}

.adspaces-badge--available   { background: var(--ads-green-bg);  color: var(--ads-green); }
.adspaces-badge--booked      { background: var(--ads-red-bg);    color: var(--ads-red);   }
.adspaces-badge--coming-soon { background: var(--ads-amber-bg);  color: var(--ads-amber); }

/* Environment tag */
.adspaces-env-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 3;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 4px 10px;
  border-radius: 5px;
}

/* Card Body */
.adspaces-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

/* Category pill */
.adspaces-cat-pill {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ads-gold);
  background: var(--ads-gold-bg);
  border: 1px solid rgba(184,134,11,0.2);
  padding: 4px 10px;
  border-radius: 4px;
  align-self: flex-start;
}

/* Title */
.adspaces-card__title {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ads-charcoal);
  transition: color 0.2s;
}

.adspaces-card:hover .adspaces-card__title {
  color: var(--ads-gold);
}

/* Address */
.adspaces-card__address {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  font-weight: 400;
  color: var(--ads-mid);
  line-height: 1.4;
}

.adspaces-card__address svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--ads-gold);
}

/* Divider */
.adspaces-card__divider {
  height: 1px;
  background: var(--ads-border);
  margin: 2px 0;
}

/* Specs grid */
.adspaces-card__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  padding: 14px 16px;
  background: var(--ads-cream);
  border-radius: var(--ads-radius);
  border: 1px solid var(--ads-border);
}

.adspaces-spec {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.adspaces-spec__label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ads-muted);
}

.adspaces-spec__value {
  font-size: 12px;
  font-weight: 600;
  color: var(--ads-dark);
}

/* Pricing */
.adspaces-card__pricing {
  display: flex;
  gap: 0;
  border-radius: var(--ads-radius);
  border: 1px solid rgba(184,134,11,0.2);
  overflow: hidden;
  background: var(--ads-gold-bg);
}

.adspaces-price {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  padding: 14px 16px;
}

.adspaces-price--secondary {
  border-left: 1px solid rgba(184,134,11,0.18);
}

.adspaces-price__label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(184,134,11,0.7);
}

.adspaces-price__amount {
  font-size: 19px;
  font-weight: 700;
  color: var(--ads-gold);
  line-height: 1;
}

/* Card Footer */
.adspaces-card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.adspaces-btn-enquire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ads-charcoal);
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none !important;
  padding: 12px 22px;
  border-radius: 8px;
  transition: var(--ads-transition);
  flex: 1;
}

.adspaces-btn-enquire svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s;
}

.adspaces-btn-enquire:hover {
  background: var(--ads-gold);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184,134,11,0.3);
}

.adspaces-btn-enquire:hover svg {
  transform: translateX(3px);
}

.adspaces-btn-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--ads-cream);
  border: 1px solid var(--ads-border);
  border-radius: 8px;
  color: var(--ads-mid);
  text-decoration: none !important;
  transition: var(--ads-transition);
  flex-shrink: 0;
}

.adspaces-btn-map svg {
  width: 15px;
  height: 15px;
}

.adspaces-btn-map:hover {
  border-color: var(--ads-gold);
  color: var(--ads-gold);
  background: var(--ads-gold-bg);
}

/* ─── No Results ─── */
.adspaces-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 40px;
  color: var(--ads-muted);
}

.adspaces-no-results__icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.adspaces-no-results h3 {
  font-size: 28px;
  color: var(--ads-dark);
  margin-bottom: 8px;
}

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

/* ─── Loading Overlay ─── */
.adspaces-loading {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(250,249,247,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  backdrop-filter: blur(2px);
}

.adspaces-loading.is-active {
  opacity: 1;
  pointer-events: all;
}

.adspaces-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(184,134,11,0.2);
  border-top-color: var(--ads-gold);
  border-radius: 50%;
  animation: adspaces-spin 0.7s linear infinite;
}

@keyframes adspaces-spin {
  to { transform: rotate(360deg); }
}

/* ─── Card entrance animation ─── */
.adspaces-card {
  animation: adspaces-fadeUp 0.4s ease both;
}

@keyframes adspaces-fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.adspaces-card:nth-child(2) { animation-delay: 0.05s; }
.adspaces-card:nth-child(3) { animation-delay: 0.10s; }
.adspaces-card:nth-child(4) { animation-delay: 0.15s; }
.adspaces-card:nth-child(5) { animation-delay: 0.20s; }
.adspaces-card:nth-child(6) { animation-delay: 0.25s; }

/* ─── Pagination ─── */
.adspaces-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 56px 48px;
  background: var(--ads-off-white);
  border-top: 1px solid var(--ads-border);
  flex-wrap: wrap;
}

.adspaces-pagination__info {
  width: 100%;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ads-muted);
  margin-bottom: 14px;
}

.adspaces-pagination__info strong { color: var(--ads-gold); }

.adspaces-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  background: var(--ads-white);
  border: 1px solid var(--ads-border);
  border-radius: 8px;
  color: var(--ads-dark);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--ads-transition);
  text-decoration: none !important;
  line-height: 1;
  box-shadow: var(--ads-shadow-sm);
}

.adspaces-page-btn:hover:not(:disabled):not(.is-active) {
  border-color: var(--ads-gold);
  color: var(--ads-gold);
  background: var(--ads-gold-bg);
}

.adspaces-page-btn.is-active {
  background: var(--ads-gold);
  border-color: var(--ads-gold);
  color: #fff;
  font-weight: 700;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(184,134,11,0.3);
}

.adspaces-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.adspaces-page-btn--prev svg,
.adspaces-page-btn--next svg {
  width: 15px;
  height: 15px;
}

.adspaces-page-ellipsis {
  color: var(--ads-muted);
  font-size: 14px;
  padding: 0 4px;
  user-select: none;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .adspaces-hero       { padding: 48px 32px 44px; }
  .adspaces-hero__dots { display: none; }
  .adspaces-filters    { padding: 0 24px; }
  .adspaces-filters::before { margin: 0 -24px; }
  .adspaces-pagination { padding: 24px 24px 36px; }
}

@media (max-width: 640px) {
  .adspaces-hero { padding: 40px 20px 36px; }
  .adspaces-filters { padding: 0 16px; }
  .adspaces-filters::before { margin: 0 -16px; }
  .adspaces-filter-item { padding: 14px 12px; }
  .adspaces-filter-item--reset { padding: 14px 16px; }
  .adspaces-filters input[type="text"],
  .adspaces-filters select { font-size: 13px; }
  .adspaces-results-count { font-size: 10px; }
  .adspaces-card__body { padding: 18px 18px 20px; }
  .adspaces-card__specs { grid-template-columns: 1fr; }
  .adspaces-page-btn { min-width: 36px; height: 36px; font-size: 12px; }
  .adspaces-pagination { padding: 20px 16px 32px; gap: 4px; }
}


/* ===== VERSION 2 PRO ===== */
body{background:#f8f9fb;}
.adspaces-wrapper{max-width:1600px;margin:auto;}
.adspaces-pro-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin:30px 40px;}
.adspaces-pro-stat{background:#fff;padding:28px;border-radius:22px;text-align:center;box-shadow:0 15px 35px rgba(0,0,0,.06)}
.adspaces-pro-stat strong{display:block;font-size:42px;color:#c79a2b}
.adspaces-pro-stat span{color:#6b7280}

.adspaces-hero{background:linear-gradient(135deg,#fff,#f7f3ea)!important;border-radius:28px;box-shadow:0 25px 60px rgba(0,0,0,.08)}
.adspaces-hero__title,.adspaces-hero__eyebrow{color:#111!important}

.adspaces-filters{background:rgba(255,255,255,.95)!important;border-radius:24px!important;backdrop-filter:blur(20px);box-shadow:0 20px 50px rgba(0,0,0,.08)!important}

/* ── 3-column grid: use 1fr only — no minmax minimum that breaks column count ── */
.adspaces-grid{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:28px!important}

.adspaces-card{background:#fff!important;border-radius:26px!important;overflow:hidden;box-shadow:0 20px 45px rgba(0,0,0,.08)!important;transition:.35s}
.adspaces-card:hover{transform:translateY(-10px)}
.adspaces-card:before{content:'';display:block;height:5px;background:linear-gradient(90deg,#b8860b,#e5c15b,#f6e8a3)}

/* Tablet: 2 columns */
@media(max-width:1024px){.adspaces-grid{grid-template-columns:repeat(2,1fr)!important}}
/* Mobile: 1 column */
@media(max-width:600px){
.adspaces-grid,.adspaces-pro-stats{grid-template-columns:1fr!important}
}



/* ═══════════════════════════════════════════════════════════
   AdSpaces v1.5.1 – Single Detail Page
   Injected via the_content filter — works with ANY theme.
   All rules scoped to .adspn-detail to avoid theme collisions.
   ═══════════════════════════════════════════════════════════ */

/* ── Fonts (same as grid page) ── */
.adspn-detail,
.adspaces-quote-wrap {

}

/* ── Outer wrapper ── */
.adspn-detail {
  color: #1c1c1e;
  width: 100%;
}
.adspn-detail * { box-sizing: border-box; }
.adspn-detail a { text-decoration: none; }

/* ── Title / meta header row ── */
.adspn-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8e4de;
}
.adspn-detail-header__left { flex: 1; min-width: 0; }
.adspn-detail-header__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.adspn-cat-tag {
  display: inline-block;
  background: #fdf8ed;
  color: #b8860b;
  border: 1px solid #f5e6a3;
  border-radius: 99px;
  padding: 3px 14px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.adspn-hero-address {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: #636366;
  margin: 0;
}
.adspn-hero-address svg {
  width: 14px; height: 14px;
  color: #b8860b; flex-shrink: 0;
}

.adspn-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid;
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.adspn-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%; flex-shrink: 0;
}

.adspn-views-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #aeaeb2;
}
.adspn-views-badge svg { width: 13px; height: 13px; }

.adspn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 500;
  color: #636366;
  border: 1px solid #e2ddd6;
  border-radius: 8px;
  padding: 6px 12px;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
}
.adspn-back-link:hover {
  color: #b8860b;
  border-color: #b8860b;
  background: #fdf8ed;
}
.adspn-back-link svg { width: 14px; height: 14px; }

/* ── Two-column body ── */
.adspn-detail-body {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .adspn-detail-body { grid-template-columns: 1fr; }
}

/* ── Shared card ── */
.adspn-card {
  background: #ffffff;
  border: 1px solid #e8e4de;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 2px 12px rgba(0,0,0,.04);
}
.adspn-card:last-child { margin-bottom: 0; }

.adspn-card__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #aeaeb2 !important;
  margin: 0 0 16px !important;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0ece6;
  letter-spacing: none;
}
.adspn-card__heading svg { width: 14px; height: 14px; color: #b8860b; flex-shrink: 0; }

/* ── Photo card ── */
.adspn-photo-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #f1f5f9;
  margin-bottom: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,.10);
}
.adspn-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
@media (max-width: 640px) { .adspn-photo { height: 240px; } }

.adspn-photo-empty {
  height: 280px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; color: #94a3b8; font-size: 13px;
}
.adspn-photo-empty svg { width: 80px; height: 60px; }

.adspn-photo-tags {
  position: absolute;
  bottom: 14px; left: 14px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.adspn-env-chip,
.adspn-orient-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(28,28,30,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 500;
}
.adspn-orient-chip { background: rgba(184,134,11,.85); }

/* ── Quick stat tiles ── */
.adspn-quick-stats {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.adspn-quick-stat {
  flex: 1; min-width: 120px;
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border: 1px solid #e8e4de;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.adspn-quick-stat__icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: #fdf8ed;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #b8860b;
}
.adspn-quick-stat__icon svg { width: 16px; height: 16px; }
.adspn-quick-stat__label {
  font-size: 10px; text-transform: uppercase;
  color: #aeaeb2; margin-bottom: 2px;
}
.adspn-quick-stat__value { font-size: 13px; font-weight: 600; color: #1c1c1e; }

/* ── About ── */
.adspn-about__body {
  font-size: 14px; line-height: 1.75; color: #636366;
}
.adspn-about__body p { margin: 0 0 12px; }
.adspn-about__body p:last-child { margin: 0; }

/* ── Map ── */
.adspn-map-frame { border-radius: 10px; overflow: hidden; }
.adspn-map-frame iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ── Specs ── */
.adspn-specs-dl { margin: 0; }
.adspn-spec-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #f5f1ec; gap: 12px;
}
.adspn-spec-row:last-child { border-bottom: none; padding-bottom: 0; }
.adspn-spec-row:first-child { padding-top: 0; }
.adspn-spec-row dt { font-size: 12.5px; color: #aeaeb2; font-weight: 400; }
.adspn-spec-row dd { font-size: 13px; font-weight: 600; color: #1c1c1e; margin: 0; text-align: right; }

/* ── Booked notice ── */
.adspn-booked-notice { text-align: center; }
.adspn-booked-notice__icon { font-size: 30px; margin-bottom: 10px; }
.adspn-booked-notice h3 { font-size: 16px; font-weight: 700; color: #1c1c1e; margin: 0 0 8px; }
.adspn-booked-notice p  { font-size: 13px; color: #636366; margin: 0 0 16px; }
.adspn-btn-secondary {
  display: inline-block; padding: 10px 20px;
  background: #f8f7f5; border: 1px solid #e8e4de;
  border-radius: 8px; font-size: 13px; font-weight: 600;
  color: #1c1c1e; transition: background .15s;
}
.adspn-btn-secondary:hover { background: #eeeae3; color: #1c1c1e; }

/* ══════════════════════════════════
   Quotation Form
   ══════════════════════════════════ */
.adspaces-quote-wrap {
  background: #ffffff;
  border: 1px solid #e8e4de;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 2px 12px rgba(0,0,0,.04);
}

.adspaces-quote-header {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 20px; padding-bottom: 18px;
  border-bottom: 1px solid #f0ece6;
}
.adspaces-quote-header__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: #fdf8ed; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #b8860b;
}
.adspaces-quote-header__icon svg { width: 19px; height: 19px; }
.adspaces-quote-header__title { font-size: 15px; font-weight: 700; color: #1c1c1e; margin: 0 0 4px; }
.adspaces-quote-header__sub   { font-size: 12px; color: #636366; margin: 0; line-height: 1.5; }

.adspaces-quote-alert {
  border-radius: 10px; padding: 12px 16px;
  font-size: 13px; margin-bottom: 16px;
}
.adspaces-quote-alert--error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.adspaces-quote-alert--success {
  background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0;
  font-weight: 600; padding: 20px; text-align: center; font-size: 14px; line-height: 1.6;
}

.adspaces-quote-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px;
}
@media (max-width: 480px) { .adspaces-quote-grid { grid-template-columns: 1fr; } }

.adspaces-quote-field { display: flex; flex-direction: column; gap: 6px; }
.adspaces-quote-field--full { grid-column: 1 / -1; }

.adspaces-quote-field label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; color: #636366;
}
.adspaces-quote-required { color: #b8860b; }

.adspaces-quote-input-wrap { position: relative; display: flex; align-items: center; }
.adspaces-quote-input-wrap svg {
  position: absolute; left: 11px;
  width: 14px; height: 14px; color: #aeaeb2; pointer-events: none;
}
.adspaces-quote-input {
  width: 100%; padding: 9px 12px 9px 34px;
  border: 1.5px solid #e2ddd6; border-radius: 9px;
  font-family: inherit; font-size: 13px; color: #1c1c1e;
  background: #faf9f7;
  transition: border-color .18s, box-shadow .18s, background .18s;
  outline: none; -webkit-appearance: none;
}
.adspaces-quote-input:focus {
  border-color: #b8860b;
  box-shadow: 0 0 0 3px rgba(184,134,11,.12);
  background: #fff;
}
.adspaces-quote-input::placeholder { color: #c8c2b8; }

.adspaces-quote-textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid #e2ddd6; border-radius: 9px;
  font-family: inherit; font-size: 13px; color: #1c1c1e;
  background: #faf9f7; resize: vertical; outline: none; min-height: 90px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.adspaces-quote-textarea:focus {
  border-color: #b8860b;
  box-shadow: 0 0 0 3px rgba(184,134,11,.12);
  background: #fff;
}
.adspaces-quote-textarea::placeholder { color: #c8c2b8; }

.adspaces-quote-duration {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: #b8860b;
  background: #fdf8ed; border: 1px solid #f5e6a3;
  border-radius: 9px; padding: 9px 14px; margin-bottom: 14px;
}
.adspaces-quote-duration svg { width: 14px; height: 14px; flex-shrink: 0; }

.adspaces-quote-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid #f0ece6;
}
.adspaces-quote-privacy {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: #aeaeb2; margin: 0; flex: 1;
}
.adspaces-quote-privacy svg { width: 12px; height: 12px; flex-shrink: 0; }

.adspaces-quote-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #1c1c1e; color: #fff;
  border: none; border-radius: 10px; padding: 12px 22px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.adspaces-quote-btn svg { width: 14px; height: 14px; }
.adspaces-quote-btn:hover {
  background: #b8860b;
  box-shadow: 0 4px 18px rgba(184,134,11,.38);
  transform: translateY(-1px);
  color: #fff;
}
.adspaces-quote-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ══════════════════════════════════
   Active Filter Chips (grid page)
   ══════════════════════════════════ */
.adspaces-active-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.adspaces-active-filters.has-chips { margin-top: 10px; }
.adspaces-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fdf8ed; border: 1px solid #f5e6a3;
  color: #b8860b; border-radius: 99px;
  padding: 4px 10px 4px 12px;
  font-size: 12px; font-weight: 500;
}
.adspaces-chip__label { color: #aeaeb2; font-weight: 400; }
.adspaces-chip__remove {
  background: none; border: none; cursor: pointer;
  color: #b8860b; padding: 0; display: flex; align-items: center;
  opacity: .6; transition: opacity .15s;
}
.adspaces-chip__remove:hover { opacity: 1; }
.adspaces-chip__remove svg { width: 12px; height: 12px; }

/* Search clear button */
.adspaces-search-inner { position: relative; }
.adspaces-search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #636366; padding: 2px; display: flex; align-items: center;
  opacity: .5; transition: opacity .15s;
}
.adspaces-search-clear:hover { opacity: 1; }
.adspaces-search-clear svg { width: 14px; height: 14px; }
