/* General Reset (Complies with Task 2: No Frameworks) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', 'Helvetica', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navigation Bar Style */
.navbar {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    vertical-align: middle;
}

/* Desktop Navigation */
.nav-links.desktop {
    display: flex;
    list-style: none;
    margin: 0 20px;
}

.nav-links.desktop li {
    margin: 0 15px;
}

.nav-links.desktop a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
}

.nav-links.desktop a.active {
    color: #c21f39; /* Kyoto Red Theme */
}

.nav-links.desktop a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #c21f39;
    transition: width 0.3s ease;
}

.nav-links.desktop a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 160px;
    z-index: 101;
}

.dropdown-content a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
}

.dropdown-content a:hover {
    background: #f5f5f5;
    color: #c21f39;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
    width: 220px;
}

.search-box button {
    padding: 8px 15px;
    border: none;
    background: #c21f39;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #a01a2e;
}

/* Mobile Hamburger Menu (Responsive) */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s;
}

.nav-links.mobile {
    display: none;
    width: 100%;
    background: #fff;
    list-style: none;
    flex-direction: column;
    margin-top: 15px;
}

.nav-links.mobile.show {
    display: flex;
}

.nav-links.mobile li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.nav-links.mobile a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.nav-links.mobile a.active {
    color: #c21f39;
}

/* Page Header (For All Inner Pages) */
.page-header {
    background: #fff;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-header h1 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Carousel Style (Home Page) */
.carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin: 20px 0;
}

.carousel-slides {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-text {
    position: absolute;
    bottom: 50px;
    left: 50px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
}

.slide-text h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.slide-text p {
    font-size: 1.1rem;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-prev:hover, .carousel-next:hover {
    background: #fff;
}

/* Core Sections (Home Page) */
.core-sections {
    padding: 50px 0;
}

.core-sections .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.section-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.section-card:hover {
    transform: translateY(-5px);
}

.section-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.section-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.section-card h3 {
    padding: 15px 20px 5px;
    color: #c21f39;
    font-size: 1.3rem;
}

.section-card p {
    padding: 0 20px 20px;
    color: #666;
    font-size: 0.95rem;
}

/* Attractions Page Styles */
.attraction-region {
    padding: 40px 0;
    background: #fff;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.attraction-region h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-left: 4px solid #c21f39;
    padding-left: 15px;
}

.attraction-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.attraction-card {
    background: #fdfdfd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.attraction-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.attraction-card h3 {
    padding: 15px 20px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.attraction-details {
    padding: 0 20px 10px;
    color: #666;
    font-size: 0.9rem;
}

.attraction-tips {
    padding: 0 20px 20px;
    color: #c21f39;
    font-size: 0.9rem;
    font-style: italic;
}

/* Food Page Styles */
.food-category {
    padding: 40px 0;
    background: #fff;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.food-category h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-left: 4px solid #c21f39;
    padding-left: 15px;
}

.food-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.food-card {
    background: #fdfdfd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.food-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.food-card h3 {
    padding: 15px 20px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.food-desc {
    padding: 0 20px 10px;
    color: #333;
    font-size: 0.95rem;
}

.food-details {
    padding: 0 20px 10px;
    color: #666;
    font-size: 0.9rem;
}

.food-tip {
    padding: 0 20px 20px;
    color: #c21f39;
    font-size: 0.9rem;
    font-style: italic;
}

/* Accommodation Page Styles */
.accommodation-category {
    padding: 40px 0;
    background: #fff;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.accommodation-category h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-left: 4px solid #c21f39;
    padding-left: 15px;
}

.accommodation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.accommodation-card {
    background: #fdfdfd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.accommodation-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.accommodation-card h3 {
    padding: 15px 20px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.acc-details {
    padding: 0 20px 10px;
    color: #666;
    font-size: 0.9rem;
}

.acc-rating {
    padding: 0 20px 15px;
    color: #f39c12;
    font-size: 0.95rem;
    font-weight: 500;
}

.book-link {
    display: inline-block;
    margin: 0 20px 20px;
    padding: 8px 20px;
    background: #c21f39;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.book-link:hover {
    background: #a01a2e;
}

/* Culture Page Styles */
.experience-section {
    padding: 40px 0;
}

.experience-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
}

.experience-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .experience-card img {
        width: 40%;
        height: auto;
    }
}

.experience-content {
    padding: 20px;
    width: 100%;
}

@media (min-width: 768px) {
    .experience-content {
        width: 60%;
    }
}

.experience-content h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.exp-desc {
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.exp-details {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.details-btn {
    padding: 8px 20px;
    background: #c21f39;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.details-btn:hover {
    background: #a01a2e;
}

.exp-details-modal {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.exp-details-modal.show-modal {
    display: block;
}

.exp-details-modal h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.exp-details-modal ul {
    margin-left: 20px;
    color: #666;
    margin-bottom: 10px;
}

/* Contact Form Styles */
.contact-form {
    padding: 50px 0;
    background: #fff;
    margin: 20px 0 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.contact-form h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.contact-form p {
    text-align: center;
    color: #666;
    max-width: 800px;
    margin: 0 auto 30px;
}

#consultForm {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #c21f39;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-group label {
    font-weight: normal;
    cursor: pointer;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.submit-btn {
    display: block;
    margin: 0 auto;
    padding: 12px 30px;
    background: #c21f39;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #a01a2e;
}

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-content h3 {
    color: #27ae60;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.modal-content p {
    color: #333;
    font-size: 1rem;
}

/* Footer Style */
.footer {
    background: #333;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-info {
    text-align: center;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Responsive Breakpoints (Complies with Task 3: 3 Screen Sizes) */
/* Tablet (1024px) */
@media (max-width: 1024px) {
    .carousel {
        height: 400px;
    }

    .slide-text {
        bottom: 30px;
        left: 30px;
        padding: 15px;
    }

    .nav-links.desktop {
        margin: 0 10px;
    }

    .nav-links.desktop li {
        margin: 0 10px;
    }
}

/* Smartphone (768px) */
@media (max-width: 768px) {
    .nav-links.desktop, .search-box {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .carousel {
        height: 300px;
    }

    .slide-text {
        bottom: 20px;
        left: 20px;
        padding: 10px;
        font-size: 0.9rem;
    }

    .slide-text h2 {
        font-size: 1.3rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .attraction-cards, .food-cards, .accommodation-cards {
        grid-template-columns: 1fr;
    }

    .submit-btn {
        width: 100%;
    }
}

/* Small Smartphone (375px) */
@media (max-width: 375px) {
    .slide-text {
        width: 90%;
        bottom: 10px;
        left: 5%;
    }

    .section-card img {
        height: 180px;
    }

    .experience-card img {
        height: 200px;
    }
}