/* ===================================
   Travel Phuket - Custom Styles (Updated)
   =================================== */

:root {
    --primary-color: #fa5636; /* Orange-Red Brand Color */
    --primary-hover: #ffffff;
    --secondary-color: #004d4d; /* Deep Teal */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --border-color: #e5e5e5;
    --success-color: #4CAF50;
    --warning-color: #ffb400;
}

/* ===================================
   General Styles
   =================================== */

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--secondary-color);
}

/* ===================================
   Top Bar
   =================================== */
.top-bar {
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 0.9rem;
    padding: 10px 0;
}

.top-bar a {
    color: var(--white);
    margin-right: 15px;
}

.top-bar a:hover {
    color: var(--primary-color);
}

/* ===================================
   Header & Navigation
   =================================== */

.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--secondary-color) !important;
    padding: 0.5rem 1rem !important;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.btn-book-now {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
}

.btn-book-now:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 77, 77, 0.4); /* Overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ===================================
   Search Widget
   =================================== */
.search-container {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 3;
    margin-top: -50px;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   Buttons
   =================================== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #d94528;
    border-color: #d94528;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* ===================================
   Card Styles
   =================================== */
.card-tour {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

.card-tour:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.card-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-tour:hover .card-img-wrap img {
    transform: scale(1.1);
}

.badge-featured {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.wishlist-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.8);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.wishlist-icon:hover {
    background: var(--primary-color);
    color: white;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.card-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.price-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.price-icon {
    color: var(--warning-color);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer h5 {
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a {
    color: #cccccc;
    transition: color 0.3s;
}

.footer ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #999;
}

/* ===================================
   Gallery & Single Page Styles
   =================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 10px;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-main {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}

.tour-header-info {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.info-icon-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.info-icon-box i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

/* Booking Widget */
.booking-widget {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    padding: 25px;
    position: sticky;
    top: 100px; /* Sticky positioning */
}

.price-tag {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.booking-form .form-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.booking-form .input-group-text {
    background: white;
    border-right: 0;
}

.booking-form .form-control, 
.booking-form .form-select {
    border-left: 0;
    padding-left: 0;
}

.btn-book-submit {
    background: var(--primary-color);
    color: white;
    width: 100%;
    padding: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
}

.btn-book-submit:hover {
    background: var(--secondary-color);
}

/* Itinerary Timeline */
.itinerary-item {
    position: relative;
    padding-left: 30px;
    padding-bottom: 30px;
    border-left: 2px dashed #e5e5e5;
}

.itinerary-item:last-child {
    border-left: none;
}

.itinerary-dot {
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 1px var(--primary-color);
}
