/* Alignment + button polish on top of original Backpage colours */

html {
  -webkit-text-size-adjust: 100%;
}

.nav-trigger,
#simple-menu,
#sidr {
  display: none !important;
}

#logo {
  margin-left: 0 !important;
}

/* ---- Header shell (keep #afbed8 look, fix floats) ---- */
#tlHeader.bp-tlHeader,
.bp-tlHeader {
  display: block !important;
  float: none !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: #afbed8 !important;
  overflow: visible !important;
}

.bp-tl-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  box-sizing: border-box;
}

.bp-tl-top {
  flex-wrap: wrap;
  min-height: 46px;
}

.bp-tl-brand {
  flex: 0 0 auto;
}

.bp-tl-brand a.bp-brand-link {
  text-indent: 0 !important;
  background-image: none !important;
  width: auto !important;
  height: auto !important;
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  font: bold 20px/1.1 Arial, Helvetica, sans-serif !important;
  color: #1a3a6b !important;
  text-decoration: none !important;
}

.bp-tl-brand .bp-uk {
  color: #506fa3;
}

.bp-tl-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.bp-tl-city {
  flex: 1 1 auto;
  text-align: right;
  min-width: 0;
}

.bp-tl-city .city {
  display: inline-block;
  font: bold 13px/1.2 Arial, Helvetica, sans-serif;
  color: #000;
  text-transform: lowercase;
  text-decoration: none;
}

.bp-tl-city a.city {
  color: #000;
  text-decoration: underline;
}

/* Shared classic blue buttons — same height, aligned */
.bp-tl-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 32px;
  min-width: 88px;
  padding: 0 12px !important;
  margin: 0 !important;
  border: 1px solid #3d5885;
  background: #506fa3 !important;
  color: #fff !important;
  font: bold 12px/1 Arial, Helvetica, sans-serif !important;
  text-decoration: none !important;
  cursor: pointer;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: none;
}

.bp-tl-btn:hover,
.bp-tl-btn:focus {
  background: #3d5885 !important;
  color: #e3e9f2 !important;
}

.bp-tl-search-btn {
  min-width: 72px;
  text-transform: lowercase;
}

/* Search row — one baseline */
.bp-tl-search {
  padding-top: 0;
  padding-bottom: 10px;
  border-top: 1px solid rgba(80, 111, 163, 0.25);
}

.bp-tl-searchform {
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  float: none !important;
}

.bp-tl-input {
  flex: 1 1 160px;
  min-width: 0;
  box-sizing: border-box;
  height: 32px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border: 1px solid #8fa4c4;
  border-radius: 2px;
  background: #fff;
  font: 13px/32px Arial, Helvetica, sans-serif !important;
  color: #000;
}

.bp-tl-select {
  flex: 0 1 140px;
  min-width: 110px;
}

.bp-tl-select .bp-select {
  width: 100%;
  flex: none;
}

.bp-tl-select .bp-select-trigger {
  box-sizing: border-box;
  border: 1px solid #8fa4c4;
  border-radius: 2px;
}

.bp-select {
  position: relative;
  width: 100%;
}

.bp-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  padding: 10px 12px;
  background: #fff;
  color: #000;
  border: 1px solid #8fa4c4;
  border-radius: 2px;
  font: 15px/1.3 Arial, Helvetica, sans-serif;
  cursor: pointer;
  text-align: left;
}

.bp-select-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bp-select-chevron {
  color: #506fa3;
  display: inline-flex;
  flex-shrink: 0;
  margin-left: 8px;
}

.bp-select.is-open .bp-select-chevron {
  transform: rotate(180deg);
}

.bp-select-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 200;
  margin: 0;
  padding: 0;
  list-style: none !important;
  background: #fff;
  border: 1px solid #8fa4c4;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.18);
  max-height: 280px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bp-select-menu li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.bp-select-search {
  flex: 0 0 auto;
  padding: 8px;
  border-bottom: 1px solid #cfd8e6;
  background: #eef2f8;
}

.bp-select-search input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #8fa4c4;
  border-radius: 2px;
  padding: 8px 10px;
  font-size: 15px;
  outline: none;
}

.bp-select-options {
  margin: 0;
  padding: 0;
  list-style: none !important;
  overflow-y: auto;
  max-height: 220px;
}

.bp-select-empty {
  padding: 12px 14px;
  color: #666;
  font-size: 14px;
}

.bp-select-option {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: none;
  background: #fff;
  color: #000;
  font: 15px/1.3 Arial, Helvetica, sans-serif;
  text-align: left;
  cursor: pointer;
}

.bp-select-option:hover {
  background: #e3e9f2;
}

.bp-select-option.is-active {
  background: #506fa3;
  color: #fff;
}

.bp-select.is-disabled .bp-select-trigger {
  opacity: 0.6;
  background: #eee;
  cursor: not-allowed;
}

/* Keep header search select compact */
.bp-tl-select .bp-select-trigger {
  min-height: 32px;
  height: 32px;
  padding: 0 8px;
  font: 13px/1 Arial, Helvetica, sans-serif;
}

.bp-tl-select .bp-select-option {
  padding: 8px;
  font: 13px/1.2 Arial, Helvetica, sans-serif;
}

/* Mobile */
@media (max-width: 700px) {
  .bp-tl-top {
    gap: 8px;
  }

  .bp-tl-city {
    flex: 1 1 100%;
    order: 3;
    text-align: left;
    padding-top: 2px;
  }

  .bp-tl-actions {
    margin-left: auto;
  }

  .bp-tl-btn {
    height: 36px;
    min-width: 84px;
    font-size: 13px !important;
  }

  .bp-tl-searchform {
    flex-wrap: wrap;
  }

  .bp-tl-input {
    flex: 1 1 calc(50% - 4px);
    width: calc(50% - 4px);
    min-width: 0;
    height: 36px !important;
    font-size: 16px !important;
  }

  .bp-tl-select {
    flex: 1 1 calc(50% - 4px);
    width: calc(50% - 4px);
    min-width: 0;
  }

  .bp-tl-select .bp-select-trigger {
    height: 36px;
    font-size: 16px;
  }

  .bp-tl-search-btn {
    flex: 1 1 100%;
    width: 100%;
    height: 36px;
  }

  .mainCellBackground,
  #columnsTable {
    column-count: 1 !important;
    -webkit-column-count: 1 !important;
    -moz-column-count: 1 !important;
  }

  #mainWrapper {
    width: 96% !important;
  }

  .column {
    column-count: 1 !important;
    -webkit-column-count: 1 !important;
  }

  #geoListings ul {
    margin: 0 0 6px !important;
    padding-left: 14px !important;
  }

  #geoListings li {
    margin: 0 !important;
    padding: 0 0 0 0.35em !important;
    line-height: 1.15 !important;
  }

  #geoListings a {
    display: inline !important;
    padding: 0 !important;
    min-height: 0 !important;
    line-height: 1.15 !important;
  }

  #geoListings h2 {
    margin: 10px 0 2px !important;
    padding-left: 8px !important;
  }

  #geoListings h3 {
    margin: 6px 0 1px 8px !important;
  }

  #home #geoListings li,
  #home[class] #geoListings li {
    line-height: 1.15 !important;
  }
}

@media (min-width: 701px) and (max-width: 999px) {
  .mainCellBackground,
  #columnsTable {
    column-count: 2 !important;
    -webkit-column-count: 2 !important;
  }
}

.mainBody {
  padding: 8px 10px 16px !important;
}

#cookieCrumb,
.cookieCrumbTrail {
  padding: 8px 10px 0 !important;
}

.footer_backpage {
  clear: both;
}

.bp-images img,
.mainBody img {
  max-width: 100%;
  height: auto;
}

/* All Cities page — blue logo + Post Ad button */
#home h1,
#home[class] h1 {
  background: none !important;
  text-indent: 0 !important;
  height: auto !important;
  width: auto !important;
}

#home a.bp-brand-link,
#home[class] a.bp-brand-link,
#home h1 a.bp-brand-link {
  color: #1a3a6b !important;
  background: none !important;
  text-indent: 0 !important;
  display: inline-flex !important;
  height: auto !important;
  width: auto !important;
  float: none !important;
  text-decoration: none !important;
}

#home a.bp-brand-link .bp-uk,
#home[class] a.bp-brand-link .bp-uk {
  color: #506fa3 !important;
}

#home #postAnAd,
#home[class] #postAnAd {
  float: none;
  padding-bottom: 0;
}

#home #postAnAd a.bp-tl-btn,
#home[class] #postAnAd a.bp-tl-btn {
  color: #fff !important;
  text-decoration: none !important;
  text-transform: none;
  font-size: 13px !important;
}

#home .bp-home-toolbar,
#home[class] .bp-home-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  clear: both;
  margin: 0 0 10px;
  padding: 0 0 10px;
}

#home .bp-home-choose,
#home[class] .bp-home-choose {
  font-weight: bold;
  font-size: 14px;
}

#home .bp-home-toolbar .bp-tl-btn,
#home[class] .bp-home-toolbar .bp-tl-btn {
  float: none;
  flex: 0 0 auto;
  color: #fff !important;
  text-decoration: none !important;
  position: relative;
  z-index: 2;
}

#home #header,
#home[class] #header {
  overflow: visible;
}

/* Description rich editor */
.bp-desc-editor {
  border: 1px solid #8fa4c4;
  background: #fff;
  border-radius: 2px;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.bp-desc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid #cfd8e6;
  background: #eef2f8;
}

.bp-desc-toolbar > button,
.bp-desc-toolbar > div > button {
  border: 1px solid #8fa4c4;
  background: #fff;
  color: #222;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 2px;
  line-height: 1.2;
}

.bp-desc-toolbar > button:hover,
.bp-desc-toolbar > div > button:hover {
  background: #e3e9f2;
}

.bp-desc-sep {
  width: 1px;
  height: 22px;
  background: #c0cbdc;
  margin: 0 4px;
}

.bp-desc-area {
  display: block !important;
  width: 100% !important;
  min-height: 180px !important;
  max-height: 360px;
  overflow-y: auto;
  padding: 12px;
  font-size: 16px;
  line-height: 1.45;
  outline: none;
  white-space: pre-wrap;
  word-break: break-word;
  box-sizing: border-box;
  -webkit-user-modify: read-write;
  user-select: text;
}

.bp-desc-emoji {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 50;
  width: min(280px, 70vw);
  max-height: 200px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  padding: 8px;
  background: #fff;
  border: 1px solid #8fa4c4;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
}

.bp-desc-emoji-btn {
  border: none !important;
  background: transparent !important;
  font-size: 20px;
  padding: 4px !important;
  cursor: pointer;
  line-height: 1.2;
}

.bp-desc-emoji-btn:hover {
  background: #e3e9f2 !important;
}

.bp-ad-body {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
}

.bp-ad-body ul,
.bp-ad-body ol {
  margin: 8px 0 8px 1.2em;
  padding: 0;
}

.bp-ad-body p {
  margin: 0 0 0.6em;
}

/* Kill leftover float rules fighting the new header */
#tlHeader.bp-tlHeader #logo,
#tlHeader.bp-tlHeader #postAdButton,
#tlHeader.bp-tlHeader #searchInline,
#tlHeader.bp-tlHeader #community,
#tlHeader.bp-tlHeader .tlBlock {
  float: none !important;
  display: contents;
}

/* ---- Ad detail page ---- */
.ad-page .ad-title {
  margin: 4px 0 6px;
  font-size: 20px;
  line-height: 1.25;
}

.ad-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.ad-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.ad-badge-18 {
  background: #506fa3;
  color: #fff;
}

.ad-badge-feat {
  background: linear-gradient(180deg, #fff4c8 0%, #ffe089 100%);
  color: #7a5200;
  border: 1px solid #e0b84a;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  font-weight: 800;
}

/* ---- Ad listing cards + pagination ---- */
.ad-listing-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.ad-listing-head h1,
.ad-listing-head h2,
.ad-listing-head h3 {
  margin: 0;
}

.ad-listing-count {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.ad-results-banner {
  margin: 4px 0 14px;
  padding: 12px 14px;
  border: 1px solid #c5d0e0;
  background: #f7f9fc;
  text-align: center;
}

.ad-results-banner h1,
.ad-results-banner h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  color: #1c2a3f;
  font-weight: bold;
}

.ad-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ad-list-card {
  border: 1px solid #c5d0e0;
  background: #fff;
  overflow: hidden;
}

.ad-list-card:has(.ad-badge-feat) {
  border-color: #e0b84a;
  box-shadow: 0 0 0 1px rgba(224, 184, 74, 0.25);
}

.ad-list-link {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
  padding: 10px;
}

.ad-list-link:hover {
  background: #f7f9fc;
}

.ad-list-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.ad-list-body {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.ad-list-thumb {
  position: relative;
  flex: 0 0 110px;
  width: 110px;
  height: 140px;
  background: #dde4ef;
  border: 1px solid #c5d0e0;
  overflow: hidden;
}

.ad-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ad-list-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 11px;
  color: #8896ab;
  text-align: center;
  padding: 6px;
  box-sizing: border-box;
}

.ad-list-photo-count {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;
}

.ad-list-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ad-list-title {
  font-size: 15px;
  font-weight: bold;
  color: #1c2a3f;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-list-phone {
  font-size: 14px;
  font-weight: bold;
  color: #1a4a9c;
}

.ad-list-meta,
.ad-list-location {
  font-size: 12px;
  color: #666;
  line-height: 1.35;
}

.ad-list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.ad-list-tag {
  display: inline-block;
  font-size: 11px;
  color: #3a465c;
  border: 1px solid #c5d0e0;
  background: #f7f9fc;
  padding: 3px 8px;
  border-radius: 999px;
}

.ad-pager {
  margin: 18px 0 8px;
  padding-top: 12px;
  border-top: 1px solid #e3e9f2;
}

.ad-pager-summary {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.ad-pager-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.ad-pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #c5d0e0;
  background: #fff;
  color: #1a4a9c !important;
  text-decoration: none !important;
  font: bold 13px Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

.ad-pager-btn:hover {
  background: #eef2f8;
  border-color: #506fa3;
}

.ad-pager-btn.is-current {
  background: #506fa3;
  border-color: #506fa3;
  color: #fff !important;
}

.ad-pager-btn.is-disabled {
  color: #99a4b5 !important;
  cursor: default;
}

.ad-pager-ellipsis {
  color: #8896ab;
  padding: 0 2px;
}

@media (max-width: 520px) {
  .ad-list-thumb {
    flex-basis: 92px;
    width: 92px;
    height: 118px;
  }

  .ad-list-title {
    font-size: 14px;
  }
}

.ad-teaser {
  margin: 0 0 6px;
  font-size: 13px;
  color: #555;
}

.ad-page .ad-meta {
  margin: 0 0 14px;
  font-size: 11px;
  color: #666;
}

.ad-media {
  margin: 0 0 16px;
}

.ad-slideshow {
  display: none;
}

.ad-media-desktop {
  display: block;
}

.ad-media-hint {
  font-size: 11px;
  color: #666;
  margin: 0 0 6px;
}

.ad-thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.ad-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  margin: 0;
  border: 1px solid #c5d0e0;
  background: #dde4ef;
  cursor: zoom-in;
  overflow: hidden;
  position: relative;
}

.ad-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: top;
}

.ad-thumb:hover {
  border-color: #506fa3;
}

.ad-thumb:focus-visible {
  outline: 2px solid #506fa3;
  outline-offset: 1px;
}

.ad-slideshow-stage {
  position: relative;
  background: #eef2f8;
  aspect-ratio: 4 / 5;
  max-height: 70vh;
  overflow: hidden;
}

.ad-slideshow-main {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.ad-slideshow-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #eef2f8;
}

.ad-slideshow-count {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ad-slideshow-cam {
  font-size: 11px;
  line-height: 1;
}

.ad-slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 48px;
  border: 0;
  background: rgba(40, 48, 60, 0.7);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.ad-slideshow-prev {
  left: 0;
}

.ad-slideshow-next {
  right: 0;
}

.ad-slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 0;
}

.ad-slideshow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #c5d0e0;
  cursor: pointer;
}

.ad-slideshow-dot.is-active {
  background: #506fa3;
}

.ad-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.ad-video {
  width: 100%;
  max-height: 200px;
  background: #000;
  border: 1px solid #ccc;
}

.ad-details {
  background: #eef2f8;
  border: 1px solid #cfd8e6;
  padding: 12px 14px;
  margin: 0 0 16px;
}

.ad-details-user {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 10px;
  color: #243652;
}

.ad-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px 12px;
  margin: 0;
}

.ad-details-item {
  background: #fff;
  border: 1px solid #d5deea;
  padding: 8px 10px;
  min-width: 0;
}

.ad-details-item dt {
  margin: 0 0 2px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6a7a90;
  font-weight: normal;
}

.ad-details-item dd {
  margin: 0;
  font-size: 13px;
  font-weight: bold;
  color: #1c2a3f;
  word-break: break-word;
}

.ad-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 16, 28, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px 40px;
  box-sizing: border-box;
}

.ad-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.ad-lightbox-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.ad-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 64px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.ad-lightbox-prev {
  left: 8px;
}

.ad-lightbox-next {
  right: 8px;
}

.ad-lightbox-nav:hover,
.ad-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.ad-lightbox-count {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: #ddd;
  font-size: 12px;
}

.ad-contact {
  background: #eef2f8;
  border: 1px solid #cfd8e6;
  padding: 12px 14px;
  margin: 0 0 16px;
}

.ad-contact-title {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 10px;
  color: #243652;
}

.ad-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ad-contact-btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #c5d0e0;
  text-decoration: none !important;
  color: inherit !important;
}

.ad-contact-btn:hover {
  border-color: #506fa3;
  background: #f7f9fc;
}

.ad-contact-btn-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6a7a90;
}

.ad-contact-btn-value {
  font-size: 15px;
  font-weight: bold;
  color: #1a4a9c;
  word-break: break-all;
}

.ad-contact-hidden {
  font-size: 13px;
  color: #555;
  padding: 4px 0;
}

/* Mobile sticky Call / Email */
.ad-cta-bar {
  display: none;
}

.ad-similar {
  margin: 20px 0 8px;
  padding: 14px 0 0;
  border-top: 1px solid #e3e9f2;
}

.ad-similar-title {
  margin: 0 0 12px;
  font-size: 16px;
  color: #243652;
}

.ad-similar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #d5deea;
  background: #fff;
}

.ad-similar-list li {
  border-bottom: 1px solid #e8edf4;
}

.ad-similar-list li:last-child {
  border-bottom: 0;
}

.ad-similar-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  text-decoration: none !important;
  color: inherit !important;
  align-items: center;
}

.ad-similar-item:hover {
  background: #f7f9fc;
}

.ad-similar-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  background: #dde4ef;
  border: 1px solid #c5d0e0;
  overflow: hidden;
}

.ad-similar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ad-similar-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 10px;
  color: #8896ab;
  text-align: center;
  padding: 4px;
  box-sizing: border-box;
}

.ad-similar-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ad-similar-item-title {
  font-size: 14px;
  font-weight: bold;
  color: #1c2a3f;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-similar-item-meta {
  font-size: 12px;
  color: #6a7a90;
}

.ad-similar-all {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: bold;
  color: #1a4a9c !important;
}

@media (max-width: 720px) {
  .ad-slideshow {
    display: block;
  }

  .ad-media-desktop {
    display: none;
  }

  .ad-page-has-cta {
    padding-bottom: 72px;
  }

  .ad-cta-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    gap: 0;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    border-top: 1px solid #c5d0e0;
    box-shadow: 0 -4px 18px rgba(20, 35, 60, 0.12);
  }

  .ad-cta-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    background: #506fa3;
    color: #fff !important;
    font: bold 15px Arial, Helvetica, sans-serif;
    text-decoration: none !important;
    border: 0;
  }

  .ad-cta-btn + .ad-cta-btn {
    border-left: 1px solid rgba(255, 255, 255, 0.25);
  }

  .ad-cta-btn:active {
    background: #3f5f8f;
  }

  .ad-cta-icon {
    display: inline-flex;
    line-height: 0;
  }
}

.ad-report {
  background: #f7f8fa;
  border: 1px solid #d8dee8;
  padding: 0;
  margin: 0 0 8px;
}

.ad-report-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  font: bold 13px arial, sans-serif;
  color: #243652;
  cursor: pointer;
  text-align: left;
}

.ad-report-toggle:hover {
  background: #eef1f6;
}

.ad-report-chevron {
  font-weight: normal;
  color: #6a7a90;
  font-size: 12px;
}

.ad-report-body {
  padding: 0 14px 12px;
  border-top: 1px solid #d8dee8;
}

.ad-report-title {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 4px;
  color: #243652;
}

.ad-report-help {
  margin: 10px 0 12px;
  font-size: 12px;
  color: #666;
}

.ad-report-label {
  display: block;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: bold;
  color: #444;
}

.ad-report-select,
.ad-report-textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  box-sizing: border-box;
  font: 14px/1.4 arial, sans-serif;
  padding: 8px 10px;
  border: 1px solid #c5d0e0;
  background: #fff;
  color: #000;
}

.ad-report-textarea {
  resize: vertical;
  min-height: 72px;
}

.ad-report-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 8px 14px;
  border: 1px solid #3f5f8f;
  background: #506fa3;
  color: #fff !important;
  font: bold 13px arial, sans-serif;
  cursor: pointer;
  text-decoration: none !important;
}

.ad-report-btn:hover {
  background: #3f5f8f;
}

.ad-report-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.ad-report-err {
  color: #c00;
  font-size: 12px;
  margin: 8px 0 0;
}

.ad-report-done {
  color: #146c2e;
  font-size: 13px;
  font-weight: bold;
  padding: 10px 14px;
}

/* ---- My Account ---- */
.acct-page {
  background: #e3e9f2;
  min-height: 100vh;
}

.acct-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  background: #afbed8;
  box-sizing: border-box;
}

.acct-header-user {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 0;
  font-size: 12px;
  color: #1c2a3f;
}

.acct-header-user a {
  color: #1a4a9c;
}

.acct-sep {
  margin: 0 6px;
  color: #5a6d88;
}

.acct-logout-form {
  display: inline;
  margin: 0;
}

.acct-logout-btn {
  background: none;
  border: none;
  color: #1a4a9c;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font: inherit;
}

.acct-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 12px 24px;
  box-sizing: border-box;
}

.acct-main {
  background: #fff;
  border: 1px solid #c5d0e0;
  padding: 18px 16px 20px;
}

.acct-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e3e9f2;
}

.acct-title {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.2;
  color: #1c2a3f;
}

.acct-sub {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.acct-actions-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.acct-btn {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #c5d0e0;
  background: #fff;
  color: #1a4a9c !important;
  font: bold 13px arial, sans-serif;
  text-decoration: none !important;
  cursor: pointer;
}

.acct-btn:hover {
  background: #eef2f8;
  border-color: #506fa3;
}

.acct-btn-primary {
  background: #506fa3;
  border-color: #3f5f8f;
  color: #fff !important;
}

.acct-btn-primary:hover {
  background: #3f5f8f;
  border-color: #3f5f8f;
  color: #fff !important;
}

.acct-alert {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #fff3f3;
  border: 1px solid #e8b4b4;
  color: #8a1f1f;
  font-size: 13px;
}

.acct-alert-ok {
  background: #eef8f0;
  border-color: #b5d9be;
  color: #146c2e;
}

.acct-section-title {
  margin: 0 0 12px;
  font-size: 15px;
  color: #243652;
}

.acct-empty {
  padding: 28px 16px;
  text-align: center;
  background: #eef2f8;
  border: 1px dashed #c5d0e0;
}

.acct-empty p {
  margin: 0 0 12px;
  color: #555;
}

.acct-ad-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acct-ad-card {
  border: 1px solid #d5deea;
  background: #fafbfd;
  padding: 12px 14px;
}

.acct-ad-main {
  min-width: 0;
}

.acct-ad-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.acct-ad-title {
  font-size: 15px;
  font-weight: bold;
  color: #1a4a9c !important;
  text-decoration: none !important;
  word-break: break-word;
  line-height: 1.3;
}

.acct-ad-title:hover {
  text-decoration: underline !important;
}

.acct-ad-title-plain {
  color: #1c2a3f !important;
}

.acct-status {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 7px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.acct-status-live {
  background: #e8f6ec;
  border-color: #b5d9be;
  color: #146c2e;
}

.acct-status-awaiting_payment {
  background: #fff6e8;
  border-color: #e8c98a;
  color: #8a5a00;
}

.acct-status-expired {
  background: #f2f2f2;
  border-color: #ccc;
  color: #555;
}

.acct-status-removed {
  background: #fff3f3;
  border-color: #e8b4b4;
  color: #8a1f1f;
}

.acct-ad-meta,
.acct-ad-dates {
  font-size: 12px;
  color: #666;
  line-height: 1.45;
}

.acct-ad-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.acct-date-block {
  background: #fff;
  border: 1px solid #d5deea;
  padding: 8px 10px;
}

.acct-date-label {
  display: block;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6a7a90;
  margin-bottom: 2px;
}

.acct-date-value {
  display: block;
  font-size: 13px;
  font-weight: bold;
  color: #1c2a3f;
}

.acct-date-left {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #146c2e;
  font-weight: bold;
}

.acct-ad-manage {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.acct-manage-link {
  font-size: 13px;
  font-weight: bold;
  color: #1a4a9c !important;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.acct-manage-danger {
  color: #a01818 !important;
}

.acct-manage-link:disabled {
  opacity: 0.6;
  cursor: default;
}

.acct-btn-danger {
  background: #a01818;
  border-color: #7a1010;
  color: #fff !important;
}

.acct-btn-danger:hover {
  background: #7a1010;
  border-color: #7a1010;
  color: #fff !important;
}

.acct-btn-danger:disabled {
  opacity: 0.65;
  cursor: default;
}

.acct-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(16, 24, 40, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.acct-modal {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid #c5d0e0;
  padding: 18px 16px 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.acct-modal-title {
  margin: 0 0 10px;
  font-size: 18px;
  color: #1c2a3f;
}

.acct-modal-lead {
  margin: 0 0 6px;
  font-size: 13px;
  color: #555;
}

.acct-modal-ad-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: bold;
  color: #1c2a3f;
  word-break: break-word;
}

.acct-modal-warning {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #fff3f3;
  border: 1px solid #e8b4b4;
  color: #8a1f1f;
  font-size: 13px;
  line-height: 1.45;
}

.acct-modal-error {
  margin: 0 0 12px;
  color: #c00;
  font-size: 13px;
}

.acct-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

/* ---- 18+ age gate (Vivastreet-style layout, BackpageUK colours) ---- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom));
  background: #dfe5ee;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

.age-gate-card {
  width: 100%;
  max-width: 560px;
  max-height: 94vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px 22px;
  box-shadow: 0 10px 36px rgba(20, 35, 60, 0.12);
  box-sizing: border-box;
  text-align: center;
}

.age-gate-logo {
  margin-bottom: 22px;
}

.age-gate-warning {
  background: #eef2f8;
  border-radius: 10px;
  padding: 18px 16px 16px;
  margin-bottom: 22px;
  text-align: center;
}

.age-gate-warning-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.age-gate-warning-head h2 {
  margin: 0;
  font-size: 18px;
  color: #2a3548;
}

.age-gate-shield {
  display: inline-flex;
  line-height: 0;
}

.age-gate-warning-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #3a465c;
  text-align: center;
}

.age-gate-terms {
  margin-bottom: 22px;
}

.age-gate-terms h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #2a3548;
}

.age-gate-terms p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #3a465c;
}

.age-gate-terms a {
  color: #1a4a9c;
}

.age-gate-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap;
}

.age-gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  font: bold 14px Arial, Helvetica, sans-serif;
  text-decoration: none !important;
  cursor: pointer;
  box-sizing: border-box;
  border: 2px solid transparent;
  line-height: 1.2;
}

.age-gate-btn-back {
  background: #fff;
  border-color: #506fa3;
  color: #506fa3 !important;
}

.age-gate-btn-back:hover {
  background: #eef2f8;
}

.age-gate-btn-agree {
  background: #506fa3;
  border-color: #506fa3;
  color: #fff !important;
}

.age-gate-btn-agree:hover {
  background: #3f5f8f;
  border-color: #3f5f8f;
}

.age-gate-btn-agree:disabled {
  opacity: 0.7;
  cursor: wait;
}

@media (max-width: 480px) {
  .age-gate-card {
    padding: 20px 14px 16px;
  }

  .age-gate-btn {
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    font-size: 13px;
    padding: 0 10px;
  }
}

.acct-ad-renew {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e3e9f2;
}

.acct-renew-label {
  font-size: 11px;
  font-weight: bold;
  color: #6a7a90;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.acct-renew-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.acct-renew-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #c5d0e0;
  background: #fff;
  cursor: pointer;
  font: 12px arial, sans-serif;
  color: #1c2a3f;
}

.acct-renew-btn:hover:not(:disabled) {
  border-color: #506fa3;
  background: #eef2f8;
}

.acct-renew-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.acct-renew-name {
  color: #243652;
}

.acct-renew-price {
  font-weight: bold;
  color: #506fa3;
}

@media (max-width: 560px) {
  .acct-ad-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .acct-ad-dates {
    grid-template-columns: 1fr;
  }
}

