/* Custom Styles for Anjanadri Island Stay */

:root {
    --primary-color: #0085CA;
    --secondary-color: #25D366;
    --accent-color: #FF6B35;
    --text-dark: #333;
    --text-light: #fff;
    --light-gray: #f8f9fa;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 70px;
}

/* Navbar Styles - Similar to existing site */
.navbar {
    padding: 0.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #fff !important;
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    height: 40px;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Navbar social badges */
.navbar-nav.navbar-right .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    color: #fff !important;
    margin-left: 8px;
}

.navbar-nav.navbar-right .social-links a.ig { background: #E4405F; }
.navbar-nav.navbar-right .social-links a.fb { background: #1877F2; }
.navbar-nav.navbar-right .social-links a.yt { background: #FF0000; }

.navbar-nav.navbar-right .social-links a:hover {
    filter: brightness(0.9);
    text-decoration: none;
}

/* Keep social icons horizontal on mobile */
.navbar-nav.navbar-right .nav-social { padding-left: 10px; }
.navbar-nav.navbar-right .social-links { display: inline-flex; align-items: center; gap: 8px; }

/* Desktop spacing tweaks to avoid wrapping */
.navbar-default .navbar-nav > li > a {
    padding: 10px 10px;
    font-size: 13px;
}
.navbar-brand {
    font-size: 1.1rem;
}
/* Give menu a bit more room on large screens */
@media (min-width: 1200px) {
    .navbar-default .navbar-nav > li > a {
        padding: 12px 12px;
        font-size: 14px;
    }
    .navbar-brand { font-size: 1.2rem; }
}
/* Hide social icons on medium desktops to prevent wrapping */
@media (max-width: 1199px) {
    .navbar-nav.navbar-right .nav-social { display: none; }
}

/* Mobile Menu */
@media (max-width: 991px) {
    .navbar-nav { padding-top: 0.5rem; }
    /* Reduce link padding/size for shorter mobile menu (BS3 selector) */
    .navbar-default .navbar-nav > li > a {
        padding: 10px 12px;
        font-size: 0.95rem;
        line-height: 1.2;
    }
    .navbar-nav.navbar-right .nav-social { width: 100%; }
    .navbar-nav.navbar-right .social-links { display: flex; gap: 10px; flex-wrap: nowrap; justify-content: center; }
    .navbar-nav.navbar-right .nav-social { border-top: 1px solid #eee; margin-top: 6px; padding-top: 8px; }
    .navbar-nav.navbar-right .social-links a { margin-left: 0; }
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #006ba1;
    border-color: #006ba1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 0.5rem 1.5rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('../images/panchajanya-room1-exterior.jpg') no-repeat center center/cover;
    min-height: 90vh;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-in-out;
}

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

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero .btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    margin: 0.5rem;
}

/* Hero call link */
.hero-call {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.6);
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.25);
    transition: background 0.25s ease, transform 0.2s ease;
}

.hero-call:hover {
    background: rgba(0,0,0,0.4);
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop: revert to balanced cover and slightly reduce height */
@media (min-width: 1200px) {
    .hero {
        background-size: cover;
        background-position: center center;
        min-height: 80vh;
    }
}

/* Ultra-wide: keep cover and reduce height a touch more */
@media (min-width: 1600px) {
    .hero {
        background-size: cover;
        background-position: center center;
        min-height: 75vh;
    }
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--light-gray);
}

/* Ensure vertical spacing between cards across rows (BS3 doesn't have gap utilities) */
.features .row > [class*="col-"] {
    margin-bottom: 24px;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 22px rgba(0,0,0,0.16);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Uniform height handling for multi-row highlight section */
.love-section .row.g-4 > [class*="col-"] { display: flex; }
.love-section .feature-card { width: 100%; }
@media (min-width: 992px) {
    .love-section .feature-card { min-height: 265px; }
}

/* Equal heights for homepage features grid */
.home-features .row.g-4 > [class*="col-"] { display: flex; }
.home-features .feature-card { width: 100%; }
@media (min-width: 992px) {
    .home-features .feature-card { min-height: 240px; }
}

/* Rooms Preview */
.rooms-preview {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.room-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    height: 100%;
}

.room-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

/* Prevent vertical overlap on stacked/smaller layouts by adding spacing between columns */
.rooms-preview .row > [class*="col-"] {
    margin-bottom: 24px;
}

/* On small screens remove hover lift (no space to move) to avoid overlaps */
@media (max-width: 768px) {
    .room-card:hover {
        transform: none;
        box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    }
}

.room-card img {
    height: 320px; /* increased height for fuller image visibility */
    object-fit: cover;
    width: 100%;
}

.room-card .card-body {
    padding: 1.5rem;
}

.room-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), #006ba1);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-white {
    background: #fff;
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-white:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Ensure CTA buttons are the same visual size */
.cta-section .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}
.cta-section .btn-secondary {
    padding: 1rem 2rem; /* match .btn-white */
}
.cta-section .btn + .btn { /* spacing between buttons for BS3 (no me-3) */
    margin-left: 12px;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.footer a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--text-light);
}

.footer ul {
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

/* Footer Map */
.footer-map-wrapper {
    margin-top: 1.5rem;
    border: 0;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    background: #0f2230;
}
.footer-map-wrapper iframe {
    width: 100%;
    height: 260px;
    border: 0;
    display: block;
}
/* Map actions link */
.footer .map-actions { text-align: right; margin-top: 6px; }
.footer .map-actions a { color: #bdc3c7; text-decoration: none; }
.footer .map-actions a:hover { color: var(--text-light); text-decoration: underline; }
@media (min-width: 992px) {
    .footer-map-wrapper iframe { height: 300px; }
}
@media (max-width: 576px) {
    .footer-map-wrapper { margin-top: 2rem; }
    .footer-map-wrapper iframe { height: 220px; }
}

/* Booking Widget */
.booking-widget {
    background: #fff;
    color: var(--text-dark);
    border-radius: 12px;
    padding: 24px 28px 26px;
    max-width: 960px;
    margin: 40px auto 0;
    box-shadow: 0 6px 28px rgba(0,0,0,0.18);
    position: relative;
    border-top: 5px solid var(--accent-color);
    text-align: left;
}

.booking-widget h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--primary-color);
}

/* Room Collage */
.room-section { margin: 40px 0; }
.room-collage .tile { position: relative; overflow: hidden; border-radius: 10px; }
.room-collage .tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-collage .tile-lg { height: 360px; margin-bottom: 20px; }
.room-collage .tile-sm { height: 175px; margin-bottom: 10px; }
.room-details { padding: 10px 0 0; }
.room-details h3 { margin-top: 0; font-weight: 700; color: var(--primary-color); }
.room-details ul { padding-left: 18px; }
.room-actions .btn { margin-right: 10px; }
@media (max-width: 767px) {
    .room-collage .tile-lg { height: 240px; }
    .room-collage .tile-sm { height: 120px; }
}

.booking-widget p.subnote {
    font-size: 0.9rem;
    margin: 0 0 18px;
    color: #555;
}

.booking-widget form { width: 100%; }
.booking-widget .booking-row > [class*="col-"] { margin-bottom: 14px; }

.booking-widget .form-group {
    flex: 1 1 170px;
    min-width: 160px;
    margin: 0;
}

.booking-widget label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: #2b2b2b;
}

.booking-widget .form-control {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    height: 42px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    transition: border-color .2s, box-shadow .2s;
}

.booking-widget .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,133,202,0.15);
}

.booking-widget .book-btn {
    margin-top: 6px;
    padding: 0.9rem 2.2rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,133,202,0.35);
}

.booking-widget .book-btn:hover {
    box-shadow: 0 6px 18px rgba(0,107,161,0.45);
}

/* Calendar-friendly text inputs */
.date-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
    padding-right: 34px; /* space for icon */
}

/* Mobile adjustments for booking widget */
@media (max-width: 768px) {
    .booking-widget { padding: 18px 20px 22px; margin-top: 32px; box-shadow: 0 4px 20px rgba(0,0,0,0.16); }
    .booking-widget .book-btn { width: 100%; margin-top: 8px; }
}

/* Prevent CTA button spacing rule from affecting widget button */
.booking-widget .btn + .btn { margin-left: 0 !important; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    body {
        padding-top: 60px;
    }
}

/* Make Flatpickr calendar appear above Bootstrap modal */
.flatpickr-calendar {
    z-index: 3000 !important;
}

/* Boating page: equal-height cards and mobile stacking */
#boating-options .row.g-4 { display: flex; flex-wrap: wrap; }
#boating-options .col-md-6 { display: flex; }
#boating-options .room-card { display: flex; flex-direction: column; width: 100%; }
#boating-options .room-card img { width: 100%; height: 320px; object-fit: cover; }
@media (max-width: 767px) {
    #boating-options .row.g-4 { display: block; }
    #boating-options .col-md-6 { display: block; margin-bottom: 20px; }
    #boating-options .room-card { height: auto; }
}

    /* Gallery Page */
    .gallery-section { padding: 60px 0 40px; }
    .gallery-header { text-align: center; margin-bottom: 24px; }
    .gallery-subtitle { color: #555; margin-top: 8px; font-size: 15px; }

    .gallery-filters { text-align: center; margin-bottom: 28px; }
    .gallery-filters .btn { margin: 6px 8px; padding: 8px 16px; font-weight: 600; border-radius: 20px; }
    .gallery-filters .btn-outline { background: #fff; border: 1px solid #d1d5db; color: #333; }
    .gallery-filters .btn-outline.active, .gallery-filters .btn-outline:hover { border-color: var(--primary-color); color: var(--primary-color); box-shadow: 0 2px 8px rgba(0,133,202,0.15); }

    .gallery-grid { display: flex; flex-wrap: wrap; margin-left: -12px; margin-right: -12px; }
    .gallery-item { width: 100%; padding: 12px; }
    @media (min-width: 576px) { .gallery-item { width: 50%; } }
    @media (min-width: 992px) { .gallery-item { width: 33.3333%; } }

    .gallery-card { position: relative; overflow: hidden; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,0.12); background: #fff; }
    .gallery-card img { width: 100%; height: 260px; object-fit: cover; display: block; transition: transform .4s ease; }
    .gallery-card:hover img { transform: scale(1.04); }
    .gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 75%); color: #fff; padding: 16px 14px 12px; font-weight: 600; letter-spacing: .3px; }
    .gallery-badge { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.55); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 999px; }

    .gallery-item.hidden { display: none !important; }

    /* Image Modal */
    .gallery-modal .modal-dialog { max-width: 980px; width: 95%; }
    .gallery-modal .modal-body { padding: 0; }
    .gallery-modal img { width: 100%; height: auto; display: block; }
    .gallery-modal .modal-footer { display: flex; justify-content: space-between; align-items: center; }
