/* =============================================
   NICK VILLA - Custom Styles
   Luxury Tropical Living
   ============================================= */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8962e;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: #fff;
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.3) 50%, rgba(10,10,10,0.7) 100%);
}

.hero-overlay {
    background: linear-gradient(to bottom, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.1) 40%, rgba(10,10,10,0.6) 80%, #0a0a0a 100%);
}

/* Gold Gradient Text */
.text-gradient-gold {
    background: linear-gradient(135deg, #d4af37, #f3d98a, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 175, 55, 0.2);
}

/* Gold Border Glow */
.gold-glow {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
}

.gold-glow:hover {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.2);
}

/* Navbar Scroll */
.navbar-scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Room Card Hover */
.room-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-card:hover {
    transform: translateY(-8px);
}

.room-card:hover .room-card-img {
    transform: scale(1.08);
}

.room-card-img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gallery Item */
.gallery-item {
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Divider with ornament */
.luxury-divider {
    display: flex;
    align-items: center;
    gap: 16px;
}

.luxury-divider::before,
.luxury-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.3), transparent);
}

/* Section fade-in on scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(212, 175, 55, 0.1);
    border-top: 3px solid #d4af37;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Print Styles */
@media print {
    nav, footer, .no-print, .whatsapp-btn {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    .print-only {
        display: block !important;
    }
}

/* Swiper Custom */
.swiper-pagination-bullet {
    background: rgba(255,255,255,0.5) !important;
    width: 10px !important;
    height: 10px !important;
}

.swiper-pagination-bullet-active {
    background: #d4af37 !important;
    width: 24px !important;
    border-radius: 5px !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: #d4af37 !important;
    background: rgba(10,10,10,0.6);
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px !important;
}

/* Input Styles */
.input-luxury {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 0.875rem;
}

.input-luxury:focus {
    outline: none;
    border-color: rgba(212,175,55,0.5);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
    background: rgba(255,255,255,0.08);
}

.input-luxury::placeholder {
    color: rgba(255,255,255,0.3);
}

/* Button Styles */
.btn-gold {
    background: linear-gradient(135deg, #d4af37, #b8962e);
    color: #0a0a0a;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-gold:hover {
    box-shadow: 0 8px 25px rgba(212,175,55,0.3);
    transform: translateY(-2px);
}

.btn-outline-gold {
    background: transparent;
    border: 1px solid rgba(212,175,55,0.5);
    color: #d4af37;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-outline-gold:hover {
    background: rgba(212,175,55,0.1);
    border-color: #d4af37;
}

/* Stat Counter Animation */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* Testimonial Card */
.testimonial-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    border-color: rgba(212,175,55,0.2);
    background: rgba(255,255,255,0.05);
}

/* Admin Sidebar */
.admin-sidebar {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    border-right: 1px solid rgba(255,255,255,0.05);
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.admin-sidebar-link:hover,
.admin-sidebar-link.active {
    background: rgba(212,175,55,0.1);
    color: #d4af37;
}

/* Dashboard Stats Card */
.stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(212,175,55,0.2);
    transform: translateY(-4px);
}

/* Table Styles */
.table-luxury {
    width: 100%;
    border-collapse: collapse;
}

.table-luxury th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.table-luxury td {
    padding: 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.7);
}

.table-luxury tbody tr:hover {
    background: rgba(255,255,255,0.03);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease-out;
}

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

/* =============================================
   CALENDAR FEATURE STYLES
   ============================================= */

/* Calendar Action Buttons */
.calendar-btn {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: 0.875rem;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
}

.calendar-btn:hover {
    background: rgba(212,175,55,0.06);
    border-color: rgba(212,175,55,0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212,175,55,0.1);
}

.calendar-btn:active {
    transform: translateY(0);
}

.calendar-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Google Calendar Button Specifics */
.calendar-btn-google:hover .calendar-btn-icon {
    background: rgba(66,133,244,0.15);
}

/* ICS Download Button Specifics */
.calendar-btn-ics:hover .calendar-btn-icon {
    background: rgba(212,175,55,0.15);
}

/* Calendar Compatibility Badges */
.calendar-compat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    font-size: 0.6875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.calendar-compat-badge:hover {
    background: rgba(212,175,55,0.08);
    border-color: rgba(212,175,55,0.2);
    color: #d4af37;
}

/* Calendar Icon Pulse Animation */
.calendar-icon-pulse {
    animation: calendarPulse 3s ease-in-out infinite;
}

@keyframes calendarPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212,175,55,0.2),
                    0 0 30px rgba(212,175,55,0.1);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(212,175,55,0),
                    0 0 40px rgba(212,175,55,0.15);
    }
}

/* Calendar Detail Items Animation */
.calendar-detail-item {
    transition: all 0.3s ease;
}

.calendar-detail-item:hover {
    background: rgba(212,175,55,0.04);
    border-color: rgba(212,175,55,0.1);
}

/* Success Checkmark Animation */
.success-check-container {
    position: relative;
}

.success-check-circle {
    width: 80px;
    height: 80px;
}

.success-check-svg {
    width: 80px;
    height: 80px;
}

.success-check-circle-bg {
    stroke: #d4af37;
    stroke-width: 2;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: checkCircle 0.6s ease-out 0.2s forwards;
}

.success-check-path {
    stroke: #d4af37;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkMark 0.4s ease-out 0.8s forwards;
}

@keyframes checkCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes checkMark {
    to {
        stroke-dashoffset: 0;
    }
}

/* Calendar Confirmation Card */
.calendar-confirmation-card {
    transition: all 0.4s ease;
}

.calendar-confirmation-card:hover {
    box-shadow: 0 0 50px rgba(212,175,55,0.12);
}

/* Radial gradient background utility */
.bg-gradient-radial {
    background: radial-gradient(circle, var(--tw-gradient-stops));
}

/* Calendar button ripple effect on click */
.calendar-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    background: radial-gradient(circle at center, rgba(212,175,55,0.15) 0%, transparent 70%);
    transition: opacity 0.3s ease;
}

.calendar-btn:active::after {
    opacity: 1;
}

/* Calendar responsive adjustments */
@media (max-width: 640px) {
    .calendar-btn {
        padding: 0.75rem;
    }
    
    .calendar-btn-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}

