@import url(https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@2.0/nanumsquare.css);

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family: 'NanumSquare', sans-serif
}

body {
    background: var(--gray50);
    overflow-x: hidden;
}

:root {
    --blk: #1a1a1a;
    --wht: #ffffff;
    --gray700: #404040;
    --gray500: #666666;
    --gray300: #a3a3a3;
    --gray100: #E5E5E5;
    --gray50: #fafafa;
    --gradient1: linear-gradient(132deg, #1987FA 0%, #10C2A0 94.35%);
    --gradient2: linear-gradient(114deg, #1987FA 15.38%, #10C2A0 84.62%);
    --gradient3: linear-gradient(293deg, #1987FA 14.88%, #10C2A0 83.04%);
    --box-shadow: 0px 3px 9px 0px rgba(37, 50, 67, 0.18), 0px 1px 1px 0px rgba(37, 50, 67, 0.03);
    --primary: #1987fa;
    --secondary: #10c2a0;
    --accent: #00c8f8;
    --banner-bg: #136dff;
    --bg-light: #f4f4f4;
    --border-radius: 8px;
    --radius-pill: 9999px;
}

.light {
    font-weight: 300
}

.normal {
    font-weight: 400
}

.bold {
    font-weight: 700
}

.bolder {
    font-weight: 800
}

/* ---------------------마이페이지/예약/탭/설정 등--------------------- */

.myPage {
    /* max-width를 1200px로 수정하여 좌우 여백 확보 */
    max-width: 1200px;
    align-items: center;
    margin: 0 auto 60px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0 20px; /* 작은 화면을 위한 좌우 패딩 유지 */
}

.mp-hero {
    width: 100%;
    height: 187px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
    padding: 30px 20px;
    background: var(--gradient1);
    border-radius: 8px;
    color: white;
}

.mp-title {
    font-size: 48px;
    font-weight: 700;
}

.mp-container {
    display: flex;
    gap: 18px;
    width: 100%;
}

.mp-left {
    width: 350px;
    height: 500px;
    background-color: var(--wht);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gray500);
    flex-shrink: 0; /* 패널 축소 방지 */
}

.user-profile {
    max-width: 303px;
    height: 165px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 47px;
    gap: 8px;
    font-size: 18px;
}

#Reservation,
#Wish,
#Account {
    border: none;
    background: transparent;
    cursor: pointer;
}

.Reservation,
.Wish,
.Account {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    width: 100%;
    height: 54px;
    border-bottom: 1px solid var(--gray100);
    font-size: 20px;
}

.left-box {
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: -4px
}

#logOut {
    width: 245px;
    height: 48px;
    border-radius: 12px;
    border: none;
    background-color: var(--primary);
    color: var(--wht);
    font-weight: normal;
    font-size: 18px;
    margin-top: 34px;
}

.mp-right {
    /* 부모 컨테이너 너비 변경에 따라 너비 수정 (1200 - 350 - 18 = 832) */
    width: 832px;
    flex-grow: 1; /* 패널이 남는 공간을 채우도록 설정 */
}

.mp-r-sort {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: var(--gray300);
    height: 32px;
}

.mp-r-tl {
    font-size: 20px;
}

.mp-r-tr {
    display: flex;
    gap: 3px;
}

.mp-r-tr p,
.mp-r-tr .sort {
    font-size: 14px;
    display: flex;
    min-width: 60px;
}

/* ---------- */
.mpr-panel {
    display: none;
}

.mpr-panel.active {
    display: block
}

/* ------------ */
.reservCard {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--wht);
    margin: 16px auto;
}

/* ───────── 상단 ───────── */
.reservCardTop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: linear-gradient(90deg, #4CA0FF 0%, #88CFFF 100%);
    color: var(--wht);
}

.reserveCardTopl {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.reserveCardTopl p {
    margin: 4px 0;
    line-height: 14px;
    font-size: 14px;
}

.reserveCardTopl .date {
    font-weight: lighter;
}

.reserveCardTopl p span {
    margin: 0 6px;
}

.reserveCardTopr a {
    width: 180px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--primary);
    border: 1px solid var(--primary);
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
}

/* ───────── 하단 ───────── */
.reserveCardBottom {
    display: flex;
    align-items: stretch;
    background: var(--wht);
    padding: 16px;
}

.reserveCardBl,
.reserveCardBr {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.reserveCardBottom .line {
    width: 1px;
    background: #ddd;
    margin: 0 16px;
}

.rcardB-top {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    flex-wrap: wrap; 
}

.rcardB-top p {
    margin: 0;
}

.rcardB-top span {
    margin: 0 6px;
}

.rcardB-mid {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
}

.rcardB-btom {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 20px;
    font-weight: bold;
    color: var(--blk);
}

.rcardBlbtoml,
.rcardBlbtomr {
    display: flex;
    align-items: center;
    text-align: center;
}

.rcardBlbtoml span,
.rcardBlbtomr span {
    font-size: 12px;
    color: var(--primary);
    margin: 0 18px;
}

.rcardB-btom img {
    flex-shrink: 0;
    width: 24px;
    height: auto;
}

/* ------------------예약 */
#wishCard,
#price-alert-banner {
    display: none;
}

#wishCard.active,
#price-alert-banner.active {
    display: block;
}

.mp-r-tl button.active {
    font-weight: normal;
    color: var(--gray500);
}

.wishCard {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--wht);
    margin: 16px auto;
}

.wishlist,
.alert {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
}

.wishlist,
.alert {
    color: var(--gray300);
}

.X {
    border: none;
    background: transparent;
    cursor: pointer;
}

.flight-content {
    display: flex;
    padding: 0 24px;
    justify-content: space-between;
    gap: 16px;
}

.flight_con_l {
    display: flex;
    align-items: flex-start;
    padding: 24px 0px;
}

.flight_con_l img {
    width: 117px;
}

.flight_con_l h3 {
    font-size: 18px;
}

.flight_con_m {
    display: flex;
    flex-direction: column;
    padding: 24px 0px;
    gap: 16px;
    flex-grow: 1;
}

.flightconM_top,
.flightconM_bottom {
    display: flex;
    align-items: center;
    gap: 16px;
}

.flightcon_l,
.flightcon_r {
    text-align: right;
    line-height: 14px;
}

.flightcon_l h3,
.flightcon_r h3 {
    font-size: 16px;
}

.flightcon_l p,
.flightcon_r p {
    font-size: 14px;
}

.flight-cm_line {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    flex-shrink: 0;
}

.flight-cm_line p {
    font-size: 14px;
}

.flight-cm_line .line_air {
    display: flex;
    align-items: center;
    gap: 4px;
}

.blue_txt {
    color: var(--primary);
    font-size: 14px;
}

.flight-cm_line .line_air .line {
    width: 178px;
    height: 3px;
    background-color: #ccc;
}

.flight_con_r {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-shrink: 0;
}

.flight_con_r p {
    font-size: 14px;
    color: var(--gray500);
}

.flightconR_top {
    display: flex;
    align-items: flex-end
}

.flightconR_top p {
    text-align: center;
}

.flightconR_top p span {
    font-size: 24px;
    color: var(--primary);
    font-weight: bold;
}

.reserve_bt button {
    border: none;
    width: 242px;
    height: 48px;
    background: var(--primary);
    color: var(--wht);
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
}

.aiflight-result_more {
    border: none;
    width: 188px;
    height: 48px;
    font-size: 16px;
    border-radius: 48px;
    color: var(--wht);
    background: var(--gradient1);
    cursor: pointer;
}

/* -----알림 */

.price-alert-banner {
    margin: 16px auto;
}

.alert-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--gray100);
    padding: 16px;
    height: auto;
    min-height: 142px;
    margin-bottom: 8px;
}

.banner-content {
    display: flex;
    align-items: flex-start;
}

.banner-icon {
    flex: 0 0 auto;
    margin-right: 32px;
}

.banner-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.banner-text {
    display: flex;
    flex-direction: column;
}

.banner-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray700);
    margin-bottom: 8px;
}

.banner-message {
    font-size: 14px;
    color: var(--gray500);
    line-height: 1.4;
    margin-bottom: 8px;
}

.banner-message strong {
    color: var(--primary);
    font-weight: 700;
}

.banner-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #999;
    gap: 8px;
}

.banner-delete {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
}

.banner-delete:hover {
    color: #666;
}

.banner-action {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reserve-btn {
    background: none;
    width: 146px;
    height: 48px;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.reserve-btn:hover {
    background: rgba(25, 135, 250, 0.1);
}

/* -------위시/알림 */

.settings-page {
    width: 100%;
    margin: 16px auto;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--gray100);
    overflow: hidden;
    font-family: 'NanumSquare', sans-serif;
}

.settings-tabs {
    display: flex;
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.settings-tabs .tab-btn {
    margin: 0 10px;
    padding: 14px 0;
    font-size: 16px;
    color: #666666;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.settings-tabs .tab-btn.active {
    color: #1987FA;
    font-weight: 700;
    border-bottom: 3px solid #1987FA;
}

.tab-content {
    display: none;
    padding: 32px 24px;
    align-items: flex-start;
}

.tab-content.active {
    display: flex;
}

.profile-picture {
    flex: 0 0 160px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

.default-avatar {
    width: 100%;
    height: 100%;
    background: #dddddd;
    border-radius: 50%;
}

.upload-btn {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 32px;
    height: 32px;
    border: none;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.upload-btn img {
    width: 18px;
    height: 18px;
}

.account-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 6px;
    font-size: 14px;
    color: #404040;
}

.form-group input {
    padding: 10px 12px;
    font-size: 14px;
    color: #333333;
    background: #fafafa;
    border: 1px solid #cccccc;
    border-radius: 6px;
}

.form-group input:focus {
    outline: none;
    border-color: #1987FA;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.btn-save {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: #1987FA;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-save:hover {
    background: #1078d1;
}

/* ------------------------------------------------------------------ */
/* Responsive Adjustments */
/* ------------------------------------------------------------------ */

/* For Tablets and below */
@media (max-width: 1024px) {
    .mp-container {
        flex-direction: column; 
    }

    .mp-left {
        width: 100%; 
        height: auto; 
        margin-bottom: 18px;
    }

    .mp-right {
        width: 100%; 
    }

    .flight-content {
        flex-direction: column; 
        align-items: stretch;
        padding: 16px;
    }

    .flight_con_l, .flight_con_m, .flight_con_r {
        padding: 8px 0;
    }

    .flight_con_r {
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
        gap: 16px;
    }

    .flight-cm_line .line_air .line {
        width: 100%; 
    }

    .reserve_bt button {
        width: 180px; 
    }
}

/* For smaller tablets and large mobile phones */
@media (max-width: 768px) {

      .myPage {
        padding: 0 10px; 
        margin-bottom: 40px;
    }
    
    .mp-title {
        font-size: 36px; 
    }

    .reserveCardBottom {
        flex-direction: column; 
        gap: 16px;
    }

    .reserveCardBottom .line {
        width: 100%;
        height: 1px; 
        margin: 16px 0;
    }

    .rcardB-btom {
        flex-direction: column; 
        align-items: flex-start;
        gap: 8px;
    }
    
    .alert-banner {
        flex-direction: column; 
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }
    
    .banner-action {
       width: 100%;
    }
    
    .reserve-btn {
        width: 100%; 
    }

    .tab-content.active {
        flex-direction: column; 
        align-items: center;
        gap: 24px;
    }

    .profile-picture {
        flex-basis: auto; 
    }
}

/* For small mobile phones */
@media (max-width: 480px) {
    .myPage {
        padding: 0 10px; 
        margin-bottom: 40px;
    }

    .mp-title {
        font-size: 28px; 
    }
    
    .mp-hero {
        height: auto;
        padding: 20px 15px;
    }

    .mp-r-sort {
        flex-direction: column; 
        align-items: flex-start;
        gap: 8px;
        height: auto;
        margin-bottom: 10px;
    }

    .reservCardTop {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .reserveCardTopr a {
        width: 100%;
    }

    .flight_con_r {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .reserve_bt button {
        width: 100%;
    }

    .banner-icon {
        margin-right: 16px;
    }
    
    .banner-icon img {
        width: 48px;
        height: 48px;
    }

    .banner-title {
        font-size: 15px;
    }
    .banner-message {
        font-size: 13px;
    }
}