/* Reset basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Georgia', serif;
}

body {
    color: #333;
    line-height: 1.6;
}

/* Header and Navigation */
header {
    background: url('background.jpg') no-repeat center center/cover;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: white;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(0, 32, 63, 0.7);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
}

.logo {
    font-size: 0;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

nav a {
    margin-left: 25px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: gold;
    text-decoration: none;
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.auth-buttons button {
    padding: 10px 20px;
    background-color: #003366;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.auth-buttons button:hover {
    background-color: #00558c;
}

/* Hero Content */
.hero-content {
    text-align: center;
    padding: 50px 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content h1 {
    font-size: 60px;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out;
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.5s forwards;
    opacity: 0;
}

.hero-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: gold;
    color: #003366;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: zoomIn 1s ease-out 1s forwards;
    opacity: 0;
}

.hero-button:hover {
    background-color: #ffd700;
    transform: translateY(-3px);
}

/* Keyframe Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.5); }
    to   { opacity: 1; transform: scale(1); }
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: #333;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #003366;
    font-size: 28px;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.modal-content button {
    width: 100%;
    padding: 12px;
    background-color: #003366;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.modal-content button:hover {
    background-color: #00558c;
}

.close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Ensure forms are hidden by default (JS controls visibility) */
#login-form,
#register-form {
    display: none;
}

/* Main Content Sections */
.content-section {
    padding: 80px 0;
    text-align: center;
}

.content-section:nth-of-type(even) {
    background-color: #f8f8f8;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-section h2 {
    font-size: 42px;
    margin-bottom: 40px;
    color: #003366;
    position: relative;
    display: inline-block;
}

.content-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: gold;
    margin: 15px auto 0;
    border-radius: 2px;
}

.content-section p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
}

/* 360° View iframe – make responsive */
#360view iframe {
    width: 100%;
    max-width: 100%;
    height: 56.25vw; /* 16:9 ratio on smaller screens */
    border: 0;
}

/* Accommodations Section */
.room-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.room-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.room-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.room-card h3 {
    font-size: 24px;
    color: #003366;
    margin: 20px 20px 10px;
}

.room-card p {
    font-size: 16px;
    color: #666;
    padding: 0 20px;
    margin-bottom: 15px;
    text-align: left;
}

.room-card ul {
    list-style: none;
    padding: 0 20px;
    margin-bottom: 20px;
}

.room-card ul li {
    font-size: 15px;
    color: #777;
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
}

.room-card ul li::before {
    content: '✓';
    color: gold;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.room-card .book-now-button {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 12px 20px;
    background-color: gold;
    color: #003366;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.room-card .book-now-button:hover {
    background-color: #ffd700;
}

/* Dining (if you re-add it later) */
.dining-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.dining-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dining-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.dining-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.dining-card h3 {
    font-size: 24px;
    color: #003366;
    margin: 20px 0 10px;
}

.dining-card p {
    font-size: 16px;
    color: #666;
    padding: 0 20px 20px;
    text-align: center;
}

/* Contact Section */
.contact-section {
    background-color: #003366;
    color: white;
}

.contact-section h2 {
    color: #666;
}

.contact-section p {
    color: #666;
}

.contact-info {
    margin-top: 30px;
    margin-bottom: 40px;
}

.contact-info p {
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 15px;
    border: 1px solid #00558c;
    border-radius: 5px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    padding: 15px 30px;
    background-color: gold;
    color: #003366;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #ffd700;
}

/* Footer */
footer {
    background-color: #00203f;
    color: white;
    text-align: center;
    padding: 30px 20px;
    font-size: 15px;
}

footer .container {
    padding: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-container {
        padding: 15px 30px;
    }
    nav a {
        margin-left: 15px;
    }
    .hero-content h1 {
        font-size: 50px;
    }
    .hero-content p {
        font-size: 20px;
    }
    .content-section h2 {
        font-size: 36px;
    }

    /* 360 view a bit shorter on tablets */
    #360view iframe {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }

    .logo {
        margin-bottom: 15px;
    }

    nav {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }

    nav a {
        display: block;
        margin: 10px 0;
    }

    .auth-buttons {
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .content-section {
        padding: 60px 0;
    }

    .content-section h2 {
        font-size: 32px;
    }

    .room-gallery, .dining-options {
        grid-template-columns: 1fr;
    }

    /* Keep hero text readable and centered on small screens */
    .hero-content {
        width: 100%;
        padding: 40px 16px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 10px 15px;
    }
    .auth-buttons button {
        padding: 8px 15px;
        font-size: 14px;
    }
    .hero-content h1 {
        font-size: 30px;
    }
    .hero-content p {
        font-size: 16px;
    }
    .hero-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    .content-section h2 {
        font-size: 28px;
    }
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    .modal-content h2 {
        font-size: 24px;
    }
    .contact-form {
        padding: 0 10px;
    }

    /* On very small phones, make header height flexible */
    header {
        height: auto;
        min-height: 100vh;
    }

    /* Shorter 360° view */
    #360view iframe {
        height: 220px;
    }
}

/* Verification button appearance */
#verify-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transition: opacity 0.2s ease;
}

#verify-button {
    opacity: 1;
    transition: opacity 0.2s ease;
}

/* === NEW: Password eye + same width inputs === */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding-right: 48px;   /* room for eye icon */
    box-sizing: border-box;
}

/* Eye icon inside input (like Facebook) */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.7;
}

.password-toggle:hover {
    opacity: 1;
}

/* Larger desktop 360° view */
@media (min-width: 1100px) {
    #360view iframe {
        max-width: 1000px;
        height: 500px;
        margin: 0 auto;
        display: block;
    }
}
