/* Reset some basic elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f7f7f7;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* Article headings */
h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: #222;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

h3 {
    font-size: 1rem;
    margin-top: 8px;
    color: #555;
}

/* Hotel card table styling */
.hotel-card {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    background-color: #fafafa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.hotel-card td {
    padding: 15px;
    vertical-align: top;
}

/* Hotel images */
.hotel-card .hotel-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    object-fit: cover;
}

/* Hotel details column */
.hotel-card .hotel-details {
    padding-left: 20px;
}

/* Price range styling */
.hotel-card .hotel-details h3 + h3 {
    margin-top: 5px;
}

/* Buttons */
.btn-book {
    display: block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #ff5a5f;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    width: auto;
    text-align: center;
}

@media (min-width: 768px) {
    .btn-book {
        display: block;
        margin-top: 15px;
        padding: 10px 20px;
        background-color: #ff5a5f;
        color: #fff; text-decoration: none;
        font-weight: bold;
        border-radius: 5px;
        transition: background-color 0.3s ease;
        max-width: 200px;
    }
    
}

.btn-book:hover {
    background-color: #e04848;
}

/* Paragraphs */
article p {
    margin: 15px 0;
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

/* Responsive design */
@media screen and (max-width: 900px) {
    .hotel-card {
        display: block;
    }
    .hotel-card td {
        display: block;
        width: 100%;
        padding: 10px;
    }
    .hotel-card .hotel-details {
        padding-left: 0;
    }
}

@media screen and (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    .btn-book {
        width: 100%;
        text-align: center;
    }
}



/* --- Homepage Styles --- */

#homepage {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('/images/hero-bg.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    border-radius: 10px;
    margin-bottom: 50px;
}

/* Hero Section Text Shadow */
#hero .hero-content h1,
#hero .hero-content p {
    color: #ffffff; /* Ensure text is pure white */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.btn-primary {
    background-color: #ff5a5f;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: #e04848;
}

/* Latest Articles */
#latest-articles {
    margin: 60px 0;
}

#latest-articles h2 {
    text-align: center;
    margin-bottom: 30px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.home-article {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
}

.home-article h3 a {
    text-decoration: none;
    color: #222;
    font-size: 1.2rem;
}

.home-article p {
    color: #555;
    font-size: 0.95rem;
    margin: 10px 0 15px;
}

.btn-readmore {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 18px;
    background-color: #ff5a5f;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-readmore:hover {
    background-color: #e04848;
}

/* Featured Destinations */
#featured-destinations {
    margin: 60px 0;
}

#featured-destinations h2 {
    text-align: center;
    margin-bottom: 30px;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.destination-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    padding-bottom: 15px;
}

.destination-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.destination-card h3 {
    margin: 15px 0 10px;
}

.destination-card p {
    color: #555;
    font-size: 0.95rem;
    padding: 0 10px;
}

/* CTA Section */
#cta {
    text-align: center;
    background: #ff5a5f;
    color: #fff;
    padding: 60px 20px;
    border-radius: 10px;
    margin-top: 60px;
}

#cta h2 {
    margin-bottom: 15px;
}

#cta p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    #hero {
        padding: 60px 20px;
    }
    #hero .hero-content h1 {
        font-size: 2rem;
    }
}



/* --- Search Form --- */
#search-form {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

#search-form input[type="text"] {
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    width: 250px;
    font-size: 1rem;
}

#search-form button {
    padding: 10px 20px;
    background-color: #ff5a5f;
    border: none;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

#search-form button:hover {
    background-color: #e04848;
}

/* Search Results Section */
#search-results {
    margin: 60px 0;
}

#search-results h1 {
    text-align: center;
    margin-bottom: 30px;
}

/* --- Navigation Menu --- */
.main-nav {
    margin-top: 20px;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    position: relative;
}

.nav-item a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    display: block;
    transition: background 0.3s ease;
}

.nav-item a:hover {
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    color: #333;
    min-width: 180px;
    list-style: none;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    text-align: left;
}

.dropdown-menu li a {
    color: #333;
    padding: 10px 15px;
    font-weight: normal;
}

.dropdown-menu li a:hover {
    background-color: #ff5a5f;
    color: #fff;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Responsive Navigation */
@media screen and (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: #fff;
    }
    .dropdown-menu li a {
        color: #333;
    }
}
