/* ==========================================================================
   Tanzania Beach Safaris — homepage-specific styling.
   Loaded only on index.php, after the base theme stylesheet
   (assets/css/app.css), so these rules override/extend it without
   touching the shared theme file. Extracted from an inline <style> block
   that used to sit directly in index.php.
   ========================================================================== */

/* =========
   UNIFORMITY LAYER (visual-only)
   - No functional changes
   ========= */

:root{
    --tbs-primary: #C1622D;
    --tbs-accent:  #1B4F4A;
    --tbs-dark:    #1B4F4A;
    --tbs-text:    #4F545A;
    --tbs-muted:   #697488;
    --tbs-white:   #FFFFFF;
    --tbs-card:    #FFFFFF;
    --tbs-border:  rgba(0,0,0,0.07);
    --tbs-shadow:  0 8px 30px rgba(0,0,0,0.08);
}

/* Consistent spacing + readability */
body { background: #fff; }
section { position: relative; }
.section-pad { padding: 80px 0; }
@media (max-width: 768px){
    .section-pad { padding: 60px 0; }
}

/* Consistent Section Title Styles for all sections */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title.mb-50 { margin-bottom: 50px !important; }
.section-title.mb-60 { margin-bottom: 60px !important; }

.subtitle {
    font-size: 18px;
    color: var(--tbs-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.title-heading {
    font-size: 36px;
    font-weight: 700;
    color: var(--tbs-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    text-wrap: balance;
}

.title-heading:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--tbs-primary);
}

.section-description {
    color: var(--tbs-text);
    max-width: 760px;
    margin: 20px auto 0;
    font-size: 18px;
    line-height: 1.65;
    text-wrap: pretty;
}

.text-main { color: var(--tbs-primary) !important; }
.fs-28-46 { font-size: 28px; line-height: 46px; }

/* Make CTA/button styles feel consistent without changing existing classes */
.btn-primary-custom, .btn-outline-custom, .btn-main, .explore-btn, .btn-explore {
    -webkit-tap-highlight-color: transparent;
}

/* About Us Section Updates (uniform spacing) */
.about-us-section { padding: 80px 0; }
.about-us-section .subtitle { margin-bottom: 12px; }
.about-us-section .section-description { margin-top: 26px; }
@media (max-width: 768px){
    .about-us-section { padding: 60px 0; }
}

/* Destination Section Styles */
.destination-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}
.destination-section .container { position: relative; z-index: 1; }

.destination-section-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: #E8F5EE;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    z-index: 0;
}
.destination-section-accent-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 220px;
    height: 220px;
    background: var(--tbs-accent);
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.12;
    z-index: 0;
}

/* Destination Tabs */
.destination-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: nowrap;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.destination-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
    padding: 18px 30px;
    background: var(--tbs-white);
    border: 2px solid var(--tbs-primary);
    font-size: 16px;
    font-weight: 700;
    color: var(--tbs-primary);
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 10px;
    text-align: center;
    min-width: 180px;
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    outline: none;
}
.tab-btn.active {
    color: var(--tbs-white);
    background: var(--tbs-primary);
    border-color: var(--tbs-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(193, 98, 45, 0.28);
}
.tab-btn:hover:not(.active) {
    background: rgba(193, 98, 45, 0.06);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(193, 98, 45, 0.18);
}
.tab-btn .tab-title {
    display: block;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.2;
}
.tab-btn .tab-subtitle {
    display: block;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.92;
    line-height: 1.2;
}

/* Tab Description */
.tab-description {
    text-align: center;
    margin: 0 auto 40px;
    padding: 22px 22px;
    background: var(--tbs-white);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    max-width: 980px;
    border-left: 4px solid var(--tbs-primary);
}
.tab-description h3 {
    color: var(--tbs-primary);
    margin-bottom: 12px;
    font-size: 22px;
}
.tab-description p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--tbs-text);
    margin: 0;
}

/* Tab Content */
.tab-content { display: none; animation: fadeIn 0.45s ease; position: relative; z-index: 1; width: 100%; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* Destination Slider */
.destination-slider { position: relative; padding: 20px 0; width: 100%; }
.destination-swiper { width: 100%; height: 100%; padding: 30px 0; }
.destination-swiper .swiper-slide { text-align: center; display: flex; justify-content: center; align-items: center; height: auto; }

.destination-swiper .swiper-button-next,
.destination-swiper .swiper-button-prev {
    color: var(--tbs-white);
    background: var(--tbs-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    transition: all 0.25s ease;
}
.destination-swiper .swiper-button-next:after,
.destination-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: 800;
}
.destination-swiper .swiper-button-next:hover,
.destination-swiper .swiper-button-prev:hover {
    background: var(--tbs-accent);
    transform: scale(1.07);
    box-shadow: 0 10px 26px rgba(197, 156, 112, 0.35);
}

.destination-swiper .swiper-pagination { bottom: 0px !important; }
.destination-swiper .swiper-pagination-bullet { width: 12px; height: 12px; background: var(--tbs-muted); opacity: 0.45; }
.destination-swiper .swiper-pagination-bullet-active { background: var(--tbs-accent); opacity: 1; }

/* Destination Card - Fixed Height */
.destination-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--tbs-card);
    box-shadow: var(--tbs-shadow);
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.35s ease;
    height: 480px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--tbs-border);
    margin: 0 15px;
}
.destination-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 46px rgba(0,0,0,0.12);
}

.destination-card-image { position: relative; height: 240px; overflow: hidden; flex-shrink: 0; }
.destination-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.destination-card:hover .destination-card-image img { transform: scale(1.1); }

.destination-card-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(193, 98, 45, 0.85), rgba(193, 98, 45, 0.0));
    color: var(--tbs-white);
    z-index: 2;
}
.destination-card-overlay h3 { color: var(--tbs-white); font-size: 22px; margin-bottom: 5px; line-height: 1.25; }
.destination-card-overlay p { font-size: 14px; opacity: 0.92; line-height: 1.25; margin: 0; }

.destination-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.destination-card-content p {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--tbs-text);
    flex-grow: 1;
    line-height: 1.55;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.destination-features { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 15px; flex-shrink: 0; }
.feature { display: flex; align-items: center; font-size: 13px; color: var(--tbs-muted); line-height: 1.3; white-space: nowrap; }
.feature i { color: var(--tbs-accent); margin-right: 6px; font-size: 14px; }

.destination-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; flex-shrink: 0; }
.destination-highlight { font-size: 16px; font-weight: 700; color: var(--tbs-primary); text-align: left; line-height: 1.25; }
.destination-highlight span { font-size: 12px; color: var(--tbs-muted); font-weight: 500; display: block; line-height: 1.25; }

/* Reduced Height Explore Button */
.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--tbs-accent);
    color: var(--tbs-white);
    text-decoration: none;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.25s ease;
    box-shadow: 0 3px 12px rgba(197, 156, 112, 0.25);
    border: 1px solid var(--tbs-accent);
    flex-shrink: 0;
    height: 34px;
}
.btn-explore:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(197, 156, 112, 0.35);
    background: var(--tbs-white);
    color: var(--tbs-accent);
}
.btn-explore i { font-size: 10px; transition: transform 0.25s ease; }
.btn-explore:hover i { transform: translateX(3px); }

/* Popular Safari Packages: align card spacing + make Explore button consistent */
.widget-top-week { padding: 80px 0; }
.widget-top-week .section-title { margin-bottom: 50px; }
.tour-listing { border-radius: 16px; overflow: hidden; border: 1px solid var(--tbs-border); box-shadow: 0 10px 28px rgba(0,0,0,0.06); }
.tour-listing-content { padding: 18px 18px 18px; }
.tour-listing .title-tour-list a { text-wrap: balance; }
.explore-btn{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--tbs-primary);
    color: var(--tbs-white);
    background: var(--tbs-primary);
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(193, 98, 45, 0.18);
    line-height: 1;
    white-space: nowrap;
}
.explore-btn:hover{
    transform: translateY(-2px);
    background: var(--tbs-white);
    color: var(--tbs-primary);
    box-shadow: 0 8px 18px rgba(193, 98, 45, 0.22);
}
.explore-btn i{ font-size: 11px; }

/* Blog cards: ensure consistent hover + radius */
.tf-widget-blog.blog-style4 { border-radius: 16px; overflow: hidden; border: 1px solid var(--tbs-border); box-shadow: 0 10px 28px rgba(0,0,0,0.06); }
.tf-widget-blog.blog-style4 .blog-image { position: relative; }
.tf-widget-blog.blog-style4 img { width: 100%; height: 320px; object-fit: cover; display: block; }
@media (max-width: 768px){
    .tf-widget-blog.blog-style4 img { height: 260px; }
}

/* Improved responsive design */
@media (max-width: 768px) {
    .destination-section { padding: 60px 0; }
    .title-heading { font-size: 28px; }
    .section-description { font-size: 16px; padding: 0 20px; }
    .subtitle { font-size: 16px; }
    .destination-tabs { justify-content: flex-start; padding: 10px 15px; }
    .tab-btn { min-width: 160px; padding: 15px 20px; }
    .tab-btn .tab-title { font-size: 14px; }
    .tab-btn .tab-subtitle { font-size: 11px; }
    .tab-description { padding: 16px; margin: 0 15px 40px; }
    .tab-description h3 { font-size: 20px; }
    .tab-description p { font-size: 15px; }
    .destination-card { height: 460px; margin: 0 10px; }
    .destination-card-image { height: 220px; }
    .destination-swiper .swiper-button-next, .destination-swiper .swiper-button-prev { display: none; }
    .destination-section-accent { width: 200px; height: 200px; }
    .btn-explore { padding: 7px 14px; font-size: 11px; height: 32px; }
}
@media (max-width: 480px) {
    .destination-tabs { gap: 10px; padding: 10px 15px; }
    .tab-btn { min-width: 140px; padding: 12px 15px; }
    .tab-btn .tab-title { font-size: 13px; }
    .tab-description { padding: 12px; margin: 0 15px 40px; }
    .tab-description h3 { font-size: 18px; }
    .tab-description p { font-size: 14px; }
    .destination-card { height: 450px; margin: 0 8px; }
    .destination-card-image { height: 200px; }
    .btn-explore { padding: 6px 12px; font-size: 10px; height: 30px; }
    .title-heading { font-size: 24px; }
    .subtitle { font-size: 14px; }
}
@media (max-width: 360px) {
    .tab-btn { min-width: 130px; padding: 10px 12px; }
    .tab-btn .tab-title { font-size: 12px; }
    .tab-btn .tab-subtitle { font-size: 10px; }
    .destination-card { height: 440px; }
    .btn-explore { padding: 5px 10px; font-size: 9px; height: 28px; }
}
