:root {
      --brand: #1597f4;
      --brand-dark: #0b79cb;
      --success: #12b76a;
      --ink: #1f2937;
      --muted: #667085;
      --line: #e6eaf0;
      --soft: #f4f7fb;
      --card: #ffffff;
      --radius: 22px;
    }


    * { box-sizing: border-box; }

    body {
      margin: 0;
      background: linear-gradient(180deg, #f7faff 0%, #eef4fb 100%);
      color: var(--ink);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
      line-height: 1.6;
    }

    a { text-decoration: none; }

    .page-shell {
      margin: 25px;
    }
    .listing-card {
      background: rgba(255,255,255,.92);
      border: 1px solid rgba(214, 224, 236, .9);
      border-radius: 28px;
      box-shadow: 0 22px 60px rgba(16, 24, 40, .08);
      overflow: hidden;
    }

    .listing-head {
      padding: 24px 28px 18px;
      border-bottom: 1px solid var(--line);
      background:
        radial-gradient(circle at top left, rgba(21, 151, 244, .12), transparent 34%),
        #fff;
    }

    .price-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 16px;
      background: linear-gradient(135deg, var(--brand), #35b6ff);
      color: #fff;
      border-radius: 14px;
      font-size: clamp(22px, 2vw, 34px);
      font-weight: 800;
      letter-spacing: -.03em;
      box-shadow: 0 10px 22px rgba(21,151,244,.28);
      white-space: nowrap;
    }

    .listing-title {
      margin: 12px 0 0;
      font-size: clamp(22px, 2vw, 30px);
      font-weight: 700;
      letter-spacing: -.02em;
      color: #2f3440;
    }

    .listing-location {
      margin-top: 8px;
      color: var(--muted);
      display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
    }

    .icon-btn {
      width: 42px;
      height: 42px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--line);
      color: #344054;
      background: #fff;
      border-radius: 14px;
      transition: .2s ease;
    }

    .icon-btn:hover,
    .icon-btn.active {
      color: var(--brand-dark);
      border-color: rgba(21,151,244,.32);
      background: rgba(21,151,244,.08);
      transform: translateY(-1px);
    }

    .content-area3 { padding: 28px; }

    .owner-actions-panel {
      margin: 20px 28px 0;
      padding: 16px 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      border: 1px solid #b9dcff;
      border-radius: 18px;
      background: #f4f9ff;
    }

    .owner-actions-message {
      display: flex;
      align-items: center;
      gap: 12px;
      color: #344054;
    }

    .owner-actions-message strong,
    .owner-actions-message span {
      display: block;
    }

    .owner-actions-message span {
      margin-top: 2px;
      color: var(--muted);
      font-size: 14px;
    }

    .owner-actions-icon {
      width: 42px;
      height: 42px;
      flex: 0 0 42px;
      display: inline-flex !important;
      align-items: center;
      justify-content: center;
      margin: 0 !important;
      border-radius: 13px;
      color: var(--brand-dark) !important;
      background: #dff0ff;
      font-size: 20px !important;
    }

    .owner-actions-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .gallery-card,
    .info-card,
    .section-card {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: 0 14px 32px rgba(16,24,40,.06);
    }

    .gallery-card { padding: 14px; }

    .listing-carousel {
      border-radius: 18px;
      overflow: hidden;
      background: #e9edf3;
      position: relative;
    }

    .gallery-lightbox { position: relative; }

    .gallery-main-img {
      aspect-ratio: 16 / 10;
      object-fit: cover;
      background: #eef2f6;
      transition: transform .35s ease;
    }

    .gallery-lightbox:hover .gallery-main-img { transform: scale(1.015); }

    .gallery-empty {
      aspect-ratio: 16 / 10;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
      background: #eef2f6;
      color: var(--muted);
      font-weight: 700;
    }

    .gallery-empty i {
      font-size: 42px;
      color: #98a2b3;
    }

    .zoom-hint2 {
      position: absolute;
      right: 14px;
      bottom: 14px;
      display: inline-flex;
      gap: 8px;
      align-items: center;
      padding: 9px 12px;
      color: #fff;
      background: rgba(15, 23, 42, .68);
      backdrop-filter: blur(10px);
      border-radius: 999px;
      font-size: 14px;
      font-weight: 600;
    }

    .carousel-control-prev,
    .carousel-control-next {
      width: 52px;
      opacity: 1;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background-size: 52%;
      background-color: rgba(15,23,42,.65);
      box-shadow: 0 8px 20px rgba(16,24,40,.22);
    }

    .thumb-strip-wrap {
      margin-top: 14px;
      position: relative;
    }

    .thumb-strip {
      display: flex;
      gap: 12px;
      overflow-x: auto;
      padding-bottom: 3px;
      scroll-snap-type: x proximity;
    }

    .thumb-strip::-webkit-scrollbar { height: 6px; }
    .thumb-strip::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }

    .gallery-thumb {
      flex: 0 0 118px;
      border: 2px solid transparent;
      border-radius: 14px;
      padding: 0;
      background: transparent;
      overflow: hidden;
      scroll-snap-align: start;
      position: relative;
      transition: .2s ease;
    }

    .gallery-thumb img {
      width: 100%;
      aspect-ratio: 16 / 10;
      object-fit: cover;
      display: block;
      filter: saturate(.92);
    }

    .gallery-thumb.active {
      border-color: var(--brand);
      box-shadow: 0 10px 18px rgba(21,151,244,.22);
    }

    .gallery-thumb:not(.active) { opacity: .72; }
    .gallery-thumb:hover { opacity: 1; transform: translateY(-1px); }

    .quick-facts {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      margin-top: 16px;
    }

    .fact {
      background: #f7faff;
      border: 1px solid #e6edf7;
      border-radius: 16px;
      padding: 14px;
      min-height: 82px;
    }

    .fact span {
      display: block;
      color: var(--muted);
      font-size: 13px;
      margin-bottom: 4px;
    }

    .fact strong {
      display: block;
      font-size: 18px;
      font-weight: 800;
      color: #1d2939;
    }

    .info-card {
      padding: 18px;
      position: sticky;
      top: 18px;
    }

    .seller-card {
      display: flex;
      gap: 14px;
      align-items: center;
      padding: 16px;
      border-radius: 18px;
      background: linear-gradient(135deg, #f8fbff, #eef7ff);
      border: 1px solid #dcecff;
    }

    .seller-avatar {
      width: 58px;
      height: 58px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: #e4ecf6;
      color: #344054;
      font-size: 30px;
      flex: 0 0 auto;
    }

    .seller-name {
      font-size: 19px;
      font-weight: 800;
      margin: 0;
    }

    .seller-type { color: var(--muted); font-size: 14px; }

    .call-btn {
      width: 100%;
      border: 0;
      border-radius: 16px;
      padding: 13px 16px;
      background: var(--success);
      color: #fff;
      font-weight: 800;
      box-shadow: 0 12px 24px rgba(18,183,106,.22);
      transition: .2s ease;
    }

    .call-btn:hover {
      background: #0ea55e;
      color: #fff;
      transform: translateY(-1px);
    }

    .ghost-btn {
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 12px 14px;
      background: #fff;
      color: #344054;
      font-weight: 700;
      transition: .2s ease;
    }

    .ghost-btn:hover { background: #f7faff; border-color: #cfe2f6; color: var(--brand-dark); }

    .phone-hint { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }

    .detail-list {
      margin-top: 18px;
      border: 1px solid var(--line);
      border-radius: 18px;
      overflow: hidden;
    }

    .detail-row {
      display: grid;
      grid-template-columns: minmax(130px, .86fr) 1fr;
      gap: 12px;
      padding: 13px 16px;
      align-items: center;
      background: #fff;
      border-bottom: 1px solid var(--line);
    }

    .detail-row:nth-child(odd) { background: #f8fafc; }
    .detail-row:last-child { border-bottom: 0; }
    .detail-row span { color: #475467; font-weight: 600; }
    .detail-row strong { color: #1d2939; font-weight: 700; }

    .section-card { padding: 24px; }

    .section-title {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 14px;
      font-weight: 850;
      letter-spacing: -.02em;
      color: #252b37;
    }

    .section-title i { color: var(--brand); }

    .description-text {
      color: #414858;
      font-size: 17px;
      margin: 0;
    }

    .description-text + .description-text { margin-top: 16px; }

    .meta-list {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      margin-top: 18px;
      padding-top: 18px;
      border-top: 1px solid var(--line);
    }

    .meta-item {
      background: #f8fafc;
      border: 1px solid #edf1f6;
      border-radius: 15px;
      padding: 12px;
    }

    .meta-item span { display: block; color: var(--muted); font-size: 13px; }
    .meta-item strong { display: block; margin-top: 3px; color: #344054; }
    .amenities {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .amenities li {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border: 1px solid #dcecff;
      background: #f7fbff;
      color: #344054;
      border-radius: 999px;
      padding: 9px 12px;
      font-weight: 650;
    }

    .map-placeholder {
      min-height: 220px;
      border-radius: 20px;
      background:
        linear-gradient(90deg, rgba(21,151,244,.1) 1px, transparent 1px),
        linear-gradient(rgba(21,151,244,.1) 1px, transparent 1px),
        linear-gradient(135deg, #e9f5ff, #f7fbff);
      background-size: 38px 38px, 38px 38px, auto;
      border: 1px dashed #aad7fb;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 24px;
      color: #35617f;
    }

    .safety-alert {
      background: #fff8eb;
      border: 1px solid #fedf89;
      color: #7a4b08;
      border-radius: 18px;
      padding: 16px;
      display: flex;
      gap: 12px;
      align-items: flex-start;
    }

    .similar-listings {
      padding: 24px 0 6px;
    }

    .similar-subtitle {
      color: var(--muted);
      font-size: 14px;
      font-weight: 600;
    }

    .similar-listings .section-title {
      margin-bottom: 0;
    }
    .mobile-contact-bar {
      display: none;
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 1040;
      background: rgba(255,255,255,.96);
      backdrop-filter: blur(14px);
      border-top: 1px solid var(--line);
      box-shadow: 0 -14px 32px rgba(16,24,40,.12);
      padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    }

    @media (max-width: 1199.98px) {
      .quick-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .meta-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .info-card { position: static; }
    }

    @media (max-width: 767.98px) {
      body { padding-bottom: 82px; }
      .page-shell { width: 100%; margin: 0; }
      .listing-card { border-radius: 0; border-left: 0; border-right: 0; }
      .listing-head { padding: 18px 16px; }
      .owner-actions-panel {
        margin: 14px 16px 0;
        padding: 14px;
        align-items: stretch;
        flex-direction: column;
      }
      .owner-actions-buttons .btn { flex: 1 1 140px; }
      .content-area3 { padding: 16px; }
      .gallery-card { padding: 10px; border-radius: 18px; }
      .gallery-main-img { aspect-ratio: 4 / 3; }
      .zoom-hint2 { font-size: 12px; padding: 7px 10px; }
      .gallery-thumb { flex-basis: 92px; border-radius: 12px; }
      .quick-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
      .detail-row { grid-template-columns: 1fr; gap: 2px; padding: 12px 14px; }
      .section-card { padding: 18px; border-radius: 18px; }
      .similar-listings { padding: 18px 0 4px; }
      .description-text { font-size: 15.5px; }
      .meta-list { grid-template-columns: 1fr; }
      .mobile-contact-bar { display: flex; gap: 10px; align-items: center; }
      .desktop-actions { display: none !important; }
    }
