:root {
    --primary-color: #EF4136;
    /* Escantur Red */
    --secondary-color: #1a1a1a;
    /* Dark Grey/Black */
    --accent-color: #D9A13D;
    /* Gold/Mustard for badges */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-radius: 12px;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

/* Top Bar */
.top-bar {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span {
    margin-right: 20px;
}

.top-info i {
    color: var(--primary-color);
    margin-right: 5px;
}

.top-auth a {
    color: var(--white);
    margin-left: 15px;
    font-weight: 500;
}

.btn-register {
    background-color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
}

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

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 25px;
}

nav a {
    font-weight: 500;
    font-size: 15px;
    color: var(--secondary-color);
}

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

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-only {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Search Widget */
.search-widget {
    background: rgba(255, 255, 255, 0.95);
    padding: 2px;
    border-radius: var(--border-radius);
    display: inline-block;
    width: 850px;
    max-width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-tabs {
    display: flex;
    background: #f1f1f1;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
}

.search-tabs button {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    color: #666;
    transition: 0.3s;
}

.search-tabs button.active {
    background: var(--white);
    color: var(--primary-color);
    border-top: 3px solid var(--primary-color);
}

.search-tabs button i {
    margin-right: 8px;
}

.search-form {
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    display: flex;
    gap: 15px;
}

.form-group {
    position: relative;
    flex: 1;
}

.icon-input i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.icon-input input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

.icon-input input:focus {
    border-color: var(--primary-color);
}

.btn-search {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-search:hover {
    background-color: #d32f2f;
}

/* Tours Section */
.tours-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h3 {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

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

.tour-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    transform: translateY(-5px);
}

.card-image {
    position: relative;
    height: 220px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.badge-featured {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.card-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    font-size: 13px;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
}

.card-content h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--secondary-color);
    line-height: 1.4;
}

.card-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.card-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

.card-features {
    font-size: 13px;
    color: #555;
    margin-bottom: 15px;
}

.card-features li {
    margin-bottom: 5px;
}

.card-features i {
    color: #4CAF50;
    /* Green check */
    margin-right: 8px;
    font-size: 11px;
}

.card-footer {
    padding: 15px 20px;
    background: #fcfcfc;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-box {
    display: flex;
    flex-direction: column;
}

.old-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
}

.btn-detail {
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 15px;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    transition: 0.3s;
}

.btn-detail:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Why Us */
.why-us {
    background: var(--white);
    padding: 60px 0;
    margin-top: 40px;
    border-top: 1px solid #eee;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h4 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.feature-item p {
    color: #666;
    font-size: 14px;
}

/* Footer */
footer {
    background: #222;
    color: #ddd;
    padding: 60px 0 20px;
    margin-top: 0;
}

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

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #aaa;
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: #333;
    color: var(--white);
    text-align: center;
    line-height: 36px;
    border-radius: 50%;
    margin-right: 10px;
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #aaa;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-col ul li i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 15px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    color: #777;
}

.payment-icons {
    font-size: 24px;
    color: #fff;
    display: flex;
    gap: 15px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .search-widget {
        width: 100%;
        border-radius: 12px;
    }

    .search-form {
        flex-direction: column;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    nav ul {
        display: none;
    }

    nav ul.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 20px;
        gap: 10px;
        z-index: 999;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-only {
        display: block;
        border-top: 1px solid #eee;
        padding-top: 10px;
        margin-top: 10px;
    }
}

/* ========= Phase 2 Additions ========= */

/* Card Body - index.php tour cards */
.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--secondary-color);
    line-height: 1.4;
}

.card-location {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.card-location i {
    color: var(--primary-color);
    margin-right: 5px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.card-footer .price {
    display: flex;
    flex-direction: column;
}

.card-footer .price-label {
    font-size: 11px;
    color: #999;
}

.card-footer .price-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Feature Card - why-us section */
.feature-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

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

.feature-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card h4 {
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-size: 16px;
}

.feature-card p {
    color: #666;
    font-size: 13px;
}