/* =============================================
   HotelJob Footer — htj_footer_
   Desktop: คง style เดิมเป๊ะ (เปลี่ยนแค่ prefix)
   Mobile:  v2 ใหม่ (overlay + grid)
   ============================================= */

/* ─────────────────────────────────────────────
   SHARED UTILITIES
───────────────────────────────────────────── */
.htj_footer_creditphoto {
    font-size: 14px;
    color: #404040;
}

/* ─────────────────────────────────────────────
   DESKTOP FOOTER
───────────────────────────────────────────── */
.htj_footer_wrap {
    background-color: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 32px 5% 16px;
}

.htj_footer_container {
    max-width: 1400px;
    margin: 0 auto;
}

.htj_footer_content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 16px;
}

/* Logo Section */
.htj_footer_logo_section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.htj_footer_logo {
    width: 36px;
    height: auto;
}

.htj_footer_tagline {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.8;
    max-width: 300px;
}

/* Contact */
.htj_footer_contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.htj_footer_contact_item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #374151;
    font-size: 14px;
    text-decoration: none;
    transition: color .3s;
}

.htj_footer_contact_item:hover {
    color: #2563eb;
}

.htj_footer_contact_icon {
    width: 18px;
    height: 18px;
    color: #6b7280;
}

/* Columns */
.htj_footer_column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.htj_footer_column_title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 5px;
}

.htj_footer_links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.htj_footer_link {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: color .3s, padding-left .3s;
}

.htj_footer_link:hover {
    color: #2563eb;
    padding-left: 5px;
}

/* Social */
.htj_footer_social {
    margin-top: 20px;
}

.htj_footer_social_links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.htj_footer_social_link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: #374151;
    text-decoration: none;
    transition: background-color .3s, transform .3s;
}

.htj_footer_social_link:hover {
    background-color: #2563eb;
    color: #fff;
    transform: translateY(-3px);
}

/* Bottom Bar */
.htj_footer_bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.htj_footer_copyright {
    color: #6b7280;
    font-size: 14px;
}

.htj_footer_bottom_links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.htj_footer_bottom_link {
    color: #6b7280;
    font-size: 14px;
    text-decoration: none;
    transition: color .3s;
}

.htj_footer_bottom_link:hover {
    color: #2563eb;
}

/* ─────────────────────────────────────────────
   DESKTOP RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1200px) {
    .htj_footer_container {
        display: none;
        margin-bottom: 50px;
    }
    .htj_footer_wrap {
        padding: 50px 5% 25px;
    }
    .htj_footer_content {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
    .htj_footer_logo_section {
        grid-column: 1 / -1;
    }
    .htj_footer_bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .htj_footer_container {
        display: none;
    }
    .htj_footer_wrap {
        padding: 40px 5% 20px;
    }
    .htj_footer_content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .htj_footer_logo_section {
        grid-column: auto;
    }
    .htj_footer_logo {
        width: 150px;
    }
    .htj_footer_column_title {
        font-size: 15px;
    }
    .htj_footer_link,
    .htj_footer_contact_item,
    .htj_footer_copyright,
    .htj_footer_bottom_link {
        font-size: 13px;
    }
    .htj_footer_social_link {
        width: 36px;
        height: 36px;
    }
    .htj_footer_bottom_links {
        flex-direction: column;
        gap: 10px;
    }
}

/* ─────────────────────────────────────────────
   MOBILE FOOTER NAV BAR (v2)
───────────────────────────────────────────── */
.htj_footer_nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(64px + env(safe-area-inset-bottom));  
    background: #fff;
    border-top: 1px solid #e6e6e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-sizing: border-box;
}

.htj_footer_nav_item {
    width: 25%;
    text-align: center;
    font-family: 'Anuphan', sans-serif;
    font-size: 14px;
    color: #303030;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    height: 100%;
    line-height: 1;
}

.htj_footer_nav_item svg {
    display: block;
}

.htj_footer_nav_item.htj_footer_active,
.htj_footer_nav_item.htj_footer_active svg {
    color: #0071e3;
    stroke: #0071e3;
}

.htj_footer_nav_cta span {
    color: #0071e3;
    font-weight: 500;
}

.htj_footer_nav_menu_open,
.htj_footer_nav_menu_open svg {
    color: #0071e3 !important;
    stroke: #0071e3 !important;
}

/* ─────────────────────────────────────────────
   OVERLAY — FULL SCREEN
───────────────────────────────────────────── */
.htj_footer_overlay {
    position: fixed;
    inset: 0;
    background: #f5f5f7;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.htj_footer_overlay.htj_footer_overlay_open {
    opacity: 1;
    pointer-events: all;
}

/* ─────────────────────────────────────────────
   SHEET — full screen
───────────────────────────────────────────── */
.htj_footer_sheet {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

/* Sheet Header */
.htj_footer_sheet_header {
    position: sticky;
    top: 0;
    background: #f5f5f7;
    padding: 16px 20px;
    z-index: 1;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.htj_footer_sheet_handle {
    display: none;
}

.htj_footer_sheet_title_row {
    display: contents;
}

.htj_footer_sheet_title {
    font-family: 'Anuphan', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
}

.htj_footer_sheet_close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e5ea;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6e6e73;
    transition: background 0.2s;
    flex-shrink: 0;
}

.htj_footer_sheet_close:hover {
    background: #d1d1d6;
}

/* ─────────────────────────────────────────────
   LOGIN ROW
───────────────────────────────────────────── */
.htj_footer_login_wrap {
    padding: 16px 3%;
}

.htj_footer_login_tile {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 26px 3%;
    background: #fff;
    text-decoration: none;
    font-family: 'Anuphan', sans-serif;
    font-size: 15px;
    font-weight: 500;

}

.htj_footer_login_tile svg {
    color: #0071e3;
    flex-shrink: 0;
}

.htj_footer_login_tile:active {
    background: #f0f0f5;
}

.htj_footer_login_tile.htj_footer_login_active {
    background: #0071e3;
    color: #fff;
}

.htj_footer_login_tile.htj_footer_login_active svg {
    color: #fff;
}

/* ─────────────────────────────────────────────
   METRO GRID — 2 columns, minimal
───────────────────────────────────────────── */
.htj_footer_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    padding: 8px 3%;
    overflow: hidden;
}

.htj_footer_tile {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 8px 0 10px;
    height: 80px;
    background: #fff;
    border-radius: 0;
    text-decoration: none;
    font-family: 'Anuphan', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #1d1d1f;
    line-height: 1.3;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.htj_footer_tile svg {
    color: #555;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.htj_footer_tile:active {
    background: #f5f5f5;
}

/* Accent tile — กรุงเทพ */
.htj_footer_tile_accent {
    background: #f0f6ff;
    color: #0071e3;
}

.htj_footer_tile_accent svg {
    color: #0071e3;
}

.htj_footer_tile_accent:active {
    background: #e0eeff;
}

/* CTA tile — ลงประกาศงาน */
.htj_footer_tile_cta {
    background: #f5f5f5;
    color: #1d1d1f;
    font-weight: 500;
}

.htj_footer_tile_cta svg {
    color: #1d1d1f;
}

/* ─────────────────────────────────────────────
   BANNER PR
───────────────────────────────────────────── */
.htj_footer_banner {
    display: block;
    margin: 20px 20px 0;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    background: #1d1d1f;
    min-height: 90px;
    position: relative;
}

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

/* ─────────────────────────────────────────────
   PRIVACY SECTION
───────────────────────────────────────────── */
.htj_footer_privacy {
    margin: 20px 20px 0;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    align-items: center;
}

.htj_footer_privacy_link {
    font-family: 'Anuphan', sans-serif;
    font-size: 13px;
    color: #888;
    text-decoration: none;
    transition: color 0.15s;
}

.htj_footer_privacy_link:active {
    color: #0071e3;
}

.htj_footer_copyright_mobile {
    width: 100%;
    font-family: 'Anuphan', sans-serif;
    font-size: 12px;
    color: #aaa;
    margin-top: 4px;
    padding-bottom: 8px;
}

/* ─────────────────────────────────────────────
   HIDE MOBILE ON DESKTOP / HIDE DESKTOP NAV ON MOBILE
───────────────────────────────────────────── */
@media (min-width: 1200px) {
    .htj_footer_nav,
    .htj_footer_overlay {
        display: none !important;
    }
}
