/* ============================================================
   GOLD DIAMOND RESORTS — Custom Stylesheet
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --gd-gold: #C9A84C;
    --gd-gold-light: #E2CA7A;
    --gd-gold-dark: #A88B34;
    --gd-dark: #1a1a2e;
    --gd-dark-lighter: #16213e;
    --gd-dark-card: #0f3460;
    --gd-text: #333333;
    --gd-text-light: #6c757d;
    --gd-white: #ffffff;
    --gd-bg-light: #f8f6f0;
    --gd-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --gd-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.15);
    --gd-transition: all 0.3s ease;
}

/* ---------- Base ---------- */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gd-text);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Sticky footer layout */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main content fills all available space between navbar and footer */
main[role="main"] {
    flex: 1 0 auto;
    padding-top: 56px;
    /* offset for fixed-top navbar */
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 500;
}

h4,
h5,
h6 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 600;
}

/* ---------- Navbar ---------- */
.gd-navbar {
    background: var(--gd-dark) !important;
    padding: 0.8rem 0;
    transition: var(--gd-transition);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.gd-navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(26, 26, 46, 0.98) !important;
}

.gd-brand {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gd-gold) !important;
    letter-spacing: 0.5px;
}

.gd-brand:hover {
    color: var(--gd-gold-light) !important;
}

.gd-navbar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 400;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: var(--gd-transition);
    position: relative;
}

.gd-navbar .nav-link:hover,
.gd-navbar .nav-link:focus {
    color: var(--gd-gold) !important;
}

.gd-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gd-gold);
    transition: var(--gd-transition);
    transform: translateX(-50%);
}

.gd-navbar .nav-link:hover::after {
    width: 60%;
}

.gd-admin-link {
    color: #ff6b6b !important;
}

.gd-staff-link {
    color: #4ecdc4 !important;
}

.gd-navbar .dropdown-menu {
    background: var(--gd-dark);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0;
}

.gd-navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1.2rem;
    font-size: 0.88rem;
    transition: var(--gd-transition);
}

.gd-navbar .dropdown-item:hover {
    background: rgba(201, 168, 76, 0.15);
    color: var(--gd-gold);
}

/* ---------- Absolute Desktop Centering ---------- */
@media (min-width: 992px) {
    .gd-nav-center-absolute {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
    }
}

/* ---------- Buttons ---------- */
.gd-btn-primary {
    background: linear-gradient(135deg, var(--gd-gold), var(--gd-gold-dark));
    color: var(--gd-white);
    border: none;
    font-weight: 600;
    padding: 0.7rem 2rem;
    border-radius: 50px;
    transition: var(--gd-transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.gd-btn-primary:hover {
    background: linear-gradient(135deg, var(--gd-gold-light), var(--gd-gold));
    color: var(--gd-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.4);
}

.gd-btn-outline {
    background: transparent;
    color: var(--gd-white);
    border: 2px solid var(--gd-gold);
    font-weight: 600;
    padding: 0.7rem 2rem;
    border-radius: 50px;
    transition: var(--gd-transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.gd-btn-outline:hover {
    background: var(--gd-gold);
    color: var(--gd-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.4);
}

.gd-btn-outline-dark {
    background: transparent;
    color: var(--gd-dark);
    border: 2px solid var(--gd-dark);
    font-weight: 600;
    padding: 0.7rem 2rem;
    border-radius: 50px;
    transition: var(--gd-transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.gd-btn-outline-dark:hover {
    background: var(--gd-dark);
    color: var(--gd-white);
    transform: translateY(-2px);
}

.gd-navbar .nav-link.gd-btn-signin {
    color: var(--gd-gold) !important;
    background: rgba(255, 255, 255, 0.1); /* light translucent background */
    border: 1px solid rgba(201, 168, 76, 0.4); /* gold-tinted border */
    border-radius: 50px; /* pill shape */
    padding: 0.45rem 1.4rem !important;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* pop from background */
}

.gd-navbar .nav-link.gd-btn-signin:hover {
    background: rgba(255, 255, 255, 0.18); /* bolder background on hover */
    color: var(--gd-gold) !important;
    border-color: var(--gd-gold);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.gd-btn-signin::after {
    display: none !important; /* Prevent the generic nav-link gold underline */
}

.gd-nav-dropdown-item {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.5rem 1.2rem;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.gd-nav-dropdown-item:hover,
.gd-nav-dropdown-item:focus {
    background: rgba(201, 168, 76, 0.15);
    color: var(--gd-white) !important;
}

/* ---------- Hero Section ---------- */
.gd-hero {
    position: relative;
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--gd-dark) 0%, var(--gd-dark-lighter) 50%, var(--gd-dark-card) 100%);
    overflow: hidden;
}

.gd-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.06) 0%, transparent 50%);
    z-index: 1;
}

.gd-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.gd-hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gd-white);
    font-weight: 500;
}

.gd-hero-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gd-white);
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.gd-hero-description {
    font-size: 1.15rem;
    line-height: 1.8;
    opacity: 0.85;
    max-width: 550px;
    margin: 0 auto;
}

.gd-scroll-indicator {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ---------- Sections ---------- */
.gd-section {
    padding: 6rem 0;
    background-color: var(--gd-bg-light);
}

.gd-section-dark {
    background: linear-gradient(135deg, var(--gd-dark), var(--gd-dark-lighter));
}

.gd-section-cta {
    background: linear-gradient(135deg, var(--gd-dark-card), var(--gd-dark));
    padding: 6rem 0;
}

.gd-section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gd-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gd-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--gd-dark);
}

.gd-section-dark .gd-section-title {
    color: var(--gd-white);
}

.gd-gold-text {
    color: var(--gd-gold);
}

/* ---------- Amenity Cards ---------- */
.gd-amenity-card {
    background: var(--gd-white);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    box-shadow: var(--gd-shadow);
    transition: var(--gd-transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.gd-section-dark .gd-amenity-card {
    background: rgba(255, 255, 255, 0.03);
    /* Glassmorphism translucent dark card */
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.gd-amenity-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--gd-shadow-hover);
    border-color: rgba(201, 168, 76, 0.3);
}

.gd-section-dark .gd-amenity-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-color: rgba(201, 168, 76, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.gd-amenity-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    color: var(--gd-gold);
    font-size: 1.5rem;
    transition: var(--gd-transition);
}

.gd-section-dark .gd-amenity-icon {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(201, 168, 76, 0.05));
}

.gd-amenity-card:hover .gd-amenity-icon {
    background: linear-gradient(135deg, var(--gd-gold), var(--gd-gold-dark));
    color: var(--gd-white);
    transform: scale(1.1);
}

.gd-amenity-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gd-dark);
}

.gd-section-dark .gd-amenity-card h5 {
    color: var(--gd-white);
}

.gd-section-dark .gd-amenity-card p.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ---------- Room Cards ---------- */
.gd-room-card {
    background: var(--gd-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--gd-shadow);
    transition: var(--gd-transition);
    height: 100%;
}

.gd-room-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--gd-shadow-hover);
}

.gd-room-image {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.gd-room-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gd-text-light);
}

.gd-room-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gd-gold);
    color: var(--gd-white);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gd-badge-premium {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.gd-room-info {
    padding: 1.5rem;
}

.gd-room-info h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gd-room-capacity {
    font-size: 0.85rem;
    color: var(--gd-text-light);
}

/* ---------- Testimonials ---------- */
.gd-testimonial-card {
    background: var(--gd-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--gd-shadow);
    transition: var(--gd-transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.gd-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--gd-shadow-hover);
}

.gd-stars {
    color: var(--gd-gold);
    font-size: 0.9rem;
}

.gd-stars i {
    margin-right: 2px;
}

.gd-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--gd-gold), var(--gd-gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gd-white);
    font-size: 1rem;
}

/* ---------- CTA Card ---------- */
.gd-cta-card {
    background: var(--gd-white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

/* ---------- Footer ---------- */
.gd-footer {
    background: var(--gd-dark);
    padding: 4rem 0 2rem;
    margin-top: auto;
    /* push footer to bottom when content is short */
    flex-shrink: 0;
    /* prevent footer from shrinking */
}

.gd-footer-brand {
    font-family: 'Inter', sans-serif;
    color: var(--gd-gold);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.gd-footer-heading {
    color: var(--gd-gold);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.gd-footer-links li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.gd-footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--gd-transition);
}

.gd-footer-links a:hover {
    color: var(--gd-gold);
}

.gd-social-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    transition: var(--gd-transition);
}

.gd-social-links a:hover {
    color: var(--gd-gold);
}

/* ---------- Login Partial Styling ---------- */
.navbar-nav .btn-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-nav .btn-link:hover {
    color: var(--gd-gold) !important;
    text-decoration: none;
}

/* ---------- Focus States ---------- */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--gd-gold);
}

/* ---------- Form Floating Styles ---------- */
.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
    text-align: start;
}

/* ---------- Auth Pages (Login / Register) ---------- */
.gd-auth-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--gd-dark) 0%, var(--gd-dark-lighter) 50%, var(--gd-dark-card) 100%);
    overflow: hidden;
    padding: 2rem 0;
    margin-top: -56px;
    /* offset fixed navbar */
    padding-top: calc(56px + 2rem);
}

.gd-auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(201, 168, 76, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(201, 168, 76, 0.03) 0%, transparent 70%);
    z-index: 1;
}

/* Branding Panel */
.gd-auth-brand-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

.gd-auth-gem-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(201, 168, 76, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--gd-gold);
    animation: gemPulse 3s ease-in-out infinite;
    border: 2px solid rgba(201, 168, 76, 0.25);
}

@keyframes gemPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 40px rgba(201, 168, 76, 0.3);
        transform: scale(1.05);
    }
}

.gd-auth-brand-title {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gd-gold);
    margin-top: 0.5rem;
}

.gd-auth-brand-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.75;
    max-width: 380px;
    margin: 0 auto;
}

.gd-auth-features {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.gd-auth-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.6rem 1.2rem;
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 50px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    transition: var(--gd-transition);
}

.gd-auth-feature:hover {
    background: rgba(201, 168, 76, 0.15);
    border-color: rgba(201, 168, 76, 0.3);
    transform: translateX(5px);
}

.gd-auth-feature i {
    color: var(--gd-gold);
    font-size: 0.85rem;
}

/* Glassmorphism Card */
.gd-auth-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.15);
    animation: cardSlideIn 0.6s ease-out;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gd-auth-card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--gd-dark);
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

/* Inputs */
.gd-auth-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gd-text);
    letter-spacing: 0.3px;
}

.gd-auth-input {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    transition: var(--gd-transition);
    background: #f8f9fa;
}

.gd-auth-input:focus {
    border-color: var(--gd-gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
    background: var(--gd-white);
}

.gd-auth-input::placeholder {
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Checkbox */
.gd-auth-check:checked {
    background-color: var(--gd-gold);
    border-color: var(--gd-gold);
}

.gd-auth-check:focus {
    border-color: var(--gd-gold);
    box-shadow: 0 0 0 0.2rem rgba(201, 168, 76, 0.25);
}

/* Auth Links */
.gd-auth-link {
    color: var(--gd-gold-dark);
    text-decoration: none;
    transition: var(--gd-transition);
}

.gd-auth-link:hover {
    color: var(--gd-gold);
    text-decoration: underline;
}

/* Divider */
.gd-auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.gd-auth-divider::before,
.gd-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #dee2e6, transparent);
}

.gd-auth-divider span {
    padding: 0 1rem;
    color: var(--gd-text-light);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Auth Alert */
.gd-auth-alert {
    border-radius: 12px;
    font-size: 0.88rem;
    border: none;
    background: #fff5f5;
    color: #c53030;
}

/* Google Sign-In Button */
.gd-btn-google {
    background: var(--gd-white);
    color: #3c4043;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--gd-transition);
    letter-spacing: 0.3px;
}

.gd-btn-google:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    color: #3c4043;
}

.gd-btn-google:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.gd-btn-google svg {
    flex-shrink: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .gd-hero-title {
        font-size: 2.6rem;
    }

    .gd-section {
        padding: 4rem 0;
    }

    .gd-section-title {
        font-size: 2rem;
    }

    .gd-navbar .navbar-collapse {
        background: var(--gd-dark);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .gd-hero-title {
        font-size: 1.8rem;
    }

    .gd-hero-description {
        font-size: 1rem;
    }

    .gd-section {
        padding: 3rem 0;
    }

    .gd-btn-primary,
    .gd-btn-outline,
    .gd-btn-outline-dark {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
    }
}