/* 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: #f5f5f5;
}

.contact-section h2 {
    color: #f5f5f5;
}

.contact-section p {
    color: #e0e7ef;
}

.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.96);
    color: #333;
}

.contact-form textarea {
    resize: vertical;
}

/* Corporate-style feedback button */
.contact-form button,
.feedback-submit-btn {
    padding: 16px 30px;
    background-color: #ffd200;
    color: #003366;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.17);
    letter-spacing: 0.02em;
}

.contact-form button:hover,
.feedback-submit-btn:hover {
    background-color: #f4c400;
    box-shadow: 0 14px 26px rgba(0,0,0,0.22);
    transform: translateY(-1px);
}

.contact-form button:active,
.feedback-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

/* 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;
    }
}

/* === 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 */
.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;
    }
}

/* === Email verification inline UI === */

.verification-wrapper {
    position: relative;
    margin-bottom: 4px;
}

#verification-code {
    padding-right: 150px; /* space for icon + “Resend (xx)” */
}

.modal-content .verification-resend {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    min-width: 0;
    padding: 0;
    margin-top: 0;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    display: inline;
    font-size: 0.9rem;
    font-weight: normal;
    color: #1a73e8;
    cursor: pointer;
}

.modal-content .verification-resend:hover:not(:disabled) {
    text-decoration: underline;
}

.modal-content .verification-resend:disabled {
    cursor: default;
    color: #9aa0a6;
    text-decoration: none;
}

.verification-icon {
    position: absolute;
    right: 95px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
}

.verification-success #verification-code {
    border-color: #1a73e8;
}

.verification-success .verification-icon {
    display: inline-block;
    background-color: #34a853;
}

.verification-success .verification-icon::before {
    content: "✓";
    display: block;
    text-align: center;
    font-size: 12px;
    color: #fff;
}

.verification-error #verification-code {
    border-color: #ea4335;
}

.verification-error .verification-icon {
    display: inline-block;
    background-color: #ea4335;
}

.verification-error .verification-icon::before {
    content: "!";
    display: block;
    text-align: center;
    font-size: 12px;
    color: #fff;
}

.verification-message {
    margin-top: 4px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.verification-message.error {
    color: #ea4335;
}

.verification-message.error::before {
    content: "●";
    font-size: 0.6rem;
    margin-right: 6px;
}

.verification-message.success {
    color: #34a853;
}

/* ---------- FEEDBACK RATING + REVIEWS ---------- */

.feedback-container {
    max-width: 900px;
}

/* stars */
.rating-group {
    text-align: left;
}

.rating-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #f5f5f5;
}

.star-row {
    display: inline-flex;
    gap: 6px;
    font-size: 32px;
    cursor: pointer;
    user-select: none;
}

.star {
    color: #d0d7df;
    transition: transform 0.1s ease, color 0.1s ease;
}

.star.active,
.star.hovered {
    color: #ffc107;
    transform: translateY(-1px);
}

.star-row:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

.rating-hint {
    font-size: 0.9rem;
    color: #dbeafe;
    margin-top: 6px;
    min-height: 18px;
}

/* Reviews block */
.reviews-section {
    margin-top: 40px;
    text-align: left;
}

.reviews-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.reviews-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f9fafb;
}

.reviews-summary {
    font-size: 0.95rem;
    color: #e5e7eb;
}

.reviews-summary strong {
    color: #facc15;
}

.reviews-list {
    display: grid;
    gap: 12px;
}

.review-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 10px rgba(15,23,42,0.18);
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
}

.review-name {
    font-weight: 600;
    color: #1f2937;
}

.review-date {
    font-size: 0.8rem;
    color: #6b7280;
    white-space: nowrap;
}

.review-stars {
    color: #facc15;
    font-size: 1rem;
    margin-bottom: 2px;
}

.review-message {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #374151;
}

.no-reviews {
    font-size: 0.9rem;
    color: #e5e7eb;
    font-style: italic;
}
