/* font */
.font-abeezee {
  font-family: 'ABeeZee', sans-serif;
}

/* Navbar Customizations */
#mainNav {
  z-index: 1100; /* stays above photos */
}

.navbar-nav .nav-item { margin: 0 .5rem; }

/* ── LIGHT scheme : solid-white background, dark text ─────────── */
.navbar-light .navbar-nav .nav-link,
.navbar-light .navbar-brand {
  color: #555;
  font-weight: 500;
  padding: .5rem 1rem;
  transition: color .3s;
}
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: #007bff;
}

/* ── DARK scheme : 50 % black background, white text ──────────── */
.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-brand          { color: #fff; }
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #ffc107;                 /* optional hover colour on dark bar */
}

/* Custom Button Style */
.btn-custom-outline {
  border: 2px solid #007bff;
  color: #007bff;
  background-color: transparent;
  border-radius: 50px; /* Creates the pill shape */
  padding: 8px 24px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-custom-outline:hover {
  background-color: #007bff;
  color: #fff;
}

/* Mobile-Friendly Adjustments for the Collapsed Menu */
@media (max-width: 991.98px) {
  .navbar-nav .nav-item {
    margin: 0.5rem 0; /* Adds vertical spacing on mobile */
  }

  /* Makes the button take full width on mobile for better touch access */
  .btn-custom-outline {
    width: 100%;
    margin-top: 1rem;
  }
}

/* Change breadcrumb separator to '>' */
.breadcrumb-item+.breadcrumb-item::before {
  content: ">";
  padding: 0 0.5rem;
}

/* Main gallery container */
.image-gallery-container {
  display: flex;
  gap: 1rem;
}

/* Constrain gallery height on screens wider than 768px */
@media (min-width: 769px) {
  .image-gallery-container {
    max-height: 450px;
  }
}

/* Container for the large featured image */
.gallery-featured {
  flex: 3;
  position: relative;
}

/* Container for the small thumbnail images */
.gallery-thumbnails {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Common styles for all images in the gallery */
.gallery-featured img,
.gallery-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Style for thumbnail images to show they are clickable */
.gallery-thumbnails img {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-thumbnails img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* "精選" tag overlay */
.tag-featured {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #ffc107;
  color: #333;
  font-weight: bold;
  padding: 8px 16px;
  border-top-left-radius: 12px;
  border-bottom-right-radius: 12px;
  font-size: 0.9rem;
}

/* "查看全部" button overlay */
.view-all-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.view-all-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.view-all-btn i {
  margin-right: 5px;
}

/* Mobile-Friendly Layout */
@media (max-width: 768px) {
  .image-gallery-container {
    flex-direction: column;
  }
}

/* Custom styles for the gallery modal */
.gallery-modal .modal-content {
  background-color: rgba(0, 0, 0, 0.7);
  border: none;
}
.gallery-modal .modal-header {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border-bottom: none;
}
.gallery-modal .modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}
/* Update modal body to allow positioning of children */
.gallery-modal .modal-body {
  position: relative; /* This is crucial for the arrows */
  padding: 0;
}

/* Styling for the navigation arrows */
.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 1.75rem; /* 28px */
  padding: 1rem 0.75rem; /* 16px 12px */
  cursor: pointer;
  z-index: 1056; /* Higher than modal content */
  transition: background-color 0.2s ease;
  line-height: 1;
}

.modal-nav-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-nav-btn.prev {
  left: 1rem; /* 16px */
  border-radius: 0 8px 8px 0;
}

.modal-nav-btn.next {
  right: 1rem; /* 16px */
  border-radius: 8px 0 0 8px;
}


/*
 * Custom Styles for Section Tabs
 */

/* Remove the default bottom border from the tab container */
.nav-tabs {
  border-bottom: 1px solid #dee2e6; /* Keeps a faint line for separation */
}

/* Style for each tab link */
.nav-tabs .nav-link {
  color: #4B4B73; /* Dark purple-blue text color */
  font-weight: 600; /* Bolder font */
  background-color: transparent;
  border: none; /* Remove all default borders from the link */
  border-radius: 0;
  padding-bottom: 0.75rem; /* Adjust padding for underline space */
  transition: color 0.2s ease-in-out;
}

/* Style for non-active tabs on hover */
.nav-tabs .nav-link:hover {
  color: #0d6efd; /* Standard blue on hover */
  border: none;
}

/* Style for the active tab */
.nav-tabs .nav-link.active,
.nav-tabs .nav-link.active:hover {
  color: #4B4B73; /* Keep the same text color when active */
  background-color: transparent;
  border: none;
  /* This creates the thick blue underline */
  border-bottom: 4px solid #0d6efd; 
}

/* Enables smooth scrolling when a nav link is clicked */
html {
  scroll-behavior: smooth;
}

/* Adds top padding to each section to offset the sticky nav's height */
.scroll-section {
  padding-top: 70px; 
}

 /* Main container for the tags for layout purposes */
        .tag-container {
            font-family: sans-serif; /* A common, clean font */
            padding: 0.5rem;
        }

        /* A wrapper for each row of tags to ensure they stack vertically */
        .tag-row {
            margin-bottom: 0.5rem; /* 12px space between the two rows */
        }

        /* Base style for all tags */
        .tag {
            display: inline-block; /* Allows tags to sit side-by-side */
            padding: 0.3rem 1rem; /* 8px top/bottom, 16px left/right */
            border-radius: 8px; /* Creates the rounded corners */
            color: white;
            font-weight: bold;
            font-size: 0.9rem; /* 14.4px */
            margin-right: 0.5rem; /* 8px space to the right of each tag */
            margin-bottom: 0.5rem; /* Ensures tags wrap nicely on small screens */
        }

        /* Modifier class for red tags */
        .tag-red {
            background-color: #E54D42; /* Hex code for the red color */
        }

        /* Modifier class for green tags */
        .tag-green {
            background-color: #00C853; /* Hex code for the green color */
        }

        /* New style for the description text */
        .description-text {
            font-size: 1.25rem;   /* Roughly the size of an H4 */
            font-weight: 400;    /* Normal, non-bold weight */
            color: #6c757d;     /* A standard grey color */
            line-height: 1.5;    /* Adjust line height for readability */
            white-space: pre-wrap; /* Preserves line breaks from your text */
        }

                .info-container {
            max-width: 400px; /* Set a max-width for the component */
            margin: auto;
        }
        .pricing-section {
            margin-bottom: 1.5rem;
        }
        .price-main {
            font-size: 1.75rem; /* Large size for the price */
            font-weight: bold;
            color: #28a745; /* Green color */
        }
        .price-note {
            font-size: 1.1rem; /* Slightly smaller than h4 */
            color: #6c757d; /* Grey color */
        }
        .details-section {
            font-size: 1.25rem; /* h4 size */
            color: #333;
            line-height: 1.7;
            margin-bottom: 2rem;
        }

        /* Contact Card Styling */
        .contact-card {
            border: 1px solid #dee2e6; /* A lighter border */
            border-top: 4px solid #0d6efd; /* The main blue top border */
            border-radius: 12px;
            padding: 2.5rem 1.5rem 1.5rem 1.5rem;
            position: relative;
            background-color: white;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* A subtle shadow */
            text-align: center; /* Center the title and button */
        }
        .contact-card-title {
            position: absolute;
            top: 0;
            left: 50%;
            transform: translate(-50%, -50%); /* Centers the title and lifts it up */
            background-color: white; /* To cut through the top border */
            padding: 0 0.75rem;
            font-weight: bold;
            color: #0d6efd; /* Lighter blue color */
            font-size: 1.5rem;
        }
        .contact-card-body {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            text-align: left; /* Reset text alignment for this section */
            margin-bottom: 1.5rem;
        }
        .contact-name {
            font-size: 1.5rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
        }
        .contact-details p {
            margin: 0.25rem 0;
            font-size: 1.1rem;
            color: #555;
        }
        .contact-avatar img {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
        }
        .whatsapp-image {
            width: 100%;
            max-width: 280px; /* Prevent image from becoming too large */
            height: auto;
            transition: opacity 0.2s ease;
            margin-top: 1rem;
        }
        .whatsapp-image:hover {
            opacity: 0.85;
        }

/* CSS Grid for 3x3 layout */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 200px);
  gap: 1rem;
}
.area-large { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.area-1 { grid-column: 3 / 4; grid-row: 1 / 2; }
.area-2 { grid-column: 3 / 4; grid-row: 2 / 3; }
.area-3 { grid-column: 1 / 2; grid-row: 3 / 4; }
.area-4 { grid-column: 2 / 3; grid-row: 3 / 4; }
.area-5 { grid-column: 3 / 4; grid-row: 3 / 4; }
.card { height: 100%; }
.card-header { text-align: center; }
.card-body { display: flex; align-items: center; justify-content: center; }