body { font-family: 'Cairo', sans-serif; }

.content {
    background:
        radial-gradient(circle at 10% 10%, rgba(0, 166, 126, 0.08) 0%, transparent 34%),
        radial-gradient(circle at 90% 2%, rgba(79, 172, 254, 0.09) 0%, transparent 30%),
        var(--page-bg);
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.page-title h1 {
    font-size: 1.45rem;
    color: var(--text);
    margin-bottom: .2rem;
}

.page-title p {
    color: var(--text-2);
    font-size: .84rem;
}

.page-actions,
.filter-row,
.detail-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.section-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    padding: 1rem;
    margin-bottom: 1rem;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .9rem;
}

.section-title h2 {
    font-size: .95rem;
    color: var(--text);
}

.input,
.select,
.textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .8rem .9rem;
    background: #fff;
    color: var(--text);
    font-family: inherit;
    font-size: .86rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 166, 126, .10);
}

.textarea {
    min-height: 120px;
    resize: vertical;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.field-span-2 { grid-column: span 2; }

.field label {
    display: block;
    margin-bottom: .45rem;
    font-size: .8rem;
    color: var(--text-2);
    font-weight: 700;
}

.toolbar-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
    flex-wrap: wrap;
}

.search-wrap {
    position: relative;
    min-width: 240px;
    flex: 1;
}

.search-wrap .input {
    padding-inline-start: 2.5rem;
}

.search-ico {
    position: absolute;
    inset-inline-start: .9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
}

.trips-grid,
.destinations-grid,
.placeholder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1rem;
}

.trip-card,
.destination-card,
.placeholder-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.trip-cover,
.destination-cover {
    height: 170px;
    background: linear-gradient(135deg, #00a67e 0%, #4facfe 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 1rem;
    color: #fff;
}

.trip-cover-title,
.destination-cover-title {
    font-size: 1.05rem;
    font-weight: 800;
    max-width: 70%;
}

.trip-card-body {
    padding: 1rem;
}

.trip-meta,
.inline-meta,
.booking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .6rem;
}

.chip {
    padding: .22rem .55rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: .7rem;
    font-weight: 700;
}

.trip-desc,
.muted {
    color: var(--text-2);
    font-size: .8rem;
    line-height: 1.75;
}

.card-actions {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin-top: .9rem;
}

.table-wrap {
    overflow: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.data-table th,
.data-table td {
    text-align: right;
    padding: .9rem .8rem;
    border-bottom: 1px solid #edf2f7;
    vertical-align: top;
    font-size: .82rem;
}

.data-table th {
    color: var(--text-2);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.data-table tr:hover td {
    background: #f8fafc;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .6rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
}

.pill-pending { background: #fef3c7; color: #92400e; }
.pill-confirmed { background: #d1fae5; color: #065f46; }
.pill-cancelled { background: #fee2e2; color: #991b1b; }
.pill-completed { background: #dbeafe; color: #1d4ed8; }
.pill-active { background: #d1fae5; color: #065f46; }
.pill-inactive { background: #e2e8f0; color: #334155; }
.pill-full { background: #fff7ed; color: #9a3412; }
.pill-approved { background: #d1fae5; color: #065f46; }
.pill-rejected { background: #fee2e2; color: #991b1b; }

.details-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.info-item {
    border: 1px solid #edf2f7;
    background: #fff;
    border-radius: 14px;
    padding: .9rem;
}

.info-item .label {
    color: var(--text-3);
    font-size: .72rem;
    margin-bottom: .3rem;
}

.info-item .value {
    color: var(--text);
    font-weight: 800;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .8rem;
}

.media-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}

.media-card img,
.media-card iframe {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 0;
    display: block;
}

.media-card a {
    display: block;
    padding: .7rem .8rem;
    color: var(--primary-dk);
    text-decoration: none;
    font-size: .78rem;
    font-weight: 700;
}

.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-3);
}

.empty-state strong {
    display: block;
    color: var(--text);
    margin-bottom: .35rem;
    font-size: .92rem;
}

.notice-box {
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.2rem;
}

.notice-box h3 {
    margin-bottom: .45rem;
    color: var(--text);
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: .9rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: #f1f5f9;
}

.stat-content h3 {
    font-size: .8rem;
    color: var(--text-2);
    margin-bottom: .25rem;
}

.stat-content .value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
}

@media (max-width: 960px) {
    .field-grid,
    .details-grid,
    .info-grid { grid-template-columns: 1fr; }
    .field-span-2 { grid-column: span 1; }
}

@media (max-width: 640px) {
    .page-head,
    .toolbar-card,
    .filter-row { align-items: stretch; }
    .page-actions,
    .detail-actions,
    .card-actions { width: 100%; }
    .page-actions .btn,
    .detail-actions .btn,
    .card-actions .btn { flex: 1; }
}
