/* Main Stylesheet for Tamia Tourism Website */

/* ===== Base Styles ===== */
:root {
    /* Color Palette */
    --primary-color: #2E8B57; /* Forest Green */
    --primary-dark: #1e5d3a;
    --primary-light: #4caf7d;
    --secondary-color: #d2b48c; /* Tan - Earthy tone */
    --accent-color: #ff7e00; /* Orange accent */
    --text-dark: #333333;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --bg-dark: #343a40;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    
    /* Typography */
    --body-font: 'Poppins', sans-serif;
    --heading-font: 'Poppins', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 15px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
    width: 100%;
}

section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    color: var(--text-light);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.search-btn {
    background-color: var(--accent-color);
    color: var(--text-light);
}

.search-btn:hover {
    background-color: #e67200;
    color: var(--text-light);
}

.view-all-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 25px;
}

.view-all-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.view-all-container {
    text-align: center;
    margin-top: 40px;
}

/* ===== Header Styles ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo img {
    height: 50px;
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin: 0 15px;
}

.main-nav ul li a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.main-nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.main-nav ul li a:hover:after,
.main-nav ul li a.active:after {
    width: 100%;
}

.language-selector select {
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--body-font);
    cursor: pointer;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
}

@media (min-width: 992px) {
    .mobile-menu {
        display: none !important;
    }
}

/* ===== Hero Section Styles ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    padding-top: 80px; /* Header height */
}

.hero-slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

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

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-light);
    z-index: 3;
    width: 80%;
    max-width: 800px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
}

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

.slide-content p {
    font-size: 20px;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 4;
    transform: translateY(-50%);
}

.navigation button {
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navigation button:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 4;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Search Container */
.search-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px 0;
    z-index: 5;
}

.search-box {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-box h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 24px;
}

.search-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    margin: 0 10px;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 16px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(46, 139, 87, 0.2);
}

/* ===== Attractions Section Styles ===== */
.attractions-section {
    background-color: var(--bg-light);
}

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

.attraction-card {
    background-color: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.attraction-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.attraction-img {
    height: 200px;
    overflow: hidden;
}

.attraction-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.attraction-card:hover .attraction-img img {
    transform: scale(1.1);
}

.attraction-content {
    padding: 20px;
}

.attraction-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.attraction-content p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.attraction-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-muted);
}

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

/* ===== Homestays Section Styles ===== */
.homestays-section {
    background-color: #f0f5f1; /* Light green background */
}

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

.homestay-card {
    background-color: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.homestay-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.homestay-img {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.homestay-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.homestay-card:hover .homestay-img img {
    transform: scale(1.1);
}

.homestay-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
}

.homestay-content {
    padding: 20px;
}

.homestay-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.homestay-rating {
    margin-bottom: 15px;
    color: #ffc107; /* Star color */
}

.homestay-rating span {
    color: var(--text-muted);
    margin-left: 5px;
}

.homestay-content p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.homestay-features {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.homestay-features span {
    margin-right: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-dark);
}

.homestay-features span i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* ===== Gallery Section Styles ===== */
.gallery-section {
    background-color: var(--bg-light);
}

.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    margin: 5px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 139, 87, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    text-align: center;
    color: var(--text-light);
    padding: 20px;
}

.gallery-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.gallery-upload {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.gallery-upload h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.gallery-upload p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.upload-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.recaptcha {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.g-recaptcha-placeholder {
    width: 302px;
    height: 76px;
    background-color: #f9f9f9;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== Safety Section Styles ===== */
.safety-section {
    background-color: #f0f5f1; /* Light green background */
}

.safety-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.emergency-contacts {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.emergency-contacts h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.emergency-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.emergency-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 8px;
    color: var(--text-light);
    transition: all 0.3s ease;
    text-align: center;
}

.emergency-btn i {
    font-size: 30px;
    margin-bottom: 10px;
}

.emergency-btn span {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 5px;
}

.emergency-btn small {
    font-size: 14px;
}

.police-btn {
    background-color: #3f51b5;
}

.ambulance-btn {
    background-color: #f44336;
}

.hospital-btn {
    background-color: #2196f3;
}

.forest-btn {
    background-color: var(--primary-color);
}

.emergency-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.safety-accordion {
    background-color: var(--text-light);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.accordion-icon i {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-header {
    background-color: rgba(46, 139, 87, 0.1);
}

.accordion-item.active .accordion-icon i {
    transform: rotate(45deg);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 0 20px 20px;
}

.accordion-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 10px;
}

.accordion-content ul li {
    margin-bottom: 8px;
}

.map-container {
    margin-top: 40px;
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.map-container h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.map-embed {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.map-embed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Contact Section Styles ===== */
.contact-section {
    background-color: var(--bg-light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-info {
    background-color: var(--primary-color);
    padding: 40px;
    border-radius: 8px;
    color: var(--text-light);
}

.info-item {
    display: flex;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 24px;
    margin-right: 20px;
    color: var(--text-light);
}

.info-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.social-links h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.social-icon:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.contact-form {
    background-color: var(--text-light);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

/* ===== Footer Styles ===== */
#footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 70px 0 0;
}

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

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-logo p {
    color: #adb5bd;
    margin-bottom: 20px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #adb5bd;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-newsletter h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-newsletter h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

.footer-newsletter p {
    color: #adb5bd;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-family: var(--body-font);
    font-size: 14px;
}

.newsletter-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 0 4px 4px 0;
    padding: 0 20px;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #adb5bd;
}

.footer-bottom-links a {
    color: #adb5bd;
    margin-left: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}