/* ========================================
   AIWO Itinerary Complete - Merged Styles
   ======================================== */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --brand-bg: #F2D5C3;
    --brand-dark: #1a1a1a;
}

/* ========================================
   Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Newsreader', Georgia, serif;
    color: var(--brand-dark);
    background-color: white;
    min-height: 100vh;
    padding: 20px;
}

/* ========================================
   Page Break Utility
   ======================================== */
.page-break {
    page-break-after: always;
    break-after: page;
}

/* ========================================
   ITINERARY COVER PAGE STYLES
   ======================================== */

/* Outer wrapper with peachy margin */
.itinerary-page {
    width: 210mm;
    height: 297mm;
    background-color: #F2D5C3;
    padding: 15px;
    position: relative;
    margin: 0 auto 40px auto;
}

/* Inner container with black border */
.itinerary-page .page-inner {
    width: 100%;
    min-height: calc(297mm - 35px);
    background-color: #F2D5C3;
    border: 2px solid #1a1a1a;
    position: relative;
}

.itinerary-page .content {
    padding: 60px 50px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(297mm - 74px);
    position: relative;
}

/* Header Logo */
.itinerary-page .header {
    text-align: center;
    margin-bottom: 50px;
}

.itinerary-page .logo {
    width: 330px;
    height: 115px;
    margin-top: 23px;
    margin-bottom: 23px;
}

/* Main Content */
.itinerary-page .main-content {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Title - 7 Days Healthcation */
.itinerary-page .title {
    font-size: 39px;
    font-weight: 550;
    font-style: italic;
    letter-spacing: 6px;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-transform: none;
}

/* Subtitle */
.itinerary-page .subtitle {
    font-size: 29px;
    font-style: italic;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 23px;
}

/* Client Name */
.itinerary-page .client-name {
    font-size: 49px;
    font-weight: 400;
    font-style: italic;
    color: #1a1a1a;
    margin-bottom: 15px;
}

/* Divider Line */
.itinerary-page .divider {
    width: 450px;
    height: 2.5px;
    background-color: #1a1a1a;
    margin-bottom: 100px;
}

/* Airplane Section */
.itinerary-page .airplane-section {
    margin-bottom: 10px;
}

.itinerary-page .airplane-icon {
    width: 106px;
    height: auto;
    margin-top: 70px;
    margin-bottom: 15px;
}

/* Date and Time */
.itinerary-page .date-time {
    font-size: 27px;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 3px;
    color: #1a1a1a;
    margin-bottom: 100px;
}

/* Footer */
.itinerary-page .footer {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    font-size: 10px;
    font-style: italic;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 5px;
    padding-left: 2px;
}

.itinerary-page .version,
.itinerary-page .footer-name {
    font-weight: 400;
}

/* ========================================
   SCHEDULE PAGE STYLES
   ======================================== */

/* Page Container - Outer wrapper */
.schedule-page {
    width: 210mm;
    height: 297mm;
    background-color: var(--brand-bg);
    padding: 15px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform-origin: center center;
    flex-shrink: 0;
    margin: 0 auto 40px auto;
}

/* Inner container with black border */
.schedule-page .page-inner {
    width: 100%;
    height: calc(100% - 5px);
    background-color: var(--brand-bg);
    border: 2px solid var(--brand-dark);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 12mm;
}

/* Header Section */
.schedule-page .header-section {
    width: 100%;
    margin-bottom: 8mm;
    flex-shrink: 0;
}

.schedule-page .title-area {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5mm;
}

.schedule-page .day-title {
    font-size: 42pt;
    font-style: italic;
    font-weight: normal;
    letter-spacing: 0.1em;
    text-align: center;
}

.schedule-page .room-no {
    position: absolute;
    right: 0;
    top: 5mm;
    font-size: 20px;
    font-style: italic;
    display: flex;
    align-items: flex-end;
}

.schedule-page .room-no span {
    margin-right: 50px;
}

.schedule-page .room-line {
    border-bottom: 1px solid var(--brand-dark);
    width: 15mm;
    margin-bottom: 1mm;
}

.schedule-page .date-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.schedule-page .header-underline {
    width: 80%;
    border-bottom: 2px solid var(--brand-dark);
    margin-bottom: 5mm;
}

.schedule-page .date-text {
    font-size: 15pt;
    font-style: italic;
}

/* Schedule Table */
.schedule-page .schedule-wrapper {
    flex-grow: 1;
    width: 100%;
    padding: 0 5mm;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.schedule-page table {
    border-collapse: collapse;
    width: 100%;
    height: 100%;
    margin-bottom: 40px;
}

.schedule-page td {
    vertical-align: middle;
    padding-top: 2px;
    padding-bottom: 2px;
    text-align: center;
    font-style: italic;
}

.schedule-page tr.dashed-row td {
    border-bottom: 1px dashed var(--brand-dark);
}

.schedule-page .time-col {
    width: 25%;
    white-space: nowrap;
    font-size: 12pt;
    line-height: 1.2;
}

.schedule-page .activity-col {
    width: 75%;
    font-size: 12pt;
    line-height: 1.2;
}

.schedule-page .activity-multi {
    font-size: 10pt;
    line-height: 1.4;
}

/* Notes Section */
.schedule-page .notes-section {
    width: 100%;
    margin-top: 8mm;
    margin-bottom: 5mm;
    padding: 0 5mm;
    flex-shrink: 0;
}

.schedule-page .notes-box {
    width: 100%;
    border: 1px solid var(--brand-dark);
    height: 35mm;
    padding: 3mm;
    background: transparent;
}

.schedule-page .notes-label {
    font-style: italic;
    font-size: 15pt;
    text-align: center;
}

.schedule-page .notes-underline {
    width: 80%;
    border-bottom: 1px solid var(--brand-dark);
    margin-top: 3mm;
    margin-left: auto;
    margin-right: auto;
}

/* Footer Section */
.schedule-page .footer-section {
    margin-top: auto;
    width: 100%;
    padding: 0 5mm 2mm 5mm;
    flex-shrink: 1;
    display: flex;
    flex-direction: column;
}

.schedule-page .sign-out-row {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-bottom: 2mm;
}

.schedule-page .sign-out-label {
    font-style: italic;
    font-size: 20px;
    margin-right: 150px;
}

.schedule-page .sign-out-line {
    border-bottom: 1px solid var(--brand-dark);
    width: 25mm;
    margin-bottom: 1mm;
}

.schedule-page .logo-row {
    display: flex;
    align-items: center;
    width: 100%;
    color: var(--brand-dark);
    margin-top: auto;
}

.schedule-page .footer-line {
    height: 1px;
    background-color: var(--brand-dark);
    flex-grow: 1;
}

.schedule-page .logo-text {
    padding: 0 5mm;
    font-family: "Inter", sans-serif;
    letter-spacing: 0.2em;
    font-size: 12pt;
    text-transform: uppercase;
}

.schedule-page .page-number {
    padding-left: 5mm;
    font-size: 15pt;
    font-style: italic;
}

.schedule-page .name-row {
    position: absolute;
    bottom: 3px;
    left: 15px;
    font-size: 8pt;
    font-style: italic;
    color: rgba(0, 0, 0, 0.5);
}

/* ========================================
   NOTES PAGE STYLES
   ======================================== */

/* Outer wrapper with peachy margin */
.notes-page {
    width: 210mm;
    height: 297mm;
    background-color: #F2D5C3;
    padding: 15px;
    position: relative;
    margin: 0 auto 40px auto;
}

/* Inner container with black border */
.notes-page .page-inner {
    width: 100%;
    height: calc(100% - 5px);
    background-color: #F2D5C3;
    border: 2px solid #1a1a1a;
    position: relative;
}

.notes-page .content {
    padding: 40px 32px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* Notes Title */
.notes-page .title {
    font-size: 23px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 1.6px;
    color: #1a1a1a;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 5px;
    margin-bottom: 38px;
    margin-top: 85px;
}

/* Notes List Box */
.notes-page .notes-box {
    width: 500px;
    height: 318px;
    margin: 0 auto;
    padding: 21px 26px;
}

/* Notes List */
.notes-page .notes-list {
    list-style-type: disc;
    padding-left: 24px;
    text-align: left;
}

.notes-page .notes-list li {
    font-size: 19px;
    font-style: italic;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.1;
    margin-bottom: 6px;
}

/* Contacts Section */
.notes-page .contacts-section {
    border: 1px solid #1a1a1a;
    padding: 26px 29px;
    margin-top: 150px;
    text-align: left;
    position: relative;
    min-height: 216px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Left and right cut-outs using pseudo-elements */
.notes-page .contacts-section::before,
.notes-page .contacts-section::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 80px;
    background-color: #F2D5C3;
}

.notes-page .contacts-section::before {
    left: -2px;
}

.notes-page .contacts-section::after {
    right: -2px;
}

.notes-page .contacts-title {
    font-size: 25px;
    font-weight: 400;
    font-style: italic;
    color: #1a1a1a;
    margin-bottom: 19px;
    text-align: center;
}

.notes-page .contact-item {
    font-size: 17px;
    font-style: italic;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.8;
    text-align: left;
    margin-left: 130px;
}

/* Footer */
.notes-page .footer {
    display: flex;
    justify-content: flex-start;
    font-size: 10px;
    font-style: italic;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 2px;
    padding-left: 2px;
}

.notes-page .footer-name {
    font-weight: 400;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    body {
        background-color: var(--brand-bg);
        padding: 0;
    }

    .itinerary-page,
    .schedule-page,
    .notes-page {
        box-shadow: none;
        transform: none !important;
        margin: 0;
        page-break-after: always;
        break-after: page;
    }

    .itinerary-page {
        width: 210mm;
        height: 297mm;
    }

    .schedule-page {
        width: 210mm;
        height: 297mm;
    }

    .notes-page {
        width: 210mm;
        height: 297mm;
    }

    /* Last page should not have page break */
    .notes-page:last-child {
        page-break-after: avoid;
        break-after: avoid;
    }
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 650px) {
    .itinerary-page {
        max-width: 100%;
        min-height: auto;
        border-width: 8px;
    }

    .itinerary-page .content {
        padding: 40px 30px 20px;
        min-height: auto;
    }

    .itinerary-page .logo {
        width: 150px;
    }

    .itinerary-page .title {
        font-size: 24px;
        letter-spacing: 4px;
    }

    .itinerary-page .subtitle {
        font-size: 16px;
    }

    .itinerary-page .client-name {
        font-size: 36px;
    }

    .itinerary-page .divider {
        width: 250px;
        margin-bottom: 50px;
    }

    .itinerary-page .airplane-icon {
        width: 60px;
    }

    .itinerary-page .date-time {
        font-size: 16px;
        letter-spacing: 2px;
        margin-bottom: 60px;
    }

    .itinerary-page .footer {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 40px;
        font-size: 12px;
    }

    .notes-page {
        width: 100%;
        height: auto;
        min-height: 100vh;
    }

    .notes-page .page-inner {
        height: auto;
        min-height: calc(100vh - 50px);
    }

    .notes-page .content {
        padding: 30px 25px 20px;
    }

    .notes-page .title {
        font-size: 24px;
    }

    .notes-page .notes-list li {
        font-size: 17px;
    }

    .notes-page .contacts-section {
        padding: 24px;
    }

    .notes-page .contacts-title {
        font-size: 22px;
    }

    .notes-page .contact-item {
        font-size: 14px;
    }
}
