:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --text-color: #2C3E50;
    --background-color: #F7F9FC;
    --form-background: #FFFFFF;
    --border-color: #E1E8ED;
    --hero-text-color: #FFFFFF;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.hero {
    position: relative;
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

.hero .container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero header {
    margin-bottom: 0;
}

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

.hero .subtitle {
    color: var(--hero-text-color);
    font-size: 1.1rem;
    opacity: 0.9;
}

.hero .subtitle a {
    color: var(--hero-text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--hero-text-color);
    transition: opacity 0.3s ease;
}

.hero .subtitle a:hover {
    opacity: 0.8;
}

.hero .tagline {
    color: var(--hero-text-color);
    font-size: 1.4rem;
    opacity: 0.9;
    font-weight: 300;
    margin-top: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

.brand {
    margin-bottom: 1rem;
}

h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-color);
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 500;
}

.tagline {
    color: var(--text-color);
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    margin-top: 1rem;
}

.itinerary-form {
    background-color: var(--form-background);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="date"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="date"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.date-range {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.date-range span {
    color: var(--text-color);
    opacity: 0.7;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.interests-group {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    position: relative;
    z-index: 1;
}

.checkbox-label:hover {
    background-color: rgba(255, 107, 107, 0.1);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.checkbox-label input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-label input[type="checkbox"]:disabled + span {
    opacity: 0.5;
    cursor: not-allowed;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background-color: #ff5252;
}

.submit-btn:disabled {
    background-color: #ffb3b3;
    cursor: not-allowed;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: black;
    animation: spin 1s ease-in-out infinite;
    display: inline-block;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.loading-content .loading-spinner {
    width: 40px;
    height: 40px;
    border-width: 4px;
    margin: 0 auto 1rem;
}

.loading-text {
    color: var(--text-color);
    font-size: 1.1rem;
    margin: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.itinerary-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

#map {
    height: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hidden {
    display: none !important;
}

.notes-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.notes-examples {
    background-color: rgba(78, 205, 196, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.examples-title {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.examples-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
}

.examples-list li {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.25rem;
}

.examples-list li::before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

.characters-greeting {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.characters {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.character {
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.character:hover {
    transform: translateY(-5px) scale(1.05);
}

.enichan {
    transform: scaleX(-1); /* Flip Enichan to face Stakkun */
}

.greeting {
    text-align: center;
    margin-top: 1rem;
}

.okinawan-greeting {
    font-size: 2.5rem;
    color: var(--hero-text-color);
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.greeting-translation {
    font-size: 1.3rem;
    color: var(--hero-text-color);
    opacity: 0.9;
    font-style: italic;
    margin-top: 0.5rem;
}

.site-footer {
    background-color: var(--background-color);
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-text {
    text-align: center;
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.copyright {
    text-align: center;
    color: var(--text-color);
    opacity: 0.6;
    font-size: 0.8rem;
    margin: 0;
}

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

.footer-text a:hover {
    opacity: 0.8;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.legal-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

@media (max-width: 768px) {
    .hero {
        min-height: 300px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .tagline {
        font-size: 1.2rem;
    }

    .container {
        padding: 1rem;
    }

    .itinerary-form {
        padding: 1.5rem;
    }

    .date-range {
        flex-direction: column;
        align-items: stretch;
    }

    .itinerary-content {
        grid-template-columns: 1fr;
    }

    #map {
        height: 300px;
    }

    .examples-list {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }

    .characters {
        gap: 1rem;
    }

    .character {
        width: 140px;
        height: 140px;
    }

    .okinawan-greeting {
        font-size: 2rem;
    }

    .greeting-translation {
        font-size: 1.1rem;
    }

    .site-footer {
        padding: 1rem 0;
        margin-top: 2rem;
    }

    .legal-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Add styles for the back button */
.back-button {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
    margin-bottom: 2rem;
}

.back-button:hover {
    background-color: #3dbeb6;
}

.back-button svg {
    width: 20px;
    height: 20px;
}

/* Google Maps Info Window Styles */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-height: none !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
    max-height: none !important;
}

.gm-style .gm-style-iw-t::after {
    background: linear-gradient(45deg, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 51%, rgba(255,255,255,0) 100%);
    box-shadow: -2px 2px 2px 0 rgba(178,178,178,.4);
}

/* Style the default close button */
.gm-style-iw button {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 20px !important;
    height: 20px !important;
    border: none !important;
    background: transparent !important;
    color: #666 !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    font-size: 18px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    z-index: 1000 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    font-family: Arial, sans-serif !important;
    font-weight: normal !important;
    transform: none !important;
    margin: 0 !important;
    transition: color 0.2s ease !important;
}

.gm-style-iw button::before {
    content: "×" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    line-height: 1 !important;
}

.gm-style-iw button:hover {
    color: #333 !important;
    background: transparent !important;
}

.info-window-content {
    position: relative;
    padding: 10px;
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rating-stars {
    color: #FFD700;
    letter-spacing: -2px;
}

.rating-count {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.85rem;
}

.open-status {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.open-status.open {
    background-color: #4CAF50;
    color: white;
}

.open-status.closed {
    background-color: #f44336;
    color: white;
}

.place-types {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.8;
}

.place-photo {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.place-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.place-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.place-link:hover {
    background-color: rgba(255, 107, 107, 0.1);
}

.place-link svg {
    width: 16px;
    height: 16px;
}

/* Customize Google Maps Info Window */
.gm-style .gm-style-iw-c {
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-height: none !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0;
    max-height: none !important;
}

.gm-style .gm-style-iw-t::after {
    background: linear-gradient(45deg, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 51%, rgba(255,255,255,0) 100%);
    box-shadow: -2px 2px 2px 0 rgba(178,178,178,.4);
}

/* Ensure the info window content is properly sized */
.gm-style-iw {
    max-width: 300px !important;
    max-height: 400px !important;
}

.gm-style-iw > div {
    max-width: 300px !important;
    max-height: 400px !important;
}

.trip-duration {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    margin: 0.5rem 0 1rem 0;
    font-style: italic;
    padding-left: 0.5rem;
    border-left: 3px solid var(--secondary-color);
}

.hours-section {
    margin: 0.5rem 0;
}

.hours-list {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.8;
}

.hours-day {
    margin: 0.25rem 0;
    padding-left: 0.5rem;
    border-left: 2px solid var(--secondary-color);
}

.accessibility {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.8;
    margin: 0.5rem 0;
}

/* Markdown Styles */
.itinerary-h1 { 
    font-size: 2em; 
    margin: 1em 0; 
    color: var(--primary-color);
}

.itinerary-h2 { 
    font-size: 1.5em; 
    margin: 0.8em 0; 
    color: var(--text-color);
}

.itinerary-h3 { 
    font-size: 1.2em; 
    margin: 0.6em 0; 
    color: var(--text-color);
}

.itinerary-list { 
    margin: 1em 0; 
    padding-left: 2em; 
}

.itinerary-list-item { 
    margin: 0.5em 0; 
    line-height: 1.6;
}

.itinerary-paragraph { 
    margin: 1em 0; 
    line-height: 1.6; 
}

.itinerary-blockquote { 
    border-left: 4px solid var(--primary-color);
    margin: 1em 0;
    padding: 1em;
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 0 8px 8px 0;
}

.itinerary-code {
    background: #f4f4f4;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.itinerary-pre {
    background: #f4f4f4;
    padding: 1em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0;
}

.itinerary-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.itinerary-link:hover {
    color: #ff5252;
    text-decoration: underline;
}

.location-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed #2563eb;
    transition: all 0.2s ease;
    cursor: pointer;
}

.location-link:hover {
    color: #1d4ed8;
    border-bottom: 1px solid #1d4ed8;
    background-color: rgba(37, 99, 235, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
}

.location-link:active {
    color: #1e40af;
    border-bottom: 1px solid #1e40af;
}

.ad-container {
    width: 100%;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-wrapper {
    width: 100%;
    max-width: 1200px;
    min-height: 90px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ad-container {
        margin: 1.5rem 0;
    }
    
    .ad-wrapper {
        min-height: 60px;
    }
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.legal-content section {
    margin-bottom: 2rem;
}

.legal-content h1 {
    margin-bottom: 1.5rem;
}

.legal-content h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.legal-content h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 1.2rem 0 0.8rem;
}

.legal-content ul {
    list-style-type: disc;
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 1rem;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
    }
    
    .legal-content h3 {
        font-size: 1.1rem;
    }
}

/* Language Switcher Styles */
.language-switcher {
    position: absolute;
    top: 1rem;
    right: 2rem;
    z-index: 1000;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: var(--secondary-color);
    border-color: rgba(255, 255, 255, 0.4);
}

.language-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.language-btn.active {
    background: var(--secondary-color);
    border-color: rgba(255, 255, 255, 0.4);
}

.language-btn.active svg {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    min-width: 160px;
    overflow: hidden;
    transform-origin: top right;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.language-dropdown.active {
    display: block;
}

.language-option {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.language-option:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.language-option:active {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Update container to handle absolute positioning */
.container {
    position: relative;
}

@media (max-width: 768px) {
    .language-switcher {
        top: 0.5rem;
        right: 1rem;
    }
    
    .language-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .language-dropdown {
        min-width: 140px;
    }
    
    .language-option {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* For very large screens */
@media (min-width: 1400px) {
    .language-switcher {
        right: calc((100% - 1200px) / 2 + 2rem);
    }
} 