/* DESIGN SYSTEM & GLOBAL STYLES */
:root {
    --primary-color: #0d47a1;
    /* Classic Trustworthy Navy Blue */
    --primary-light: #e3f2fd;
    --accent-color: #f57c00;
    /* Bright Warm Orange for highlights */
    --accent-light: #fff3e0;
    --dark-color: #1e293b;
    /* Charcoal/Slate for text readability */
    --light-color: #f8fafc;
    /* Slate light gray for backgrounds */
    --gray-color: #64748b;
    /* Medium gray for labels and icons */
    --border-color: #e2e8f0;
    /* Light slate border */
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --font-sans: 'Noto Sans KR', sans-serif;
    --font-logo: 'Outfit', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    background-color: var(--white);
    color: var(--dark-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* APP CONTAINER */
.app-container {
    width: 100%;
    max-width: 1000px;
    /* Widened to 1250px */
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* HEADER */
.app-header {
    height: 64px;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: 100;
}

.app-header .back-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.app-header .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.app-header .logo img {
    height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.header-spacer {
    width: 48px;
}

@media (max-width: 768px) {
    .app-header {
        height: 60px;
        grid-template-columns: 44px 1fr 44px;
        padding: 0 12px;
    }

    .app-header .back-btn {
        font-size: 24px;
    }

    .app-header .logo img {
        height: auto;
        max-height: 38px;
        width: 100%;
        max-width: 300px;
    }

    .header-spacer {
        width: 44px;
    }
}

/* IMAGE SLIDER */
.slider-section {
    position: relative;
    width: 100%;
    background-color: #000;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    /* Fixed aspect ratio to prevent layouts cracking */
    overflow: hidden;
}

.slider-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    border: none;
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-smooth);
}

.slider-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.slider-arrow.prev {
    left: 12px;
}

.slider-arrow.next {
    right: 12px;
}

.slider-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-family: var(--font-logo);
    z-index: 10;
    letter-spacing: 1px;
}

/* PRODUCT DETAILS HEADER */
.product-info-section {
    padding: 24px 16px;
    border-bottom: 8px solid var(--light-color);
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.4;
    margin-bottom: 16px;
    word-break: keep-all;
    letter-spacing: -0.5px;
}

/* Emphasized Travel Dates */
.product-date-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-light);
    border: 1px solid rgba(245, 124, 0, 0.2);
    color: var(--accent-color);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 15.5px;
    box-shadow: var(--shadow-sm);
}

.product-date-badge i {
    font-size: 16px;
}

.product-date-badge .date-label {
    color: var(--dark-color);
    font-weight: 800;
    margin-right: 4px;
    flex-shrink: 0;
}

.product-date-badge .date-value {
    color: var(--accent-color);
    font-weight: 700;
    word-break: keep-all;
}

/* Product Price Box (Header style) */
.price-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--light-color);
    border: 1.5px solid var(--border-color);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.price-box-header .price-label {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--dark-color);
}

.price-value-container {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.original-price {
    font-size: 15px;
    color: var(--gray-color);
    text-decoration: line-through;
}

.price-value {
    font-size: 28px;
    font-weight: 800;
    color: #dc2626;
    font-family: var(--font-logo), var(--font-sans);
}

.price-unit {
    font-size: 16px;
    font-weight: 500;
    color: var(--dark-color);
    margin-left: 2px;
}

/* CTAs */
.cta-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    flex: 1;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--dark-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: #0f172a;
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--dark-color);
    border: 1.5px solid var(--dark-color);
}

.btn-secondary:hover {
    background-color: var(--light-color);
}

/* TRAVEL INFO / OVERVIEW */
.overview-section {
    padding: 24px 16px;
    border-bottom: 8px solid var(--light-color);
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 16px;
    position: relative;
    padding-left: 10px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.overview-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.overview-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.overview-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--light-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.overview-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.overview-content .label {
    font-size: 15px;
    color: var(--gray-color);
    font-weight: 500;
}

.overview-content {
    font-size: 17.5px;
    color: var(--dark-color);
    font-weight: 500;
    word-break: keep-all;
    position: relative;
}

.value {
    font-size: 16px;
    color: var(--dark-color);
    font-weight: 500;
    line-height: 1.6;
    word-break: keep-all;
    position: relative;
    padding-left: 12px;
}

.overview-content .value::before {
    content: "·";
    position: absolute;
    left: 2px;
    font-weight: 900;
}

.overview-content.inline-layout {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.overview-content.inline-layout .value {
    padding-left: 0;
    font-weight: 700;
}

.overview-content.inline-layout .value::before {
    display: none;
}



.flight-info-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
    margin-bottom: 4px;
}

.flight-info-box {
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flight-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #485467;
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 5px;
    width: fit-content;
}

.flight-badge i {
    font-size: 11px;
}

.flight-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flight-details div {
    font-size: 16px;
    color: var(--dark-color);
    font-weight: 500;
    line-height: 1.6;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .flight-info-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .flight-details div {
        white-space: normal;
    }
}

/* PRODUCT PRICE SECTION */

.price-section {
    padding: 24px 16px;
    border-bottom: 8px solid var(--light-color);
}

.price-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.price-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 8px;
}

.price-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.price-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-content .label {
    font-size: 15px;
    color: var(--gray-color);
    font-weight: 500;
}

.price-content .value {
    font-size: 19.5px;
    font-weight: 700;
    color: var(--dark-color);
    padding-left: 0;
}

.price-content .price-desc {
    font-size: 14px;
    color: var(--gray-color);
    font-weight: 500;
    margin-top: 4px;
}

/* INCLUSIONS & EXCLUSIONS */
.inclusions-exclusions-section {
    padding: 24px 16px;
    border-bottom: 8px solid var(--light-color);
}

.inc-exc-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inc-box,
.exc-box {
    border-radius: 8px;
    padding: 16px;
}

.inc-box {
    background-color: #ffffff;
    /* Light green */
    border: 1px solid var(--border-color);
}

.exc-box {
    background-color: #ffffff;
    /* Light red */
    border: 1px solid var(--border-color);
}

.inc-title {
    color: var(--dark-color);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.exc-title {
    color: var(--dark-color);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.inc-list,
.exc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inc-list li,
.exc-list li {
    font-size: 16px;
    line-height: 1.6;
    position: relative;
    padding-left: 14px;
    color: var(--dark-color);
}

.inc-list li::before {
    content: '•';
    color: var(--dark-color);
    position: absolute;
    left: 2px;
    font-weight: bold;
}

.exc-list li::before {
    content: '•';
    color: var(--dark-color);
    position: absolute;
    left: 2px;
    font-weight: bold;
}

/* SPECIAL NOTICE BANNER */
.notice-banner-section {
    padding: 20px 16px;
    border-bottom: 8px solid var(--light-color);
}

.notice-banner {
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}

.notice-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.notice-header i {
    font-size: 18px;
    margin-top: 4px;
}

.notice-header h4 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.notice-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

.notice-list li {
    font-size: 15.5px;
    color: var(--dark-color);
    line-height: 1.6;
    word-break: keep-all;
}

.notice-item-title {
    display: block;
    font-size: 16.5px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 4px;
    position: relative;
    padding-left: 14px;
}

.notice-item-title::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 2px;
    font-weight: bold;
    font-size: 15px;
}

.notice-item-desc {
    display: block;
    font-size: 16px;
    color: var(--dark-color);
    padding-left: 14px;
    line-height: 1.5;
}

/* ITINERARY TIMELINE (REVAMPED TO SPLIT CARD GRID LAYOUT) */
.itinerary-section {
    padding: 24px 16px;
    border-bottom: 8px solid var(--light-color);
}

.itinerary-subtitle {
    font-size: 17.5px;
    color: var(--dark-color);
    margin-top: -10px;
    margin-bottom: 8px;
    font-weight: 500;
    display: block;
}

.itinerary-notice {
    font-size: 14.5px;
    color: var(--gray-color);
    margin-bottom: 24px;
    font-weight: 400;
    line-height: 1.5;
    display: block;
}

.itinerary-notice i {
    color: var(--gray-color);
    font-size: 13px;
    margin-right: 4px;
}

.itinerary-cards-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.itinerary-day-card {
    display: block;
}

/* Centered Day Grid Header on Top of the Table */
.day-grid-header {
    background-color: var(--border-color);
    border-bottom: 1.5px solid var(--border-color);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.day-grid-header .day-title-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.day-grid-header .day-date-text {
    font-size: 17px;
    color: var(--dark-color);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Day Details Grid Table (Right side, containing Location, Transportation, Hotel, Meals) */
.day-details-grid {
    flex-grow: 1;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.detail-grid-row {
    display: flex;
    border-bottom: 1.5px solid var(--border-color);
}

.detail-grid-row:last-child {
    border-bottom: none;
}

.grid-label-col {
    width: 200px;
    /* Narrow label column */
    background-color: #f8fafc;
    /* Light gray background */
    border-right: 1.5px solid var(--border-color);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 6px;
    text-align: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.grid-label-col i {
    font-size: 14px;
    color: var(--dark-color);
    margin-bottom: 0;
}

.grid-label-col span {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--dark-color);
    word-break: keep-all;
    line-height: 1;
}

/* Value content column on the right of each card row */
.grid-value-col {
    flex-grow: 1;
    padding: 12px 14px;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

/* Detailed schedule layout inside grid value */
.schedule-line {
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--dark-color);
    word-break: keep-all;
    margin-bottom: 2px;
}

.schedule-line:last-child {
    margin-bottom: 0;
}

.schedule-line strong {
    font-family: var(--font-logo), var(--font-sans);
    font-weight: 600;
}

.location-title {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 8px;
    border-bottom: 1.5px dashed var(--border-color);
    padding-bottom: 6px;
}

.red {
    color: #dc2626;
    font-weight: 600;
}

.blue {
    color: #0284c7;
    font-weight: 600;
}

.orange {
    color: #ff7b00;
    font-weight: 600;
}

.highlight-blue {
    background-color: #d4ffff;
    font-weight: 600;
}

.highlight-yellow {
    background-color: #feffaa;
    font-weight: 600;
}

.highlight-purple {
    background-color: #e8dfff;
    font-weight: 600;
}

.transport-text {
    font-size: 15.5px;
    font-weight: 500;
    color: var(--dark-color);
}

.hotel-name {
    font-size: 15.5px;
    font-weight: 500;
    color: var(--dark-color);
}

/* Meal item structures */
.meal-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--dark-color);
}

.meal-tag {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-color);
    background-color: var(--white);
    display: inline-block;
    text-align: center;
    width: 38px;
}

.meal-name {
    font-weight: 500;
    color: var(--dark-color);
}

/* POLICIES & TERMS LINK */
.policies-link-section {
    padding: 24px 16px 50px 16px;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.policy-popup-trigger {
    background-color: var(--dark-color);
    border: 1px solid var(--dark-color);
    color: var(--white);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
    padding: 12px 24px;
    border-radius: 8px;
    width: 100%;
    box-shadow: var(--shadow-sm);
}

.policy-popup-trigger:hover {
    background-color: #334155;
    border-color: #334155;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

/* POPUP MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    /* Slate overlay opacity */
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-window {
    background-color: var(--white);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.open .modal-window {
    transform: translateY(0);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gray-color);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    font-size: 14.5px;
    color: var(--dark-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-body h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.modal-body p {
    color: #334155;
    line-height: 1.6;
}

.modal-body strong {
    color: var(--accent-color);
}

/* Modal Table */
.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
    font-size: 13.5px;
}

.policy-table th,
.policy-table td {
    border: 1px solid var(--border-color);
    padding: 10px;
    text-align: left;
}

.policy-table th {
    background-color: var(--light-color);
    font-weight: 700;
    color: var(--dark-color);
}

.policy-table td {
    color: #334155;
}

.modal-body ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-body ul li {
    font-size: 12px;
    color: var(--gray-color);
    line-height: 1.5;
    text-indent: -10px;
    padding-left: 10px;
}

.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.modal-footer .btn {
    flex: none;
    width: 100px;
    height: 40px;
}

/* Custom Modal Formatting Helpers */
.policy-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.policy-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.policy-highlight-box {
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14.5px;
    color: var(--dark-color);
}

.badge-yellow {
    background-color: #fef08a;
    color: #854d0e;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    display: inline-block;
}

.badge-red-box {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.badge-red-box i {
    margin-right: 4px;
}

.text-danger {
    color: #dc2626;
    font-weight: 700;
}

.policy-desc-sm {
    font-size: 13px;
    color: var(--gray-color);
    line-height: 1.5;
}

.policy-desc-md {
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
}

.policy-list-bullet {
    list-style: disc !important;
    padding-left: 20px !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.policy-list-bullet li {
    font-size: 14px !important;
    color: #334155 !important;
    text-indent: 0 !important;
    padding-left: 0 !important;
    line-height: 1.5;
}

/* RESPONSIVE LAYOUTS FOR DESKTOP VIEWS */
@media (min-width: 768px) {
    .product-title {
        font-size: 26px;
    }

    .slider-wrapper {
        aspect-ratio: 21 / 9;
        max-height: 480px;
    }

    .overview-grid {
        gap: 20px;
    }

    .price-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .inc-exc-container {
        flex-direction: row;
        gap: 20px;
    }

    .inc-box,
    .exc-box {
        flex: 1;
    }
}

@media (min-width: 1024px) {
    body {
        padding: 0;
    }

    .app-container {
        border-radius: 0;
        height: auto;
        min-height: auto;
        border: none;
    }

    .app-header {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

    .overview-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Hover micro-animations */
    .itinerary-day-card {
        transition: transform 0.2s ease;
    }

    .itinerary-day-card:hover {
        transform: translateX(4px);
    }
}

/* ==========================================
   PRODUCT LIST PAGE STYLES
   ========================================== */
.list-page-body {
    background-color: var(--white);
}

.list-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 16px 120px 16px;
}

/* Top Horizontal Banner */
.list-top-banner {
    width: 100%;
    aspect-ratio: 1200 / 200;
    background-color: var(--primary-color);
    background-image: url('images/bg-pc.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    border-radius: 12px;
    margin-bottom: 48px;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .list-container {
        padding-top: 0;
    }

    .list-top-banner {
        aspect-ratio: 750 / 240;
        background-image: url('images/bg-m.png');
        margin-left: -16px;
        margin-right: -16px;
        width: calc(100% + 32px);
        border-radius: 0;
        box-shadow: none;
    }

    .price-box-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .price-box-header .price-label {
        white-space: nowrap;
    }

    .price-value-container {
        margin-left: auto;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
        gap: 2px;
    }

    .grid-label-col {
        width: 80px;
    }
}

.product-grid-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
}

.product-card:last-child {
    border-bottom: none;
}

.card-img-container {
    position: relative;
    width: 240px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--light-color);
    flex-shrink: 0;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .card-img-container img {
    transform: scale(1.04);
}

/* Card Content Details */
.card-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    gap: 24px;
}

.card-info-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.4;
    word-break: keep-all;
    letter-spacing: -0.5px;
}

.product-card:hover .card-title {
    color: var(--primary-color);
}

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.card-right-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 35px;
    flex-shrink: 0;
}

.card-price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.card-original-price {
    font-size: 14px;
    color: var(--gray-color);
    text-decoration: line-through;
    font-family: var(--font-logo), var(--font-sans);
    font-weight: 500;
}

.card-price {
    text-align: right;
    font-size: 26px;
    font-weight: 800;
    color: #dc2626;
    /* Crimson red */
    font-family: var(--font-logo), var(--font-sans);
    white-space: nowrap;
}

.btn-detail {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary-color);
    background-color: var(--white);
    border: 1.5px solid var(--primary-color);
    border-radius: 6px;
    transition: var(--transition-smooth);
    white-space: nowrap;
    text-align: center;
}

.product-card:hover .btn-detail {
    background-color: var(--primary-color);
    color: var(--white);
}

@media (max-width: 576px) {
    .product-card {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px 0;
    }

    .card-img-container {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .card-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .card-info-col {
        gap: 13px;
    }

    .card-right-col {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 12px;
    }

    .card-price-container {
        align-items: flex-start;
    }

    .card-price {
        text-align: left;
    }

    .btn-detail {
        padding: 6px 12px;
        font-size: 12.5px;
        flex-grow: 0;
    }
}

.tag {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.tag-focus {
    background-color: #0076ed;
    color: var(--white);
}

.tag-confirm {
    background-color: #12a33b;
    color: var(--white);
}

.tag-flight {
    background-color: #ff7231;
    color: var(--white);
}

/* Floating Inquiry Button */
.floating-inquiry-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background-color: var(--accent-color);
    color: var(--white);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    text-decoration: none;
    line-height: 1;
}

.floating-inquiry-btn:hover {
    background-color: #e65100;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.floating-inquiry-btn i {
    font-size: 20px;
    margin-top: -2px;
}

.floating-inquiry-btn span {
    font-size: 12px;
    font-weight: 700;
}

@media (min-width: 1250px) {
    .floating-inquiry-btn {
        right: calc(50% - 625px + 24px);
    }
}

/* OPTIONAL TOURS SECTION */
.optional-tours-section {
    padding: 24px 16px;
    border-bottom: 8px solid var(--light-color);
}

.optional-notice-box {
    border-radius: 8px;
    margin-bottom: 24px;
}

.optional-notice-title {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.optional-notice-title i {
    font-size: 16px;
}

.optional-notice-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.optional-notice-list li {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--dark-color);
    position: relative;
    padding-left: 20px;
    word-break: keep-all;
}

.optional-notice-list li::before {
    content: attr(data-num);
    position: absolute;
    left: 2px;
    font-weight: 700;
    color: var(--dark-color);
}

.optional-cards-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.optional-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.optional-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.optional-image-wrapper {
    width: 380px;
    height: 240px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.optional-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.optional-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.optional-card-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.info-item {
    background-color: var(--light-color);
    border: 1.5px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-item.full-width {
    grid-column: span 2;
}

.info-label {
    font-size: 13.5px;
    color: var(--gray-color);
    font-weight: 600;
}

.info-value {
    font-size: 14.5px;
    color: var(--dark-color);
    font-weight: 700;
}

.info-value.highlight-accent {
    color: var(--accent-color);
}

.optional-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--dark-color);
    margin: 0;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .optional-card {
        flex-direction: column;
        gap: 16px;
        padding: 12px;
    }

    .optional-image-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .optional-info-grid {
        grid-template-columns: 1fr;
    }

    .info-item.full-width {
        grid-column: span 1;
    }

    .optional-card-title {
        font-size: 17.5px;
    }
}