/* ===================================
   Ayale Travel Website - Main Styles
   =================================== */

/* Note: CSS Variables are defined in variables.css */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-normal);
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

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

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-lg {
    padding: 16px 40px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

/* Header Styles */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.top-bar {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 8px 0;
    font-size: 0.875rem;
}

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

.contact-info a,
.top-bar-right a {
    color: var(--bg-white);
    margin-right: 20px;
}

.contact-info a:hover,
.top-bar-right a:hover {
    color: var(--primary-color);
}

.top-bar-right a:last-child {
    margin-right: 0;
}

/* Main Navigation */
.main-nav {
    background-color: var(--bg-white);
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

.logo i {
    margin-right: 10px;
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 600;
    padding: 8px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-toggle,
.mobile-menu-toggle {
    font-size: 1.25rem;
    color: var(--text-dark);
    padding: 8px;
}

.cart-btn {
    position: relative;
    font-size: 1.25rem;
    color: var(--text-dark);
    padding: 8px;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--secondary-color);
    color: var(--bg-white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-container {
    position: relative;
    width: 90%;
    max-width: 600px;
}

.search-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: var(--bg-white);
    font-size: 2rem;
}

.search-input-wrapper {
    display: flex;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 20px;
    font-size: 1.25rem;
    border: none;
    outline: none;
}

.search-submit {
    padding: 0 30px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-size: 1.25rem;
}

.search-suggestions {
    background-color: var(--bg-white);
    margin-top: 10px;
    border-radius: var(--border-radius);
    max-height: 400px;
    overflow-y: auto;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hero-content {
    text-align: center;
    color: var(--bg-white);
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Hero Search */
.hero-search {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    max-width: 900px;
    margin-top: 30px;
}

.search-fields {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 15px;
    align-items: end;
}

.search-field {
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.search-field input,
.search-field select {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    outline: none;
}

.search-field input:focus,
.search-field select:focus {
    border-color: var(--primary-color);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-bg {
    background-color: var(--bg-light);
}

/* Card Styles */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

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

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: var(--bg-white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.card-title a {
    color: var(--text-dark);
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.card-location i {
    margin-right: 5px;
}

.card-description {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.card-price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-light);
}

.rating {
    display: flex;
    align-items: center;
    color: var(--warning-color);
}

.rating i {
    font-size: 0.9rem;
    margin-right: 2px;
}

.rating-value {
    color: var(--text-dark);
    font-weight: 600;
    margin-left: 5px;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.card-actions .btn {
    flex: 1;
}

/* Guide Card */
.guide-card {
    text-align: center;
}

.guide-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid var(--primary-color);
}

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

.guide-name {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.guide-specialty {
    color: var(--text-light);
    margin-bottom: 10px;
}

.guide-languages {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.guide-languages span {
    background-color: var(--bg-light);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
}

/* Hotel Card Specific */
.hotel-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.amenity-icon {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-medium);
    font-size: 0.875rem;
}

.star-rating {
    color: var(--warning-color);
    margin-bottom: 10px;
}

/* Package Card Specific */
.package-duration {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.package-highlights {
    list-style: none;
    margin: 15px 0;
}

.package-highlights li {
    padding: 5px 0;
    color: var(--text-medium);
}

.package-highlights li i {
    color: var(--success-color);
    margin-right: 8px;
}

/* Filter Sidebar */
.filter-sidebar {
    background-color: var(--bg-white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 160px;
}

.filter-group {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
}

.filter-checkbox input {
    margin-right: 10px;
    cursor: pointer;
}

.filter-checkbox label {
    cursor: pointer;
}

/* Footer */
.site-footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding-top: 60px;
}

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.footer-logo i {
    margin-right: 10px;
}

.footer-desc {
    color: var(--border-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border-radius: 50%;
    transition: var(--transition);
}

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

.footer-col h4 {
    font-size: 1.125rem;
    margin-bottom: 20px;
}

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

.footer-links a {
    color: var(--border-color);
}

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

.contact-info-list li {
    display: flex;
    margin-bottom: 15px;
    color: var(--border-color);
}

.contact-info-list i {
    margin-right: 12px;
    color: var(--primary-color);
    min-width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
}

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

.footer-bottom-content p {
    color: var(--border-color);
    font-size: 0.9rem;
}

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

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 1.75rem;
    color: var(--border-color);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow);
    z-index: 999;
    transition: var(--transition);
}

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

.back-to-top.visible {
    display: flex;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.hidden { display: none !important; }
.visible { display: block !important; }

