/* ===== Layanan Page Specific Styles ===== */

/* Page Hero */
.page-hero {
    position: relative;
    padding: 9rem 0 4rem;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(180deg, var(--white) 0%, var(--bg-main) 100%);
}

.page-hero-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.page-desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 2rem;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    background: var(--white);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 0.625rem 1.25rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.filter-tab:hover {
    background: var(--gray-100);
    color: var(--text-primary);
    border-color: var(--primary-light);
}

.filter-tab.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Packages Section */
.packages-section {
    padding: 3rem 0 5rem;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 7rem 0 3rem;
    }

    .page-title {
        font-size: 2rem;
    }
}

/* Package Card */
.package-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(30, 41, 59, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-color: rgba(14, 165, 233, 0.4);
}

.package-card.sold-out {
    opacity: 0.7;
}

.package-card.sold-out::after {
    content: 'SOLD OUT';
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: #ef4444;
    color: white;
    padding: 0.25rem 2.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(45deg);
}

/* NEW CARD DESIGN - Flyer Style */
.package-card-new {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-card-new:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.package-card-new.sold-out {
    opacity: 0.85;
}

/* Flyer Image */
.card-flyer-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.card-flyer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.package-card-new:hover .card-flyer-image img {
    transform: scale(1.03);
}

.sold-out-ribbon {
    position: absolute;
    top: 16px;
    right: -35px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 6px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Card Body */
.card-body-new {
    padding: 1.25rem 1.25rem 0.75rem;
}

.card-title-new {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0d7c3d;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

/* Seat Info */
.card-seat-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.seat-label {
    font-size: 0.9375rem;
    color: #374151;
    font-weight: 500;
}

.seat-count {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ef4444;
}

.card-seat-info.available .seat-count {
    color: #10b981;
}

.card-seat-info.low .seat-count {
    color: #f59e0b;
}

.card-seat-info.sold-out .seat-count {
    color: #ef4444;
    font-size: 0.875rem;
}

/* Info Grid */
.card-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563;
    font-size: 0.8125rem;
}

.info-item svg {
    width: 16px;
    height: 16px;
    color: #9ca3af;
    flex-shrink: 0;
}

.info-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.airline-item {
    grid-column: span 2;
    padding-top: 0.25rem;
}

/* Card Footer */
.card-footer-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.card-price-new {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.btn-detail-green {
    background: linear-gradient(135deg, #0d7c3d, #10b981);
    color: white;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-detail-green:hover {
    background: linear-gradient(135deg, #065f32, #0d7c3d);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 124, 61, 0.3);
}

/* Package Header */
.package-header {
    position: relative;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.package-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.package-badge {
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-promo {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #1f2937;
}

.badge-ramadan {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.badge-reguler {
    background: rgba(14, 165, 233, 0.2);
    color: var(--primary-light);
}

.badge-plus {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.package-quota {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 0.375rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--gray-300);
}

.package-quota svg {
    width: 14px;
    height: 14px;
}

.package-quota.low {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.package-quota.available {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.package-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.package-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-400);
}

.package-date svg {
    width: 16px;
    height: 16px;
    color: var(--primary-light);
}

/* Package Body */
.package-body {
    padding: 1.25rem 1.5rem;
    flex-grow: 1;
}

.package-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 0.875rem;
    color: var(--white);
    font-weight: 600;
}

.detail-value.airline {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.airline-logo {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: contain;
    background: white;
    padding: 2px;
}

/* Package Footer */
.package-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.package-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.price-value {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--accent);
}

.package-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 0.625rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-detail:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.btn-detail svg {
    width: 16px;
    height: 16px;
}

.btn-book {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--primary);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: #ffffff;
    border: none;
    border-radius: 16px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #111827;
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

/* NEW MODAL LAYOUT */
.modal-new-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    min-height: 500px;
}

.modal-flyer-side {
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-flyer-side img {
    width: 100%;
    max-height: 550px;
    object-fit: contain;
    border-radius: 8px;
}

.modal-info-side {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
}

.modal-title-new {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d7c3d;
    line-height: 1.3;
    margin-bottom: 1rem;
    padding-right: 2.5rem;
}

.modal-seat-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.seat-label-modal {
    font-size: 0.9375rem;
    color: #374151;
    font-weight: 500;
}

.seat-count-modal {
    font-size: 1rem;
    font-weight: 700;
    color: #10b981;
}

.modal-seat-row.low .seat-count-modal {
    color: #f59e0b;
}

.modal-seat-row.sold-out .seat-count-modal {
    color: #ef4444;
}

/* Info Table */
.modal-info-table {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #e5e7eb;
}

.info-row:last-child {
    border-bottom: none;
}

.info-cell {
    padding: 0.625rem 0.875rem;
    border-right: 1px solid #e5e7eb;
}

.info-cell:last-child {
    border-right: none;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.125rem;
}

.info-value {
    display: block;
    font-size: 0.875rem;
    color: #0d7c3d;
    font-weight: 600;
}

/* Include/Exclude */
.modal-include-exclude {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.include-box h4,
.exclude-box h4 {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.include-box h4 {
    color: #0d7c3d;
}

.exclude-box h4 {
    color: #f59e0b;
}

.include-box p,
.exclude-box p {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #4b5563;
}

.include-box p {
    color: #0d7c3d;
}

.exclude-box p {
    color: #f59e0b;
}

/* Price Row */
.modal-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.price-label-big {
    font-size: 1.125rem;
    color: #374151;
    font-weight: 500;
}

.price-value-big {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0d7c3d;
}

/* WhatsApp Buttons */
.modal-wa-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-wa-admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #0d7c3d, #10b981);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    flex: 1;
}

.btn-wa-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 124, 61, 0.3);
}

.btn-wa-admin svg {
    width: 18px;
    height: 18px;
}

.btn-wa-admin.btn-wa-outline {
    background: transparent;
    border: 2px solid #0d7c3d;
    color: #0d7c3d;
}

.btn-wa-admin.btn-wa-outline:hover {
    background: rgba(13, 124, 61, 0.1);
}

/* Responsive Modal */
@media (max-width: 900px) {
    .modal-new-layout {
        grid-template-columns: 1fr;
    }

    .modal-flyer-side {
        max-height: 300px;
    }

    .modal-flyer-side img {
        max-height: 280px;
    }

    .modal-include-exclude {
        grid-template-columns: 1fr;
    }

    .modal-wa-buttons {
        flex-direction: column;
    }
}

/* Modal Body */
.modal-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
    padding-right: 3rem;
}

.modal-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--gray-400);
}

.modal-date svg {
    width: 18px;
    height: 18px;
    color: var(--primary-light);
}

.modal-details {
    padding: 1.5rem 2rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.modal-detail-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 1rem;
}

.modal-detail-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
}

.modal-detail-value {
    font-size: 1rem;
    color: var(--white);
    font-weight: 600;
}

/* Include/Exclude */
.include-exclude {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.include-section,
.exclude-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.include-section h4,
.exclude-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.include-section h4 {
    color: #10b981;
}

.exclude-section h4 {
    color: #f59e0b;
}

.include-section ul,
.exclude-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.include-section li,
.exclude-section li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-300);
}

.include-section li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
}

.exclude-section li::before {
    content: '✗';
    color: #f59e0b;
    font-weight: bold;
}

/* Modal Footer */
.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
}

.modal-price {
    display: flex;
    flex-direction: column;
}

.modal-price .price-label {
    font-size: 0.8125rem;
}

.modal-price .price-value {
    font-size: 1.75rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-wa-book {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    border: none;
    color: var(--white);
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-wa-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -10px #25D366;
}

.btn-wa-book svg {
    width: 20px;
    height: 20px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-400);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    padding: 0.5rem;
    cursor: pointer;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* Nav Active Link */
.nav-link.active {
    color: var(--primary-light);
}

/* Phone Button */
.btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-phone:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--white);
}

.btn-phone svg {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .include-exclude {
        grid-template-columns: 1fr;
    }

    .modal-content {
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-actions {
        width: 100%;
    }

    .btn-wa-book {
        width: 100%;
        justify-content: center;
    }

    .package-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .package-actions {
        width: 100%;
    }

    .btn-detail,
    .btn-book {
        flex: 1;
        justify-content: center;
    }
}