/* ================================================
   Top Komodo Tour - Main Stylesheet
   Recreated from topkomodotour.com original design
   ================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Roboto:wght@400;500;700&display=swap');

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 13px;
    color: #333;
    background: #e8e8e8;
    line-height: 1.6;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    color: #c00;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto', Arial, sans-serif;
}

/* --- Wrapper --- */
#wrapper {
    width: 960px;
    margin: 0 auto;
    background: #fff;
}

/* --- Top Bar --- */
#topbar {
    background: #fff;
    padding: 6px 10px;
    font-size: 11px;
    color: #666;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#topbar .contact-info a {
    color: #0066cc;
    margin-right: 12px;
}

/* --- Header / Banner --- */
#header {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

#header a {
    display: block;
    height: 100%;
}

#header img.banner {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    display: block;
}

#header .logo {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

#header .logo img {
    height: 55px;
    width: auto;
}

#header .logo-text {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.88);
    padding: 8px 16px;
    border-radius: 4px;
    border-left: 4px solid #e74c3c;
}

#header .logo-text h2 {
    font-size: 20px;
    color: #c00;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

#header .logo-text span {
    font-size: 11px;
    color: #555;
    display: block;
}

/* --- Navigation --- */
#nav {
    background: #f5f5f5;
    border-top: 1px solid #ddd;
    border-bottom: 2px solid #ccc;
    position: relative;
}

#menu-toggle {
    display: none;
    padding: 10px 15px;
    background: #003366;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
}

#nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

#nav ul li {
    position: relative;
}

#nav ul li a {
    display: block;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #0066aa;
    text-decoration: none;
    border-right: 1px solid #ddd;
    transition: background 0.2s;
}

#nav ul li a:hover,
#nav ul li.active a {
    background: #f0e8c0;
    color: #c00;
    text-decoration: none;
    border-bottom: 2px solid #c00;
}

#nav ul li.active a {
    background: #f5ead0;
    color: #c00;
    border-radius: 3px 3px 0 0;
    border-bottom: 2px solid #c00;
    border: 1px solid #ccc;
    border-bottom-color: #c00;
    margin-bottom: -1px;
}

/* Dropdown */
#nav ul li ul.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    z-index: 999;
}

#nav ul li:hover ul.dropdown {
    display: block;
}

#nav ul li ul.dropdown li a {
    padding: 7px 15px;
    font-size: 12px;
    color: #333;
    border-right: none;
    border-bottom: 1px solid #eee;
    display: block;
    font-weight: 400;
}

#nav ul li ul.dropdown li a:hover {
    background: #e8f0ff;
    color: #0055cc;
    border-bottom-color: #ddd;
    border-bottom: 2px solid transparent;
}

/* --- Main Content Area --- */
#main {
    display: flex;
    width: 100%;
    background: #fff;
}

/* --- Sidebar --- */
#sidebar {
    width: 200px;
    min-width: 200px;
    background: #f0f7ff;
    border-right: 1px solid #d0e0f0;
    padding: 10px 0;
}

.sidebar-widget {
    margin-bottom: 2px;
}

.sidebar-widget-title {
    background: linear-gradient(to bottom, #3399ff 0%, #0066cc 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 1px solid #005bb5;
}

.sidebar-widget-title::before {
    content: '◆';
    color: #ffdd00;
    font-size: 9px;
}

.sidebar-widget ul {
    list-style: none;
    background: #deeeff;
    padding: 4px 0;
}

.sidebar-widget ul li {
    border-bottom: 1px solid #c5dff5;
}

.sidebar-widget ul li a {
    display: block;
    padding: 5px 8px 5px 18px;
    font-size: 11.5px;
    color: #003399;
    text-decoration: none;
    position: relative;
    line-height: 1.4;
}

.sidebar-widget ul li a::before {
    content: '►';
    position: absolute;
    left: 6px;
    top: 6px;
    font-size: 8px;
    color: #0066cc;
}

.sidebar-widget ul li a:hover {
    background: #c5dff5;
    color: #c00;
    text-decoration: none;
}

.sidebar-widget.payment ul li a::before {
    display: none;
}

.sidebar-widget.payment ul li a {
    padding-left: 10px;
    font-size: 12px;
    color: #333;
}

/* --- Content --- */
#content {
    flex: 1;
    padding: 15px 20px;
    background: #fff;
    min-width: 0;
}

#content h1.page-title {
    font-size: 20px;
    font-weight: 700;
    color: #003366;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 8px;
    letter-spacing: 1px;
}

#content h2 {
    font-size: 17px;
    color: #003366;
    margin: 20px 0 8px;
    font-weight: 700;
}

#content h2 a {
    color: #003366;
}

#content h2 a:hover {
    color: #c00;
}

#content h3 {
    font-size: 14px;
    color: #555;
    font-weight: 400;
    font-style: italic;
    margin: -5px 0 10px;
}

#content p {
    margin-bottom: 12px;
    color: #444;
    font-size: 13px;
    line-height: 1.7;
}

#content ul,
#content ol {
    margin: 0 0 15px 20px;
}

#content ul li,
#content ol li {
    margin-bottom: 4px;
    font-size: 13px;
    color: #444;
}

/* Tour entry post */
.tour-entry {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.tour-entry:last-child {
    border-bottom: none;
}

.tour-entry img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
    border: 1px solid #ddd;
}

.tour-entry .tour-thumb {
    float: right;
    margin: 0 0 10px 15px;
    width: 300px;
    max-width: 100%;
}

.tour-entry .tour-thumb img {
    width: 100%;
    border: 2px solid #ddd;
    border-radius: 3px;
}

.tour-type-badge {
    display: inline-block;
    background: #0066cc;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tour-type-badge.sharing {
    background: #cc6600;
}

.tour-type-badge.private {
    background: #006633;
}

/* Price box */
.price-box {
    background: #fff8e7;
    border: 1px solid #e8c860;
    border-radius: 4px;
    padding: 10px 15px;
    margin: 10px 0;
    display: inline-block;
}

.price-box .price-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

.price-box .price-amount {
    font-size: 18px;
    font-weight: 700;
    color: #c00;
}

.price-box .price-per {
    font-size: 11px;
    color: #888;
}

/* Read More link */
.read-more {
    display: inline-block;
    background: #0066cc;
    color: #fff !important;
    padding: 5px 14px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    margin-top: 8px;
    transition: background 0.2s;
}

.read-more:hover {
    background: #c00 !important;
    color: #fff !important;
}

/* Clearfix */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* --- Tour Grid for Category Pages --- */
.tour-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.tour-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    background: #fff;
}

.tour-card:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.tour-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.tour-card-body {
    padding: 12px;
}

.tour-card-body h3 {
    font-size: 13px;
    font-weight: 700;
    color: #003366;
    margin-bottom: 5px;
    font-style: normal;
}

.tour-card-body p {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}

.tour-card-body .price {
    color: #c00;
    font-weight: 700;
    font-size: 14px;
}

/* --- Intro Box --- */
.intro-section {
    background: #f0f7ff;
    border: 1px solid #c5dff5;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.intro-section p {
    margin-bottom: 8px;
    font-size: 13px;
}

.intro-section p:last-child {
    margin-bottom: 0;
}

/* --- Contact Form --- */
.contact-form {
    max-width: 600px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 13px;
    color: #333;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    font-family: inherit;
    margin-bottom: 12px;
    color: #333;
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.contact-form button[type="submit"] {
    background: #0066cc;
    color: #fff;
    border: none;
    padding: 9px 24px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form button[type="submit"]:hover {
    background: #004fa3;
}

/* Contact Info Box */
.contact-info-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.contact-info-box h3 {
    color: #003366;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 700;
    font-style: normal;
}

.contact-info-box table {
    width: 100%;
    font-size: 13px;
}

.contact-info-box table td {
    padding: 5px 8px 5px 0;
    vertical-align: top;
    color: #444;
}

.contact-info-box table td:first-child {
    font-weight: 600;
    white-space: nowrap;
    width: 120px;
    color: #333;
}

/* --- Footer --- */
#footer {
    background: #003366;
    color: #aac5e0;
    padding: 20px;
    font-size: 12px;
}

#footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

#footer h4 {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #0066aa;
}

#footer ul {
    list-style: none;
}

#footer ul li {
    padding: 3px 0;
    border-bottom: 1px solid #004d99;
}

#footer ul li a {
    color: #88b8d8;
    font-size: 12px;
}

#footer ul li a:hover {
    color: #fff;
}

#footer p {
    color: #aac5e0;
    font-size: 12px;
    line-height: 1.6;
}

#footer-bottom {
    background: #002244;
    text-align: center;
    padding: 10px 20px;
    font-size: 11px;
    color: #7799bb;
    border-top: 1px solid #004080;
}

#footer-bottom a {
    color: #88aacc;
}

/* --- Page-specific --- */
.about-content {
    line-height: 1.8;
}

.about-content h2 {
    margin-top: 15px;
    font-size: 16px;
}

/* Why Choose Us */
.why-list {
    list-style: none;
    margin-left: 0 !important;
}

.why-list li {
    padding: 6px 0 6px 24px;
    position: relative;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.why-list li::before {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 6px;
    color: #009900;
    font-weight: 700;
    font-size: 14px;
}

/* Itinerary */
.itinerary-day {
    background: #f5f9ff;
    border: 1px solid #c5dff5;
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 10px;
}

.itinerary-day h4 {
    color: #0055bb;
    font-size: 13px;
    margin-bottom: 6px;
}

/* Include/Exclude */
.include-exclude {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
}

.include-box,
.exclude-box {
    border-radius: 4px;
    padding: 10px 14px;
}

.include-box {
    background: #f0fff0;
    border: 1px solid #99cc99;
}

.exclude-box {
    background: #fff0f0;
    border: 1px solid #cc9999;
}

.include-box h4 {
    color: #006600;
    margin-bottom: 8px;
    font-size: 13px;
}

.exclude-box h4 {
    color: #990000;
    margin-bottom: 8px;
    font-size: 13px;
}

.include-box ul,
.exclude-box ul {
    margin-left: 0;
    list-style: none;
}

.include-box ul li::before {
    content: '✓ ';
    color: #006600;
    font-weight: 700;
}

.exclude-box ul li::before {
    content: '✗ ';
    color: #990000;
    font-weight: 700;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
}

.breadcrumb a {
    color: #0066cc;
}

/* Social links */
.social-links {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.social-links a {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.social-links a.fb {
    background: #3b5998;
}

.social-links a.ig {
    background: #c13584;
}

.social-links a.yt {
    background: #cc0000;
}

.social-links a.pin {
    background: #bd081c;
}

/* Responsive */
@media (max-width: 980px) {
    #wrapper {
        width: 100%;
    }

    #header img.banner {
        height: 180px;
    }

    #main {
        flex-direction: column;
        display: flex;
    }

    #content {
        order: 1;
    }

    #sidebar-placeholder {
        order: 2;
        width: 100%;
    }

    #sidebar {
        width: 100%;
        min-width: 0;
        border-right: none;
        border-top: 2px solid #0066cc;
        border-bottom: none;
        padding: 20px 0;
    }

    .tour-grid {
        grid-template-columns: 1fr;
    }

    #menu-toggle {
        display: block;
    }

    #nav ul {
        display: none;
        flex-direction: column;
    }

    #nav ul.show {
        display: flex;
    }

    #nav ul li {
        width: 100%;
        border-bottom: 1px solid #ddd;
    }

    #nav ul li a {
        border-right: none;
        padding: 10px 15px;
    }

    #nav ul li ul.dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: #fff;
        padding-left: 15px;
    }

    #nav ul li:hover ul.dropdown {
        display: block;
    }

    #footer-widgets {
        grid-template-columns: 1fr;
    }

    .include-exclude {
        grid-template-columns: 1fr;
    }
}