/* ========================================
   PAGE LAYOUT & GENERAL STYLES
   File: page-layout.css
   ======================================== */

/* ===== HEADER STYLES ===== */
.header-controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

#logo {
    margin: 0 !important;
    text-align: left !important;
}

#logo img {
    max-width: 300px;
    height: auto;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-container {
    display: inline-block;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.social-links img {
    max-width: 35px;
    height: auto;
}

/* ===== MOBILE PORTRAIT AND LANDSCAPE ===== */
@media screen and (max-width: 1024px), screen and (max-height: 500px) {
    body {
        font-size: 110%;
    }

    #all {
        width: 100% !important;
        max-width: 100%;
        margin: 0;
        padding: 0 5px;
    }

    #header {
        min-height: auto;
    }

    #header #banner {
        min-height: auto;
        padding: 5px;
    }

    .header-controls-wrapper {
        padding: 10px;
        justify-content: center;
    }

    #logo {
        margin: 10px !important;
        text-align: center !important;
    }

    #logo img {
        max-width: 250px;
        width: 100%;
        height: auto;
    }

    /* Hide search and social links on mobile */
    .header-controls {
        display: none !important;
    }

    #header #hornav {
        width: 100% !important;
        float: none;
        padding: 0;
    }

    #header ul#mainlevel {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    #header ul#mainlevel li {
        display: block;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #d0e8f5;
        padding: 12px 15px;
        font-size: 1.1em;
    }

    #header #user1 {
        width: 100% !important;
        float: none;
        text-align: center;
        padding: 10px;
    }

    #contentarea2 {
        margin: 5px;
    }

    #wrapper {
        float: none;
        width: 100% !important;
    }

    #right {
        float: none;
        width: 100% !important;
        margin: 10px 0;
    }

    #main {
        float: none;
        width: 100% !important;
    }

    #main_top {
        width: 100% !important;
        margin: 5px;
    }

    .dotedblock {
        padding: 10px;
    }

    .dotedblock iframe {
        width: 100% !important;
        max-width: 100%;
        height: auto;
        min-height: 300px;
    }

    #travelcategories {
        border-width: 2px;
        padding: 5px;
        margin: 10px 0;
    }

    #footer #user8,
    #footer #user9,
    #footer #user10 {
        float: none;
        width: 100% !important;
        margin: 10px 0;
        text-align: center;
    }

    #footer ul.menu {
        list-style-position: inside;
        text-align: center;
    }

    .footer-content-container {
        padding: 10px;
    }

    .footer-logo img {
        max-width: 200px;
        width: 80%;
        height: auto;
    }
}

/* ===== MOBILE PORTRAIT ===== */
@media screen and (max-width: 767px) {
    #all {
        padding: 0 5px;
    }
}

/* ===== TABLET RANGE ===== */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    #all {
        width: 100% !important;
    }

    #logo img {
        max-width: 300px;
    }

    #header ul#mainlevel {
        flex-direction: row;
        flex-wrap: wrap;
    }

    #header ul#mainlevel li {
        width: auto;
        flex: 1 1 auto;
        min-width: 120px;
    }
}

/* ===== SMALL MOBILE DEVICES ===== */
@media (max-width: 480px) {
    body {
        font-size: 100%;
    }

    #logo img {
        max-width: 200px;
    }

    .social-links img {
        max-width: 28px;
    }

    .search-container input.search {
        width: 120px;
    }

    .dotedblock iframe {
        min-height: 250px;
    }

    #header ul#mainlevel li {
        padding: 8px 10px;
        font-size: 0.95em;
    }
}