* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2933;
    background: #f7f9fb;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}


.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.site-header {
    background: #073b4c;
    color: #fff;
    padding: 18px 0;
}

.admin-site-header {
    background: #111827;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
}

.main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-nav a {
    font-weight: 600;
}

.hero {
    background: linear-gradient(rgba(7, 59, 76, 0.8), rgba(7, 59, 76, 0.8)), url('../images/caravan-hero.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 90px 0;
    text-align: center;
}

.hero-content {
    width: min(900px, 92%);
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.search-box {
    display: grid;
    grid-template-columns: 1fr 150px auto auto;
    gap: 12px;
    background: #fff;
    color: #111;
    padding: 16px;
    border-radius: 12px;
}

.search-box input,
.search-box select,
.search-box button {
    padding: 12px;
    border: 1px solid #ccd5df;
    border-radius: 8px;
    font-size: 1rem;
}

.search-box button {
    background: #ef476f;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 700;
}

section {
    padding: 45px 0;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.listing-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.listing-card img,
.placeholder-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #d9e2ec;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-card-content {
    padding: 18px;
}

.listing-card h2,
.listing-card h3 {
    margin-top: 0;
}

.listing-card h2 {
    font-size: 1.2rem;
}

.price {
    font-weight: 700;
    color: #ef476f;
}

.site-footer {
    background: #073b4c;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.site-footer a {
    color: #fff;
    text-decoration: underline;
}

/* Forms */

.form-page {
    max-width: 760px;
}

.wide-form {
    max-width: 980px;
}

.form-card {
    background: #fff;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    display: grid;
    gap: 18px;
}

.form-card h2 {
    margin: 16px 0 0;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.form-card label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.form-card input,
.form-card textarea,
.form-card select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccd5df;
    border-radius: 8px;
    font-size: 1rem;
}

.form-card button {
    background: #ef476f;
    color: #fff;
    border: none;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.form-note {
    margin-top: 20px;
}

.form-note a {
    color: #ef476f;
    font-weight: 700;
}

.form-grid {
    display: grid;
    gap: 18px;
}

.two-columns {
    grid-template-columns: repeat(2, 1fr);
}

.three-columns {
    grid-template-columns: repeat(3, 1fr);
}

.four-columns {
    grid-template-columns: 2fr 1fr 1fr 1fr;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    background: #f7f9fb;
    padding: 12px;
    border-radius: 8px;
}

.checkbox-grid input {
    width: auto;
}

.form-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.form-actions button:first-child {
    background: #073b4c;
}

.field-help {
    margin: -6px 0 0;
    color: #52616b;
    font-size: 0.9rem;
}

/* Alerts */

.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background: #ffe3e3;
    color: #9b1c1c;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

/* Buttons */

.button {
    display: inline-block;
    background: #ef476f;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.button-secondary {
    background: #073b4c;
}

.danger-button {
    background: #b91c1c;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

/* Dashboard */

.dashboard-page {
    padding-top: 45px;
    padding-bottom: 45px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card,
.dashboard-panel,
.empty-state {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.stat-card {
    padding: 22px;
}

.stat-card span {
    display: block;
    color: #52616b;
    margin-bottom: 8px;
}

.stat-card strong {
    display: block;
    font-size: 2rem;
}

.stat-card a {
    display: inline-block;
    margin-top: 10px;
    color: #ef476f;
    font-weight: 700;
}

.dashboard-panel {
    padding: 24px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #f7f9fb;
}

.table-wrapper {
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.dashboard-table th {
    background: #f7f9fb;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dashboard-table a {
    color: #ef476f;
    font-weight: 700;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.panel-header h2 {
    margin: 0;
}

/* Badges and statuses */

.badge {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-featured {
    background: #fef3c7;
    color: #92400e;
}

.status-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.featured-button {
    background: #f59e0b;
    color: #111827;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.inline-action-form {
    margin-top: 8px;
}

.inline-action-form button {
    border: none;
    background: #073b4c;
    color: #fff;
    padding: 7px 10px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
}

.listing-featured-badge {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    background: #fef3c7;
    color: #92400e;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.status-pill {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: capitalize;
}

.status-draft {
    background: #e5e7eb;
    color: #374151;
}

.status-pending_review {
    background: #fef3c7;
    color: #92400e;
}

.status-published {
    background: #dcfce7;
    color: #166534;
}

.status-rejected,
.status-suspended {
    background: #fee2e2;
    color: #991b1b;
}

.status-paused,
.status-expired {
    background: #e0f2fe;
    color: #075985;
}

.status-new {
    background: #fee2e2;
    color: #991b1b;
}

.status-read {
    background: #e0f2fe;
    color: #075985;
}

.status-replied {
    background: #dcfce7;
    color: #166534;
}

.status-closed {
    background: #e5e7eb;
    color: #374151;
}

.status-spam {
    background: #f3e8ff;
    color: #6b21a8;
}

.status-owner {
    background: #e0f2fe;
    color: #075985;
}

.status-admin {
    background: #f3e8ff;
    color: #6b21a8;
}

/* Edit listing */

.listing-status-panel {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.listing-status-panel p {
    margin: 0;
}

.listing-status-panel form {
    margin: 0;
}

/* Image manager */

.image-manager {
    margin-top: 28px;
}

.upload-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 28px;
}

.upload-form label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.upload-form input {
    padding: 12px;
    border: 1px solid #ccd5df;
    border-radius: 8px;
    font-size: 1rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.image-card {
    background: #f7f9fb;
    border-radius: 12px;
    padding: 12px;
    position: relative;
}

.image-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 12px;
}

.image-card .badge {
    margin: 0 0 12px 0;
}

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

.image-actions form {
    margin: 0;
}

.image-actions button {
    border: none;
    background: #073b4c;
    color: #fff;
    padding: 9px 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.image-actions .danger-button {
    background: #b91c1c;
}

.small-empty {
    padding: 20px;
    box-shadow: none;
}

/* Listings search page */

.page-heading {
    margin-bottom: 28px;
}

.page-heading h1 {
    margin-bottom: 8px;
}

.listings-page {
    padding-top: 45px;
    padding-bottom: 45px;
}

.filter-panel {
    background: #fff;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.filter-panel label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    padding: 12px;
    border: 1px solid #ccd5df;
    border-radius: 8px;
    font-size: 1rem;
}

.compact-checkboxes {
    margin-top: 16px;
    grid-template-columns: repeat(4, 1fr);
}

.filter-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 18px;
}

.filter-actions button {
    background: #ef476f;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.filter-actions a {
    color: #ef476f;
    font-weight: 700;
}

.align-bottom {
    align-self: end;
}

.results-summary {
    margin-bottom: 20px;
    color: #52616b;
}

.feature-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.feature-row span {
    background: #e0f2fe;
    color: #075985;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Public listing detail page */

.listing-hero {
    background: #073b4c;
    color: #fff;
    padding: 50px 0;
}

.listing-title-block h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 10px;
}

.listing-title-block p {
    font-size: 1.15rem;
    margin: 0;
}

.listing-detail-page {
    padding-top: 35px;
    padding-bottom: 50px;
}

.listing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
    align-items: start;
}

.listing-main {
    display: grid;
    gap: 24px;
}

.listing-sidebar {
    position: sticky;
    top: 20px;
    display: grid;
    gap: 20px;
}

.listing-gallery {
    background: #fff;
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.main-gallery-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.thumbnail-button {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.thumbnail-button img {
    width: 100%;
    height: 82px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.large-placeholder {
    height: 420px;
    border-radius: 14px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.details-grid div {
    background: #f7f9fb;
    padding: 16px;
    border-radius: 10px;
}

.details-grid strong,
.details-grid span {
    display: block;
}

.details-grid strong {
    color: #52616b;
    margin-bottom: 4px;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.features-list span {
    background: #e0f2fe;
    color: #075985;
    padding: 9px 12px;
    border-radius: 999px;
    font-weight: 700;
}

.enquiry-card,
.safety-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    padding: 24px;
}

.enquiry-card h2,
.safety-card h3 {
    margin-top: 0;
}

.enquiry-form {
    display: grid;
    gap: 14px;
}

.enquiry-form label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.enquiry-form input,
.enquiry-form textarea,
.enquiry-form select {
    width: 100%;
    padding: 11px;
    border: 1px solid #ccd5df;
    border-radius: 8px;
    font-size: 1rem;
}

.enquiry-form button {
    background: #ef476f;
    color: #fff;
    border: none;
    padding: 14px 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.consent-check {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    gap: 10px !important;
    font-size: 0.9rem;
    font-weight: 600 !important;
}

.consent-check input {
    width: auto;
    margin-top: 4px;
}

.availability-note {
    background: #fef3c7;
    color: #92400e;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
}

/* Availability */

.availability-manager {
    margin-top: 28px;
}

.availability-form {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
}

.availability-form label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.availability-form input,
.availability-form select {
    padding: 12px;
    border: 1px solid #ccd5df;
    border-radius: 8px;
    font-size: 1rem;
}

.availability-table form {
    margin: 0;
}

.availability-table button {
    border: none;
    padding: 9px 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.availability-available {
    background: #dcfce7;
    color: #166534;
}

.availability-booked {
    background: #fee2e2;
    color: #991b1b;
}

.availability-provisional {
    background: #fef3c7;
    color: #92400e;
}

.availability-unavailable {
    background: #e5e7eb;
    color: #374151;
}

.public-availability-list {
    display: grid;
    gap: 12px;
}

.public-availability-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #f7f9fb;
    border-radius: 12px;
    padding: 16px;
}

.public-availability-item p {
    margin: 6px 0 0;
    color: #52616b;
}

.availability-price-status {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: right;
}

/* Owner enquiries */

.inline-filter label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.inline-filter select {
    padding: 10px;
    border: 1px solid #ccd5df;
    border-radius: 8px;
}

.enquiry-list {
    display: grid;
    gap: 20px;
}

.enquiry-card-owner {
    background: #f7f9fb;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid #e5e7eb;
}

.enquiry-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.enquiry-card-header h3 {
    margin: 0 0 5px;
}

.enquiry-card-header p {
    margin: 0;
    color: #52616b;
}

.enquiry-card-header a,
.enquiry-meta a {
    color: #ef476f;
    font-weight: 700;
}

.enquiry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 18px;
    color: #52616b;
    font-size: 0.95rem;
}

.enquiry-trip-details {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.enquiry-trip-details div {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
}

.enquiry-trip-details strong,
.enquiry-trip-details span {
    display: block;
}

.enquiry-trip-details strong {
    color: #52616b;
    margin-bottom: 3px;
}

.enquiry-message {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 18px;
}

.enquiry-message h4 {
    margin-top: 0;
}

.enquiry-message p {
    margin-bottom: 0;
}

.enquiry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.enquiry-actions form {
    margin: 0;
}

.enquiry-actions button {
    border: none;
    background: #073b4c;
    color: #fff;
    padding: 11px 14px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.enquiry-actions .danger-button {
    background: #b91c1c;
}

/* Admin */

.admin-page {
    padding-top: 45px;
    padding-bottom: 45px;
}

.admin-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.admin-listing-cell {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 260px;
}

.admin-listing-cell img,
.admin-thumb-placeholder {
    width: 82px;
    height: 62px;
    object-fit: cover;
    border-radius: 8px;
    flex: 0 0 auto;
}

.admin-thumb-placeholder {
    background: #d9e2ec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #52616b;
}

.admin-review-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.admin-action-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-action-grid form {
    margin: 0;
}

.admin-action-grid button,
.admin-warning-button {
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.admin-warning-button {
    background: #f59e0b;
    color: #111827;
}

.expiry-active {
    color: #166534;
    font-weight: 700;
}

.expiry-soon {
    color: #92400e;
    font-weight: 700;
}

.expiry-expired {
    color: #991b1b;
    font-weight: 700;
}

.expiry-missing {
    color: #52616b;
    font-weight: 700;
}

.expiry-form {
    display: grid;
    gap: 14px;
}

.expiry-form label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.expiry-form select {
    padding: 12px;
    border: 1px solid #ccd5df;
    border-radius: 8px;
    font-size: 1rem;
}

.payment-history {
    margin-top: 28px;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-paid {
    background: #dcfce7;
    color: #166534;
}

.status-failed,
.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.invoice-page {
    padding-top: 45px;
    padding-bottom: 45px;
}

.invoice-document {
    background: #fff;
    border-radius: 14px;
    padding: 34px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.invoice-top,
.invoice-parties {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
}

.invoice-meta {
    text-align: right;
}

.invoice-meta p,
.invoice-top p,
.invoice-parties p {
    margin: 4px 0;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.invoice-table th,
.invoice-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 14px;
    text-align: left;
}

.invoice-table th:last-child,
.invoice-table td:last-child {
    text-align: right;
}

.invoice-table tfoot th {
    font-size: 1.1rem;
}

.invoice-payment-note {
    background: #fef3c7;
    color: #92400e;
    padding: 14px;
    border-radius: 8px;
    margin-top: 24px;
}

.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.break-word {
    word-break: break-all;
}

.invoice-draft {
    background: #e5e7eb;
    color: #374151;
}

.invoice-issued {
    background: #fef3c7;
    color: #92400e;
}

.invoice-paid {
    background: #dcfce7;
    color: #166534;
}

.invoice-void {
    background: #e5e7eb;
    color: #374151;
}

.invoice-overdue {
    background: #fee2e2;
    color: #991b1b;
}

.favourite-card-form {
    padding: 0 18px 18px;
}

.favourite-card-form button,
.favourite-hero-form button {
    width: 100%;
    background: #073b4c;
    color: #fff;
    border: none;
    padding: 11px 14px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.favourite-card-form button:hover,
.favourite-hero-form button:hover {
    opacity: 0.92;
}

.favourite-hero-form {
    margin-top: 20px;
    max-width: 260px;
}

.favourite-hero-form button {
    background: #ef476f;
}

.report-link {
    display: inline-block;
    margin-top: 12px;
    color: #b91c1c;
    font-weight: 700;
    text-decoration: underline;
}

.report-list {
    display: grid;
    gap: 20px;
}

.report-card {
    background: #f7f9fb;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid #e5e7eb;
}

.report-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.report-card-header h3 {
    margin: 0 0 5px;
}

.report-card-header p {
    margin: 0;
    color: #52616b;
}

.report-card-header a {
    color: #ef476f;
    font-weight: 700;
}

.report-new {
    background: #fee2e2;
    color: #991b1b;
}

.report-reviewed {
    background: #e0f2fe;
    color: #075985;
}

.report-dismissed {
    background: #e5e7eb;
    color: #374151;
}

.report-action_taken {
    background: #dcfce7;
    color: #166534;
}

.rating-summary {
    margin-top: 10px;
    font-weight: 700;
    color: #fef3c7;
}

.review-list {
    display: grid;
    gap: 18px;
}

.review-card {
    background: #f7f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
}

.review-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.review-card-header strong,
.review-card-header span {
    display: block;
}

.review-card-header span {
    color: #52616b;
    font-size: 0.95rem;
}

.review-card-header a {
    color: #ef476f;
    font-weight: 700;
}

.review-rating {
    color: #f59e0b !important;
    font-weight: 700;
    white-space: nowrap;
}

.review-card h3 {
    margin: 0 0 8px;
}

.review-card p {
    margin-bottom: 0;
}

.review-date {
    color: #52616b;
    font-size: 0.9rem;
    margin-top: 12px;
}

.review-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.review-status-approved {
    background: #dcfce7;
    color: #166534;
}

.review-status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.review-admin-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.review-admin-form label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.review-admin-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccd5df;
    border-radius: 8px;
    font-size: 1rem;
}

.anti-spam-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.content-page {
    padding-top: 45px;
    padding-bottom: 45px;
}

.content-panel h2:first-child {
    margin-top: 0;
}

.content-panel h2 {
    margin-top: 28px;
}

.content-panel ul,
.content-panel ol {
    padding-left: 22px;
}

.content-panel li {
    margin-bottom: 8px;
}

.content-panel a {
    color: #ef476f;
    font-weight: 700;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 2000;
}

.cookie-banner-content {
    max-width: 1180px;
    margin: 0 auto;
    background: #111827;
    color: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-banner-content p {
    margin: 6px 0 0;
    color: #e5e7eb;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.cookie-banner-actions a {
    color: #fff;
    text-decoration: underline;
    font-weight: 700;
}

.cookie-banner-actions button {
    background: #ef476f;
    color: #fff;
    border: none;
    padding: 11px 16px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}
.status-authorised {
    background: #e0f2fe;
    color: #075985;
}
a.button,
.button {
    color: #fff;
    text-decoration: none;
}

a.button:hover,
.button:hover {
    color: #fff;
}
.account-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.compact-form {
    box-shadow: none;
    padding: 0;
}

.account-summary-panel {
    margin-top: 28px;
}

.hero-with-image {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background-image: url('../images/heroimg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(7, 59, 76, 0.88) 0%,
        rgba(7, 59, 76, 0.68) 45%,
        rgba(7, 59, 76, 0.25) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding-top: 90px;
    padding-bottom: 90px;
}

.hero-content h1 {
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 22px;
}

.hero-content p {
    color: #f3f4f6;
    font-size: 1.2rem;
    max-width: 640px;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-actions .button {
    color: #fff;
}

.hero-actions .button-secondary {
    background: #fff;
    color: #073b4c;
}

.hero-actions .button-secondary:hover {
    color: #073b4c;
}


.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 999px;
    margin: 5px auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    background: #073b4c;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px 20px 22px;
}

.mobile-nav a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav.active {
    display: block;
}

.nav-button {
    color: #fff;
}

/* Dashboard table improvements */
.dashboard-panel {
    overflow: visible;
}

.table-wrapper {
    width: 100%;
    overflow-x: visible;
}

.dashboard-table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
    padding: 12px 10px;
    vertical-align: top;
    font-size: 0.95rem;
}

.dashboard-table th {
    white-space: nowrap;
}

.dashboard-table td {
    word-break: normal;
}

.dashboard-table td small {
    display: block;
    margin-top: 4px;
    color: #52616b;
}

/* Keep action buttons/links tidy */
.dashboard-table td:last-child {
    white-space: nowrap;
}

.dashboard-table td:last-child a,
.dashboard-table td:last-child button {
    display: inline-block;
    margin: 3px 4px 3px 0;
}

/* Owner/admin listing tables: make text columns flexible */
.dashboard-table td:first-child,
.dashboard-table th:first-child {
    min-width: 180px;
}

.dashboard-table .status-pill,
.dashboard-table .badge {
    white-space: nowrap;
}

/* Slightly reduce bulky inline forms in table action columns */
.inline-action-form {
    display: inline-block;
    margin-top: 4px;
}

.inline-action-form button {
    padding: 6px 9px;
    font-size: 0.8rem;
}


/* =========================================================
   RESPONSIVE OVERRIDES
   Add this block at the VERY BOTTOM of assets/css/main.css
   ========================================================= */

/* Global sizing safety */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* Better default container behaviour */
.container {
    width: min(94%, 1200px);
    margin-left: auto;
    margin-right: auto;
}

/* Extra large screens: 1201px+ */
@media (min-width: 1201px) {
    .container {
        width: min(92%, 1320px);
    }

    .admin-page,
    .dashboard-page,
    .listings-page,
    .form-page,
    .content-page,
    .seo-index-page {
        max-width: 1320px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* 1025px–1200px: desktops / large laptop screens */
@media (min-width: 1025px) and (max-width: 1200px) {
    .container {
        width: 96%;
        max-width: 1160px;
    }

    .admin-page,
    .dashboard-page {
        width: 96%;
        max-width: 1160px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* 769px–1024px: small screens / laptops */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        width: 96%;
        max-width: 100%;
    }

    .admin-page,
    .dashboard-page,
    .listings-page,
    .form-page,
    .content-page,
    .seo-index-page {
        width: 96%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .dashboard-header,
    .admin-header-row {
        gap: 16px;
    }
    .form-grid.three-columns.location-fields-row {
    display: grid;
    gap: 18px;
    align-items: end;
}
}

/* =========================================================
   HEADER / NAV RESPONSIVENESS
   ========================================================= */

.site-header {
    width: 100%;
}

.header-inner {
    min-width: 0;
}

.site-logo {
    min-width: 0;
    overflow-wrap: anywhere;
}

.main-nav {
    min-width: 0;
}

.main-nav a {
    white-space: nowrap;
}

/* prevent desktop nav overcrowding on laptop widths */
@media (min-width: 851px) and (max-width: 1180px) {
    .main-nav {
        gap: 10px;
    }

    .main-nav a {
        font-size: 0.9rem;
    }

    .nav-button,
    .main-nav .button {
        padding: 9px 12px;
    }
}

/* Hamburger breakpoint */
@media (max-width: 850px) {
    .desktop-nav,
    .main-nav.desktop-nav {
        display: none !important;
    }

    .menu-toggle {
        display: block;
    }

    .header-inner {
        justify-content: space-between;
    }

    .mobile-nav.active {
        display: block;
    }
}

@media (min-width: 851px) {
    .mobile-nav {
        display: none !important;
    }
}

/* =========================================================
   HERO RESPONSIVENESS
   ========================================================= */

.hero-with-image {
    min-height: clamp(420px, 50vw, 620px);
}

.hero-content {
    max-width: 760px;
}

.hero-content h1 {
    font-size: clamp(2.1rem, 5vw, 4.5rem);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
}

@media (max-width: 768px) {
    .hero-with-image {
        min-height: 460px;
        background-position: center;
    }

    .hero-overlay {
        background: rgba(7, 59, 76, 0.78);
    }

    .hero-content {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .button,
    .hero-actions .button-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-with-image {
        min-height: 420px;
    }

    .hero-content {
        padding-top: 52px;
        padding-bottom: 52px;
    }
}

/* =========================================================
   GRID RESPONSIVENESS
   ========================================================= */

.listing-grid,
.seo-link-grid,
.stats-grid {
    min-width: 0;
}

@media (min-width: 1025px) {
    .listing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .seo-link-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .listing-grid,
    .seo-link-grid,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .listing-layout,
    .admin-review-layout,
    .content-grid,
    .account-settings-grid {
        grid-template-columns: 1fr;
    }

    .listing-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .listing-grid,
    .seo-link-grid,
    .stats-grid,
    .content-grid,
    .account-settings-grid,
    .form-grid,
    .form-grid.two-columns,
    .form-grid.three-columns,
    .form-grid.four-columns,
    .listing-layout,
    .admin-review-layout {
        grid-template-columns: 1fr !important;
    }
    .form-grid.three-columns.location-fields-row {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   DASHBOARD / ADMIN TABLE FIXES
   Specifically improves 15-inch laptop fit.
   ========================================================= */

.dashboard-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
}

.table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
}

.dashboard-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

/* Compact desktop/laptop table */
.dashboard-table th,
.dashboard-table td {
    padding: 10px 8px;
    font-size: 0.9rem;
    line-height: 1.35;
    vertical-align: top;
}

.dashboard-table th {
    white-space: nowrap;
}

.dashboard-table td {
    word-break: normal;
    overflow-wrap: anywhere;
}

/* Keep badges from forcing wide columns */
.status-pill,
.badge {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 5px 8px;
}

/* Make action columns compact */
.dashboard-table td:last-child,
.dashboard-table th:last-child {
    width: 1%;
    white-space: nowrap;
}

.dashboard-table td:last-child a,
.dashboard-table td:last-child button {
    display: inline-block;
    margin: 2px 3px 2px 0;
    font-size: 0.84rem;
}

.inline-action-form {
    display: inline-block;
    margin: 2px 0;
}

.inline-action-form button {
    padding: 6px 8px;
    font-size: 0.78rem;
}

/* Owner/admin listing tables: avoid first column swallowing the table */
.dashboard-table td:first-child,
.dashboard-table th:first-child {
    min-width: 140px;
    max-width: 260px;
}

/* Useful for emails, Stripe IDs, long titles, URLs */
.break-word,
.dashboard-table small,
.dashboard-table td a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* 15-inch laptop / small desktop tightening */
@media (min-width: 1025px) and (max-width: 1450px) {
    .admin-page,
    .dashboard-page {
        width: 98%;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .dashboard-panel {
        padding: 20px;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 8px 6px;
        font-size: 0.84rem;
    }

    .dashboard-table td:first-child,
    .dashboard-table th:first-child {
        min-width: 120px;
        max-width: 220px;
    }

    .status-pill,
    .badge {
        font-size: 0.72rem;
        padding: 4px 7px;
    }

    .dashboard-table td:last-child a,
    .dashboard-table td:last-child button {
        font-size: 0.78rem;
        padding: 5px 7px;
    }
}

/* 769px–1024px: convert dense dashboard tables to cards earlier */
@media (max-width: 1024px) {
    .table-wrapper {
        overflow-x: visible;
    }

    .dashboard-table,
    .dashboard-table thead,
    .dashboard-table tbody,
    .dashboard-table th,
    .dashboard-table td,
    .dashboard-table tr {
        display: block;
        width: 100%;
    }

    .dashboard-table thead {
        display: none;
    }

    .dashboard-table tr {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 14px;
        margin-bottom: 14px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    }

    .dashboard-table td {
        display: grid;
        grid-template-columns: 145px minmax(0, 1fr);
        gap: 12px;
        padding: 9px 0;
        border-bottom: 1px solid #eef2f6;
        font-size: 0.94rem;
        white-space: normal !important;
        max-width: none !important;
    }

    .dashboard-table td:last-child {
        border-bottom: none;
        width: 100%;
    }

    .dashboard-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #073b4c;
    }

    .dashboard-table td:first-child,
    .dashboard-table th:first-child {
        min-width: 0;
        max-width: none;
    }

    .dashboard-table td:last-child a,
    .dashboard-table td:last-child button,
    .inline-action-form {
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .dashboard-table tr {
        padding: 12px;
    }

    .dashboard-table td {
        grid-template-columns: 1fr;
        gap: 4px;
        font-size: 0.9rem;
    }

    .dashboard-table td::before {
        font-size: 0.82rem;
    }
}

/* =========================================================
   DASHBOARD HEADER / BUTTON RESPONSIVENESS
   ========================================================= */

.dashboard-header,
.admin-header-row,
.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.button-row,
.filter-actions,
.enquiry-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .dashboard-header,
    .admin-header-row,
    .panel-header {
        flex-direction: column;
        align-items: stretch;
    }

    .button-row,
    .filter-actions,
    .enquiry-actions {
        width: 100%;
    }

    .button-row .button,
    .filter-actions button,
    .filter-actions a,
    .enquiry-actions button,
    .enquiry-actions a {
        width: 100%;
        text-align: center;
    }
}

/* =========================================================
   FORMS
   ========================================================= */

input,
select,
textarea,
button {
    max-width: 100%;
}

.form-card,
.filter-panel,
.enquiry-card,
.dashboard-panel {
    max-width: 100%;
}

@media (max-width: 480px) {
    .form-card,
    .dashboard-panel,
    .enquiry-card,
    .filter-panel,
    .invoice-document {
        padding: 18px;
    }

    input,
    select,
    textarea {
        font-size: 16px; /* prevents iOS zoom */
    }
}

/* =========================================================
   INVOICE SCREEN LAYOUT
   ========================================================= */

.invoice-page {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.invoice-document {
    max-width: 100%;
    overflow: hidden;
}

.invoice-top,
.invoice-parties {
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.invoice-meta {
    text-align: right;
}

.invoice-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.invoice-table th,
.invoice-table td {
    padding: 12px;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .invoice-top,
    .invoice-parties {
        flex-direction: column;
        gap: 18px;
    }

    .invoice-meta {
        text-align: left;
    }

    .invoice-table {
        table-layout: auto;
    }
}

/* =========================================================
   PRINT: INVOICE SINGLE-PAGE A4
   ========================================================= */

@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    html,
    body {
        width: 210mm;
        min-height: 297mm;
        background: #fff !important;
        color: #000 !important;
        overflow: visible !important;
    }

    body {
        font-size: 10pt;
        line-height: 1.25;
    }

    .no-print,
    .site-header,
    .site-footer,
    .cookie-banner,
    .mobile-nav,
    .menu-toggle,
    .dashboard-header,
    .admin-header-row,
    .button-row {
        display: none !important;
    }

    .container,
    .invoice-page,
    .admin-page,
    .dashboard-page {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .invoice-document {
        width: 100% !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        page-break-inside: avoid;
    }

    .invoice-document h1,
    .invoice-document h2,
    .invoice-document h3 {
        margin-top: 0;
        margin-bottom: 6px;
        line-height: 1.15;
    }

    .invoice-document h2 {
        font-size: 16pt;
    }

    .invoice-document h3 {
        font-size: 11pt;
    }

    .invoice-document p {
        margin: 2px 0;
    }

    .invoice-top,
    .invoice-parties {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between;
        gap: 12mm;
        margin-bottom: 8mm;
        page-break-inside: avoid;
    }

    .invoice-top > div,
    .invoice-parties > div {
        width: 48%;
    }

    .invoice-meta {
        text-align: right !important;
    }

    .invoice-table {
        width: 100% !important;
        border-collapse: collapse !important;
        table-layout: fixed !important;
        margin-top: 5mm !important;
        page-break-inside: avoid;
    }

    .invoice-table th,
    .invoice-table td {
        padding: 6px 8px !important;
        border-bottom: 1px solid #ccc !important;
        font-size: 9.5pt !important;
    }

    .invoice-table tfoot th {
        font-size: 10pt !important;
    }

    .invoice-payment-note {
        margin-top: 6mm !important;
        padding: 6px 8px !important;
        border: 1px solid #ccc !important;
        background: #fff !important;
        color: #000 !important;
        page-break-inside: avoid;
    }

    a {
        color: #000 !important;
        text-decoration: none !important;
    }

    /* Prevent browser from printing URLs after links */
    a[href]::after {
        content: "" !important;
    }
}

/* =========================================================
   SMALL SCREEN REFINEMENTS
   ========================================================= */

/* 481px–768px: tablets */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        width: 94%;
    }

    .dashboard-panel,
    .form-card,
    .enquiry-card {
        padding: 22px;
    }

    .listing-card-content h2 {
        font-size: 1.15rem;
    }
}

/* 320px–480px: mobiles */
@media (max-width: 480px) {
    .container {
        width: 92%;
    }

    h1 {
        font-size: clamp(1.8rem, 9vw, 2.3rem);
    }

    h2 {
        font-size: clamp(1.35rem, 7vw, 1.7rem);
    }

    .page-heading {
        margin-bottom: 24px;
    }

    .dashboard-panel,
    .form-card,
    .enquiry-card,
    .safety-card,
    .seo-intro-panel {
        border-radius: 12px;
        padding: 18px;
    }

    .listing-card {
        border-radius: 12px;
    }

    .listing-card img,
    .placeholder-image {
        height: 210px;
        object-fit: cover;
    }

    .features-list,
    .feature-row {
        gap: 8px;
    }

    .features-list span,
    .feature-row span {
        font-size: 0.85rem;
    }

    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookie-banner-content {
        padding: 15px;
    }

    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-actions button,
    .cookie-banner-actions a {
        width: 100%;
        text-align: center;
    }
}

/* =========================================================
   CREATE / EDIT LISTING FORM SECTION FIXES
   Fix squashed status, features, and availability sections
   ========================================================= */

/* Main listing form containers */
.create-listing-page,
.edit-listing-page,
.dashboard-page,
.form-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Any dashboard/form panel on create/edit listing pages */
.create-listing-page .dashboard-panel,
.edit-listing-page .dashboard-panel,
.create-listing-page .form-card,
.edit-listing-page .form-card,
.dashboard-page .dashboard-panel,
.dashboard-page .form-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

/* Current status block on edit listing */
.status-summary,
.current-status,
.listing-status-panel,
.status-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
}

.status-summary > *,
.current-status > *,
.listing-status-panel > *,
.status-panel > * {
    min-width: 0;
    max-width: 100%;
}

.status-summary .status-pill,
.current-status .status-pill,
.listing-status-panel .status-pill,
.status-panel .status-pill {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* If the current status area is just a paragraph inside a dashboard panel */
.dashboard-panel p,
.dashboard-panel div,
.form-card p,
.form-card div {
    max-width: 100%;
}

/* Form grids must shrink rather than push outside the card */
.form-grid,
.form-grid.two-columns,
.form-grid.three-columns,
.form-grid.four-columns {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.form-grid > label,
.form-grid > div,
.form-grid > fieldset {
    min-width: 0;
    max-width: 100%;
}

/* Inputs/selects/textareas */
.form-card input,
.form-card select,
.form-card textarea,
.dashboard-panel input,
.dashboard-panel select,
.dashboard-panel textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* =========================================================
   FEATURES SECTION FIX
   ========================================================= */

/* Common feature wrappers */
.features-grid,
.features-list,
.checkbox-grid,
.feature-checkboxes,
.amenities-grid,
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Feature checkbox labels */
.features-grid label,
.checkbox-grid label,
.feature-checkboxes label,
.amenities-grid label,
.options-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f7f9fb;
    line-height: 1.3;
}

/* Checkbox itself should not stretch full width */
.features-grid input[type="checkbox"],
.checkbox-grid input[type="checkbox"],
.feature-checkboxes input[type="checkbox"],
.amenities-grid input[type="checkbox"],
.options-grid input[type="checkbox"] {
    width: auto;
    min-width: auto;
    flex: 0 0 auto;
}

/* Checkbox label text can wrap */
.features-grid label span,
.checkbox-grid label span,
.feature-checkboxes label span,
.amenities-grid label span,
.options-grid label span {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* If your feature labels do not use spans */
.features-grid label,
.checkbox-grid label,
.feature-checkboxes label,
.amenities-grid label,
.options-grid label {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Mobile feature layout */
@media (max-width: 520px) {
    .features-grid,
    .features-list,
    .checkbox-grid,
    .feature-checkboxes,
    .amenities-grid,
    .options-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   AVAILABILITY SECTION FIX
   ========================================================= */

/* Existing availability rows/cards */
.availability-list,
.availability-items,
.availability-records,
.availability-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.availability-item,
.availability-row,
.availability-card,
.availability-record {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    overflow-x: hidden;
}

/* Availability form rows */
.availability-form,
.availability-row form,
.availability-card form,
.availability-record form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Availability grid fields */
.availability-form .form-grid,
.availability-row .form-grid,
.availability-card .form-grid,
.availability-record .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    width: 100%;
    max-width: 100%;
}

/* Buttons in availability area */
.availability-form button,
.availability-row button,
.availability-card button,
.availability-record button,
.availability-form .button,
.availability-row .button,
.availability-card .button,
.availability-record .button {
    max-width: 100%;
    white-space: normal;
}

/* If availability is using a table, make it responsive */
.availability-table,
.availability-table table {
    width: 100%;
    max-width: 100%;
    table-layout: auto;
}

.availability-table th,
.availability-table td {
    padding: 8px;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .availability-form .form-grid,
    .availability-row .form-grid,
    .availability-card .form-grid,
    .availability-record .form-grid {
        grid-template-columns: 1fr !important;
    }

    .availability-table,
    .availability-table thead,
    .availability-table tbody,
    .availability-table tr,
    .availability-table th,
    .availability-table td {
        display: block;
        width: 100%;
    }

    .availability-table thead {
        display: none;
    }

    .availability-table tr {
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        margin-bottom: 12px;
        padding: 12px;
        background: #fff;
    }

    .availability-table td {
        border-bottom: 1px solid #eef2f6;
        padding: 8px 0;
    }

    .availability-table td:last-child {
        border-bottom: none;
    }
}

/* =========================================================
   LOCATION ROW FIX
   ========================================================= */

.location-fields-row {
    display: grid;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 18px;
}

.location-fields-row > label {
    min-width: 0;
    max-width: 100%;
}

@media (min-width: 769px) {
    .location-fields-row {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .location-fields-row {
        grid-template-columns: 1fr !important;
    }
}
/* =========================================================
   MOBILE DASHBOARD HEADER / PAGE MARGIN FIX
   Fixes Edit Listing, Create Listing, Enquiries, Reviews etc.
   ========================================================= */

@media (max-width: 768px) {
    .dashboard-page,
    .form-page,
    .content-page,
    .listings-page,
    .admin-page {
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }

    .dashboard-page > .dashboard-header,
    .form-page > .dashboard-header,
    .content-page > .dashboard-header,
    .listings-page > .dashboard-header,
    .admin-page > .admin-header-row {
        margin-left: 0;
        margin-right: 0;
    }

    .dashboard-header,
    .admin-header-row {
        padding-left: 0;
        padding-right: 0;
        align-items: flex-start;
    }

    .dashboard-header .button,
    .admin-header-row .button,
    .dashboard-header .button-secondary,
    .admin-header-row .button-secondary {
        width: auto;
        max-width: 100%;
        align-self: flex-start;
        text-align: center;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }

    .dashboard-header .button-row,
    .admin-header-row .button-row {
        width: auto;
        align-items: flex-start;
    }

    .dashboard-header .button-row .button,
    .admin-header-row .button-row .button {
        width: auto;
        max-width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .dashboard-page,
    .form-page,
    .content-page,
    .listings-page,
    .admin-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .dashboard-header h1,
    .admin-header-row h1 {
        margin-bottom: 6px;
    }

    .dashboard-header p,
    .admin-header-row p {
        margin-bottom: 10px;
    }
}
/* =========================================================
   MOBILE ENQUIRY / REVIEW / REPORT CARD WIDTH FIX
   Prevent cards from overrunning screen width
   ========================================================= */

.enquiry-list,
.review-list,
.report-list {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.enquiry-card,
.review-card,
.report-card,
.enquiry-message,
.enquiry-trip-details,
.enquiry-meta,
.enquiry-actions {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Meta rows often contain long email addresses / dates */
.enquiry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.enquiry-meta span,
.enquiry-trip-details span,
.enquiry-trip-details strong,
.enquiry-message p,
.review-card p,
.report-card p,
.report-card a,
.enquiry-card a {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Detail grids should never force horizontal scroll */
.enquiry-trip-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.enquiry-trip-details > div {
    min-width: 0;
    max-width: 100%;
}

/* Action buttons/links wrap instead of stretching beyond screen */
.enquiry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.enquiry-actions form,
.enquiry-actions a,
.enquiry-actions button {
    max-width: 100%;
}

/* Mobile-specific card tightening */
@media (max-width: 768px) {
    .enquiry-card,
    .review-card,
    .report-card {
        padding: 16px;
        border-radius: 12px;
    }

    .enquiry-trip-details {
        grid-template-columns: 1fr;
    }

    .enquiry-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .enquiry-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .enquiry-actions form,
    .enquiry-actions a,
    .enquiry-actions button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .enquiry-card,
    .review-card,
    .report-card {
        padding: 14px;
    }
}
/* =========================================================
   MOBILE CARD OVERFLOW HARD FIX
   Enquiries, availability, listing titles
   ========================================================= */

@media (max-width: 768px) {
    body,
    html {
        overflow-x: hidden;
    }

    .container,
    .dashboard-page,
    .form-page,
    .listing-detail-page,
    .listings-page,
    .admin-page {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Enquiry / review / report / availability cards */
    .enquiry-card,
    .review-card,
    .report-card,
    .availability-card,
    .availability-row,
    .availability-item,
    .public-availability-item,
    .dashboard-panel,
    .form-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .enquiry-card *,
    .review-card *,
    .report-card *,
    .availability-card *,
    .availability-row *,
    .availability-item *,
    .public-availability-item *,
    .dashboard-panel *,
    .form-card * {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    /* Long text/emails/messages must wrap */
    .enquiry-card,
    .enquiry-card p,
    .enquiry-card span,
    .enquiry-card strong,
    .enquiry-card a,
    .enquiry-message,
    .enquiry-message p,
    .enquiry-meta,
    .enquiry-meta span,
    .enquiry-trip-details,
    .enquiry-trip-details div,
    .enquiry-trip-details span,
    .review-card,
    .report-card,
    .availability-card,
    .availability-row,
    .availability-item,
    .public-availability-item {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* Enquiry meta/details should stack on mobile */
    .enquiry-meta,
    .enquiry-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .enquiry-trip-details {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .enquiry-actions form,
    .enquiry-actions a,
    .enquiry-actions button {
        width: 100%;
        text-align: center;
    }

    /* Availability rows/cards */
    .availability-form,
    .availability-form .form-grid,
    .availability-row form,
    .availability-card form,
    .availability-record form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        grid-template-columns: 1fr !important;
    }

    .availability-price-status {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .public-availability-item {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    /* Listing titles: clamp/wrap safely */
    .listing-card-content h2,
    .listing-title-block h1,
    .dashboard-table td[data-label="Title"] strong,
    .dashboard-table td[data-label="Listing"] strong,
    .enquiry-card h2,
    .enquiry-card h3,
    .review-card h3,
    .report-card h3 {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
        line-height: 1.2;
    }

    /* Truncate listing card titles to 2 lines */
    .listing-card-content h2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Detail page hero title can wrap, but must not overflow */
    .listing-title-block h1 {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
    }
}

@media (max-width: 480px) {
    .enquiry-card,
    .review-card,
    .report-card,
    .availability-card,
    .availability-row,
    .availability-item,
    .public-availability-item,
    .dashboard-panel,
    .form-card {
        padding-left: 14px;
        padding-right: 14px;
    }

    .listing-card-content h2 {
        font-size: 1.05rem;
    }
}

/* =========================================================
   LARGE SCREEN DASHBOARD WIDTH RESTORE
   Keeps dashboards readable on desktop/laptop screens
   while still allowing admin/listing tables to breathe.
   ========================================================= */

@media (min-width: 1025px) {
    .dashboard-page,
    .form-page,
    .content-page,
    .listings-page {
        width: min(94%, 1180px);
        max-width: 1180px;
        margin-left: auto;
        margin-right: auto;
    }

    .dashboard-page.wide-page,
    .admin-page.wide-page {
        width: min(98%, 1400px);
        max-width: 1400px;
    }

    .admin-page {
        width: min(96%, 1320px);
        max-width: 1320px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Extra large screens should not make normal dashboard pages huge */
@media (min-width: 1401px) {
    .dashboard-page,
    .form-page,
    .content-page,
    .listings-page {
        width: min(90%, 1180px);
        max-width: 1180px;
    }

    .admin-page {
        width: min(92%, 1320px);
        max-width: 1320px;
    }

    .dashboard-page.wide-page,
    .admin-page.wide-page {
        width: min(94%, 1450px);
        max-width: 1450px;
    }
}
/* =========================================================
   ADMIN REVIEW DETAILS CARD FIX
   Prevent Sleeps / Bedrooms / Bathrooms / Price values
   overflowing their grey boxes
   ========================================================= */

.admin-review-layout .details-grid,
.admin-page .details-grid,
.dashboard-panel .details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    width: 100%;
    max-width: 100%;
}

.admin-review-layout .details-grid > div,
.admin-page .details-grid > div,
.dashboard-panel .details-grid > div {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.details-grid strong,
.details-grid span {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.details-grid strong {
    font-size: 0.82rem;
    line-height: 1.2;
}

.details-grid span {
    font-size: 0.95rem;
    line-height: 1.25;
}

/* Slightly tighter on smaller screens */
@media (max-width: 768px) {
    .admin-review-layout .details-grid,
    .admin-page .details-grid,
    .dashboard-panel .details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .admin-review-layout .details-grid,
    .admin-page .details-grid,
    .dashboard-panel .details-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   SITE HEALTH / ADMIN SETTINGS
   ========================================================= */

.health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.health-check-list {
    display: grid;
    gap: 12px;
}

.health-check {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f7f9fb;
    border: 1px solid #e5e7eb;
}

.health-check span {
    font-weight: 700;
    color: #073b4c;
    overflow-wrap: anywhere;
}

.health-check strong {
    font-size: 0.82rem;
    white-space: nowrap;
}

.health-check small {
    grid-column: 1 / -1;
    color: #52616b;
    overflow-wrap: anywhere;
}

.health-ok {
    color: #047857;
}

.health-warning {
    color: #b45309;
}

.compact-stats {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

@media (max-width: 900px) {
    .health-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .health-check {
        grid-template-columns: 1fr;
    }

    .health-check strong {
        white-space: normal;
    }
}
/* Site health action links */
.health-status-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.health-action-link {
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    color: #073b4c;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    padding: 4px 9px;
    white-space: nowrap;
}

.health-action-link:hover {
    color: #073b4c;
    background: #bae6fd;
}

.health-help-panel {
    margin-top: 24px;
}

.health-help-panel pre {
    max-width: 100%;
    overflow-x: auto;
    background: #111827;
    color: #f9fafb;
    padding: 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.health-help-panel code {
    background: #f3f4f6;
    color: #111827;
    padding: 2px 5px;
    border-radius: 5px;
}

@media (max-width: 520px) {
    .health-status-action {
        justify-content: flex-start;
    }

    .health-action-link {
        width: fit-content;
    }
}
/* Site health test email / webhook guidance */
.health-test-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
    margin-top: 18px;
}

.health-test-form label {
    margin: 0;
}

.health-guidance-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.compact-help {
    margin-top: 18px;
    padding: 18px;
    background: #f7f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.compact-help h3 {
    margin-top: 0;
}

.compact-help ol {
    margin-bottom: 0;
    padding-left: 22px;
}

.compact-help li {
    margin-bottom: 6px;
}

@media (max-width: 700px) {
    .health-test-form {
        grid-template-columns: 1fr;
    }

    .health-test-form .button,
    .health-guidance-actions .button {
        width: 100%;
        text-align: center;
    }
}
/* Listing image upload panel */
.image-upload-panel {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f7f9fb;
}

.image-upload-status {
    margin: 0 0 14px;
    font-weight: 700;
    color: #073b4c;
}

.image-upload-form label {
    display: block;
    margin-bottom: 12px;
}

.image-upload-form input[type="file"] {
    display: block;
    margin-top: 8px;
    padding: 10px;
    width: 100%;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
}

.image-upload-form .field-help {
    margin: 8px 0 14px;
}

.image-upload-form button {
    margin-top: 4px;
}
/* =========================================================
   EDIT LISTING SECTION WIDTH FIX
   Keeps availability and payment history aligned with other panels
   ========================================================= */

.edit-listing-page .dashboard-panel,
.edit-listing-page .form-card,
.edit-listing-page .availability-section,
.edit-listing-page .payment-history-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* If these sections are outside the normal form/card wrapper */
.edit-listing-page > .dashboard-panel,
.edit-listing-page > .availability-section,
.edit-listing-page > .payment-history-section {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

/* Common wrappers if your HTML uses these class names */
.availability-section,
.availability-panel,
.payment-history-section,
.payment-history-panel,
.invoice-history-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Keep tables inside their panel instead of stretching page-wide */
.availability-section .table-wrapper,
.availability-panel .table-wrapper,
.payment-history-section .table-wrapper,
.payment-history-panel .table-wrapper,
.invoice-history-section .table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

/* On large screens, align standalone panels with the main edit listing width */
@media (min-width: 1025px) {
    .edit-listing-page .availability-section,
    .edit-listing-page .availability-panel,
    .edit-listing-page .payment-history-section,
    .edit-listing-page .payment-history-panel,
    .edit-listing-page .invoice-history-section {
        max-width: 1180px;
        margin-left: auto;
        margin-right: auto;
    }
}
/* Keep edit listing availability/payment panels aligned with other cards */
.edit-listing-contained-panel {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.edit-listing-contained-panel .table-wrapper,
.availability-manager .table-wrapper,
.payment-history .table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

@media (max-width: 768px) {
    .edit-listing-contained-panel {
        max-width: 100%;
    }
}
/* =========================================================
   LISTING IMAGE MANAGEMENT
   ========================================================= */

.listing-images-manager {
    margin-top: 24px;
}

.listing-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.listing-image-item {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.listing-image-item.is-primary {
    border-color: #073b4c;
    box-shadow: 0 0 0 2px rgba(7, 59, 76, 0.12);
}

.listing-image-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f3f4f6;
    overflow: hidden;
}

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

.primary-image-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    background: #073b4c;
    color: #fff;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.listing-image-actions {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.listing-image-actions form {
    margin: 0;
}

.listing-image-actions button,
.listing-image-actions .button {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.compact-empty {
    padding: 16px;
    margin-top: 12px;
}

@media (max-width: 520px) {
    .listing-image-grid {
        grid-template-columns: 1fr;
    }
}
/* Expiry status labels */
.expiry-active,
.expiry-soon,
.expiry-expired,
.expiry-missing {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
}

.expiry-active {
    background: #ecfdf5;
    color: #047857;
}

.expiry-soon {
    background: #fffbeb;
    color: #b45309;
}

.expiry-expired {
    background: #fef2f2;
    color: #b91c1c;
}

.expiry-missing {
    background: #f3f4f6;
    color: #4b5563;
}
/* =========================================================
   ADMIN LAUNCH CHECKLIST
   ========================================================= */

.launch-summary-panel {
    margin-bottom: 24px;
}

.launch-progress-bar {
    width: 100%;
    height: 16px;
    border-radius: 999px;
    overflow: hidden;
    background: #e5e7eb;
    margin: 14px 0 22px;
}

.launch-progress-bar span {
    display: block;
    height: 100%;
    background: #073b4c;
    border-radius: inherit;
}

.launch-checklist {
    display: grid;
    gap: 18px;
}

.launch-checklist-item {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    background: #fff;
}

.launch-checklist-item.launch-status-done {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.launch-checklist-item.launch-status-not_applicable {
    background: #f9fafb;
}

.launch-checklist-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
}

.launch-checklist-main h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.launch-checklist-main p {
    margin-top: 0;
}

.launch-status-block {
    display: grid;
    gap: 6px;
    justify-items: end;
    text-align: right;
}

.launch-status-block small {
    color: #52616b;
}

.launch-checklist-form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

.launch-checklist-form button {
    margin-top: 12px;
}

.status-done {
    background: #dcfce7;
    color: #166534;
}

.status-pending {
    background: #fffbeb;
    color: #92400e;
}

.status-not_applicable {
    background: #f3f4f6;
    color: #4b5563;
}

@media (max-width: 768px) {
    .launch-checklist-main {
        grid-template-columns: 1fr;
    }

    .launch-status-block {
        justify-items: start;
        text-align: left;
    }
}
