/* Premier Travel Bexhill - Main Stylesheet */

/* ========================================
   COLOR SCHEME
   ======================================== */
:root {
    --primary-blue: #21409a;
    --accent-orange: #F59E0B;
    --neutral-gray: #6B7280;
    --light-blue: #c4e6f5;
    --light-blue-alt: #DBEAFE;
    --light-orange: #FEF3C7;
    --white: #FFFFFF;
    --dark-text: #1F2937;
    --border-color: #E5E7EB;
}

/* ========================================
   FLASH MESSAGES
   ======================================== */
.flash-messages-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 1rem;
    pointer-events: none;
}

.flash-messages-container .container {
    pointer-events: auto;
}

.flash-messages-container .alert {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 8px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #ffffff;
}

a {
    color: var(--primary-blue);
}

a:hover {
    color: #1a3278;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark-text);
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 24px; }

@media (max-width: 768px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 24px; }
}

/* ========================================
   TRUST BAR
   ======================================== */
.trust-bar {
    background-color: var(--primary-blue);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.trust-items {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.trust-items span {
    white-space: nowrap;
}

.trust-items i {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .trust-items {
        justify-content: center;
    }
    .trust-bar {
        font-size: 12px;
    }
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    box-shadow: none;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: auto;
    max-height: 240px;
    width: auto;
    padding: 8px 0;
}

.nav-link {
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s, background-color 0.3s;
}

/* Larger font size on desktop */
@media (min-width: 992px) {
    .nav-link {
        font-size: 1.5rem;
    }
}

.nav-link:hover {
    color: var(--primary-blue);
}

/* Dark navbar styling */
.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-dark .nav-link.btn-warning {
    color: #000000 !important;
}

.navbar-dark .nav-link:hover {
    color: var(--accent-orange) !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #1a3278;
    border-color: #1a3278;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 64, 154, 0.3);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-warning {
    background-color: #F59E0B;
    border-color: #F59E0B;
    color: #1F2937 !important;
    font-weight: 600;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
    background-color: #d97706;
    border-color: #d97706;
    color: #1F2937 !important;
}

/* ========================================
   HERO SECTION (Split Layout with Parallax Image)
   ======================================== */
.hero-section-split {
    padding: 60px 0;
    margin-top: 0;
    background: linear-gradient(to bottom, #21409a 0%, #f8f9fa 100%);
}

/* Make the column containing hero-text-col stretch */
.hero-section-split .row > .col-lg-6:first-child {
    display: flex;
}

.hero-text-col {
    padding: 25px 30px;
    background: rgba(33, 64, 154, 0.85);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    width: 100%;
}

.hero-text-col h1 {
    font-size: 1.75rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.hero-text-col .lead {
    font-size: 1rem;
    color: white;
    font-weight: 500;
    margin-bottom: 0.5rem !important;
}

.hero-text-col p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.5rem !important;
}

.hero-text-col .d-flex {
    margin-top: 0.5rem !important;
}

.hero-text-col .btn-lg {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* Larger screens - increase font sizes to fill the box */
@media (min-width: 992px) {
    .hero-text-col h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    .hero-text-col .lead {
        font-size: 1.1rem;
    }
    .hero-text-col p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    .hero-text-col .btn-lg {
        font-size: 0.95rem;
    }
}

@media (min-width: 1200px) {
    .hero-text-col h1 {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
    .hero-text-col .lead {
        font-size: 1.2rem;
        margin-bottom: 0.75rem !important;
    }
    .hero-text-col p {
        font-size: 1.05rem;
        line-height: 1.7;
        margin-bottom: 0.75rem !important;
    }
    .hero-text-col .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
}

@media (min-width: 1400px) {
    .hero-text-col h1 {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
    }
    .hero-text-col .lead {
        font-size: 1.3rem;
        margin-bottom: 1rem !important;
    }
    .hero-text-col p {
        font-size: 1.1rem;
        line-height: 1.8;
        margin-bottom: 1rem !important;
    }
    .hero-text-col .d-flex {
        margin-top: 1rem !important;
    }
    .hero-text-col .btn-lg {
        padding: 0.75rem 1.75rem;
        font-size: 1.05rem;
    }
}


.hero-image-col {
    display: flex;
    align-items: stretch;
}

.hero-image-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* Hero Carousel Styles */
.hero-image-frame .carousel {
    width: 100%;
    height: 100%;
}

.hero-image-frame .carousel-inner {
    height: 100%;
}

.hero-image-frame .carousel-item {
    height: 100%;
    background: rgba(33, 64, 154, 0.85);
}

/* Hero carousel images - centered with blue bars filling the gap */
.hero-image-frame .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.hero-image-frame .carousel-control-prev,
.hero-image-frame .carousel-control-next {
    width: 10%;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.hero-image-frame:hover .carousel-control-prev,
.hero-image-frame:hover .carousel-control-next {
    opacity: 0.8;
}

.hero-image-frame .carousel-indicators {
    margin-bottom: 15px;
}

.hero-image-frame .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-image-frame .carousel-indicators button.active {
    opacity: 1;
    transform: scale(1.2);
}

@media (max-width: 991px) {
    .hero-section-split .row > .col-lg-6:first-child {
        display: block;
    }

    .hero-text-col {
        padding: 30px;
        text-align: center;
        margin-bottom: 20px;
    }

    .hero-text-col .d-flex {
        justify-content: center;
    }

    .hero-section-split {
        padding: 40px 0;
    }

    .hero-image-col {
        display: block;
    }

    .hero-image-frame {
        height: auto;
    }

    .hero-image-frame .carousel-item {
        height: auto;
    }

    .hero-image-frame .carousel-item img {
        height: auto;
        object-fit: cover;
    }

    .hero-image-frame .carousel-control-prev,
    .hero-image-frame .carousel-control-next {
        opacity: 0.6;
    }
}


/* Scroll arrow */
.scroll-arrow {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: white;
    font-size: 2rem;
    text-decoration: none;
    animation: bounce 2s infinite;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.scroll-arrow:hover {
    opacity: 1;
    color: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

.min-vh-50 {
    min-height: 50vh;
}

/* ========================================
   PAGE HEADERS
   ======================================== */
.page-header {
    background-color: var(--light-blue);
}

/* ========================================
   CARDS
   ======================================== */
.card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.package-card,
.destination-card {
    height: 100%;
}

.package-card img,
.destination-card img {
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.package-card:hover img,
.destination-card:hover img {
    opacity: 0.95;
}

.card-img-top {
    width: 100%;
    height: auto;
}

/* ========================================
   PRICING
   ======================================== */
.price {
    font-size: 14px;
}

.price .h4,
.price .h2 {
    color: var(--primary-blue);
    font-weight: 700;
    margin: 0;
}

.price-box {
    padding: 20px;
    background-color: var(--light-blue);
    border-radius: 12px;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonial-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    height: 100%;
}

.rating {
    color: var(--accent-orange);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background-color: var(--dark-text);
    color: white;
    padding: 60px 0 20px;
    margin-top: 0;
}

.site-footer h2 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
}

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

.site-footer a:hover {
    color: var(--accent-orange);
}

.site-footer ul {
    padding-left: 0;
}

.site-footer ul li {
    margin-bottom: 10px;
}

.footer-badges img {
    margin-right: 15px;
    filter: brightness(0) invert(1);
}

.social-links a {
    font-size: 24px;
    color: white;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-orange);
}

/* ========================================
   BLOG
   ======================================== */
.blog-post img {
    border-radius: 12px;
}

.blog-post h2 a {
    color: var(--dark-text);
    transition: color 0.3s;
}

.blog-post h2 a:hover {
    color: var(--primary-blue);
}

.content {
    line-height: 1.8;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.content h1, .content h2, .content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.content p {
    margin-bottom: 16px;
}

.content ul, .content ol {
    margin-bottom: 16px;
    padding-left: 30px;
}

/* ========================================
   SPECIAL SECTIONS
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #3a5fb5 100%);
    color: white;
}

.cta-section h2 {
    color: white;
}

/* ========================================
   UTILITIES
   ======================================== */
.bg-light {
    background-color: #f9fafb !important;
}

.text-primary {
    color: var(--primary-blue) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

/* Rating stars - darker amber for contrast accessibility */
.rating .fa-star,
.rating .text-warning {
    color: #B45309 !important;
}

.border-primary {
    border-color: var(--primary-blue) !important;
}

/* Pagination */
.page-link {
    color: var(--primary-blue);
}

.page-link:hover {
    color: #1a3278;
    background-color: var(--light-blue-alt);
    border-color: var(--primary-blue);
}

.page-item.active .page-link {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(33, 64, 154, 0.25);
}

.border-warning {
    border-color: var(--accent-orange) !important;
}

.border-left-primary {
    border-left: 4px solid var(--primary-blue) !important;
}

.border-left-warning {
    border-left: 4px solid var(--accent-orange) !important;
}

.border-left-info {
    border-left: 4px solid #0ea5e9 !important;
}

.border-left-danger {
    border-left: 4px solid #ef4444 !important;
}

/* ========================================
   BADGES
   ======================================== */
.badge {
    font-weight: 600;
    padding: 6px 12px;
}

.badge.bg-secondary {
    background-color: var(--neutral-gray) !important;
}

/* NEW Badge for Travel Reports */
.new-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #d97706 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    z-index: 10;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.6);
    }
}

/* Latest Reports Card */
.latest-report-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.latest-report-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.latest-report-card img {
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.latest-report-card:hover img {
    opacity: 0.95;
}

.latest-report-overlay {
    position: relative;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 100%);
    padding: 15px 20px;
    color: white;
}

.latest-report-overlay h3 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.latest-report-overlay .author-tag {
    display: inline-block;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 6px;
}

/* ========================================
   FORMS
   ======================================== */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(33, 64, 154, 0.25);
}

/* ========================================
   SPACING
   ======================================== */
section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    section {
        padding: 48px 0;
    }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
    .package-card,
    .destination-card {
        margin-bottom: 20px;
    }

    .trust-bar {
        text-align: center;
    }
}

/* ========================================
   ADMIN STYLES
   ======================================== */
.admin-stats {
    margin: 20px 0;
}

.list-group-item-action:hover {
    background-color: var(--light-blue);
}


/* ========================================
   SITE NOTICES (Admin > Notices)
   ======================================== */
.site-notice-banner {
    background: var(--light-orange);
    color: var(--dark-text);
    border-bottom: 1px solid #FDE68A;
    font-size: 0.95rem;
}

.site-notice-banner__body {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
}

.site-notice-banner__icon {
    color: var(--accent-orange);
    flex-shrink: 0;
}

.site-notice-banner__text {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}

.site-notice-banner__text strong {
    margin-right: 0.35rem;
}

.site-notice-banner__message {
    color: #374151;
}

.site-notice-banner__link {
    margin-left: 0.5rem;
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}

.site-notice-banner__link i {
    font-size: 0.75em;
}

.site-notice-banner__close {
    background: transparent;
    border: none;
    color: #6B7280;
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    line-height: 1;
    flex-shrink: 0;
    cursor: pointer;
}

.site-notice-banner__close:hover,
.site-notice-banner__close:focus-visible {
    color: var(--dark-text);
    background: rgba(0, 0, 0, 0.06);
    outline: none;
}

.site-notice-modal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.site-notice-modal .modal-header {
    background: var(--primary-blue);
    color: var(--white);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.site-notice-modal .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.site-notice-modal__image {
    border-radius: 8px;
    margin-bottom: 1rem;
}

.site-notice-modal__message {
    white-space: pre-line;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--dark-text);
}

.site-notice-modal .modal-footer {
    border-top: none;
    padding-top: 0;
}

/* Image-first popup: a designed graphic is the whole message */
.site-notice-modal--image .modal-content {
    overflow: hidden;
    background: transparent;
}

.site-notice-modal__hero {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.site-notice-modal--image .modal-footer {
    background: var(--white);
    padding: 0.75rem;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.site-notice-modal--image .modal-footer + .site-notice-modal__hero,
.site-notice-modal--image .site-notice-modal__hero:not(:last-child) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.site-notice-modal__floating-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.site-notice-modal__floating-close:hover,
.site-notice-modal__floating-close:focus-visible {
    background: rgba(0, 0, 0, 0.85);
    outline: 2px solid var(--white);
    outline-offset: 1px;
}

@media (max-width: 576px) {
    .site-notice-banner {
        font-size: 0.875rem;
    }
    .site-notice-banner__text strong {
        display: block;
    }
    .site-notice-banner__link {
        display: inline-block;
        margin-left: 0;
        margin-top: 0.25rem;
    }
}

/* Powered by Cherry Digital */
.cd-credit { margin: 0.6rem 0 0; font-size: 0.8rem; opacity: 0.85; }
.cd-credit a { display: inline-flex; align-items: center; gap: 0.4em; color: inherit; text-decoration: none; }
.cd-credit a:hover, .cd-credit a:focus-visible { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cd-credit img { width: auto; height: 1.35em; }
