/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg: #f6f4ef;
    --text: #10203a;
    --muted: #4b5b73;
    --line: #d9e0ea;
    --primary: #123d74;
    --wa: #16a34a;
    --call: #2563eb;
    --sand: #efe7d7;
    --deep: #0f2a4d;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
}

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

.site-header {
    border-bottom: 1px solid #d8deea;
    padding: 14px 0;
    margin-bottom: 18px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-footer {
    background: #fff;
    border-top: 1px solid #d8deea;
    margin-top: 18px;
}

.brand {
    color: var(--text);
    font-family: 'Manrope', Arial, sans-serif;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.2px;
    font-size: 1.24rem;
}

h1, h2, h3 {
    font-family: 'Manrope', Arial, sans-serif;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.45rem); margin-bottom: 10px; line-height: 1.15; }
h2 { font-size: clamp(1.2rem, 3vw, 1.55rem); margin: 24px 0 12px; line-height: 1.2; }

.hero p { color: var(--muted); max-width: 75ch; }
.commercial-hero {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    background: linear-gradient(140deg, #ffffff 0%, #eff4ff 55%, #f7fcff 100%);
    position: relative;
    overflow: hidden;
}

.hero-premium {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 18px;
    align-items: start;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-side-card {
    position: relative;
    z-index: 2;
    border: 1px solid #c8d5e8;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 14px;
    align-self: start;
    height: fit-content;
}

.hero-side-card h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #204e8c;
    font-size: 0.76rem;
    margin: 0 0 10px;
}

.hero-bg-blob {
    position: absolute;
    border-radius: 999px;
    filter: blur(1px);
}

.hero-bg-blob-a {
    width: 220px;
    height: 220px;
    background: rgba(22, 163, 74, 0.12);
    right: -40px;
    top: -60px;
}

.hero-bg-blob-b {
    width: 280px;
    height: 280px;
    background: rgba(37, 99, 235, 0.1);
    left: -80px;
    bottom: -130px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #21324a;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid #bad0ee;
    background: #eef5ff;
    color: #234f8d;
    font-size: 0.68rem;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.trust-row {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.trust-item {
    border: 1px solid #cfd9e8;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
    display: grid;
    gap: 3px;
}

.trust-item strong {
    font-size: 1.05rem;
}

.trust-item span {
    color: var(--muted);
    font-size: 0.93rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.review-top-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.review-top-card {
    border: 1px solid #d1dbe8;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
}

.review-top-card h3 {
    margin: 0 0 8px;
    font-size: 1.02rem;
}

.review-top-stars {
    margin: 0;
    font-weight: 700;
    color: #0f2a4d;
}

.review-top-count {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.featured-card {
    border: 1px solid #d1dbe8;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
}

.featured-card.is-verified {
    border-color: #79d59d;
    box-shadow: 0 8px 24px rgba(22, 101, 52, 0.15);
    background: linear-gradient(180deg, #ffffff 0%, #eefaf2 100%);
}

.featured-card h3 {
    margin: 0;
    font-size: 1.02rem;
}

.featured-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.badge-verified {
    font-size: 0.75rem;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    border-radius: 999px;
    padding: 2px 8px;
    white-space: nowrap;
}

.badge-air {
    font-size: 0.75rem;
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
    border-radius: 999px;
    padding: 2px 8px;
    white-space: nowrap;
}

.badge-not-verified {
    font-size: 0.75rem;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 2px 8px;
    white-space: nowrap;
}

.badge-top {
    font-size: 0.75rem;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    border-radius: 999px;
    padding: 2px 8px;
    white-space: nowrap;
}

.badge-verified.inline {
    margin-left: 8px;
    vertical-align: middle;
}

.badge-air.inline {
    margin-left: 8px;
    vertical-align: middle;
}

.badge-top.inline {
    margin-left: 8px;
    vertical-align: middle;
}

.muted {
    color: var(--muted);
    margin: 8px 0 10px;
    font-size: 0.94rem;
}

.ad-banner {
    margin: 2px 0 12px;
}

.ad-banner a {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-decoration: none;
    border: 1px solid #c9d8ef;
    border-radius: 12px;
    background: linear-gradient(90deg, #1e4d86 0%, #123d74 100%);
    color: #fff;
    padding: 14px;
}

.ad-banner a span {
    color: #dbeafe;
    font-size: 0.94rem;
}

.ad-banner .ad-banner-btn {
    margin-top: 8px;
    display: inline-block;
    width: fit-content;
    background: #16a34a;
    color: #ffffff;
    border: 1px solid #15803d;
    border-radius: 8px;
    padding: 7px 12px;
    font-weight: 700;
    font-size: 0.9rem;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid #d3dceb;
    border-radius: 12px;
    background: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    background: #fff;
}

th, td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

th { background: #fafafa; }
th { background: #f3f7ff; font-weight: 700; color: #1f3658; }

a { color: var(--primary); }

.btn {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 0.92rem;
    margin-right: 6px;
    margin-bottom: 6px;
    font-weight: 700;
}

.btn.whatsapp { background: var(--wa); }
.btn.mail { background: #15803d; }
.btn.call { background: var(--call); }
.btn.primary { background: var(--primary); border: 0; cursor: pointer; color: #fff; }

.pagination {
    margin: 14px 0;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    margin: 14px 0;
}

.form {
    display: grid;
    gap: 12px;
    max-width: 680px;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font: inherit;
}

.success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #a7f3d0;
    padding: 10px;
    border-radius: 6px;
}

.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 10px;
    border-radius: 6px;
}

.cta-links {
    margin: 24px 0 34px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.text-link {
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 12px;
}

.company-layout {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.company-details {
    flex: 1 1 58%;
}

.company-photo {
    flex: 1 1 42%;
    min-height: 220px;
}

.company-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: block;
}

.driver-strip {
    margin-top: 24px;
}

.driver-strip-inner {
    border: 1px solid #c9d7ea;
    border-radius: 14px;
    background: linear-gradient(90deg, #0f2a4d 0%, #1e4d86 100%);
    color: #fff;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.driver-strip-inner h2 {
    margin: 0 0 6px;
    color: #fff;
}

.driver-strip-inner p {
    margin: 0;
    color: #dbeafe;
}

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

.mobile-sticky-cta {
    display: none;
}

.admin-page .container {
    width: min(1700px, 98%);
}

.admin-page .table-wrap {
    overflow-x: auto;
}

.admin-page table {
    min-width: 1450px;
}

.admin-page th,
.admin-page td {
    white-space: nowrap;
}

.admin-page td:last-child {
    white-space: normal;
}

.admin-listings-table {
    min-width: 1650px;
    table-layout: auto;
}

.admin-listings-table th,
.admin-listings-table td {
    padding: 8px 10px;
    font-size: 0.94rem;
}

.admin-listings-table th {
    position: sticky;
    top: 0;
    z-index: 3;
}

.admin-listings-table th:nth-child(1),
.admin-listings-table td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #f3f7ff;
    min-width: 64px;
}

.admin-listings-table th:nth-child(2),
.admin-listings-table td:nth-child(2) {
    position: sticky;
    left: 64px;
    z-index: 2;
    background: #ffffff;
    min-width: 260px;
    max-width: 340px;
    white-space: normal;
    word-break: break-word;
}

.admin-listings-table th:nth-child(2) {
    background: #f3f7ff;
}

.admin-listings-table th:last-child,
.admin-listings-table td:last-child {
    min-width: 250px;
}

.admin-listings-table th:nth-last-child(1),
.admin-listings-table td:nth-last-child(1) {
    position: sticky;
    right: 0;
    z-index: 2;
    background: #ffffff;
    box-shadow: -8px 0 12px rgba(15, 42, 77, 0.08);
}

.admin-listings-table th:nth-last-child(1) {
    background: #f3f7ff;
    z-index: 3;
}

.admin-listings-table th:nth-last-child(2),
.admin-listings-table td:nth-last-child(2) {
    min-width: 90px;
    position: sticky;
    right: 250px;
    z-index: 2;
    background: #ffffff;
}

.admin-listings-table th:nth-last-child(2) {
    background: #f3f7ff;
    z-index: 3;
}

.admin-listings-table th:nth-last-child(3),
.admin-listings-table td:nth-last-child(3) {
    min-width: 130px;
    position: sticky;
    right: 340px;
    z-index: 2;
    background: #ffffff;
}

.admin-listings-table th:nth-last-child(3) {
    background: #f3f7ff;
    z-index: 3;
}

.admin-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.admin-actions form,
.admin-actions a {
    margin: 0;
}

.admin-actions .btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 6px 8px;
    font-size: 0.86rem;
    text-align: center;
    border-radius: 7px;
}

.admin-density-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-density-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-density-form .btn {
    margin: 0;
}

.admin-density-form .btn.is-active {
    box-shadow: inset 0 0 0 2px #0b2f5b;
}

.admin-other-settings-form {
    gap: 16px;
}

.admin-settings-block {
    border: 1px solid #d8e2f0;
    border-radius: 10px;
    padding: 14px;
    background: #fbfdff;
}

.admin-settings-subtitle {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.admin-settings-fields {
    display: grid;
    gap: 12px;
}

.admin-settings-fields-2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
}

.admin-toggle-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #d9e2ee;
    border-radius: 8px;
    background: #fff;
    font-weight: 600;
    min-height: 52px;
}

.admin-toggle-item input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
}

.admin-toggle-item span {
    line-height: 1.35;
}

.admin-page.admin-density-comfortable .admin-listings-table th,
.admin-page.admin-density-comfortable .admin-listings-table td {
    padding: 12px 12px;
    font-size: 1rem;
}

.admin-page.admin-density-comfortable .admin-actions .btn {
    padding: 8px 10px;
    font-size: 0.92rem;
}

.profile-page {
    padding-bottom: 24px;
}

.profile-breadcrumb {
    font-size: 0.92rem;
    color: #5c6e88;
    margin-bottom: 10px;
}

.profile-breadcrumb a {
    color: #245189;
    text-decoration: none;
    font-weight: 600;
}

.profile-breadcrumb span {
    margin: 0 6px;
}

.profile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #eef4ff 60%, #f8fbff 100%);
}

.profile-hero h1 {
    margin: 0;
}

.profile-hero-main {
    flex: 1 1 auto;
}

.profile-hero-actions {
    min-width: 180px;
    display: grid;
    gap: 8px;
    justify-items: stretch;
    align-self: flex-start;
}

.profile-call-btn {
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 12px 18px;
    border-radius: 10px;
    text-align: center;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%);
    border: 2px solid #1e40af;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.profile-company-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 16px;
    border-radius: 14px;
    background: #fff;
    border-color: #d0dae8;
}

.profile-company-details h2 {
    margin-top: 0;
}

.profile-info-list {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.profile-info-list p {
    margin: 0;
    display: grid;
    gap: 2px;
}

.profile-info-list strong {
    color: #334a6b;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profile-info-list span {
    font-size: 1rem;
    color: #12243f;
}

.profile-hero-main .profile-call-btn {
    min-width: 120px;
    text-align: center;
}

.profile-hero-main .btn.whatsapp.profile-call-btn {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 55%, #22c55e 100%);
    border: 2px solid #166534;
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.3);
}

.profile-label {
    margin: 12px 0 8px;
}

.airport-list {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.airport-list li {
    line-height: 1.45;
    border: 1px solid #d9e2ee;
    border-radius: 10px;
    padding: 8px 10px;
    background: #f9fbff;
}

.airport-list .airport-name {
    font-weight: 700;
    display: block;
    color: #1e3557;
}

.airport-list .airport-distance {
    color: #374151;
}

.profile-company-map {
    min-height: 320px;
}

.profile-company-map iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
    border-radius: 10px;
    display: block;
    pointer-events: none;
}

.profile-content-card {
    border-radius: 14px;
    background: #fff;
    border-color: #d0dae8;
}

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

.review-item {
    border: 1px solid #d9e2ee;
    border-radius: 10px;
    background: #f9fbff;
    padding: 10px 12px;
}

.review-item p {
    margin: 0;
}

.review-item p + p {
    margin-top: 6px;
    color: #253a58;
}

.review-rating {
    color: #3a5f8f;
    font-weight: 700;
    margin-left: 4px;
}

.profile-claim-box {
    border: 1px solid #cdd9ea;
    border-radius: 14px;
    background: linear-gradient(90deg, #0f2a4d 0%, #1d4f88 100%);
    color: #fff;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-claim-box p {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
}

.bulk-progress-card {
    margin-bottom: 10px;
}

.bulk-progress-track {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    border: 1px solid #c6d1e6;
    background: #eef3fb;
    overflow: hidden;
}

.bulk-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2f66e2, #1d4eaf);
    transition: width 0.35s ease;
}

.bulk-progress-status {
    margin: 8px 0 2px;
    font-weight: 600;
    color: #11284d;
}

.bulk-progress-substatus {
    margin: 0;
    color: #4e5f7a;
    font-size: 0.95rem;
}

.ad-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.ad-package-card {
    border: 1px solid #d6e0ef;
    border-radius: 12px;
    background: #f9fbff;
    padding: 12px;
}

.ad-package-card h3 {
    margin: 0 0 6px;
}

.ad-package-price {
    margin: 0 0 8px;
    color: #123d74;
    font-weight: 700;
}

.ad-package-card ul {
    margin: 0 0 10px 18px;
    padding: 0;
}

.ad-package-card li {
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    th, td { padding: 10px; }
    .btn { width: 100%; text-align: center; margin-right: 0; }
    .actions { display: grid; gap: 8px; }
    .company-layout { flex-direction: column; }
    .company-photo { min-height: 220px; }
    .hero-premium { grid-template-columns: 1fr; }
    .hero-side-card { order: 2; }
    .trust-row { grid-template-columns: 1fr; }
    .featured-grid { grid-template-columns: 1fr; }
    .review-top-grid { grid-template-columns: 1fr; }
    .profile-hero { display: block; }
    .profile-hero-actions { min-width: 0; margin-top: 12px; }
    .profile-hero-main .profile-call-btn { width: 100%; }
    .profile-company-layout { grid-template-columns: 1fr; }
    .profile-company-map { min-height: 240px; }
    .profile-company-map iframe { min-height: 240px; }
    .profile-claim-box { display: block; }
    .profile-claim-box .btn { width: 100%; margin-top: 10px; }
    .driver-strip-actions { width: 100%; }
    .driver-strip-actions .btn { width: 100%; }
    .admin-page .container { width: 94%; }
    .admin-page table { min-width: 900px; }
    .admin-page th,
    .admin-page td { white-space: normal; }
    .admin-listings-table th:nth-child(1),
    .admin-listings-table td:nth-child(1),
    .admin-listings-table th:nth-child(2),
    .admin-listings-table td:nth-child(2),
    .admin-listings-table th:nth-last-child(1),
    .admin-listings-table td:nth-last-child(1),
    .admin-listings-table th:nth-last-child(2),
    .admin-listings-table td:nth-last-child(2),
    .admin-listings-table th:nth-last-child(3),
    .admin-listings-table td:nth-last-child(3) {
        position: static;
        box-shadow: none;
    }
    .admin-actions {
        grid-template-columns: 1fr;
    }
    .admin-density-card {
        align-items: flex-start;
    }
    .admin-toggle-grid,
    .admin-settings-fields-2col {
        grid-template-columns: 1fr;
    }

    .home-page table,
    .home-page thead,
    .home-page tbody,
    .home-page th,
    .home-page tr,
    .home-page td { display: block; }
    .home-page thead { display: none; }
    .home-page .table-wrap { border: 0; background: transparent; }
    .home-page table { min-width: 0; background: transparent; }
    .home-page tr {
        border: 1px solid #d3dceb;
        border-radius: 10px;
        background: #fff;
        margin-bottom: 10px;
        padding: 8px 10px;
    }
    .home-page td {
        border: 0;
        padding: 8px 0;
    }
    .home-page td:before {
        content: attr(data-label);
        display: block;
        color: #5a6b86;
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 2px;
    }
    .home-page td:first-child:before {
        content: "Company";
    }

    .mobile-sticky-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        background: #ffffff;
        border-top: 1px solid #d8deea;
        padding: 8px 10px;
        z-index: 25;
    }
    .mobile-sticky-cta .btn {
        margin: 0;
    }
    body {
        padding-bottom: 72px;
    }
}
