/* Tourist Guide Manager – Premium UI */

.tgm-wrapper {
    max-width: 1160px;
    margin: 32px auto;
    padding: 0 18px 30px;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
    font-size: 16px;
}

.tgm-heading {
    font-size: 2rem;
    margin-bottom: 0.9rem;
    font-weight: 600;
    color: #020617;
    letter-spacing: 0.01em;
}

.tgm-booking-wrapper .tgm-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tgm-booking-wrapper .tgm-heading::before {
    content: "";
    width: 8px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #22c55e);
}

/* Alerts */
.tgm-alert {
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.98rem;
    line-height: 1.55;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}
.tgm-alert::before {
    content: "";
    margin-top: 3px;
    min-width: 18px;
    min-height: 18px;
    border-radius: 999px;
}
.tgm-alert-success {
    background: linear-gradient(135deg, #ecfdf5, #e0f2fe);
    border: 1px solid #bbf7d0;
    color: #14532d;
}
.tgm-alert-success::before {
    background: radial-gradient(circle at 30% 30%, #22c55e, #16a34a);
}
.tgm-alert-error {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fecaca;
    color: #7f1d1d;
}
.tgm-alert-error::before {
    background: radial-gradient(circle at 30% 30%, #ef4444, #b91c1c);
}

/* Cards */
.tgm-card {
    position: relative;
    background: #ffffff;
    border-radius: 26px;
    padding: 20px 24px;
    margin-top: 18px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.tgm-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
}

.tgm-card-photo {
    flex: 0 0 210px;
}

.tgm-card-photo img {
    width: 210px;
    height: 210px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 15px 28px rgba(15, 23, 42, 0.28);
}

.tgm-no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 210px;
    height: 210px;
    border-radius: 24px;
    background: #e5f0ff;
    font-size: 1rem;
    font-weight: 500;
    color: #4b5563;
}

.tgm-card-title-wrap {
    flex: 1;
}

.tgm-card-title {
    margin: 0 0 4px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #020617;
}

.tgm-card-subtitle {
    margin: 0;
    font-size: 0.98rem;
    color: #6b7280;
}

.tgm-card-body {
    margin-top: 4px;
    font-size: 0.98rem;
    color: #1f2937;
}

.tgm-card-body .tgm-meta {
    margin: 2px 0;
}

.tgm-card-footer {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.tgm-card-active {
    border-color: #2563eb;
    box-shadow: 0 22px 55px rgba(37, 99, 235, 0.22);
}

/* Buttons */
.tgm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.18s ease;
    letter-spacing: 0.02em;
}

.tgm-guide-card .tgm-card-footer .tgm-btn-outline {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.35);
}

.tgm-guide-card .tgm-card-footer .tgm-btn-outline:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.45);
}

.tgm-btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.35);
}

.tgm-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.45);
}

.tgm-btn-outline {
    background: #ffffff;
    color: #2563eb;
    border-color: #bfdbfe;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.tgm-btn-outline:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* Forms */
.tgm-form {
    margin-top: 10px;
}

.tgm-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 12px;
}

.tgm-form-field {
    flex: 1 1 230px;
    min-width: 230px;
}

.tgm-form-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
}

.tgm-form-field input,
.tgm-form-field textarea,
.tgm-form-field select {
    width: 100%;
    padding: 9px 11px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.9);
    font-size: 0.98rem;
    line-height: 1.45;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.08s ease;
    background: #ffffff;
    color: #020617;
}

.tgm-form-field input::placeholder,
.tgm-form-field textarea::placeholder {
    color: #9ca3af;
}

.tgm-form-field input:focus,
.tgm-form-field textarea:focus,
.tgm-form-field select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.38);
    transform: translateY(-1px);
}

.tgm-form-field textarea { resize: vertical; }

.tgm-form-field-submit { align-self: flex-end; }

.tgm-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
    gap: 10px;
}

.tgm-required { color: #ef4444; margin-left: 3px; }

/* Search card */
.tgm-search-card {
    margin-top: 12px;
    border-radius: 24px;
    background: #f9fbff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.tgm-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
    gap: 18px;
    margin-top: 16px;
}

.tgm-booking-card { border-radius: 24px; }

/* Tables */
.tgm-table-wrapper {
    margin-top: 14px;
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.tgm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.98rem;
}

.tgm-table thead {
    background: linear-gradient(135deg, #eff6ff, #e0f2fe);
}

.tgm-table th,
.tgm-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    text-align: left;
    vertical-align: top;
}

.tgm-table th {
    font-weight: 600;
    color: #475569;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tgm-table tbody tr:nth-child(even) { background: #f9fafb; }
.tgm-table tbody tr:hover { background: #eff6ff; }

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

.tgm-table-photo img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 999px;
}

.tgm-empty {
    margin-top: 14px;
    font-size: 0.98rem;
    color: #6b7280;
}

.tgm-admin-wrap h1 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .tgm-guide-grid { grid-template-columns: 1fr; }
    .tgm-card-photo { flex: 0 0 190px; }
    .tgm-card-photo img,
    .tgm-no-photo { width: 190px; height: 190px; }
}

@media (max-width: 640px) {
    .tgm-wrapper {
        margin: 20px auto;
        padding: 0 12px 22px;
    }
    .tgm-heading { font-size: 1.6rem; }
    .tgm-card {
        padding: 18px 16px;
        border-radius: 22px;
    }
    .tgm-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .tgm-card-photo { width: 100%; }
    .tgm-card-photo img,
    .tgm-no-photo { width: 100%; height: 240px; }
    .tgm-form-row { flex-direction: column; }
    .tgm-form-field { min-width: 100%; }
    .tgm-form-field-submit,
    .tgm-form-actions { align-self: stretch; justify-content: stretch; }
    .tgm-btn { width: 100%; }
}
