/* Post listing modal — compact, clean */

#postModal .post-modal {
    max-width: 640px;
}

#postModal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

#postModal .post-hero {
    background: linear-gradient(135deg, #1a2d7a 0%, #2a49dc 100%);
    padding: 12px 14px;
    position: relative;
}

#postModal .post-hero .post-hero-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

#postModal .post-hero .post-hero-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    margin: 2px 0 0;
}

#postModal .post-hero .btn-close {
    position: absolute;
    right: 10px;
    top: 10px;
    opacity: 0.85;
}

/* Steps */
#postModal .post-steps {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #f8f9fb;
    border-bottom: 1px solid #e9ecef;
}

#postModal .step-item {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    padding: 6px 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

#postModal .step-number {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e9ecef;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
    border: none;
    box-shadow: none;
    transform: none;
}

#postModal .step-item.active {
    border-color: var(--dv-primary);
    background: #eef2ff;
}

#postModal .step-item.active .step-number {
    background: var(--dv-primary);
    color: #fff;
}

#postModal .step-item.completed .step-number {
    background: #16a34a;
    color: #fff;
    font-size: 0;
}

#postModal .step-item.completed .step-number::before {
    content: '✓';
    font-size: 11px;
}

#postModal .step-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

#postModal .step-item.active .step-label {
    color: var(--dv-primary);
}

#postModal .step-line {
    display: none;
}

/* Body */
#postModal .modal-body {
    padding: 12px 14px;
    max-height: min(68vh, 560px);
    overflow-y: auto;
}

#postModal .post-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}

#postModal .post-field {
    margin-bottom: 10px;
}

#postModal .form-control,
#postModal .form-select {
    height: 38px;
    font-size: 13px;
    padding: 7px 11px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#postModal .form-control::placeholder {
    color: #94a3b8;
    opacity: 1;
    font-size: 13px;
}

#postModal .form-control:focus,
#postModal .form-select:focus {
    border-color: #335793;
    box-shadow: 0 0 0 2px rgba(51, 87, 147, 0.12);
}

#postModal .input-group {
    align-items: stretch;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#postModal .input-group:focus-within {
    border-color: #335793;
    box-shadow: 0 0 0 2px rgba(51, 87, 147, 0.12);
}

#postModal .input-group .form-control {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: 38px;
}

#postModal .input-group .form-control:focus {
    box-shadow: none !important;
}

#postModal .input-group .input-group-text {
    font-size: 12px;
    padding: 0 10px;
    background: #f8f9fb;
    border: none;
    color: #64748b;
}

#postModal .input-group .btn {
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
    border: none;
    border-radius: 0;
}

#postModal .post-hint {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
    display: block;
    line-height: 1.35;
}

#postModal .post-map-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    box-shadow: none;
}

#postModal #post-map {
    height: 200px !important;
    border: none !important;
}

#postModal .btn-use-location {
    height: 36px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    padding: 0 12px;
}

#postModal .post-price-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f0f4ff;
    border-radius: 8px;
    font-size: 12px;
    border: 1px solid #dbe4f5;
}

#postModal .post-price-bar strong {
    color: #334155;
    font-weight: 600;
}

#postModal #post-total-price-display {
    color: var(--dv-primary);
    font-weight: 700;
}

#postModal .post-price-bar .post-price-note {
    margin-left: auto;
    font-size: 10px;
    color: #94a3b8;
}

#postModal #post-images-preview {
    display: none;
}

#postModal #post-images-preview:not(:empty) {
    display: flex !important;
    margin-top: 8px;
}

#postModal #post-images-preview img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

/* Step 2 — packages */
#postModal .post-step2-intro {
    text-align: center;
    margin-bottom: 12px;
}

#postModal .post-step2-intro i {
    font-size: 36px;
    color: #16a34a;
}

#postModal .post-step2-intro h6 {
    font-size: 14px;
    font-weight: 700;
    margin: 8px 0 2px;
}

#postModal .post-step2-intro p {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

#postModal .package-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    height: 100%;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    box-shadow: none;
    transform: none;
}

#postModal .package-card:hover {
    border-color: #c5d0e6;
    transform: none;
    box-shadow: none;
}

#postModal .package-card.active {
    border-color: var(--dv-primary);
    background: #f0f4ff;
    box-shadow: none;
}

#postModal .package-header {
    font-size: 14px;
    margin-bottom: 6px;
    gap: 6px;
}

#postModal .package-price {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}

#postModal .package-features li {
    padding: 3px 0;
    font-size: 12px;
}

#postModal .package-features i {
    font-size: 13px;
}

/* Footer */
#postModal .modal-footer {
    padding: 10px 14px;
    border-top: 1px solid #e9ecef;
    gap: 8px;
}

#postModal .modal-footer .btn {
    height: 38px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    padding: 0 14px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

#postModal .modal-footer .btn-primary {
    background: var(--dv-primary);
    border-color: var(--dv-primary);
}

#postModal .modal-footer .btn-primary:hover {
    background: var(--dv-primary-bright);
    border-color: var(--dv-primary-bright);
    transform: none;
    box-shadow: none;
}

#postModal .modal-footer .btn-outline-secondary:hover {
    transform: none;
    box-shadow: none;
}

/* Guest state */
#postModal .post-guest {
    padding: 24px 14px;
    text-align: center;
}

#postModal .post-guest i {
    font-size: 40px;
    color: #cbd5e1;
}

#postModal .post-guest h6 {
    font-size: 15px;
    font-weight: 700;
    margin: 10px 0 4px;
}

#postModal .post-guest p {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 14px;
}

#postModal .post-step-content {
    animation: none;
}

@media (max-width: 575px) {
    #postModal .post-modal {
        margin: 0.5rem;
    }

    #postModal .modal-body {
        padding: 10px 12px;
        max-height: min(72vh, 520px);
    }

    #postModal #post-map {
        height: 180px !important;
    }

    #postModal .step-label {
        font-size: 11px;
    }
}
