/* --- Core Reset & Variables --- */
:root {
    --primary-red: #D61C1C; /* Matches Borgga Logo Red */
    --dark-grey: #333333;
    --light-grey: #f4f4f4;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--dark-grey);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-red);
    margin: 10px auto 0;
}

/* --- Utility Classes --- */
.btn {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: #b51212;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 50px;
}

/* --- Header / Navigation --- */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-red);
    font-style: italic;
    line-height: 1;
}

.brand-sub {
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--dark-grey);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    text-decoration: none;
    color: var(--dark-grey);
    padding: 10px 15px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links li a:hover, 
.nav-links li a.active {
    color: var(--primary-red);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Base style for the dropdown list */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    margin: 0;
    list-style: none;
    border-radius: 4px;
    z-index: 1000;
}

/* Dropdown link styling */
.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    color: #333333;
    padding: 10px 16px;
    display: block;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: #f4f4f4;
}

/* Reveal dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Small visual arrow indicator */
.arrow {
    font-size: 10px;
    margin-left: 4px;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('https://borgga.com/Images/Borgga-%20Photo-kathy-20260623.avif?auto=format&fit=crop&w=1600&q=80') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1,
.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* --- Search Filter Box --- */
.search-filter {
    transform: translateY(-50%);
    margin-bottom: -50px;
}

.filter-box {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.input-group {
    flex: 1;
    min-width: 200px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.input-group label i {
    color: var(--primary-red);
    margin-right: 5px;
}

.input-group input, 
.input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
}

.search-btn {
    height: 48px;
    padding: 0 30px;
}

/* --- Holiday Packages Cards --- */
.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    margin-bottom: 10px;
}

.card-body p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-footer .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-red);
}

/* --- About Section --- */
.about-section {
    background-color: var(--light-grey);
    padding: 80px 0;
}

.features-list {
    list-style: none;
    margin-top: 20px;
}

.features-list li {
    margin-bottom: 10px;
    font-weight: 500;
}

.features-list li i {
    color: var(--primary-red);
    margin-right: 10px;
}

.about-img {
    border-radius: 8px;
    min-height: 300px;
    background-size: cover;
    background-position: center;
}

/* --- Contact Section --- */
.contact-info i {
    color: var(--primary-red);
    margin-right: 10px;
    width: 20px;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
}

/* --- Main Content + Right Sidebar Layout --- */
.page-layout {
    display: grid;
    grid-template-columns: 2.15fr 1fr;
    gap: 40px;
    align-items: start;
}

.details-block {
    margin-top: 30px;
}

.booking-box {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-top: 35px;
    border-top: 4px solid var(--primary-red);
}

.booking-header {
    margin: 20px 0;
}

.booking-header p {
    font-size: 0.9rem;
    color: #666;
    margin: 8px 0 15px;
}

/* --- Right Sidebar & Widgets --- */
.right-sidebar {
    position: sticky;
    top: 95px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--white);
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-grey);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 45px;
    height: 2px;
    background: var(--primary-red);
}

/* --- Recent Packages List --- */
.recent-packages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-pkg-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: var(--dark-grey);
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
}

.recent-pkg-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-pkg-item:hover h4 {
    color: var(--primary-red);
}

.recent-pkg-thumb {
    width: 75px;
    height: 75px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    background-color: #eee;
}

.recent-pkg-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recent-pkg-info h4 {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 4px;
    transition: var(--transition);
}

.pkg-meta {
    font-size: 0.78rem;
    color: #777;
    margin-bottom: 3px;
}

.pkg-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-red);
}

/* --- Social Media Feeds Widget --- */
.sidebar-social-bar {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 15px;
}

.sidebar-social-bar a {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    background: var(--light-grey);
    color: var(--dark-grey);
    border-radius: 4px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.sidebar-social-bar a:hover {
    background: var(--primary-red);
    color: var(--white);
}

.feed-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.feed-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 8px 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.feed-tab.active,
.feed-tab:hover {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

.feed-panel {
    display: none;
}

.feed-panel.active {
    display: block;
}

.social-feed-card {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 14px;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.feed-handle {
    font-weight: 700;
    font-size: 0.9rem;
}

.follow-pill {
    background: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.feed-caption {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.5;
}

.feed-grid-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.feed-grid-preview div {
    height: 70px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
}

.feed-more-link {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-red);
    text-decoration: none;
}

/* --- Footer --- */
footer {
    background: var(--dark-grey);
    color: var(--white);
    padding: 30px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.socials a {
    color: var(--white);
    margin-left: 15px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.socials a:hover {
    color: var(--primary-red);
}

/* --- Responsive Media Queries --- */
@media (max-width: 900px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .right-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--white);
        position: absolute;
        top: 70px;
        left: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 2.5rem;
    }

    .search-filter {
        transform: translateY(0);
        margin-bottom: 30px;
        padding-top: 30px;
    }

    .filter-box {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
}
