/* 
    Project: Pucallpa Amazon Tours - Optimized Replication
    Goal: Identical design to original, Ultra-fast performance, Clean Code.
*/

:root {
    --primary-green: #5a7d15;
    --dark-green: #364a0d;
    --yellow-text: #fff67f;
    --accent-orange: #ffa60a;
    --font-main: 'Abel', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-image: url('img/flor.jpg');
    background-color: #ffffff;
    text-align: center;
}

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

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

/* Top Bar / Header */
header {
    background-color: #030303;
    background-image: url('img/fondo2.jpg');
    padding-top: 5px;
    display: inline-block;
    width: 100%;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 20px 0;
    flex-wrap: wrap;
}

.logo-container {
    flex: 1;
    min-width: 250px;
}

.gtranslate_wrapper {
    margin: 10px;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.top-item {
    display: flex;
    align-items: center;
    text-align: left;
    color: white;
}

.top-item img {
    width: 60px;
    height: 60px;
    margin-right: 10px;
}

.top-item-content b {
    display: block;
    color: var(--yellow-text);
    font-weight: bold;
    font-size: 20px;
}

.top-item-content span {
    display: block;
    font-weight: bold;
    font-size: 18px;
    text-shadow: -2px -2px 0px #000, 2px -2px 0px #000, -2px 2px 0px #000, 2px 2px 0px #000;
}

/* Menu */
nav {
    background-color: var(--primary-green);
    background-image: url('img/01209004736.jpg');
    width: 100%;
    padding: 5px 0;
}

.main-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    transition: max-height 0.3s ease-out;
}

/* Hamburger Toggle Button (Hidden by default) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    padding: 10px;
    cursor: pointer;
    vertical-align: middle;
}

.main-menu li a {
    color: white;
    text-decoration: none;
    font-size: 19px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Tahoma, sans-serif;
}

.main-menu li a:hover {
    color: var(--yellow-text);
}

/* Banner / Slider */
#banner {
    width: 100%;
    background-color: #ff809c; /* Pink background from original CSS */
    overflow: hidden;
    position: relative;
    height: auto;
}

.slider-container {
    width: 100%;
    position: relative;
}

.slider-container img {
    width: 100%;
    display: none;
}

.slider-container img.active {
    display: block;
    animation: fadeEffect 1s;
}

@keyframes fadeEffect {
    from {opacity: 0.4;}
    to {opacity: 1;}
}

/* Body Content */
#main-content {
    background-color: #f2f2f2;
    padding: 20px 0;
}

.service-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-highlight p {
    max-width: 300px;
    font-weight: bold;
    color: #343492;
    text-align: left;
    font-size: 18px;
}

/* Partner Logos */
.partners {
    background: #fff;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.partner-item {
    flex: 1;
    min-width: 150px;
    max-width: 20%;
    padding: 10px;
}

.partner-item img {
    max-height: 120px;
}

/* Footer */
footer {
    background-color: var(--dark-green);
    color: #eeffab;
    padding: 20px 0;
}

.footer-social-icons {
    padding-bottom: 20px;
}

.footer-social-icons img {
    display: inline-block;
}

.copyright {
    font-family: Tahoma, sans-serif;
    font-size: 16px;
}

/* Floating Sidebar */
.social-sidebar {
    position: fixed;
    left: 10px;
    top: 30%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-sidebar span {
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.social-sidebar a {
    width: 36px;
    height: 36px;
    background-image: url('img/soc.png');
    display: block;
}

.soc_7 { background-position: 0 -216px; } /* WhatsApp */
.soc_1 { background-position: 0 0; }      /* Facebook */
.soc_8 { background-position: 0 -252px; } /* TripAdvisor */
.soc_5 { background-position: 0 -144px; } /* Instagram */
.soc_4 { background-position: 0 -108px; } /* Twitter */
.soc_9 { background-position: 0 -288px; } /* Maps */

/* Packages Grid Page */
#blo170506120127 {
    display: inline-block;
    width: 100%;
    text-align: center;
    background-color: #f7f8fa;
    padding: 40px 0;
}

#blo170506225118, #blo170507083820, #blo170507083554, #blo170507084535, .paquete {
    display: inline-block;
    width: 100%;
    max-width: 260px;
    margin: 10px;
    vertical-align: top;
    cursor: pointer;
    transition: var(--transition);
}

#blo170506225118:hover, #blo170507083820:hover, #blo170507083554:hover, #blo170507084535:hover, .paquete:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.paquete-con-img img, .package-con-img img {
    border: 5px solid #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* Nosotros Page */
#blo170506114743 {
    background-color: #4ab031;
    background-image: url('img/fondo_general.jpg');
    padding: 40px 0;
    width: 100%;
    color: white;
}

#blo170506114743-sec {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

#blo170506114743-sec-img {
    flex: 0 0 300px;
}

#blo170506114743-sec-con {
    flex: 1;
}

#blo170506114743-sec-con-tit {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 20px;
}

#blo170506114743-sec-con-des {
    font-size: 18px;
    line-height: 1.5;
}

/* Gallery Page */
#blo170507111853 {
    padding: 40px 0;
    background-color: #f0f1f3;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Videos Page */
#blo170507113141 {
    padding: 40px 0;
    background-color: #fbfcfe;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

#blo170507113141 iframe {
    max-width: 100%;
}

/* Contact Page */
#blo17042616550414 {
    padding: 40px 0;
    background-color: white;
}

#blo17042616550414-sec {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
    text-align: left;
}

#blo-inf, #blo-for {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

#blo-inf-tit, #blo-for-tit {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

#blo-inf-des {
    font-size: 18px;
    line-height: 1.8;
}

#blo-for-nom, #blo-for-tel, #blo-for-cor, #blo-for-men {
    margin-bottom: 15px;
}

#blo-for-nom input, #blo-for-tel input, #blo-for-cor input, #blo-for-men textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#blo-for-men textarea {
    height: 100px;
}

.btn.estilo {
    background-color: var(--accent-orange);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
}

.btn.estilo:hover {
    background-color: #e59500;
}

/* Tours Page Cards */
.tour-card {
    display: inline-block;
    width: 100%;
    max-width: 260px;
    margin: 15px;
    background: #fff;
    border: 1px solid #ddd;
    text-align: center;
    position: relative;
    vertical-align: top;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tour-card-title {
    background: var(--primary-green);
    color: white;
    padding: 10px;
    font-size: 15px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.tour-card-btn {
    background: var(--accent-orange);
    color: white;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.tour-card-btn:hover {
    background: #e59500;
}

/* Detail Overlay Inside Card */
.tour-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 10;
    display: none;
    padding: 15px;
    text-align: left;
    overflow-y: auto;
    font-size: 14px;
    border: 1px solid var(--primary-green);
}

.tour-detail-close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 18px;
    color: red;
    cursor: pointer;
    font-weight: bold;
}

.tour-detail-content strong {
    color: var(--primary-green);
}

/* Package Detail Tables */
.tabla-detalle {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    color: #333;
}

.tabla-detalle th, .tabla-detalle td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.tabla-detalle th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* Itinerary Highlights */
.itinerary-day {
    display: inline-block;
    padding: 2px 10px;
    background-color: #00ffff;
    color: #000;
    font-weight: bold;
    margin: 10px 0;
}

/* Responsive */
@media screen and (max-width: 800px) {
    #blo170506114743-sec {
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
    }
    #blo170506114743-sec-img {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
    }
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    .main-menu {
        flex-direction: column; /* Adapt for cell phones */
        align-items: center;
        max-height: 0; /* Hidden by default for hamburger */
        overflow: hidden;
        background-color: var(--dark-green);
        width: 100%;
    }
    .main-menu.active {
        max-height: 1000px; /* Reveal when active */
    }
    .menu-toggle {
        display: block; /* Show hamburger only on mobile */
        margin: 0 auto;
    }
    .main-menu li a {
        padding: 12px 20px;
        font-size: 17px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .service-highlight {
        flex-direction: column;
    }
    .partner-item {
        max-width: 45%;
    }
}

/* PC/Laptop Defaults (Horizontal Menu) */
@media screen and (min-width: 801px) {
    .main-menu {
        flex-direction: row;
        justify-content: center;
        padding: 5px 0;
    }
    .main-menu li a {
        padding: 10px 15px;
        font-size: 19px;
    }
}
