.karnataka-page {
  max-width: 1150px;
  margin: 0 auto;
  padding: 45px 20px 80px;
  font-family: Arial, sans-serif;
  color: #222;
}


/* =========================================================
   HEADER
   ========================================================= */

.karnataka-header {
  text-align: center;
  margin-bottom: 45px;
}

.karnataka-header h1 {
  margin: 0;
  font-size: 46px;
}

.karnataka-header p {
  margin-top: 12px;
  color: #777;
  font-size: 17px;
}


/* =========================================================
   SEARCH + FILTER AREA
   ========================================================= */

.place-controls {
  margin-bottom: 35px;
}


/* SEARCH */

.place-search {
  margin-bottom: 20px;
}

.place-search input {
  width: 100%;
  box-sizing: border-box;

  padding: 15px 18px;

  border: 1px solid #ccc;
  border-radius: 12px;

  font-size: 16px;

  outline: none;
}

.place-search input:focus {
  border-color: #555;
}


/* FILTER BUTTONS */

.place-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.place-filter {
  border: 1px solid #ccc;
  background: transparent;

  padding: 10px 18px;

  border-radius: 30px;

  cursor: pointer;

  font-size: 14px;

  transition: all 0.2s ease;
}

.place-filter:hover {
  background: #f2f2f2;
}

.place-filter.active {
  background: #222;
  color: white;
  border-color: #222;
}


/* =========================================================
   PLACE GRID
   ========================================================= */

.place-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 25px;
}


/* =========================================================
   FLIP CARD
   ========================================================= */

.place-card {
  height: 360px;

  perspective: 1000px;
}


/*
   This inner element rotates.
*/

.place-card-inner {
  position: relative;

  width: 100%;
  height: 100%;

  transition:
    transform 0.7s;

  transform-style: preserve-3d;
}


/*
   Flip when hovering.
*/

.place-card:hover .place-card-inner {
  transform: rotateY(180deg);
}


/* =========================================================
   CARD FRONT + BACK
   ========================================================= */

.place-card-front,
.place-card-back {

  position: absolute;

  width: 100%;
  height: 100%;

  box-sizing: border-box;

  border-radius: 20px;

  overflow: hidden;

  backface-visibility: hidden;

  border: 1px solid #ddd;

  background: white;
}


/* =========================================================
   FRONT
   ========================================================= */

.place-card-front {

  display: flex;

  flex-direction: column;

  justify-content: flex-end;

  background-size: cover;

  background-position: center;
}


/*
   Dark overlay at bottom.
*/

.place-card-front-content {

  padding: 25px;

  color: white;

  background:
    linear-gradient(
      transparent,
      rgba(0,0,0,0.8)
    );
}

.place-card-front-content h2 {
  margin: 0;

  font-size: 28px;
}

.place-card-front-content p {
  margin: 7px 0 0;

  font-size: 14px;
}


/* =========================================================
   BACK
   ========================================================= */

.place-card-back {

  transform: rotateY(180deg);

  padding: 25px;

  display: flex;

  flex-direction: column;

  justify-content: center;

  text-align: center;
}

.place-card-back h2 {
  margin: 0 0 18px;

  font-size: 25px;
}


/* =========================================================
   STATUS
   ========================================================= */

.place-status {

  display: inline-block;

  padding: 7px 13px;

  border-radius: 20px;

  font-size: 13px;

  margin-bottom: 10px;

  background: #f2f2f2;
}


/* =========================================================
   BUDGET
   ========================================================= */

.place-budget {

  margin-bottom: 22px;

  color: #666;

  font-size: 14px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.place-actions {

  display: flex;

  gap: 10px;

  justify-content: center;
}

.place-action {

  display: inline-block;

  padding: 10px 16px;

  border-radius: 10px;

  border: 1px solid #ccc;

  text-decoration: none;

  color: #222;

  font-size: 13px;

  transition: all 0.2s ease;
}

.place-action:hover {

  background: #222;

  color: white;

  border-color: #222;
}


/* =========================================================
   NO RESULTS
   ========================================================= */

.place-no-results {

  display: none;

  margin-top: 25px;

  padding: 30px;

  text-align: center;

  border: 1px dashed #ccc;

  border-radius: 14px;

  color: #777;
}
