/* BlaHajó - Fő stíluslap */
/* Betűtípusok */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Alapok */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #2ea1d9;
  --accent-dark: #2183b3;
  --text: #4f5260;
  --text-dark: #2b2f3b;
  --bg: #fff;
  --bg-light: #f8f8f8;
  --border: #e7e7e7;
  --footer-bg: #000;
  --bottom-bg: #fafafa;
  --bottom-color: #666;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.3;
}

ul { list-style: none; }

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-half {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 15px;
}

.col-full {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 15px;
}

/* TOP BAR */
#sp-top-bar {
  padding: 9px 0;
  background: var(--bg-light);
  color: #8191a6;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

#sp-top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-icons a {
  color: #8191a6;
  font-size: 16px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

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

.sp-contact-info {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.sp-contact-info li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8191a6;
}

.sp-contact-info a { color: #8191a6; transition: color 0.3s; }
.sp-contact-info a:hover { color: var(--accent); }
.sp-contact-info i { color: var(--accent); }

/* HEADER */
header {
  background: #fff;
  box-shadow: 2px 15px 50px rgba(41,44,61,0.1);
  height: 82px;
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

.logo a {
  display: flex;
  align-items: center;
  height: 82px;
}

.logo img { max-height: 60px; }

/* NAV */
nav ul {
  display: flex;
  gap: 5px;
  align-items: center;
}

nav ul li a {
  color: var(--text-dark);
  font-size: 14px;
  padding: 10px 15px;
  display: block;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}

nav ul li a:hover,
nav ul li.active a {
  background: #f7f7f7;
  color: var(--accent);
}

/* HAMBURGER */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: var(--accent);
  font-size: 22px;
}

/* PAGE TITLE SECTION */
.page-title-section {
  background: #1b1c26;
  padding: 20px 0;
  text-align: center;
}

.page-title-section h1 {
  color: #fff;
  font-size: 28px;
}

/* MAIN CONTENT */
main {
  min-height: 400px;
}

/* SECTIONS */
section.content-section {
  padding: 50px 0;
}

section.content-section.white {
  background: #fff;
}

section.content-section.light {
  background: var(--bg-light);
}

/* CALL TO ACTION BANNER */
.cta-banner {
  background: var(--accent);
  padding: 50px 0;
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 15px;
}

.cta-banner p {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  margin-bottom: 25px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-white {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}

.btn-white:hover {
  background: transparent;
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

/* PARTNER CAROUSEL */
.partner-carousel-section {
  background: #fff;
  padding: 50px 0;
}

.partner-carousel-section h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 18px;
  color: var(--text);
}

/* Partner track – 5 látható, vízszintes scroll nyilakkal */
.partner-track-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.partner-track-outer {
  overflow: hidden;
  flex: 1;
}

.partner-track {
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.4s ease;
  will-change: transform;
}

.partner-item {
  flex: 0 0 calc((100% - 4 * 20px) / 5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.partner-item:hover { opacity: 1; }

.partner-item img {
  max-height: 80px;
  width: 100%;
  max-width: 160px;
  object-fit: contain;
}

.partner-nav {
  background: none;
  border: 2px solid var(--border);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.partner-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 768px) {
  .partner-item {
    flex: 0 0 calc((100% - 2 * 20px) / 3);
  }
}

/* BOTTOM (sp-bottom) */
#sp-bottom {
  background: var(--bottom-bg);
  color: var(--bottom-color);
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

#sp-bottom .row {
  gap: 0;
}

#sp-bottom .col-footer {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 15px;
}

#sp-bottom h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

#sp-bottom ul li {
  margin-bottom: 8px;
}

#sp-bottom ul li::before {
  content: "›";
  color: var(--accent);
  margin-right: 6px;
}

#sp-bottom ul li a {
  color: var(--bottom-color);
  transition: color 0.2s;
}

#sp-bottom ul li a:hover { color: var(--accent); }

.footer-credits {
  margin-top: 20px;
  font-size: 12px;
  color: #999;
}

.footer-credits a {
  color: #999;
}

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

/* FOOTER */
footer#sp-footer {
  background: var(--accent);
  color: #fff;
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
}

footer#sp-footer .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* SLIDESHOW */
.hero-slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: #1b1c26;
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active { opacity: 1; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  padding: 40px 20px 20px;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-nav:hover { background: rgba(0,0,0,0.6); }
.slider-nav.prev { left: 10px; }
.slider-nav.next { right: 10px; }

.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}

.slider-dot.active { background: #fff; }

/* GALLERY GRID */
.gallery-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  padding: 40px 0;
}

.gallery-card {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  background: #fff;
  text-decoration: none;
}

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

.gallery-card-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.gallery-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-card:hover .gallery-card-thumb img {
  transform: scale(1.05);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(46, 161, 217, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-card:hover .gallery-card-overlay { opacity: 1; }

.gallery-card-overlay i {
  color: #fff;
  font-size: 40px;
}

.gallery-card-body {
  padding: 15px 20px;
}

.gallery-card-body h3 {
  font-size: 17px;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.gallery-card-body span {
  font-size: 13px;
  color: #999;
}

/* GALLERY PAGE */
.gallery-page-header {
  padding: 30px 0 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.gallery-page-header a {
  color: var(--accent);
  font-size: 14px;
}

.gallery-page-header h2 {
  font-size: 24px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  padding-bottom: 50px;
}

.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.photo-item:hover img { transform: scale(1.07); }

.photo-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(46, 161, 217, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.photo-item:hover .photo-item-overlay { opacity: 1; }
.photo-item-overlay i { color: #fff; font-size: 32px; }

/* LIGHTBOX */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.active { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-inner img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 25px;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 10000;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  font-size: 28px;
  width: 50px;
  height: 70px;
  cursor: pointer;
  z-index: 10000;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }

.lightbox-caption {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  z-index: 10000;
}

/* CONTENT TEXT SECTIONS */
.text-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

.text-content p { margin-bottom: 15px; }

.text-content ul {
  margin: 10px 0 15px 20px;
}

.text-content ul li {
  list-style: disc;
  margin-bottom: 6px;
}

.text-content strong { color: var(--text-dark); }

.text-content h2 { 
  margin-bottom: 15px;
  font-size: 22px;
}

/* APARTMENTS LAYOUT */
.apartments-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.apartment-block img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.distance-list {
  list-style: none;
  margin: 0;
}

.distance-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.distance-list li::before {
  content: "›";
  color: var(--accent);
  font-size: 18px;
}

/* CONTACT PAGE */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 0;
}

.contact-info h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.contact-info p {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.7;
}

.contact-info a { color: var(--accent); }
.contact-info a:hover { color: var(--accent-dark); }

.map-embed {
  width: 100%;
  height: 350px;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 20px;
  border: none;
}

/* CONTACT FORM */
.contact-form-section h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46,161,217,0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

.form-success {
  display: none;
  background: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 4px;
  margin-top: 15px;
  font-size: 14px;
}

/* BRINGAS PAGE */
.bike-routes {
  background: var(--bg-light);
  padding: 20px 25px;
  border-radius: 6px;
  margin: 20px 0;
}

.bike-routes h4 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.bike-routes ul {
  padding-left: 0;
}

.bike-routes ul li {
  padding: 5px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bike-routes ul li::before {
  content: "🚴";
  font-size: 14px;
}

/* COOKIE CONSENT */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #000;
  color: #fff;
  padding: 15px 20px;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 14px;
}

.cookie-banner.hidden { display: none; }

.cookie-banner p { color: rgba(255,255,255,0.85); max-width: 700px; }

.cookie-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 8px 18px;
  border-radius: 3px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid #fff;
  transition: all 0.2s;
}

.cookie-btn.accept {
  background: #fff;
  color: #000;
}

.cookie-btn.reject {
  background: transparent;
  color: #fff;
}

.cookie-btn:hover { opacity: 0.85; }

/* SCROLL TO TOP */
.scrolltop {
  position: fixed;
  bottom: 30px;
  right: 25px;
  background: var(--accent);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  z-index: 1000;
  border: none;
  transition: background 0.2s;
}

.scrolltop.visible { display: flex; }
.scrolltop:hover { background: var(--accent-dark); }

/* OFFCANVAS MOBILE MENU */
.offcanvas-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 9999;
  transition: right 0.3s;
  box-shadow: -5px 0 20px rgba(0,0,0,0.2);
  padding: 20px;
}

.offcanvas-menu.open { right: 0; }

.offcanvas-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  display: none;
}

.offcanvas-overlay.open { display: block; }

.offcanvas-close {
  text-align: right;
  margin-bottom: 20px;
}

.offcanvas-close button {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-dark);
}

.offcanvas-nav ul {
  flex-direction: column;
  gap: 0;
}

.offcanvas-nav ul li a {
  padding: 12px 5px;
  border-bottom: 1px solid var(--border);
  display: block;
  font-size: 16px;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  nav { display: none; }
  .hamburger { display: flex; }

  .col-half { flex: 0 0 100%; max-width: 100%; }
  .apartments-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  
  #sp-bottom .col-footer {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 30px;
  }

  .hero-slider { height: 350px; }
}

@media (max-width: 600px) {
  .hero-slider { height: 260px; }
  
  #sp-bottom .col-footer {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .gallery-categories {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .cta-banner { padding: 35px 15px; }
  .cta-banner h2 { font-size: 22px; }

  section.content-section { padding: 35px 0; }

  .slider-nav { width: 36px; height: 36px; font-size: 18px; }

  .contact-info, .contact-form-section { padding: 0; }
}

@media (max-width: 400px) {
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
}

/* UTILITY */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
