/* N360 - Figma Property Modal Styles */
.property-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.property-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.property-modal {
  position: relative;
  background: #fff;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  /* override old main.css column */
  overflow: hidden;
  transform: none !important;
  /* override old modal animation */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  align-items: stretch;
  /* sidebar fills full height */
}

@media(min-width: 768px) {
  .property-overlay {
    padding: 24px 50px;
  }

  .property-modal {
    border-radius: 16px;
    max-width: 1340px !important;
    max-height: 960px !important;
  }
}

/* ── Sidebar (Desktop) ────────────────────────────────── */
.pm-sidebar {
  display: none;
  width: 118px;
  background: #fff;
  border-right: 1px solid #f3f4f6;
  flex-direction: column;
  flex-shrink: 0;
  align-self: stretch;
  /* stretch to modal height */
  height: 100%;
  /* explicit height */
  overflow: hidden;
}

@media(min-width: 768px) {
  .pm-sidebar {
    display: flex;
  }
}

.pm-sidebar-btn {
  flex: 1;
  min-height: 0;
  /* allow shrinking below content size */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s;
  background: transparent;
  border: none;
  padding: 4px 0;
  width: 100%;
}

.pm-sidebar-btn:hover {
  background: #f9fafb;
}

.pm-sidebar-btn.active {
  background: #ecfdf5;
}

.pm-sidebar-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  transition: background 0.2s;
  flex-shrink: 0;
  /* don't shrink icon circle */
}

.pm-sidebar-btn.active .pm-sidebar-icon {
  background: #10b981;
}

.pm-sidebar-icon i {
  font-size: 20px;
  color: #6b7280;
}

.pm-sidebar-btn.active .pm-sidebar-icon i {
  color: #fff;
}

.pm-sidebar-label {
  text-align: center;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #6b7280;
  line-height: 1.2;
  padding: 0 4px;
  word-break: break-word;
  max-width: 100%;
}

.pm-sidebar-btn.active .pm-sidebar-label {
  color: #059669;
}

/* Main Area */
.pm-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Mobile Bar */
.pm-mobile-bar {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  background: #fff;
  flex-shrink: 0;
}

@media(min-width: 768px) {
  .pm-mobile-bar {
    display: none;
  }
}

.pm-hamburger {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #374151;
}

.pm-mobile-info {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
}

.pm-mobile-info-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-mobile-info-loc {
  font-size: 11px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pm-mobile-actions {
  display: flex;
  gap: 4px;
}

.pm-btn-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  cursor: pointer;
}

.pm-btn-circle:hover {
  background: #f3f4f6;
}

/* Header (Desktop) */
.pm-header {
  display: none;
  height: 248px;
  position: relative;
  flex-shrink: 0;
}

@media(min-width: 768px) {
  .pm-header {
    display: flex;
  }
}

.pm-header-left {
  flex: 1;
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.pm-header-left img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-header-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 50%, rgba(255, 255, 255, 0.2) 100%);
}

.pm-header-content {
  position: relative;
  z-index: 10;
  height: 100%;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pm-header-title {
  font-size: 22px;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
  max-width: 600px;
}

.pm-header-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.pm-badge-dark {
  background: #1f2937;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.pm-badge-green {
  background: #10b981;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 0.05em;
  font-weight: 600;
  display: flex;
  gap: 6px;
  align-items: center;
}

.pm-header-right {
  display: flex;
  width: 340px;
  flex-shrink: 0;
}

.pm-header-main-img {
  width: 220px;
  overflow: hidden;
}

.pm-header-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-header-thumbs {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-left: 3px solid #fff;
}

.pm-header-thumb {
  flex: 1;
  border-bottom: 3px solid #fff;
  position: relative;
  overflow: hidden;
}

.pm-header-thumb:last-child {
  border-bottom: none;
}

.pm-header-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-thumb-more {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
}

/* Header (Mobile) */
.pm-header-mobile {
  height: 150px;
  position: relative;
  flex-shrink: 0;
}

@media(min-width: 768px) {
  .pm-header-mobile {
    display: none;
  }
}

.pm-header-mobile img.main {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-header-mobile-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

.pm-header-mobile-badges {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
}

.pm-header-mobile-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 72px;
  display: flex;
  flex-direction: column;
}

/* ── Content Area ─────────────────────────────────────── */
.pm-content {
  flex: 1;
  overflow-y: auto;
  position: relative;
  min-height: 0;
}

/* Override old main.css .pm-tab-pane { padding: 18px 20px } */
.pm-tab-pane {
  display: none !important;
  height: 100%;
  padding: 0 !important;
}

.pm-tab-pane.active {
  display: block !important;
}

/* Drawer */
.pm-drawer {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
}

.pm-drawer[aria-hidden="true"] {
  display: none;
}

@media(min-width: 768px) {
  .pm-drawer {
    display: none !important;
  }
}

.pm-drawer-panel {
  width: 256px;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.pm-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
  font-weight: 600;
}

.pm-drawer-close {
  background: none;
  border: none;
  font-size: 18px;
}

.pm-drawer-backdrop {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
}

.pm-drawer-tab {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #f9fafb;
  cursor: pointer;
}

.pm-drawer-tab.active {
  background: #ecfdf5;
}

.pm-drawer-tab-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-drawer-tab.active .pm-drawer-tab-icon {
  background: #10b981;
  color: #fff;
}

.pm-drawer-tab-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  flex: 1;
}

.pm-drawer-tab.active .pm-drawer-tab-label {
  color: #059669;
}

/* Dialog overlays */
.pm-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-dialog-box {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  margin: 16px;
}

.pm-dialog-article {
  max-width: 600px;
  padding: 0;
  overflow: hidden;
}

.pm-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 18px;
}

.pm-dialog-x {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pm-dialog-x:hover {
  background: #f3f4f6;
}

/* Global utilities */
.btn-share,
.btn-fav,
.btn-close-desk {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.btn-share:hover {
  background: #ecfdf5;
}

.btn-fav:hover {
  background: #fff1f2;
}

.btn-close-desk:hover {
  background: #f3f4f6;
}

.abs-top-right {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Tab content basic */
.pm-tab-p {
  padding: 24px;
}

.pm-card {
  background: #f9fafb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.pm-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Virtual Tour full */
.pm-tour-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pm-tour-wrap iframe {
  flex: 1;
  border: none;
}

.pm-tour-actions {
  padding: 8px 12px;
  background: #fff;
  border-top: 1px solid #f3f4f6;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Info grid - compact chips (6 per row) */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.amenity-card {
  background: #f9fafb;
  border-radius: 12px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: 0.2s;
  cursor: pointer;
}

.amenity-card:hover {
  background: #ecfdf5;
  transform: scale(1.02);
}

.amenity-icon {
  font-size: 28px;
}

.amenity-label {
  font-size: 12px;
  color: #374151;
}

/* Info grid – Figma style (5 per row, big cards) */
.amenities-grid-compact {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 8px;
}

@media(max-width: 900px) {
  .amenities-grid-compact {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media(max-width: 600px) {
  .amenities-grid-compact {
    grid-template-columns: repeat(3, 1fr);
  }
}

.amenity-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 8px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f0f2f5;
  cursor: default;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: center;
}

.amenity-chip:hover {
  border-color: #10b981;
  box-shadow: 0 2px 10px rgba(16, 185, 129, .08);
}

.amenity-chip-icon {
  font-size: 40px;
  line-height: 1;
}

.amenity-chip-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  line-height: 1.3;
  word-break: break-word;
}

/* Collapsible description – max-height approach (more reliable than webkit-line-clamp) */
.pm-desc-wrap {
  position: relative;
}

.pm-desc-text {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
  max-height: calc(1.7em * 4);
  /* 4 lines */
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.pm-desc-text.pm-desc-expanded {
  max-height: 2000px;
  /* large enough to show everything */
}

.pm-desc-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #10b981;
  font-size: 13px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.pm-desc-toggle:hover {
  color: #059669;
}

/* Bookings */
.booking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.booking-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: 0.2s;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.booking-card:hover {
  border-color: #10b981;
  background: #ecfdf5;
}

.bk-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
}

/* Gallery – bigger photos */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 16px;
}

@media(min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

.gallery-img-wrap {
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  background: #f3f4f6;
}

.gallery-img-wrap:first-child {
  grid-column: span 2;
  /* first photo spans full width */
  aspect-ratio: 16/7;
}

@media(min-width: 768px) {
  .gallery-img-wrap:first-child {
    grid-column: span 2;
  }
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}

.gallery-img-wrap:hover img {
  transform: scale(1.04);
}

/* Reviews */
.review-item {
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.review-item-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.review-item-name {
  font-weight: 600;
  font-size: 14px;
}

.review-item-date {
  color: #9ca3af;
  font-size: 12px;
}

.review-item-text {
  font-size: 14px;
  color: #4b5563;
  margin-top: 8px;
}

/* News */
.news-item {
  display: flex;
  gap: 16px;
  background: #f9fafb;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.news-item-img {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

@media(min-width: 768px) {
  .news-item-img {
    width: 140px;
    height: 140px;
  }
}

.news-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item-body {
  padding: 12px 16px;
  flex: 1;
}

.news-item-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}

.news-item-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.news-item-text {
  font-size: 13px;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Contact Forms */
.form-ctrl {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  outline: none;
  margin-bottom: 12px;
  font-family: inherit;
}

.form-ctrl:focus {
  border-color: #10b981;
}

.btn-emerald {
  width: 100%;
  padding: 12px;
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.btn-emerald:hover {
  background: #059669;
}

/* Map location */
.pm-map-container {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.pm-map-bar {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
  flex-wrap: wrap;
}

.pm-map-btn {
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
  color: #4b5563;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pm-map-btn:hover {
  background: #f3f4f6;
}

#pm-leaflet-contact {
  width: 100%;
  height: 380px;
  z-index: 1;
}

/* ── Mobile bottom navigation ──────────────────────────── */
.pm-mobile-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f3f4f6;
  background: #fff;
  padding: 10px 12px;
  flex-shrink: 0;
}

@media(min-width: 768px) {
  .pm-mobile-nav {
    display: none;
  }
}

.pm-mobile-nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #10b981;
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.pm-mobile-nav-btn:hover {
  background: #ecfdf5;
}

.pm-mobile-nav-label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  text-align: center;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Contact reveal button ───────────────────────────── */
.pm-btn-reveal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.pm-btn-reveal:hover {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

/* ── Send message compact button ────────────────────── */
.pm-btn-send {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 9px 18px;
  cursor: pointer;
  transition: background 0.2s;
}

.pm-btn-send:hover {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

/* ── Share platform buttons ─────────────────────────── */
.pm-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.pm-share-btn:hover {
  opacity: 0.88;
  color: #fff;
}

/* ── Contact form 2-column row ──────────────────────── */
.pm-contact-form-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.pm-contact-form-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pm-contact-form-right {
  flex: 0 0 180px;
  min-width: 0;
}

@media(max-width: 600px) {
  .pm-contact-form-row {
    flex-direction: column;
  }

  .pm-contact-form-right {
    flex: 1;
    width: 100%;
  }
}

/* ── Section label ────────────────────────────────── */
.pm-section-label {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}

/* ── Address block ────────────────────────────────── */
.pm-address-block {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  padding: 12px 16px;
}

.pm-address-main {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.pm-address-sub {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

/* ── Contact button row ───────────────────────────── */
.pm-contact-btns-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pm-btn-half {
  flex: 1;
  justify-content: center;
}

.pm-btn-message-green {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  background: #10b981;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.pm-btn-message-green:hover {
  background: #059669;
}

/* ── Availability cards (3 in a row) ─────────────── */
.pm-availability-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media(max-width: 600px) {
  .pm-availability-row {
    grid-template-columns: 1fr;
  }
}

.pm-avail-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.pm-avail-card:hover {
  border-color: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, .12);
}

.pm-avail-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.pm-avail-booking {
  background: #003580;
}

.pm-avail-airbnb {
  background: #ff5a5f;
}

.pm-avail-sub {
  font-size: 10px;
  color: #6b7280;
}

.pm-avail-name {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.pm-avail-ext {
  margin-left: auto;
  font-size: 11px;
  color: #9ca3af;
}


.pm-streetview-dots {
  display: inline-flex;
  gap: 2px;
  margin-right: 5px;
  align-items: center;
}

.pm-streetview-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* ── Availability query section in msg dialog ──────── */
.pm-avail-toggle-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin: 8px 0;
}

.pm-avail-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #f9fafb;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  transition: background 0.15s;
  text-align: left;
}

.pm-avail-toggle-btn:hover {
  background: #ecfdf5;
}

.pm-avail-section {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  padding: 0 14px;
  background: #fff;
}

.pm-avail-dates {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 0 8px;
}

.pm-avail-extras {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
}

.pm-avail-field {
  flex: 1;
  min-width: 0;
}

.pm-avail-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

@media(max-width: 480px) {
  .pm-avail-dates {
    flex-direction: column;
  }

  .pm-avail-extras {
    flex-direction: column;
  }
}
/* AI Magic Rewrite Styles */
.ai-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
  min-height: 36px;
}
.btn-ai-magic {
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
  padding: 8px 18px;
  border-radius: 9999px; /* Pill shape */
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn-ai-magic:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}
.btn-ai-magic i {
  color: #111827; /* Dark icon */
}
.btn-ai-magic:active { 
  transform: scale(0.98); 
}
.btn-ai-magic:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: not-allowed;
  transform: none;
}
.btn-ai-magic:disabled i {
  color: #9ca3af;
}
.ai-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  animation: fadeInRight 0.3s ease;
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}
.ai-loading {
  opacity: 0.6;
  pointer-events: none;
}
.ai-controls .btn-xs { 
  padding: 8px 18px; 
  font-size: 14px; 
  border-radius: 9999px; /* Pill shape */
  font-weight: 500; 
  cursor: pointer; 
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
/* Ensure brand button matches style but with color */
.ai-controls .btn-brand {
  background: #ffffff;
  color: #059669; /* Green text */
  border: 1px solid #10b981; /* Green border */
}
.ai-controls .btn-brand:hover {
  background: #ecfdf5; /* Light green hover */
}
.ai-controls .btn-outline {
  background: #ffffff;
  color: #4b5563;
  border: 1px solid #d1d5db;
}
.ai-controls .btn-outline:hover {
  background: #f3f4f6;
}
.hidden { display: none !important; }

