/* ─── Camp Profile Page ─── */

@media only screen and (min-width: 0rem) {
  #listing {
    padding: 3rem 2rem;
    max-width: 62rem;
    margin: 0 auto;
  }

  /* ─── Breadcrumbs ─── */
  .breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
  }

  .breadcrumbs-referring-page {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
  }

  .breadcrumbs-referring-page:hover {
    text-decoration: underline;
  }

  .breadcrumbs-current-page {
    color: #888;
  }

  /* ─── Title ─── */
  #listing h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 1.25rem;
    line-height: 1.2;
  }

  /* ─── Info Bar ─── */
  .info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: #f8f5ff;
    border: 1px solid #e8e0f5;
    border-radius: 10px;
    margin-bottom: 2rem;
  }

  .info-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .info-bar-item .info-icon {
    width: 20px;
    height: 20px;
    opacity: 0.6;
  }

  .info-bar-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #888;
    margin-right: 0.25rem;
  }

  .info-bar-value {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
  }

  /* ─── Action Buttons ─── */
  .action-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
  }

  .action-buttons .btn-primary {
    background-color: var(--secondary);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
  }

  .action-buttons .btn-primary:hover {
    background-color: #5a3ca0;
    transform: translateY(-1px);
  }

  .action-buttons .btn-secondary {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    text-align: center;
    border-radius: 8px;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
  }

  .action-buttons .btn-secondary:hover {
    background-color: rgba(69, 43, 131, 0.06);
    transform: translateY(-1px);
  }

  /* ─── Photo Gallery ─── */
  .photos {
    margin-bottom: 2.5rem;
  }
  
  .image-container {
    position: relative;
    width: 60%;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
  }

  .image-container img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 12px;
  }

  .photos picture {
    display: none;
  }

  .photos picture.active {
    display: block;
  }

  .gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
  }

  .gallery-btn:hover {
    background: rgba(0, 0, 0, 0.75);
  }

  .gallery-btn svg {
    width: 100%;
    height: 100%;
  }

  #prev {
    left: 1rem;
  }

  #next {
    right: 1rem;
  }

  .photo-thumbnails {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
  }

  .thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease;
  }

  .thumbnail.active {
    opacity: 1;
    border: 2px solid var(--secondary);
  }

  .thumbnail:hover {
    opacity: 0.85;
  }

  /* ─── Overview / Description ─── */
  .listing-container {
    width: 100%;
  }

  .content {
    display: flex;
    flex-direction: column;
  }

  .description-area {
    width: 100%;
    order: 1;
  }

  .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
  }

  .description-text {
    font-size: 1.25rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    color: #333;
  }

  #listing .description-text ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
  }

  #listing .description-text ul li {
    padding: 0.6rem 0;
    padding-left: 1.75rem;
    position: relative;
    font-size: 1.25rem;
    line-height: 1.75;
  }

  #listing .description-text ul li:before {
    content: "•";
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
  }

  /* Hide old sidebar & divider */
  .sidebar-area {
    display: none;
  }

  .divider {
    display: none;
  }

  .mobile-quick-info,
  .desktop-quick-info {
    display: none;
  }

  /* ─── Video ─── */
  .description-area .video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }

  .description-area .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  /* ─── Activities ─── */
  .activities-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
  }

  .activity-category {
    margin-bottom: 2rem;
  }

  .category-title {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
    font-weight: 700;
  }

  .activities-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .activity-item {
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
    color: #444;
    border: 1px solid #e2e2e2;
    transition: border-color 0.2s ease;
  }

  .activity-item:hover {
    border-color: var(--secondary);
  }

  /* ─── Dates & Rates ─── */
  .dates-rates-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
  }

  .dates-rates-area {
    width: 100%;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: none;
  }

  .dates-rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
  }

  .rate-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e2e2e2;
    transition: box-shadow 0.2s ease;
  }

  .rate-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  }

  .session-name {
    color: var(--secondary);
    margin: 0 0 0.75rem 0;
    font-weight: 700;
    font-size: 1.1rem;
  }

  .session-dates {
    font-size: 1rem;
    color: #555;
    margin: 0.25rem 0;
  }

  .session-rate {
    font-size: 1.1rem;
    margin: 0.75rem 0 0 0;
    font-weight: 700;
    color: #1a1a2e;
  }

  /* ─── Recommended Camps ─── */
  .recommended-camps {
    margin: 3rem 0 1rem;
    padding: 2.5rem 0 0;
    border-top: 2px solid #eee;
  }

  .recommended-camps h3.section-title {
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
  }

  .recommended-camps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
  }

  .recommended-camp-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e2e2;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    text-decoration: none;
    display: block;
    color: inherit;
    position: relative;
  }

  .featured-camp {
    border: 2px solid var(--secondary);
  }

  .featured-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: var(--secondary);
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    z-index: 1;
  }

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

  .camp-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f8f5ff;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .camp-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.3s ease;
  }

  .recommended-camp-card:hover .camp-image img {
    transform: scale(1.05);
  }

  .camp-info {
    padding: 1.25rem;
  }

  .camp-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--secondary);
    font-weight: 700;
  }

  .camp-location {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }

  .camp-summary {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
  }
}

/* ─── Inquiry Modal ─── */
@media only screen and (min-width: 0rem) {
  .inquiry-btn {
    background-color: var(--secondary);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 0.8rem 2rem;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
  }

  .inquiry-btn:hover {
    background-color: #5a3ca0;
    transform: translateY(-1px);
  }

  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 20000;
    padding-top: 2rem;
    overflow-y: auto;
  }

  .modal.active {
    display: block;
  }

  .modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin: 0 auto 2rem auto;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
  }

  .close-modal {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 1.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    color: #999;
    transition: color 0.2s ease;
  }

  .close-modal:hover {
    color: #333;
  }

  .modal h2 {
    text-align: center;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
  }

  .form-group {
    margin-bottom: 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .modal label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
  }

  .modal input,
  .modal select,
  .modal textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
  }

  .modal input:focus,
  .modal select:focus,
  .modal textarea:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(69, 43, 131, 0.1);
  }

  .modal textarea {
    min-height: 80px;
    resize: vertical;
  }

  .modal button[type="submit"] {
    background: var(--secondary);
    color: white;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100%;
    margin-top: 0.5rem;
  }

  .modal button[type="submit"]:hover {
    background: #5a3ca0;
  }

  #inquiry-success {
    background-color: #d4edda;
    border: 1px solid #a3d9b1;
    padding: 1.25rem;
    border-radius: 8px;
    text-align: center;
  }

  #inquiry-success p {
    color: #155724;
    margin: 0;
    font-size: 1rem;
  }
}

/* ─── Mobile ─── */
@media only screen and (max-width: 63.9375rem) {
  #listing {
    padding: 2rem 1.25rem;
  }

  #listing h1 {
    font-size: 1.75rem;
  }

  .info-bar {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
  }

  .action-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .action-buttons .btn-primary,
  .action-buttons .btn-secondary,
  .inquiry-btn {
    text-align: center;
    width: 100%;
  }

  .image-container {
    border-radius: 10px;
  }

  .image-container img {
    border-radius: 10px;
    max-height: 300px;
  }

  .gallery-btn {
    display: none;
  }

  .photo-thumbnails {
    flex-wrap: wrap;
  }

  .thumbnail {
    width: 60px;
    height: 45px;
  }

  .description-text {
    font-size: 1.15rem;
    color: #333;
  }

  .recommended-camps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .camp-image {
    height: 200px;
  }

  .dates-rates-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    margin: 1rem auto;
    padding: 1.5rem;
    max-height: calc(100vh - 4rem);
  }
}

/* Tablet */
@media only screen and (min-width: 48rem) and (max-width: 63.9375rem) {
  .recommended-camps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}