html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    1313
  text-align: start;
}

/* Modern WordPress-Style Homepage */
section {
  scroll-margin-top: 70px;
}

.hero-section {
  background: linear-gradient(135deg, #2f6f8f 0%, #1c3348 100%);
  color: white;
  padding: 20px 0;
}

.hero-section h1 {
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-section .lead {
  color: rgba(255,255,255,0.95);
}

/* Mini Calendar on Hero */
.mini-calendar-card {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.25);
}

.mini-calendar-header {
  color: white;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.mini-calendar-table {
  width: 100%;
  border-collapse: collapse;
}

.mini-calendar-table th {
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  padding: 4px;
  font-weight: 600;
}

.mini-cal-day {
  text-align: center;
  color: white;
  font-size: 0.85rem;
  padding: 6px 4px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.mini-cal-day:hover {
  background: rgba(255,255,255,0.3);
}

.mini-cal-today {
  background: rgba(255,255,255,0.25);
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
  border-radius: 50%;
}

.mini-cal-empty {
  padding: 6px 4px;
}

/* Events Page Calendar */
.events-calendar-header {
  background: linear-gradient(135deg, #2f6f8f 0%, #1c3348 100%);
  border: none;
}

.events-details-header {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  border: none;
}

.events-calendar-table {
  table-layout: fixed;
}

.events-calendar-table th {
  font-size: 0.85rem;
  padding: 10px 4px;
  background: #f8f9fa;
}

.calendar-day {
  padding: 12px 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  vertical-align: middle;
  height: 55px;
}

.calendar-day:hover {
  background-color: #e8f0fe;
}

.calendar-today {
  background-color: #fff3cd !important;
}

.calendar-today .day-number {
  font-weight: 700;
  color: #e67e22;
}

.calendar-has-events {
  background-color: #e8f5e9;
}

.calendar-selected {
  background-color: #2f6f8f !important;
  color: white;
}

.calendar-selected .day-number {
  color: white;
  font-weight: 700;
}

.calendar-empty {
  background-color: #fafafa;
}

.day-number {
  font-size: 0.95rem;
}

.event-dot {
  display: block;
  width: 6px;
  height: 6px;
  background: #27ae60;
  border-radius: 50%;
  margin: 2px auto 0;
}

.calendar-selected .event-dot {
  background: white;
}

/* Event detail cards */
.event-card {
  background: #f8f9fa;
  border-left: 4px solid #2f6f8f;
  transition: all 0.2s ease;
}

.event-card:hover {
  background: #e8f0fe;
  transform: translateX(4px);
}

.event-type-badge {
  background: linear-gradient(135deg, #2f6f8f 0%, #1c3348 100%);
  color: white;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Events page section */
.events-page {
  min-height: 70vh;
}

/* Join Event Button */
.join-event-btn {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-join {
  background: linear-gradient(135deg, #2f6f8f 0%, #1c3348 100%);
  color: white;
  border-color: transparent;
}

.btn-join:hover {
  background: linear-gradient(135deg, #245a74 0%, #16324a 100%);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(47, 111, 143, 0.4);
}

.btn-joined {
  background: #e8f5e9;
  color: #27ae60;
  border-color: #27ae60;
}

.btn-joined:hover {
  background: #ffebee;
  color: #c0392b;
  border-color: #c0392b;
}

/* Next Upcoming Event Banner */
.next-event-banner {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(47, 111, 143, 0.25);
}

.next-event-banner-inner {
  background: linear-gradient(135deg, #2f6f8f 0%, #1c3348 100%);
  padding: 20px 24px;
  position: relative;
}

.next-event-banner-inner::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.next-event-banner-inner::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 40%;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.next-event-banner-clickable {
  cursor: pointer;
  transition: all 0.3s ease;
}

.next-event-banner-clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(47, 111, 143, 0.4);
}

.next-event-banner-clickable:hover .next-event-arrow {
  transform: translateX(4px);
}

.next-event-date-box {
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
  min-width: 60px;
  backdrop-filter: blur(4px);
}

.next-event-date-day {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.next-event-date-month {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.next-event-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

.next-event-desc {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.next-event-meta {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
}

.next-event-joined-badge {
  background: rgba(39, 174, 96, 0.3);
  color: #a8ffc8;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(39, 174, 96, 0.5);
}

.next-event-cta-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.2); }
  50% { box-shadow: 0 0 12px 2px rgba(255,255,255,0.3); }
}

.next-event-arrow {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

/* My Events Section */
.my-events-header {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border: none;
}

.my-event-item {
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.my-event-item:hover {
  border-left-color: #2f6f8f;
  background-color: #f0f4ff;
}

.my-event-date-pill {
  background: linear-gradient(135deg, #2f6f8f 0%, #1c3348 100%);
  border-radius: 10px;
  padding: 6px 10px;
  text-align: center;
  min-width: 48px;
}

.my-event-date-day {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  line-height: 1.1;
}

.my-event-date-month {
  display: block;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.trips-section,
.share-section,
.question-section,
.qna-section {
  padding: 80px 0;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.image-placeholder:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.btn-lg {
  padding: 12px 32px;
  font-size: 1.1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

section h2 {
  color: #2c3e50;
}

section p {
  line-height: 1.8;
}

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

/* Responsive adjustments */
@media (max-width: 991px) {
  .trips-section,
  .share-section,
  .question-section,
  .qna-section {
    padding: 60px 0;
  }

  .image-placeholder {
    min-height: 300px !important;
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding: 40px 0;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  section h2 {
    font-size: 2rem;
  }
}

/* ========================================
   QnA Page Styles
   ======================================== */

.qna-page {
  min-height: 70vh;
}

.qna-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 2px solid #2f6f8f;
}

.qna-category-icon {
  font-size: 1.5rem;
}

.qna-accordion .accordion-item {
  border: none;
  margin-bottom: 8px;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.qna-accordion .accordion-button {
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 20px;
  background: white;
  color: #2c3e50;
  border-radius: 12px !important;
}

.qna-accordion .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, #2f6f8f 0%, #1c3348 100%);
  color: white;
  box-shadow: none;
}

.qna-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.qna-accordion .accordion-button::after {
  filter: none;
}

.qna-accordion .accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.qna-accordion .accordion-body {
  padding: 20px 24px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
}

.qna-highlight-box {
  background: #fff8e1;
  border-left: 4px solid #f39c12;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
}

.qna-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.qna-checklist li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.qna-checklist li:last-child {
  border-bottom: none;
}

.qna-check {
  font-size: 1rem;
  flex-shrink: 0;
}

.qna-equipment-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.qna-equipment-card:hover {
  background: #e8f0fe;
  border-color: #2f6f8f;
}

.qna-equipment-icon {
  font-size: 1.3rem;
}

/* ========================================
   Resort Page Styles
   ======================================== */

.resort-page {
  min-height: 70vh;
}

.resort-hero {
  padding: 60px 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.resort-hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.resort-hero::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 20%;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.resort-hero-content {
  position: relative;
  z-index: 1;
}

.resort-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 0.75rem;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 12px;
}

.resort-hero h1 {
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.resort-hero .lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
}

.resort-info-card {
  background: white;
  border-radius: 12px;
  padding: 20px 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.resort-info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.resort-info-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.resort-info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  font-weight: 600;
}

.resort-info-value {
  font-size: 1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-top: 2px;
}

.resort-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
  padding-bottom: 12px;
  border-bottom: 3px solid #2f6f8f;
  margin-bottom: 20px;
}

.resort-trails {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 4px 0;
  overflow: hidden;
}

.resort-trail-row {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #e9ecef;
}

.resort-trail-row:last-child {
  border-bottom: none;
}

.trail-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
}

.trail-green { background: #27ae60; }
.trail-blue { background: #2980b9; }
.trail-red { background: #e74c3c; }
.trail-black { background: #2c3e50; }

.trail-label {
  flex-grow: 1;
  font-weight: 500;
  color: #555;
}

.trail-count {
  font-weight: 700;
  color: #2c3e50;
}

.resort-access-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resort-access-item {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: #555;
  border-left: 3px solid #2f6f8f;
}

.resort-base-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 16px 18px;
  border: 1px solid #e9ecef;
  height: 100%;
}

.resort-sidebar-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
}

.resort-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 8px;
  text-decoration: none;
  color: #2f6f8f;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: 1px solid #e9ecef;
}

.resort-link:hover {
  background: #2f6f8f;
  color: white;
  border-color: #2f6f8f;
}

.resort-link:last-child {
  margin-bottom: 0;
}

.resort-price-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
}

.resort-price-row:last-of-type {
  border-bottom: none;
}

@media (max-width: 767px) {
  .resort-hero {
    padding: 40px 0;
  }

  .resort-hero h1 {
    font-size: 2rem;
  }

  .resort-info-card {
    padding: 14px 10px;
  }

  .resort-info-icon {
    font-size: 1.4rem;
  }

  .resort-info-value {
    font-size: 0.85rem;
  }
}
/* Community feed */
.community-container {
    max-width: 820px;
}

.community-empty {
    background: #f5f8fb;
    border: 1px dashed #c8d5e2;
    border-radius: 1rem;
}

.community-avatar {
    align-items: center;
    background: #e5f0fa;
    border-radius: 50%;
    color: #175a91;
    display: inline-flex;
    flex: 0 0 2.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    height: 2.75rem;
    justify-content: center;
    text-transform: uppercase;
    width: 2.75rem;
}

.community-post-content {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.community-photo {
    border-radius: .75rem;
    display: block;
    max-height: 560px;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 575.98px) {
    .community-post .card-body {
        padding: 1rem !important;
    }
}

.profile-container {
    max-width: 900px;
}

.profile-avatar {
    border-radius: 50%;
    height: 5rem;
    object-fit: cover;
    width: 5rem;
}

.profile-avatar-fallback {
    flex-basis: 5rem;
    font-size: 1.75rem;
    height: 5rem;
    width: 5rem;
}
