/* airport-info.css - Styles for airportinfo.html fragment (loaded via fetch) */

/* ── SEO Breadcrumb ─── */
.seo-breadcrumb {
  font-size: 13px;
  color: var(--dsc-text-muted, #a1a1aa);
  margin-bottom: 8px;
}
.seo-breadcrumb a {
  color: var(--dsc-primary, #00aeef);
  text-decoration: none;
}
.seo-breadcrumb a:hover {
  text-decoration: underline;
}
.seo-breadcrumb-sep {
  margin: 0 6px;
  opacity: 0.5;
}

/* ── Aviation Disclaimer Banner ─── */
.aviation-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(161, 161, 170, 0.6);
  line-height: 1.4;
  margin: 4px 0 12px;
  text-align: center;
}
.aviation-disclaimer i {
  font-size: 10px;
  flex-shrink: 0;
  opacity: 0.7;
}
.aviation-disclaimer a {
  color: rgba(161, 161, 170, 0.6);
  text-decoration: underline;
  text-decoration-style: dotted;
}
.aviation-disclaimer a:hover {
  color: var(--dsc-text-muted, #a1a1aa);
}

/* ── SEO Description Paragraph ─── */
.seo-description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--dsc-text-muted, #a1a1aa);
  margin: 0 0 12px;
  text-align: center;
}
.seo-description a {
  color: var(--dsc-primary, #00aeef);
  text-decoration: none;
}
.seo-description a:hover {
  text-decoration: underline;
}

/* ── FAQ Section (accordion) ─── */
details.seo-faq > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
}
details.seo-faq > summary::-webkit-details-marker { display: none; }
details.seo-faq > summary::marker { display: none; content: ''; }
.faq-chevron {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.45;
  transition: transform 0.25s;
}
details.seo-faq[open] .faq-chevron {
  transform: rotate(180deg);
}
.faq-list {
  margin: 0;
  padding: 14px 0 0;
}
.faq-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--dsc-border, rgba(255,255,255,0.08));
}
.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.faq-item:first-child {
  padding-top: 0;
}
.faq-item dt {
  font-weight: 600;
  font-size: 14px;
  color: var(--dsc-text, #e4e4e7);
  margin-bottom: 6px;
}
.faq-item dd {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* ── Nearby Airports Grid ─── */
.nearby-airports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.nearby-airport-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid var(--dsc-border);
  border-radius: 10px;
  background: var(--dsc-bg);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nearby-airport-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.nearby-icao {
  font-weight: 700;
  font-size: 15px;
  color: var(--dsc-primary, #00aeef);
}
.nearby-name {
  font-size: 13px;
  color: var(--dsc-text, #e4e4e7);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nearby-dist {
  font-size: 11px;
  color: var(--dsc-text-muted, #71717a);
  margin-top: 4px;
}

/* ── Animated border angle (CSS Houdini) ─── */
@property --border-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}
@keyframes rotate-border { to { --border-angle: 360deg; } }

/* CSS variables */
:root {
    --primary-color: #00aeef;
    --secondary-color: #10b981;
    --font-family: 'Inter', sans-serif;
    --transition-duration: 0.3s;
}

/* List styles */
.ai-list {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ai-list li {
  flex: 0 0 calc(50% - 6px);
  padding: 10px;
  border: 1px solid var(--dsc-border);
  background-color: var(--dsc-bg);
  color: var(--dsc-text);
  border-radius: 10px;
  transition: all var(--transition-duration);
  box-shadow: none;
}

.ai-list li:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.arrow {
  margin-right: 10px;
  transition: transform 0.3s ease;
  color: var(--dsc-text-muted);
}

.ai-title {
  margin-top: 10px;
  margin-bottom: 5px;
  color: var(--dsc-text);
}

.ai-service-category {
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--dsc-primary);
}

/* Section containers */
#services-ap, #basic-ap, #extra-ap {
    border: 1px solid var(--dsc-border);
    padding: 20px;
    margin-bottom: 20px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    border-radius: 16px;
    box-shadow: none;
    background: transparent;
}

/* Responsive list */
@media (max-width: 767px) {
  .ai-list li {
    flex: 0 0 100%;
  }
}

/* Provider description (paragraph) */
.provider-description {
    margin: 0;
    font-size: 13px;
    font-style: italic;
    line-height: 1.6;
    color: var(--dsc-text-muted, #9ca3af);
    white-space: pre-line;
    word-break: break-word;
}

/* Clamped state — max 4 lines, expandable */
.provider-description.clamped {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.provider-description.clamped.expanded {
    -webkit-line-clamp: unset;
    overflow: visible;
}

/* "Show more / less" toggle */
.provider-desc-toggle {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--dsc-primary, #00aeef);
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    font-family: inherit;
    position: relative;
    z-index: 2;
}
.provider-desc-toggle:hover {
    text-decoration: underline;
}

/* Remarks textarea (inside tables) */
.remarks-textarea {
    width: 100%;
    border: 1px solid var(--dsc-border);
    background: var(--dsc-bg);
    color: var(--dsc-text);
    border-radius: 10px;
    padding: 10px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    line-height: 1.5;
}

/* Airport name heading */
h1 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--dsc-primary);
    font-weight: bold;
}

/* Link to full airport page */
.full-page-link {
    display: block;
    text-align: center;
    margin: -4px 0 12px;
    font-size: 0.85rem;
    color: var(--dsc-primary);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity var(--transition-duration);
}

.full-page-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.full-page-link i {
    margin-right: 4px;
    font-size: 0.75rem;
}

.ai-list {
    list-style-type: none;
    padding: 0;
}

/* Data indicators with check/cross marks */
.data-international::before,
.data-isprivate::before,
.data-isMilitary::before {
    font-weight: bold;
}

.data-international[data-value="1"]::before {
    content: '\2713';
    color: #10b981;
}

.data-international[data-value="0"]::before {
    content: '\2715';
    color: #ef4444;
}

.data-isprivate[data-value="1"]::before {
    content: '\2713';
    color: #10b981;
}

.data-isprivate[data-value="0"]::before {
    content: '\2715';
    color: #ef4444;
}

.data-isMilitary[data-value="1"]::before {
    content: '\2713';
    color: #10b981;
}

.data-isMilitary[data-value="0"]::before {
    content: '\2715';
    color: #ef4444;
}

.data-VFR::before,
.data-IFR::before,
.data-uncategorized::before {
  font-weight: bold;
}

.data-VFR[data-value="1"]::before {
  content: '\2713';
  color: #10b981;
}

.data-VFR[data-value="0"]::before {
  content: '\2715';
  color: #ef4444;
}

.data-IFR[data-value="1"]::before {
  content: '\2713';
  color: #10b981;
}

.data-IFR[data-value="0"]::before {
  content: '\2715';
  color: #ef4444;
}

.data-uncategorized[data-value="1"]::before {
  content: '\2713';
  color: #10b981;
}

.data-uncategorized[data-value="0"]::before {
  content: '\2715';
  color: #ef4444;
}

/* Satellite map */
.satellite-image-container {
    margin-top: 20px;
}

.satellite-map {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Expandable sections */
.expandable-header {
    cursor: pointer;
    color: var(--dsc-text);
}

.ai-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.expandable-header.expanded ~ .ai-content {
    max-height: 1000vh;
}

/* Inside narrow airport panel: single column */
.airport-panel .ai-list li {
    flex: 0 0 100%;
}

/* When panel is expanded: two columns */
.airport-panel.expanded .ai-list li {
    flex: 0 0 calc(50% - 6px);
}

/* ── No services CTA ── */
.no-services-cta {
    text-align: center;
    padding: 24px 16px;
    color: var(--dsc-text-muted, #94a3b8);
}
.no-services-cta i {
    font-size: 28px;
    color: rgba(0, 174, 239, 0.3);
    margin-bottom: 12px;
    display: block;
}
.no-services-cta p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 6px;
}
.no-services-cta a {
    color: var(--dsc-primary, #00aeef);
    font-weight: 600;
    text-decoration: none;
}
.no-services-cta a:hover {
    text-decoration: underline;
}

/* ============================================================
   AIRPORT PANEL — card-style stacked tables (narrow 420px)
   ============================================================ */

/* Section containers inside panel */
.airport-panel #services-ap,
.airport-panel #basic-ap,
.airport-panel #extra-ap {
    padding: 16px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Heading: scale down in panel */
.airport-panel h1 {
    font-size: 1.35rem;
    word-break: break-word;
    text-align: center;
}

/* Section titles */
.airport-panel .ai-title {
    font-size: 1rem;
    text-align: left;
}

/* Table headings inside panel */
.airport-panel h3 {
    font-size: 0.95rem;
    margin-bottom: 10px;
    text-align: left;
    color: var(--dsc-primary);
}

/* List items: more breathing room */
.airport-panel .ai-list {
    gap: 8px;
}

.airport-panel .ai-list li {
    padding: 8px 12px;
    text-align: left;
    border-radius: 8px;
}
.airport-panel .ai-list li .field-display {
    font-size: 13px;
}

/* Stack tables vertically inside the narrow panel */
.airport-panel .table-responsive {
    display: block;
    width: 100%;
    border-collapse: collapse;
}

.airport-panel .table-responsive thead {
    display: none;
}

.airport-panel .table-responsive tbody {
    display: block;
}

.airport-panel .table-responsive tr {
    display: block;
    border: 1px solid var(--dsc-border);
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 10px 12px;
    background: var(--dsc-bg);
}

.airport-panel .table-responsive tr.remarks-row {
    border: none;
    padding: 0 0 10px 0;
    margin-top: -6px;
    background: transparent;
}

.airport-panel .table-responsive td {
    display: block;
    text-align: left;
    padding: 5px 0;
    border: none;
    font-size: 13px;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Show label from data-th before each value */
.airport-panel .table-responsive td[data-th]::before {
    content: attr(data-th) ": ";
    font-weight: 600;
    color: var(--dsc-text-muted);
}

/* Remarks row td spans full width */
.airport-panel .table-responsive tr.remarks-row td {
    padding: 0;
}

.airport-panel .table-responsive tr.remarks-row td h4,
.airport-panel .table-responsive tr.remarks-row td h5 {
    font-size: 12px;
    margin: 8px 0 4px;
    text-align: center;
}

/* Textarea inside tables: fit the panel */
.airport-panel .table-responsive textarea {
    width: 100% !important;
    box-sizing: border-box;
    font-size: 12px;
}

/* Provider description in narrow panel */
.airport-panel .provider-description {
    font-size: 12px;
}

/* Word-break for long URLs / phone numbers */
.airport-panel .ai-list li,
.airport-panel .provider-email,
.airport-panel .provider-phone,
.airport-panel .provider-website {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Satellite map: panel sizing */
.airport-panel .satellite-image-container {
    margin-top: 16px;
}

.airport-panel .satellite-map {
    height: 280px;
}

.airport-panel.expanded .satellite-map {
    height: 400px;
}

/* ============================================================
   EXPANDED PANEL — restore normal table layout
   ============================================================ */

/* ============================================================
   EXPANDED PANEL — center content, restore table layout
   ============================================================ */

/* Center all content in expanded panel */
.airport-panel.expanded #airport-panel-body {
    max-width: 900px;
    margin: 0 auto;
}

/* Restore section centering */
.airport-panel.expanded #services-ap,
.airport-panel.expanded #basic-ap,
.airport-panel.expanded #extra-ap {
    padding: 20px;
    text-align: center;
}

/* List items: back to 2 columns, centered grid */
.airport-panel.expanded .ai-list {
    justify-content: center;
    gap: 12px;
}

.airport-panel.expanded .ai-list li {
    text-align: left;
    padding: 10px;
}
.airport-panel.expanded .ai-list li .field-display {
    font-size: 14px;
}

/* Restore normal table layout */
.airport-panel.expanded .table-responsive {
    display: table;
    width: 100%;
}

.airport-panel.expanded .table-responsive thead {
    display: table-header-group;
}

.airport-panel.expanded .table-responsive tbody {
    display: table-row-group;
}

.airport-panel.expanded .table-responsive tr {
    display: table-row;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    padding: 0;
    background: transparent;
}

.airport-panel.expanded .table-responsive td {
    display: table-cell;
    text-align: left;
    padding: 10px 8px;
    font-size: 13px;
    border-bottom: 1px solid var(--dsc-border);
}

.airport-panel.expanded .table-responsive th {
    padding: 10px 8px;
    text-align: left;
}

.airport-panel.expanded .table-responsive td[data-th]::before {
    content: none;
}

.airport-panel.expanded .table-responsive tr.remarks-row {
    display: table-row;
    background: transparent;
    padding: 0;
    margin: 0;
}

.airport-panel.expanded .table-responsive tr.remarks-row td {
    padding: 8px;
}

.airport-panel.expanded h1 {
    font-size: 1.8rem;
    text-align: center;
}

.airport-panel.expanded .ai-title {
    font-size: 1.15rem;
    text-align: center;
}

.airport-panel.expanded h3 {
    font-size: 1.1rem;
    text-align: center;
}

.airport-panel.expanded .provider-description {
    font-size: 13px;
}

/* ============================================================
   INLINE EDITING STYLES
   ============================================================ */

/* Inline edit input / select */
.inline-edit-input,
.inline-edit-select {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--dsc-border);
    background: var(--dsc-bg);
    color: var(--dsc-text);
    font-size: 13px;
    font-family: inherit;
    max-width: 160px;
    vertical-align: middle;
}

.inline-edit-input:focus,
.inline-edit-select:focus {
    outline: none;
    border-color: var(--dsc-primary);
    box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.25);
}

/* Phone input: wider to fit dial code + number */
.inline-edit-input[type="tel"] {
    max-width: 220px;
}
/* intl-tel-input container */
.iti {
    max-width: 280px;
}

/* Textarea style for remarks inline editing */
.inline-edit-textarea {
    width: 100%;
    min-height: 80px;
    max-width: none;
    resize: vertical;
    line-height: 1.5;
    font-family: inherit;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
}

/* Runway / Alternate group title */
.runway-group-title {
    font-size: 0.9rem;
    color: var(--dsc-primary);
    margin: 12px 0 6px;
    font-weight: 600;
}

/* Edit controls container */
.inline-edit-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 4px;
    vertical-align: middle;
}

/* Save button (green) */
.inline-edit-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #22c55e;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
    margin-left: 4px;
}

.inline-edit-save:hover {
    background: rgba(34, 197, 94, 0.3);
}

/* Cancel button (red) */
.inline-edit-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #ef4444;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.inline-edit-cancel:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* Pencil button (shown via JS) — applies to all .field-edit-btn */
.field-edit-btn {
    background: none;
    border: 1px solid var(--dsc-primary);
    color: var(--dsc-primary);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
    vertical-align: middle;
    line-height: 26px;
    text-align: center;
    padding: 0;
    transition: background 0.2s, color 0.2s;
}

.field-edit-btn:hover {
    background: rgba(0, 174, 239, 0.15);
}

/* Hide pencil and display when editing */
[data-field-editable].editing .field-edit-btn {
    display: none !important;
}

[data-field-editable].editing .field-display {
    display: none !important;
}

/* Yellow border on pending submission */
.inline-edit-pending {
    border-color: #eab308 !important;
    box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.3);
}

/* Pending message below field */
.inline-edit-pending-msg {
    display: block;
    font-size: 11px;
    color: #eab308;
    margin-top: 4px;
    line-height: 1.4;
}

/* Contributed-by badge — subtle inline tag */
.contributed-badge {
    display: inline;
    font-size: 9px;
    color: rgba(34, 197, 94, 0.6);
    background: none;
    border: none;
    padding: 0;
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap;
    font-style: italic;
}

/* ============================================================
   SUGGEST EDITS BUTTON & SECTION EDIT BUTTONS
   ============================================================ */

/* Primary "Suggest Edits" button */
.suggest-edits-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--dsc-primary, #00aeef);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    margin: 4px 0 16px;
}

.suggest-edits-btn:hover {
    background: var(--dsc-primary-hover, #38bdf8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.25);
}

.suggest-edits-btn:active {
    transform: translateY(0);
}

.suggest-edits-btn i {
    font-size: 13px;
}

/* Small pencil icon button next to section titles (extra sections in panel) */
.suggest-edit-btn {
    background: none;
    border: 1px solid var(--dsc-primary);
    color: var(--dsc-primary);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
    vertical-align: middle;
    line-height: 26px;
    text-align: center;
    padding: 0;
    transition: background 0.2s, color 0.2s;
}

.suggest-edit-btn:hover {
    background: rgba(0, 174, 239, 0.15);
}

/* Add Runway / Add Alternate button (hidden until edit mode) */
.add-row-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--dsc-primary);
  background: transparent;
  border: 2px dashed var(--dsc-primary);
  border-radius: 10px;
  cursor: pointer;
  margin: 10px 0;
  transition: background 0.2s, color 0.2s;
}

.add-row-btn:hover {
  background: rgba(0, 174, 239, 0.1);
}

/* New group wrapper (Add Runway / Add Alternate form) */
.new-group-wrapper {
  border: 1px solid rgba(0, 174, 239, 0.25);
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
  background: rgba(0, 174, 239, 0.04);
}

.new-group-wrapper .ai-list {
  gap: 8px;
}

.new-group-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.new-group-field strong {
  min-width: 120px;
  flex-shrink: 0;
}

.new-group-field .inline-edit-input,
.new-group-field .inline-edit-select {
  flex: 1;
  min-width: 120px;
  max-width: none;
}

.new-group-field .inline-edit-textarea {
  width: 100%;
  flex-basis: 100%;
}

/* Save / Remove action buttons */
.new-group-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.new-group-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--dsc-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.new-group-save:hover:not(:disabled) {
  background: var(--dsc-primary-hover, #38bdf8);
  transform: translateY(-1px);
}

.new-group-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.new-group-remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: #ef4444;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.new-group-remove:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Status message below the actions */
.new-group-status {
  font-size: 13px;
  margin-top: 8px;
  min-height: 20px;
}

/* Muted text for empty sections */
.empty-section-msg {
    color: var(--dsc-text-muted, #9ca3af);
    font-style: italic;
    font-size: 13px;
    margin: 8px 0;
}

/* ============================================================
   SUGGEST EDIT MODAL — modernized with design tokens
   ============================================================ */

/* Overlay */
.suggest-edit-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 20000;
    align-items: center;
    justify-content: center;
}

/* Card */
.suggest-edit-card {
    background: var(--dsc-bg-elevated, #1e293b);
    border: 1px solid var(--dsc-border);
    border-radius: 16px;
    padding: 28px;
    max-width: 450px;
    width: 90%;
    margin: auto;
    margin-top: 15vh;
    color: var(--dsc-text);
    position: relative;
}

/* Close button */
.suggest-edit-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: var(--dsc-text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.suggest-edit-close:hover {
    color: var(--dsc-text);
}

/* Title */
.suggest-edit-card h3 {
    margin: 0 0 16px 0;
    color: var(--dsc-primary);
    font-size: 16px;
}

/* Form group */
.suggest-edit-group {
    margin-bottom: 12px;
}

.suggest-edit-group:last-of-type {
    margin-bottom: 16px;
}

.suggest-edit-group label {
    font-size: 13px;
    color: var(--dsc-text-muted);
    display: block;
    margin-bottom: 4px;
}

/* Inputs, selects, and textareas inside the modal */
.suggest-edit-card input,
.suggest-edit-card select,
.suggest-edit-card textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--dsc-border);
    background: var(--dsc-bg);
    color: var(--dsc-text);
    font-size: 13px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.suggest-edit-card input:focus,
.suggest-edit-card select:focus,
.suggest-edit-card textarea:focus {
    outline: none;
    border-color: var(--dsc-primary);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
}

.suggest-edit-card textarea {
    resize: vertical;
}

/* Submit button */
.suggest-edit-submit {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: var(--dsc-primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: background 0.2s, transform 0.15s;
}

.suggest-edit-submit:hover {
    background: var(--dsc-primary-hover, #38bdf8);
    transform: translateY(-1px);
}

.suggest-edit-submit:active {
    transform: translateY(0);
}

.suggest-edit-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Status text */
.suggest-edit-status {
    margin-top: 10px;
    font-size: 13px;
    text-align: center;
    color: var(--dsc-text-muted);
}

/* ── Provider Tier Badges ────────────────────────────────── */
.provider-tier-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 8px;
}

/* Metallic gold badge */
.tier-gold {
    background: linear-gradient(135deg, #d19e1d 0%, #ffd86e 40%, #e3a812 60%, #ffd86e 80%, #d19e1d 100%);
    color: #1a1a1a;
    font-size: 12px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 2px 10px rgba(212, 175, 55, 0.5);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Metallic silver badge */
.tier-silver {
    background: linear-gradient(135deg, #8e8e8e 0%, #d4d4d4 35%, #e8e8e8 50%, #d4d4d4 65%, #a0a0a0 100%);
    color: #1a1a1a;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(192, 192, 192, 0.35);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Metallic bronze badge */
.tier-bronze {
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 35%, #DEB887 50%, #CD853F 65%, #A0522D 100%);
    color: #1a1a1a;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(205, 127, 50, 0.35);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Indigo premium badge with glow */
.tier-premium {
    background: linear-gradient(135deg, #4f46e5 0%, #818cf8 40%, #6366f1 60%, #818cf8 80%, #4f46e5 100%);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 2px 10px rgba(99, 102, 241, 0.45);
    text-shadow: 0 0 6px rgba(129, 140, 248, 0.5);
}


/* ══════════════════════════════════════════════════════════════
   Provider Card Tier Hierarchy
   Visual escalation: Free → Bronze → Silver → Gold → Premium
   Each paid tier "unlocks" more visual effects
   ══════════════════════════════════════════════════════════════ */

/* ── Shared keyframes ─── */
@keyframes shimmer-sweep {
    0%   { transform: translateX(-200%) skewX(-25deg); }
    100% { transform: translateX(400%) skewX(-25deg); }
}
@keyframes gold-glow-pulse {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(212, 175, 55, 0.25),
            0 0 40px rgba(212, 175, 55, 0.10),
            inset 0 0 30px rgba(212, 175, 55, 0.04);
    }
    50% {
        box-shadow:
            0 0 30px rgba(212, 175, 55, 0.40),
            0 0 60px rgba(212, 175, 55, 0.15),
            inset 0 0 40px rgba(212, 175, 55, 0.08);
    }
}
@keyframes premium-holo-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── Base card ─── */
.provider-card {
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    transition: box-shadow 0.4s ease, transform 0.2s ease;
    position: relative;
}

/* ─────────────────────────────────────────────────────────────
   GOLD — Animated rotating border + shimmer sweep + pulsing glow
   The unmistakable premium showcase
   ───────────────────────────────────────────────────────────── */
.card-gold {
    --border-w: 2px;
    border: var(--border-w) solid transparent;
    border-radius: 12px;
    padding: 22px 22px 22px 22px;
    background:
        linear-gradient(rgba(30, 32, 40, 0.97), rgba(30, 32, 40, 0.92)) padding-box,
        conic-gradient(
            from var(--border-angle),
            #8B6914 0%, #D4A017 20%, #FFD700 40%,
            #D4A017 60%, #8B6914 80%, #D4A017 100%
        ) border-box;
    animation:
        rotate-border 4s linear infinite,
        gold-glow-pulse 3s ease-in-out infinite;
    overflow: hidden;
    isolation: isolate;
}

/* Gold shimmer light sweep */
.card-gold::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 215, 0, 0.04),
        rgba(255, 215, 0, 0.10),
        rgba(255, 255, 255, 0.08),
        rgba(255, 215, 0, 0.04),
        transparent
    );
    transform: translateX(-200%) skewX(-25deg);
    animation: shimmer-sweep 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

/* Gold inner top-edge highlight (glass ridge) */
.card-gold::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.4), transparent);
    z-index: 2;
    pointer-events: none;
}

.card-gold .provider-name {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
}

.card-gold:hover {
    box-shadow:
        0 0 35px rgba(212, 175, 55, 0.50),
        0 0 70px rgba(212, 175, 55, 0.20),
        inset 0 0 50px rgba(212, 175, 55, 0.10);
}

/* ─────────────────────────────────────────────────────────────
   SILVER — Glassmorphism + glow + bright top edge
   Clearly a paid tier, elegant and clean
   ───────────────────────────────────────────────────────────── */
.card-silver {
    border: 1px solid rgba(192, 192, 192, 0.20);
    border-top: 1px solid rgba(192, 192, 192, 0.35);
    background: rgba(192, 192, 192, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 18px;
    box-shadow:
        0 0 20px rgba(192, 192, 192, 0.12),
        inset 0 0 25px rgba(192, 192, 192, 0.03);
    overflow: hidden;
}

/* Silver hover shimmer sweep */
.card-silver::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.06) 45%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.06) 55%,
        transparent 70%
    );
    transform: skewX(-25deg);
    transition: left 0.8s ease;
    pointer-events: none;
}
.card-silver:hover::after {
    left: 150%;
}

.card-silver:hover {
    box-shadow:
        0 0 30px rgba(192, 192, 192, 0.25),
        0 0 50px rgba(192, 192, 192, 0.08),
        inset 0 0 35px rgba(192, 192, 192, 0.05);
    border-color: rgba(192, 192, 192, 0.35);
}

/* ─────────────────────────────────────────────────────────────
   BRONZE — Warm tinted card with subtle glow
   Visibly above free, with a warm metallic accent
   ───────────────────────────────────────────────────────────── */
.card-bronze {
    border: 1px solid rgba(205, 127, 50, 0.30);
    border-top: 1px solid rgba(205, 127, 50, 0.45);
    background: rgba(205, 127, 50, 0.05);
    padding: 18px;
    box-shadow: 0 0 18px rgba(205, 127, 50, 0.10);
}

.card-bronze:hover {
    box-shadow:
        0 0 25px rgba(205, 127, 50, 0.22),
        0 0 45px rgba(205, 127, 50, 0.08);
    border-color: rgba(205, 127, 50, 0.50);
}

/* ─────────────────────────────────────────────────────────────
   PREMIUM — Animated rotating indigo border + holographic overlay
   The ultimate tier, rainbow-tinged and alive
   ───────────────────────────────────────────────────────────── */
.card-premium {
    --border-w: 2px;
    border: var(--border-w) solid transparent;
    border-radius: 12px;
    padding: 22px;
    background:
        linear-gradient(rgba(30, 32, 40, 0.97), rgba(30, 32, 40, 0.92)) padding-box,
        conic-gradient(
            from var(--border-angle),
            #4f46e5 0%, #6366f1 20%, #818cf8 40%,
            #a78bfa 50%, #818cf8 60%, #6366f1 80%, #4f46e5 100%
        ) border-box;
    animation: rotate-border 3.5s linear infinite;
    box-shadow:
        0 0 20px rgba(99, 102, 241, 0.20),
        0 0 45px rgba(99, 102, 241, 0.08),
        inset 0 0 30px rgba(99, 102, 241, 0.03);
    overflow: hidden;
    isolation: isolate;
}

/* Premium holographic color-shift overlay */
.card-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        125deg,
        rgba(255, 0, 128, 0.04) 0%,
        rgba(0, 255, 128, 0.04) 25%,
        rgba(0, 128, 255, 0.05) 50%,
        rgba(255, 128, 0, 0.04) 75%,
        rgba(255, 0, 128, 0.04) 100%
    );
    background-size: 200% 200%;
    animation: premium-holo-shift 8s ease infinite;
    pointer-events: none;
    z-index: 0;
}

/* Premium shimmer sweep */
.card-premium::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(129, 140, 248, 0.05),
        rgba(255, 255, 255, 0.10),
        rgba(129, 140, 248, 0.05),
        transparent
    );
    transform: translateX(-200%) skewX(-25deg);
    animation: shimmer-sweep 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

.card-premium .provider-name {
    color: #a78bfa;
    text-shadow: 0 0 8px rgba(129, 140, 248, 0.3);
}

.card-premium:hover {
    box-shadow:
        0 0 35px rgba(99, 102, 241, 0.40),
        0 0 70px rgba(99, 102, 241, 0.12),
        inset 0 0 50px rgba(99, 102, 241, 0.06);
}

/* ─────────────────────────────────────────────────────────────
   FREE / STANDARD — Intentionally bare
   Maximum visual gap from paid tiers
   ───────────────────────────────────────────────────────────── */
.card-free,
.card-standard {
    border: none;
    background: none;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
}
.card-free .provider-description,
.card-standard .provider-description {
    display: none;
}

/* ── Provider logo (paid tiers) ─── */
.provider-logo {
    display: block;
    max-width: 160px;
    max-height: 80px;
    margin: 0 auto 12px;
    border-radius: 8px;
    object-fit: contain;
}

/* ══════════════════════════════════════════════════════════════
   PROVIDER CARD INTERIOR — Header / Contacts / Description
   ══════════════════════════════════════════════════════════════ */

/* ── Header: logo + identity ─── */
.provider-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}

.provider-header .provider-logo {
    width: 64px;
    height: 64px;
    max-width: 64px;
    max-height: 64px;
    margin: 0;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
}

.provider-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    min-width: 0;
}

.provider-name {
    font-size: 18px;
    font-weight: 700;
    color: #e4e4e7;
    line-height: 1.2;
    word-break: break-word;
}

.provider-identity .provider-tier-badge {
    margin-left: 0;
    flex-shrink: 0;
}

/* Tier-specific name colors */
.card-silver .provider-name {
    color: #d4d4d4;
}
.card-bronze .provider-name {
    color: #deb887;
}

/* ── Contacts grid ─── */
.provider-contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    padding: 12px 0;
    margin-bottom: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    z-index: 2;
}

.pv-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--dsc-text-muted, #9ca3af);
    text-decoration: none;
    min-width: 0;
    transition: color 0.2s;
}

.pv-contact i {
    width: 18px;
    text-align: center;
    font-size: 12px;
    opacity: 0.5;
    flex-shrink: 0;
}

.pv-contact span {
    word-break: break-all;
    overflow-wrap: break-word;
}

a.pv-contact:hover {
    color: var(--dsc-text, #e4e4e7);
}
a.pv-contact:hover i {
    opacity: 0.8;
}

/* Tier-colored contact icons */
.card-gold .pv-contact i    { color: rgba(255, 215, 0, 0.55); }
.card-silver .pv-contact i  { color: rgba(192, 192, 192, 0.55); }
.card-bronze .pv-contact i  { color: rgba(205, 127, 50, 0.55); }
.card-premium .pv-contact i { color: rgba(129, 140, 248, 0.55); }

/* ── Description quote ─── */
.provider-desc-wrap {
    margin-top: 12px;
    padding-left: 12px;
    border-left: 3px solid rgba(255, 255, 255, 0.10);
    position: relative;
    z-index: 2;
}

/* Tier-colored description accent */
.card-gold .provider-desc-wrap    { border-left-color: rgba(255, 215, 0, 0.30); }
.card-silver .provider-desc-wrap  { border-left-color: rgba(192, 192, 192, 0.25); }
.card-bronze .provider-desc-wrap  { border-left-color: rgba(205, 127, 50, 0.25); }
.card-premium .provider-desc-wrap { border-left-color: rgba(99, 102, 241, 0.30); }

/* ── Responsive: contacts single column on mobile ─── */
@media (max-width: 600px) {
    .provider-contacts {
        grid-template-columns: 1fr;
    }
    .provider-header .provider-logo {
        width: 48px;
        height: 48px;
        max-width: 48px;
        max-height: 48px;
    }
    .provider-name {
        font-size: 16px;
    }
}

/* ══════════════════════════════════════════════════════════════
   SERVICES TAB BAR + CLASSIFIEDS GRID
   ══════════════════════════════════════════════════════════════ */

/* Tab bar — horizontal scrollable row */
.services-tab-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 0 12px;
    margin-bottom: 8px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.services-tab-bar::-webkit-scrollbar {
    height: 4px;
}
.services-tab-bar::-webkit-scrollbar-track {
    background: transparent;
}
.services-tab-bar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Individual tab button */
.services-tab {
    flex-shrink: 0;
    padding: 7px 16px;
    border: 1px solid var(--dsc-border, rgba(255,255,255,0.1));
    border-radius: 20px;
    background: transparent;
    color: var(--dsc-text-muted, #9ca3af);
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.services-tab:hover {
    color: var(--dsc-text, #e4e4e7);
    border-color: rgba(255, 255, 255, 0.2);
}

.services-tab.active {
    background: var(--dsc-primary, #00aeef);
    color: #fff;
    border-color: var(--dsc-primary, #00aeef);
}

/* Tab panels */
.services-tab-panel {
    display: none;
}
.services-tab-panel.active {
    display: block;
}

/* ── Classifieds Grid (Standard/Free providers) ─── */
.classifieds-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}

/* Classified card — newspaper-ad style, compact */
.classified-card {
    border: 1px dashed var(--dsc-border, rgba(255,255,255,0.12));
    border-radius: 8px;
    padding: 12px 14px;
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.2s;
}

.classified-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.classified-card .classified-name {
    font-weight: 700;
    font-size: 13px;
    color: var(--dsc-text, #e4e4e7);
    margin: 0 0 6px;
    line-height: 1.3;
}

.classified-card .classified-detail {
    font-size: 12px;
    color: var(--dsc-text-muted, #9ca3af);
    margin: 2px 0;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
}

.classified-card .classified-detail i {
    width: 14px;
    text-align: center;
    margin-right: 4px;
    font-size: 11px;
    opacity: 0.6;
}

/* Classifieds section label */
.classifieds-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dsc-text-muted, #9ca3af);
    margin: 16px 0 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Service Chips ── */
.service-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
    position: relative;
    z-index: 2;
}
.service-chips:empty {
    display: none;
}
.service-chip {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--dsc-text-muted, #a1a1aa);
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    line-height: 1.4;
}
.service-chip.chip-gold {
    background: rgba(255, 215, 0, 0.10);
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.20);
}
.service-chip.chip-silver {
    background: rgba(192, 192, 192, 0.10);
    color: #c0c0c0;
    border-color: rgba(192, 192, 192, 0.20);
}
.service-chip.chip-bronze {
    background: rgba(205, 127, 50, 0.10);
    color: #cd7f32;
    border-color: rgba(205, 127, 50, 0.20);
}
.service-chip.chip-premium {
    background: rgba(0, 174, 239, 0.10);
    color: #00aeef;
    border-color: rgba(0, 174, 239, 0.20);
}

/* Responsive: single column on mobile */
@media (max-width: 600px) {
    .classifieds-grid {
        grid-template-columns: 1fr;
    }
    .services-tab {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ══════════════════════════════════════════════════════════════
   TOP CONTRIBUTORS — compact toggle section
   ══════════════════════════════════════════════════════════════ */

.contributors-section {
    margin: 8px 0;
}

/* Toggle button — subtle pill */
.contributors-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 11px;
    font-family: inherit;
    font-weight: 500;
    color: rgba(245, 158, 11, 0.7);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.contributors-toggle:hover {
    background: rgba(245, 158, 11, 0.06);
    color: #f59e0b;
}

.contributors-chevron {
    font-size: 9px;
    transition: transform 0.25s;
}

.contributors-toggle.open .contributors-chevron {
    transform: rotate(180deg);
}

/* Collapsed list */
.contributors-list-wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 4px;
}

.contributors-list-wrap.open {
    max-height: 300px;
    padding: 8px 4px 4px;
}

.contributor-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 6px;
    border-radius: 4px;
}

.contributor-rank {
    font-weight: 700;
    font-size: 11px;
    color: var(--dsc-text-muted, #9ca3af);
    min-width: 16px;
    text-align: center;
}

.contributor-rank.rank-1 { color: #f59e0b; }
.contributor-rank.rank-2 { color: #c0c0c0; }
.contributor-rank.rank-3 { color: #cd7f32; }

.contributor-handle {
    font-size: 12px;
    font-weight: 500;
    color: var(--dsc-text, #e4e4e7);
    flex: 1;
}

.contributor-handle::before {
    content: '@';
    color: rgba(245, 158, 11, 0.6);
    font-weight: 600;
}

.contributor-edits {
    font-size: 10px;
    color: var(--dsc-text-muted, #9ca3af);
    white-space: nowrap;
    opacity: 0.7;
}

.contributors-cta {
    padding: 6px 0;
    font-size: 11px;
    color: var(--dsc-text-muted, #9ca3af);
    line-height: 1.4;
}

.contributors-cta i {
    color: #f59e0b;
    margin-right: 3px;
    font-size: 10px;
}

/* ══════════════════════════════════════════════════════════════
   COMPLETENESS SCORE BAR
   ══════════════════════════════════════════════════════════════ */

.completeness-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 14px 16px;
    margin: 12px 0 16px;
}

/* Header row */
.completeness-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.completeness-pct {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.completeness-label {
    font-size: 13px;
    color: #a1a1aa;
    font-weight: 500;
}

.completeness-pts {
    font-size: 11px;
    color: #71717a;
    margin-left: auto;
}

/* Color tiers */
.completeness-green  { color: #22c55e; }
.completeness-yellow { color: #eab308; }
.completeness-red    { color: #ef4444; }

/* Main progress bar */
.completeness-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
}

.completeness-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.completeness-bar-fill.completeness-green  { background: #22c55e; }
.completeness-bar-fill.completeness-yellow { background: #eab308; }
.completeness-bar-fill.completeness-red    { background: #ef4444; }

/* Missing text */
.completeness-missing {
    margin-top: 8px;
    font-size: 11px;
    color: #a1a1aa;
    line-height: 1.5;
}

/* Section breakdown (collapsible) */
.completeness-details {
    margin-top: 10px;
}

.completeness-details summary {
    font-size: 12px;
    color: #a1a1aa;
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.completeness-details summary::before {
    content: '\f0da';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    transition: transform 0.2s;
    display: inline-block;
    width: 12px;
    text-align: center;
}

.completeness-details[open] summary::before {
    transform: rotate(90deg);
}

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

.completeness-sections {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Individual section row */
.completeness-section-row {
    display: grid;
    grid-template-columns: 20px 1fr auto 80px;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.completeness-section-icon {
    text-align: center;
    font-size: 11px;
    color: #71717a;
}

.completeness-section-icon .completeness-green { color: #22c55e; }

.completeness-section-name {
    color: #d4d4d8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.completeness-section-count {
    color: #71717a;
    font-size: 11px;
    text-align: right;
    white-space: nowrap;
}

/* Section mini-bar */
.completeness-section-bar-track {
    height: 5px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}

.completeness-section-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* ── Share Airport Row ─── */
.share-airport-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 16px 0;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: #d4d4d8;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.share-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}

.share-btn-x:hover {
    color: #fff;
    border-color: #1d9bf0;
    background: rgba(29,155,240,0.1);
}

.share-follow-hint {
    font-size: 11px;
    color: #71717a;
    margin-left: 4px;
    flex: 1;
}

.share-follow-hint a {
    color: #00aeef;
    text-decoration: none;
}

/* ── Newsletter Inline ─── */
.newsletter-inline {
    background: rgba(0,174,239,0.04);
    border: 1px solid rgba(0,174,239,0.15);
    border-radius: 10px;
    padding: 12px 16px;
    margin: 10px 0 14px 0;
}

.newsletter-inline-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.newsletter-inline-text {
    font-size: 13px;
    color: #d4d4d8;
    flex: 1;
    min-width: 180px;
}

.newsletter-inline-form {
    display: flex;
    gap: 6px;
}

.newsletter-input {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: #e4e4e7;
    font-size: 12px;
    width: 180px;
    outline: none;
}

.newsletter-input:focus {
    border-color: #00aeef;
}

.newsletter-btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    background: #00aeef;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: #0098d4;
}

@media (max-width: 480px) {
    .newsletter-inline-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .newsletter-inline-form {
        width: 100%;
    }
    .newsletter-input {
        flex: 1;
        width: auto;
    }
}

.completeness-section-bar-fill.completeness-green  { background: #22c55e; }
.completeness-section-bar-fill.completeness-yellow { background: #eab308; }
.completeness-section-bar-fill.completeness-red    { background: #ef4444; }

/* ── Panel compact variant ─────────────────────────────── */
.airport-panel .completeness-card {
    padding: 10px 12px;
    margin: 8px 0 12px;
}

.airport-panel .completeness-pct {
    font-size: 17px;
}

.airport-panel .completeness-label {
    font-size: 12px;
}

.airport-panel .completeness-section-row {
    grid-template-columns: 18px 1fr auto 60px;
    font-size: 11px;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 480px) {
    .completeness-header {
        gap: 6px;
    }
    .completeness-pts {
        margin-left: 0;
        width: 100%;
        order: 3;
    }
    .completeness-section-row {
        grid-template-columns: 18px 1fr auto 60px;
        font-size: 11px;
    }
}

/* ═══════════════════════════════════════════════════════════
   Confirm Data — Per-field confirmation buttons (Fase 2)
   ═══════════════════════════════════════════════════════════ */

.confirm-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

.field-confirm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: none;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s, transform 0.2s, opacity 0.2s;
    line-height: 1;
    flex-shrink: 0;
}

.field-confirm-btn:focus { outline: none; }

/* Unverified — subtle gray */
.field-confirm-btn.unverified {
    color: rgba(255,255,255,0.15);
}
.field-confirm-btn.unverified:hover {
    color: rgba(34,197,94,0.6);
    transform: scale(1.15);
}

/* Confirmed — solid green */
.field-confirm-btn.confirmed {
    color: #22c55e;
}
.field-confirm-btn.confirmed:hover {
    color: #16a34a;
    transform: scale(1.15);
}

/* Needs verification — yellow */
.field-confirm-btn.needs-verify {
    color: #eab308;
}
.field-confirm-btn.needs-verify:hover {
    color: #facc15;
    transform: scale(1.15);
}

/* User already confirmed today — dimmed green, no pointer */
.field-confirm-btn.user-confirmed {
    color: rgba(34,197,94,0.45);
    cursor: default;
}

/* Confirming — pulse */
.field-confirm-btn.confirming {
    animation: confirm-pulse 0.6s ease-in-out infinite;
    color: #22c55e;
}

/* Just confirmed — flash */
.field-confirm-btn.just-confirmed {
    animation: confirm-flash 0.6s ease-out;
    color: #22c55e;
}

@keyframes confirm-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes confirm-flash {
    0% { transform: scale(1); }
    40% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Verified text display */
.field-verified-display {
    font-size: 10px;
    line-height: 1.2;
    opacity: 0.7;
}
.field-verified-display.verified-green { color: #22c55e; }
.field-verified-display.verified-yellow { color: #eab308; }

/* Confirm legend banner */
.confirm-legend {
    font-size: 12px;
    color: var(--dsc-text-muted, #a1a1aa);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 8px 14px;
    margin: 0 0 16px;
    line-height: 1.6;
}
.confirm-legend-states {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 4px;
}
.confirm-legend-states span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

/* ── Field label / value visual separation ── */
.ai-list li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding-right: 22px;
}
.ai-list li strong {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--dsc-text-muted, #71717a);
    line-height: 1.3;
}
.ai-list li .field-display {
    font-size: 14px;
    font-weight: 500;
    color: var(--dsc-text, #e4e4e7);
    word-break: break-word;
}

/* ── Check (confirm) icon: centered vertically on right ── */
.ai-list li .confirm-wrapper {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 4px;
    margin-left: 0;
    gap: 3px;
}
.ai-list li .field-confirm-btn {
    width: 14px;
    height: 14px;
    font-size: 10px;
}
.ai-list li .field-verified-display {
    font-size: 9px;
    opacity: 0.7;
}

/* ── Pencil: inline with value, not a floating circle ── */
.ai-list li .field-edit-btn {
    position: static;
    display: none;
    border: none;
    background: none;
    border-radius: 4px;
    width: auto;
    height: auto;
    font-size: 11px;
    line-height: 1;
    margin: 0 0 0 2px;
    padding: 3px 5px;
    color: var(--dsc-text-muted, #71717a);
    opacity: 0.5;
    vertical-align: middle;
    transition: opacity 0.15s, color 0.15s, background 0.15s;
}
.ai-list li .field-edit-btn:hover {
    opacity: 1;
    color: var(--dsc-primary, #00aeef);
    background: rgba(0, 174, 239, 0.08);
}

/* Unit toggle: inline next to value */
.ai-list li .unit-toggle {
    display: inline-flex;
    margin-left: 6px;
    vertical-align: middle;
}

/* ── Field li layout ── */
.ai-list li[data-field-editable] {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 4px;
    padding-right: 22px;
}
/* Label takes full width row */
.ai-list li[data-field-editable] strong {
    flex: 0 0 100%;
}

/* ── Remarks fields: full width, readable formatting ── */
.ai-list li.field-remarks {
    flex: 0 0 100% !important;
    background: rgba(255,255,255,0.02);
    border-left: 3px solid var(--dsc-primary, #00aeef);
    padding-left: 14px;
}
.ai-list li.field-remarks .field-display {
    white-space: pre-wrap;
    font-size: 13px;
    line-height: 1.7;
    color: var(--dsc-text-muted, #a1a1aa);
    max-height: 120px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.ai-list li.field-remarks.expanded .field-display {
    max-height: none;
}
.ai-list li.field-remarks .remarks-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dsc-primary, #00aeef);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 2px;
}
.ai-list li.field-remarks .remarks-toggle:hover {
    text-decoration: underline;
}

/* Permit page: remarks/text blocks with confirm buttons */
.seo-remarks[data-field-editable],
.seo-text-block[data-field-editable],
p[data-field-editable] {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

/* Permit modal: td and p with confirm buttons */
td[data-field-editable],
div[data-field-editable] {
    position: relative;
}
td[data-field-editable] .confirm-wrapper {
    display: inline-flex;
    margin-left: 6px;
    vertical-align: middle;
}

/* Hide verified text in permit modal (compact) */
#modal-body .field-verified-display { display: none; }
#modal-body .field-confirm-btn { width: 16px; height: 16px; font-size: 11px; }

/* Panel narrow: icon only, no verified text */
.airport-panel .field-verified-display { display: none; }
.airport-panel .field-confirm-btn { width: 18px; height: 18px; font-size: 11px; }

/* Panel expanded: show text again */
.airport-panel.expanded .field-verified-display { display: inline; }
.airport-panel.expanded .field-confirm-btn { width: 22px; height: 22px; font-size: 13px; }

/* Mobile: smaller icon, hidden text */
@media (max-width: 480px) {
    .field-confirm-btn { width: 18px; height: 18px; font-size: 11px; }
    .field-verified-display { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   UNIT TOGGLE BUTTONS
   ══════════════════════════════════════════════════════════════ */

.unit-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1px 2px;
}

.unit-toggle-btn {
    background: none;
    border: none;
    color: var(--dsc-text-muted, #71717a);
    font-size: 11px;
    font-family: inherit;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.4;
}

.unit-toggle-btn:hover {
    color: var(--dsc-text, #e4e4e7);
}

.unit-toggle-btn.active {
    background: var(--dsc-primary, #00aeef);
    color: #fff;
    font-weight: 600;
}

.unit-toggle-sep {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    display: none;
}

/* ══════════════════════════════════════════════════════════════
   SUNRISE / SUNSET BADGE
   ══════════════════════════════════════════════════════════════ */

.sunrise-sunset-badge {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0;
    margin: 12px 0;
    color: var(--dsc-text, #e4e4e7);
    overflow: hidden;
}

.sunrise-sunset-badge .sun-half {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    padding: 12px 16px;
}

.sunrise-sunset-badge .sun-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
    align-self: stretch;
}

.sunrise-sunset-badge .sun-icon {
    color: #fbbf24;
    font-size: 22px;
    flex-shrink: 0;
}

.sunrise-sunset-badge .moon-icon {
    color: #818cf8;
    font-size: 20px;
    flex-shrink: 0;
}

.sunrise-sunset-badge .sun-times {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sunrise-sunset-badge .sun-title {
    font-size: 11px;
    color: var(--dsc-text-muted, #71717a);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.sunrise-sunset-badge .sun-utc {
    font-size: 17px;
    font-weight: 700;
    color: var(--dsc-text, #e4e4e7);
    line-height: 1.2;
}

.sunrise-sunset-badge .sun-utc small,
.sunrise-sunset-badge .sun-local small {
    font-size: 10px;
    font-weight: 500;
    color: var(--dsc-text-muted, #71717a);
}

.sunrise-sunset-badge .sun-local {
    font-size: 13px;
    font-weight: 500;
    color: var(--dsc-text-muted, #a1a1aa);
    line-height: 1.2;
}

/* Phone flag image */
.phone-flag-img {
    vertical-align: middle;
    margin-right: 5px;
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

/* ══════════════════════════════════════════════════════════════
   FIELD CHIPS (Lighting, NAVAIDs, Approach Types)
   ══════════════════════════════════════════════════════════════ */

.field-chips-display {
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px;
}

.field-chip {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 12px;
    white-space: nowrap;
    line-height: 1.5;
}

.field-chip-known {
    background: rgba(0, 174, 239, 0.12);
    color: var(--dsc-primary, #00aeef);
    border: 1px solid rgba(0, 174, 239, 0.2);
}

.field-chip-unknown {
    background: rgba(255, 255, 255, 0.06);
    color: var(--dsc-text-muted, #a1a1aa);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Chip Editor (edit mode) ── */
.chip-editor {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 0;
    max-width: 100%;
}

.chip-editor-option {
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    padding: 4px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--dsc-text-muted, #a1a1aa);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.chip-editor-option:hover {
    border-color: rgba(0, 174, 239, 0.3);
    color: var(--dsc-text, #e4e4e7);
}

.chip-editor-option.chip-selected {
    background: rgba(0, 174, 239, 0.15);
    color: var(--dsc-primary, #00aeef);
    border-color: rgba(0, 174, 239, 0.35);
}

.chip-editor-custom {
    font-style: italic;
}

.chip-editor-add {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-basis: 100%;
    margin-top: 4px;
}

.chip-editor-input {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--dsc-border);
    background: var(--dsc-bg);
    color: var(--dsc-text);
    font-size: 12px;
    font-family: inherit;
    width: 140px;
}

.chip-editor-input:focus {
    outline: none;
    border-color: var(--dsc-primary);
}

.chip-editor-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--dsc-primary);
    background: rgba(0, 174, 239, 0.1);
    color: var(--dsc-primary);
    font-size: 11px;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.chip-editor-add-btn:hover {
    background: rgba(0, 174, 239, 0.2);
}

/* ══════════════════════════════════════════════════════════════
   FUEL TABS
   ══════════════════════════════════════════════════════════════ */

.fuel-tab-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 0 10px;
    scrollbar-width: thin;
}

.fuel-tab {
    flex-shrink: 0;
    padding: 6px 14px;
    border: 1px solid var(--dsc-border, rgba(255,255,255,0.1));
    border-radius: 18px;
    background: transparent;
    color: var(--dsc-text-muted, #9ca3af);
    font-size: 12px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.fuel-tab:hover {
    color: var(--dsc-text, #e4e4e7);
    border-color: rgba(255, 255, 255, 0.2);
}

.fuel-tab.active {
    background: var(--dsc-primary, #00aeef);
    color: #fff;
    border-color: var(--dsc-primary, #00aeef);
}

.fuel-tab-add {
    border-style: dashed;
    padding: 6px 10px;
}
.fuel-tab-add:hover {
    border-color: var(--dsc-primary, #00aeef);
    color: var(--dsc-primary, #00aeef);
}

.fuel-tab-panel {
    display: none;
}

.fuel-tab-panel.active {
    display: block;
}

/* Fuel type chip grid (add form) */
.fuel-type-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 12px;
}
.fuel-type-chip {
    padding: 8px 14px;
    border: 1px solid var(--dsc-border, rgba(255,255,255,0.12));
    border-radius: 8px;
    background: transparent;
    color: var(--dsc-text, #e4e4e7);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.fuel-type-chip:hover:not(.disabled) {
    border-color: var(--dsc-primary, #00aeef);
    background: rgba(0, 174, 239, 0.08);
}
.fuel-type-chip.selected {
    background: var(--dsc-primary, #00aeef);
    color: #fff;
    border-color: var(--dsc-primary, #00aeef);
}
.fuel-type-chip.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Fuel add form fields */
.fuel-add-form label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--dsc-text-muted, #71717a);
}
.fuel-add-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}
.fuel-add-fields .inline-edit-input,
.fuel-add-fields .inline-edit-select {
    padding: 8px 12px;
    border: 1px solid var(--dsc-border, rgba(255,255,255,0.12));
    border-radius: 8px;
    background: var(--dsc-bg, #1b1d23);
    color: var(--dsc-text, #e4e4e7);
    font-size: 13px;
    font-family: inherit;
    max-width: none;
}
.fuel-add-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.fuel-add-submit {
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    background: var(--dsc-primary, #00aeef);
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
}
.fuel-add-submit:hover { opacity: 0.85; }
.fuel-add-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.fuel-add-cancel {
    padding: 8px 14px;
    border: 1px solid var(--dsc-border, rgba(255,255,255,0.12));
    border-radius: 8px;
    background: transparent;
    color: var(--dsc-text-muted, #9ca3af);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}
.fuel-add-cancel:hover {
    color: var(--dsc-text, #e4e4e7);
    border-color: rgba(255,255,255,0.2);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Smart fields
   ══════════════════════════════════════════════════════════════ */

/* iOS zoom prevention: inputs < 16px trigger auto-zoom on focus */
@media (max-width: 1024px) {
    .inline-edit-input,
    .inline-edit-select,
    .inline-edit-textarea,
    .fuel-add-fields .inline-edit-input,
    .fuel-add-fields .inline-edit-select {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .unit-toggle {
        margin-left: 4px;
    }
    .unit-toggle-btn {
        font-size: 10px;
        padding: 2px 6px;
    }
    .sunrise-sunset-badge .sun-half {
        padding: 8px 10px;
        gap: 8px;
    }
    .sunrise-sunset-badge .sun-icon {
        font-size: 18px;
    }
    .sunrise-sunset-badge .moon-icon {
        font-size: 16px;
    }
    .sunrise-sunset-badge .sun-utc {
        font-size: 15px;
    }
    .sunrise-sunset-badge .sun-local {
        font-size: 12px;
    }
    .field-chip {
        font-size: 10px;
        padding: 2px 8px;
    }
    .chip-editor-option {
        font-size: 11px;
        padding: 3px 10px;
    }
}

/* Panel narrow: compact toggles */
.airport-panel .unit-toggle-btn {
    font-size: 10px;
    padding: 1px 6px;
}
.airport-panel .sunrise-sunset-badge .sun-half {
    padding: 8px 10px;
    gap: 8px;
}
.airport-panel .sunrise-sunset-badge .sun-icon {
    font-size: 18px;
}
.airport-panel .sunrise-sunset-badge .moon-icon {
    font-size: 16px;
}
.airport-panel .sunrise-sunset-badge .sun-utc {
    font-size: 14px;
}
.airport-panel .sunrise-sunset-badge .sun-local {
    font-size: 11px;
}
.airport-panel .field-chip {
    font-size: 10px;
    padding: 2px 8px;
}

/* Panel expanded: restore sizes */
.airport-panel.expanded .unit-toggle-btn {
    font-size: 11px;
    padding: 2px 8px;
}
.airport-panel.expanded .sunrise-sunset-badge .sun-half {
    padding: 12px 16px;
}
.airport-panel.expanded .sunrise-sunset-badge .sun-icon {
    font-size: 22px;
}
.airport-panel.expanded .sunrise-sunset-badge .moon-icon {
    font-size: 20px;
}
.airport-panel.expanded .sunrise-sunset-badge .sun-utc {
    font-size: 17px;
}
.airport-panel.expanded .sunrise-sunset-badge .sun-local {
    font-size: 13px;
}
.airport-panel.expanded .field-chip {
    font-size: 11px;
    padding: 2px 10px;
}

/* ── Permanently Closed Banner ─── */
.airport-closed-banner {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.4);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 8px 0 14px;
  font-size: 13px;
  color: #f87171;
  line-height: 1.5;
}

/* ── Panel Top Actions Row ─── */
.panel-top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* ── Closed Toggle Button ─── */
.closed-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11px;
  font-family: inherit;
  color: rgba(239,68,68,0.7);
  background: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  margin-left: auto;
}
.closed-toggle-btn:hover {
  background: rgba(239,68,68,0.1);
  color: #f87171;
}
.closed-toggle-btn.is-closed {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.5);
  color: #f87171;
}

/* ── Closed Confirmation Dialog ─── */
.closed-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.closed-confirm-card {
  background: var(--dsc-bg-elevated, #1e293b);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 16px;
  padding: 28px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

/* ── Mobile: Flag as Closed gets its own row ─── */
@media (max-width: 767px) {
  .share-airport-row {
    flex-wrap: wrap;
  }
  .share-airport-row .share-follow-hint {
    display: none;
  }
  .share-airport-row .closed-toggle-btn {
    flex-basis: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: 4px;
  }
}
