/* Extra css for styling this site additional to Bootstrap */


/* My Styles */
.main-article h2,
.main-article h3 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.main-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.container-card {
    background-color: rgba(10, 35, 55, 0.92);
    border: 1px solid rgba(255,255,255,0.08);
}

/* Article Images */

.main-article figure {
    margin: 1.5rem 0;
}

.main-article figure.align_left {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
}

.main-article figure.align_right {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
}

.main-article figure.align_center {
    margin: 1.5rem auto;
    text-align: center;
}

.main-article figure img {
    border-radius: 0.375rem;
    max-width: 100%;
    height: auto;
    display: block;
}

.main-article figure.align_center img {
    margin: 0 auto;
}

.main-article figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
    font-style: italic;
    text-align: inherit; /* follows figure alignment */
}

/* Customised Links */
a,
a:link,
.nav-link,
.btn-link {
    color: #a8c5e0 !important;          /* soft bright blue-teal – good contrast & fresh */
}

a,
a:link {
    color: #a8c5e0 !important;
}

a:hover,
a:focus {
    color: #d1e0ed !important;
}

a.text-white {
    color: white !important;
}
a.text-white:hover {
    color: #e0e0e0 !important;  /* or whatever hover you want */
}


/* Navbar */
.navbar {
  border-bottom: 4px solid #f28c38; /* orange from your logo wave */
  background-color: #F4E3CD;
}

.navbar-toggler {
    border: 2px solid #0A2337 !important;  /* darker navy border */
    border-radius: 6px;                    /* optional: softer roundness */
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><path stroke='rgb(0,0,0)' stroke-width='2.5' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/></svg>") !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3)); /* subtle depth */
}

/* Protect navbar links (reset to Bootstrap default or your theme) */
.navbar a,
.navbar .nav-link,
.navbar-brand,
.navbar .nav-link {
    color: #0A2337 !important;          /* or your specific color, e.g. #fff */
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: rgba(10, 35, 55, 0.75) !important;
}


/* Customised Buttons */
.btn-custom {
    background-color: #0A2337 !important;
    color: white !important;
    border: none !important;
    transition: background-color 0.2s ease;
}

.btn-custom:hover,
.btn-custom:focus {
    background-color: #061523 !important; /* deeper, smoother hover */
    color: white !important;
}

.btn-custom:active {
    background-color: #040f19 !important; /* strong press state */
    color: white !important;
}

.btn-custom-alt {
    background-color: #F4E3CD !important;
    color: #0A2337 !important;
    border: none !important;
}

.btn-custom-alt:hover,
.btn-custom-alt:focus {
    background-color: #E8D5B8 !important; /* softer, nicer hover */
    color: #0A2337 !important;
}

.btn-custom-alt:active {
    background-color: #D9C2A5 !important; /* deeper press state */
    color: #0A2337 !important;
}

a.btn-custom,
a.btn-custom:link,
a.btn-custom:visited {
  color: white !important;
}

a.btn-custom-alt,
a.btn-custom-alt:link,
a.btn-custom-alt:visited {
    color: #0A2337 !important;
}


/* Carousels used at top of pages */
.carousel-item img {
   height: 60vh;
   object-fit: cover;
   object-position: center;
   width: 100%;
}

.carousel-item {
  position: relative;
}

.carousel-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  color: white !important;
}

.carousel-caption {
  z-index: 2; 
  background: rgba(0, 0, 0, 0.3); 
  padding: 1.5rem;
  border-radius: 0.5rem;
  color: white !important;
  text-shadow: 1px 1px 3px black;
}


/* More photos used when listing galleries */
.more-photos-indicator {
    cursor: pointer;
}

.more-overlay {
    background: rgba(0, 0, 0, 0.55);
    transition: background 0.25s ease;
    pointer-events: none; /* allows click to go through to the <a> */
}

.more-photos-indicator:hover .more-overlay {
    background: rgba(0, 0, 0, 0.75);
}

.more-overlay .badge {
    font-weight: 600;
    letter-spacing: 0.5px;
}


/* Google maps used for location on properties */
gmp-map {
    height: 600px;
    width: 100%;
}


/* Dots used on the floorplans on properties */
.dot {
    position: absolute;
    width: min(28px, 5vw);
    height: min(28px, 5vw);
    background: #a8c5e0;
    border: min(3px, 0.8vw) solid white;   /* border also scales a bit */
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 min(4px, 1vw) rgba(10, 35, 55, 0.4);
    transition: all 0.25s ease;
}
    
.dot:hover {
    transform: translate(-50%, -50%) scale(1.35);
    box-shadow: 0 0 0 8px rgba(10, 35, 55, 0.6);
}

.dot::after {
    content: attr(data-desc);
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
}

.dot:hover::after {
    opacity: 1;
}


/* Facilities list on properties */
.facilities-list {
    column-count: 1;
    column-gap: 2rem;
}

@media (min-width: 768px) {
    .facilities-list {
        column-count: 3;
    }
}

.facilities-list li {
    break-inside: avoid;
    margin-bottom: 0.5rem;
}@media (min-width: 768px) {
    .row-cols-md-3 > li {
        break-inside: avoid;
    }
}


/* Pagination look better */
.custom-pager .page-item.active .page-link,
.custom-pager .page-link.active {
  background-color: #2c3e50 !important;
  border-color: #2c3e50 !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(10, 35, 55, 0.2);
  pointer-events: none;           /* disables hover/focus/click */
  cursor: default;
}

/* Remove hover/focus effects on active */
.custom-pager .page-item.active .page-link:hover,
.custom-pager .page-item.active .page-link:focus,
.custom-pager .page-link.active:hover,
.custom-pager .page-link.active:focus {
  background-color: #2c3e50 !important;
  border-color: #2c3e50 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(10, 35, 55, 0.2);
}

/* Custom alerts to make look better */
/* Lighten and style all Bootstrap alert types */

.alert {
  border-width: 1px;
  border-radius: 0.5rem;
  color: #e9ecef;
}

.alert-primary {
  background-color: #0d3b66;
  border-color: #1e5a8f;
  color: #d1e8ff;
}

.alert-secondary {
  background-color: #2c3e50;
  border-color: #495057;
  color: #ced4da;
}

.alert-success {
  background-color: #1e4d2b;
  border-color: #2e7d32;
  color: #c8e6c9;
}

.alert-info {
  background-color: #0a3d5e;
  border-color: #0288d1;
  color: #b3e5fc;
}

.alert-warning {
  background-color: #5c3f00;
  border-color: #ff9800;
  color: #fff3cd;
}

.alert-danger {
  background-color: #5c1a1a;
  border-color: #c62828;
  color: #ffcdd2;
}

.alert-light {
  background-color: #37474f;
  border-color: #455a64;
  color: #eceff1;
}

.alert-dark {
  background-color: #212529;
  border-color: #343a40;
  color: #dee2e6;
}

/* Success message override (your green one) */
.alert-success,
.alert.alert-success {
  background-color: #1a3c2e !important;
  border-color: #2e7d32 !important;
  color: #a5d6a7 !important;
}